Introduction
Deep neural networks are notoriously "black boxes." While they achieve incredible accuracy, understanding why a model predicted "German Shepherd" instead of "Wolf" is difficult. This is known as the attribution problem: assigning a score to each input feature (like pixels in an image or words in a sentence) based on its contribution to the final prediction.
This paper introduces Integrated Gradients (IG), a simple yet mathematically grounded method for attributing a deep network's prediction to its input features. By establishing fundamental "axioms" that any explanation method should follow, the authors demonstrate that most previous techniques are flawed and provide a robust, easy-to-implement alternative.
The Attribution Problem
Before this paper, many attribution methods existed—such as Saliency Maps, DeepLift, or Layer-wise Relevance Propagation (LRP)—but they were largely heuristic. There was no "ground truth" for an explanation, making it hard to tell if a heatmap was showing a genuine model insight or just a visual artifact. The authors argue that instead of just looking for visually pleasing heatmaps, we should demand that attribution methods satisfy basic logical requirements, or axioms.
Axiomatic Foundations
The authors propose two primary axioms that any reliable attribution method must satisfy:
- Sensitivity: If we change one input feature and the model's prediction changes, that feature must receive a non-zero attribution. Conversely, if a feature doesn't affect the output, its attribution should be zero.
- Implementation Invariance: If two different neural networks produce the same output for all possible inputs (i.e., they are functionally equivalent), their explanations should be identical, regardless of how their internal architectures were built.
They show that simple gradients fail the Sensitivity test because of "saturation." If a model's output flattens out (like at the top of a Sigmoid curve), the gradient becomes zero even if the feature is critically important to the final prediction.
The Integrated Gradients Solution
To bypass the saturation trap, the authors introduce Integrated Gradients (IG). Instead of looking only at the gradient at the current input, IG considers a "baseline" input (like an all-black image representing "no signal"). It then calculates the integral of the gradients along the straight-line path from the baseline to the actual input.
This approach "sums up" the importance of a feature as it is gradually introduced to the model. By looking at the entire journey from the baseline to the input, IG captures feature importance even if the gradient eventually saturates at the final step.
Key Insights
- The Saturation Trap: The biggest realization is that gradients at a single point are misleading. If a threshold function turns "on" at $x=1$, the gradient at $x=2$ is zero. IG bypasses this by evaluating the entire path from $x=0$ to $x=2$.
- Theoretical Pedigree: Integrated Gradients is rooted in cost-sharing theory from economics, specifically the Aumann-Shapley value. The authors proved that IG is the unique path-based method that satisfies the Symmetry-Preserving axiom (identical features get identical credit).
- The Importance of the Baseline: Attribution is a comparative task. We aren't just asking "why is this pixel important?" but "why is this pixel more important than a black pixel?" Choosing a meaningful baseline (like an all-zero embedding for text) is crucial for a clear explanation.
Key Results and Applications
The authors demonstrate the versatility of Integrated Gradients across several domains, including object recognition, medical imaging (Diabetic Retinopathy), natural language processing, and chemistry.
- Qualitative Superiority: In image tasks, IG produced much sharper and more intuitive heatmaps than standard "Gradient $\times$ Input" methods, which often highlighted irrelevant background noise.
- Model Debugging: In a chemistry model predicting molecular activity, IG revealed a "degenerate feature" bug. It showed that several different atoms were receiving identical attributions, leading researchers to discover that the network architecture wasn't properly convolving features.
- Rule Extraction: In NLP, IG successfully identified "trigger words" that the model used to classify questions (e.g., the phrase "how many" was correctly attributed to driving the "Numeric" class prediction).
Limitations and Future Work
- Baseline Selection: While the authors suggest black images or zero embeddings, they acknowledge that the choice of baseline is a subjective "knob" that can change the explanation. Finding a universal baseline for all data types remains an open question.
- Computational Cost: IG requires computing the gradient multiple times (usually 20 to 300 steps) to approximate the integral. While much faster than game-theoretic alternatives like Shapley values, it is still significantly more expensive than a single backpropagation pass.
- Feature Interactions: IG attributes importance to individual features but doesn't explicitly capture how features interact (e.g., how the combination of "eyes" and "ears" together contributes to a "cat" prediction).
Summary updated