Abstract
Deep neural networks often suffer from "saturation," where gradients become near-zero for critical features, rendering standard sensitivity analysis ineffective. This paper introduces Integrated Gradients, a method that attributes model predictions to input features by integrating gradients along a path from a neutral baseline to the actual input. This approach ensures explanations are accurate, consistent across architectures, and satisfy the completeness property.
Introduction: The Challenge of Model Interpretability
As deep learning models are deployed in high-stakes domains like medicine and autonomous driving, the "black box" nature of their predictions becomes a significant hurdle. Understanding why a model makes a specific choice is essential for trust and safety.
The most intuitive measure of feature importance is the gradient—the rate of change of the output relative to a specific input feature. However, deep networks frequently "saturate." For instance, if an object recognition model is 99.9% certain an image contains a "reflex camera," the score is at its maximum. Consequently, small changes to the pixels of the camera lens do not increase the score further, resulting in a near-zero gradient. This makes crucial features appear unimportant.
Methodology: Integrated Gradients
To overcome saturation, the authors propose Integrated Gradients (referred to in early drafts as Interior Gradients). Instead of looking only at the local gradient at the final input point, the method examines how the model's prediction evolves as the input is gradually introduced.
The process involves three steps:
- Baseline Selection: A "neutral" starting point is defined (e.g., an all-black image) where the prediction score is near zero.
- Path of Counterfactuals: A series of inputs is created by linearly scaling from the baseline (0%) to the full input (100%).
- Gradient Integration: The gradients are calculated at every step along this path and averaged.
By summing these "interior" gradients, the method captures the importance of features that the model recognized early in the scaling process, even if they are saturated at the final input.
Key Insights
The paper highlights several theoretical advantages:
- Implementation Invariance: If two networks represent the same mathematical function, they should yield identical explanations. Integrated Gradients satisfies this, unlike methods like DeepLift or LRP which depend on specific network layers.
- Completeness: The sum of all feature importance scores exactly equals the difference between the prediction at the input and the baseline, ensuring no attribution is unaccounted for.
Results and Discussion
The method was evaluated across object recognition (ImageNet), molecular screening, and language modeling.
In image tasks, Integrated Gradients produced significantly cleaner saliency maps. Quantitative "Pixel Ablation" tests showed that removing pixels identified as important by this method caused a faster drop in model confidence than standard gradients. In text models, it correctly linked the prediction of specific words to their logical linguistic precursors (e.g., "more" leading to "than"), matching human intuition where standard gradients failed.
Conclusion
Integrated Gradients provides a robust, theoretically grounded framework for model interpretability. By addressing the saturation problem through path integration, it offers clearer and more reliable explanations for complex deep learning models across various domains.
Summary updated