FullGrad is a feature attribution method that satisfies the completeness axiom by aggregating the standard input-gradient with the gradients of all intermediate bias parameters throughout the network. Unlike methods that only consider the input-gradient, FullGrad captures the entire signal by summing the bias-gradient contributions from every neuron, providing a mathematically complete decomposition of the model's output into input-feature importance scores.
Glossary
FullGrad

What is FullGrad?
FullGrad is an axiomatic attribution method that decomposes a neural network's output into contributions from both the input features and all intermediate network biases, satisfying the completeness axiom by construction.
By incorporating bias gradients, FullGrad addresses the gradient saturation problem where input-gradients alone fail to highlight features that strongly activate the correct class. The method computes the final attribution map as the sum of the element-wise product of the input and its gradient, plus the spatially broadcast sum of all bias gradients, ensuring no predictive signal is lost in the explanation.
Key Features of FullGrad
FullGrad is an attribution method that satisfies the completeness axiom by aggregating the input-gradient with the gradients of all intermediate network biases, providing a full decomposition of the output.
Completeness Axiom Satisfaction
FullGrad is one of the few attribution methods that provably satisfies the completeness axiom. The sum of all feature attributions exactly equals the model's output difference from a baseline. This is achieved by decomposing the output into the input-gradient contribution and the bias-gradient contributions from every neuron in the network. Unlike methods that approximate or violate completeness, FullGrad provides a mathematically exact accounting of the prediction.
Full Decomposition Mechanism
The core innovation of FullGrad is its aggregation of bias gradients. Standard gradient methods only use the gradient with respect to the input. FullGrad recognizes that the bias parameters in each layer also contribute to the output. By computing the gradient of the output with respect to every bias term and summing these contributions, FullGrad captures the full sensitivity of the network. This provides a more complete and faithful attribution map.
Comparison with Integrated Gradients
Both FullGrad and Integrated Gradients satisfy the completeness axiom, but through different mechanisms:
- Integrated Gradients requires a baseline input and integrates gradients along a path
- FullGrad requires no baseline and uses only a single forward-backward pass
- FullGrad is computationally more efficient as it avoids the numerical integration step
- The bias-gradient terms in FullGrad act as a spatial prior, naturally smoothing the saliency map without explicit noise injection
Implementation Invariance
FullGrad satisfies the implementation invariance axiom. Two functionally equivalent networks with different internal architectures will produce identical attributions. This is because the method relies on the functional relationship between inputs and outputs, not on specific activation patterns. The bias gradients capture the network's sensitivity structure regardless of how the computation is organized internally.
Practical Computation
Computing FullGrad requires:
- A standard forward pass to compute the output
- A backward pass to compute gradients with respect to the input and all bias parameters
- Summation of the input-gradient map with the bias-gradient maps spatially broadcast to match input dimensions
- The result is a single saliency map with the same spatial dimensions as the input
This is implemented efficiently in frameworks like PyTorch using automatic differentiation hooks.
Sensitivity-n Axiom
FullGrad adheres to the Sensitivity-n axiom: if the model's output is mathematically independent of a feature, that feature receives zero attribution. The bias-gradient terms ensure that all contributing pathways through the network are accounted for. Features that do not influence any neuron's bias contribution or the direct input gradient are correctly assigned zero importance, preventing false positive attributions.
Frequently Asked Questions
Clear, technical answers to the most common questions about the FullGrad attribution method, its completeness axiom, and how it differs from other gradient-based techniques.
FullGrad is a neural network attribution method that decomposes the model's output into a sum of contributions from the input features and all intermediate network biases. It works by aggregating two signals: the standard input-gradient (the gradient of the output with respect to the input, multiplied by the input itself) and the bias-gradients from every layer in the network. For a convolutional network, the bias-gradient at a given layer is computed by taking the gradient of the output with respect to that layer's bias parameter and broadcasting it spatially across the feature map. The final saliency map is the sum of the input-gradient contribution and all upsampled bias-gradient maps, providing a full decomposition of the output score that satisfies the completeness axiom by construction.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
FullGrad vs. Other Attribution Methods
Comparison of FullGrad against other gradient-based attribution methods on key mathematical axioms and practical properties.
| Property | FullGrad | Integrated Gradients | Gradient × Input |
|---|---|---|---|
Satisfies Completeness Axiom | |||
Satisfies Implementation Invariance | |||
Satisfies Sensitivity-n | |||
Captures Bias Contributions | |||
Requires Baseline Input | |||
Computational Cost | 1 backward pass | 20-300 backward passes | 1 backward pass |
Typical Attribution Noise | Low | Low | High (Shattered Gradients) |
Related Terms
FullGrad sits within a broader landscape of gradient-based sensitivity analysis. These related concepts define the axioms, alternatives, and foundational techniques that contextualize FullGrad's unique completeness property.
Completeness Axiom
The mathematical principle that the sum of all feature attributions must equal the difference between the model's output for the target input and a baseline reference. FullGrad satisfies this axiom by design, aggregating the input-gradient with the bias-gradients from every intermediate layer. This ensures no portion of the output signal remains unaccounted for, unlike methods such as vanilla Gradient×Input which violate completeness in deep networks.
Integrated Gradients
An axiomatic method that computes feature importance by accumulating gradients along a straight-line path from a baseline input to the actual input. While Integrated Gradients satisfies completeness through path integration, FullGrad achieves it through a different mechanism—explicitly summing bias gradients across all layers. Both methods address the gradient saturation problem, but FullGrad avoids the need to select a baseline reference.
Gradient × Input
A first-order Taylor approximation that multiplies the raw gradient by the input value. While computationally simple, this method suffers from shattered gradients in deep networks and violates the completeness axiom. FullGrad can be viewed as an extension that corrects this deficiency by incorporating the neglected bias terms, transforming a partial linearization into a full decomposition of the network's output.
Layer-wise Relevance Propagation
A decomposition technique that redistributes the prediction score backwards through the network using conservation rules at each layer. Like FullGrad, LRP satisfies a conservation property ensuring no relevance is lost during propagation. However, LRP relies on heuristic propagation rules tailored to specific layer types, while FullGrad derives its decomposition directly from the gradient of the biases, providing a mathematically unified framework.
DeepLIFT
An attribution method that compares neuron activations to a reference activation and assigns contribution scores based on the difference. DeepLIFT addresses gradient saturation by using discrete differences rather than instantaneous gradients. FullGrad similarly avoids saturation issues but does so through bias-gradient aggregation rather than reference-based comparison, eliminating the need to define reference values for each layer.
SmoothGrad
A technique that sharpens noisy saliency maps by averaging gradients from multiple noisy copies of the same input. While SmoothGrad improves visual coherence, it does not address the completeness problem. FullGrad produces naturally sharper attributions without noise injection because the bias gradients capture signal that would otherwise manifest as high-frequency noise in input-gradient-only methods.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us