Abstract
Interpreting the decision-making process of Deep Neural Networks (DNNs) is essential for establishing trust in AI systems. While gradient-based attribution methods like Integrated Gradients (IG) are popular, they suffer from the "reference problem"—the need for an arbitrary baseline—and the "path problem"—integrating along a straight line in the input space that ignores the model's internal manifolds. This paper introduces Adversarial Gradient Integration (AGI), a novel method that explains predictions by integrating gradients along the path of steepest ascent from targeted adversarial examples back to the original input. AGI provides a theoretically grounded, reference-free approach that produces more focused and semantically meaningful feature importance maps.
Introduction
Gradient-based attribution methods aim to highlight the input features most responsible for a model's output. However, the widely used Integrated Gradients (IG) method faces two significant challenges. First, it requires a manually selected reference input (e.g., a black image), which is often ad hoc and can lead to inconsistent explanations. Second, IG integrates along a straight line in the input space. Because DNNs are highly non-linear, a straight line in the input space does not necessarily correspond to a meaningful path within the model's learned feature space.
Methodology
AGI shifts the focus from simple classification ("Why is this an elephant?") to discrimination ("How does the model distinguish an elephant from other classes?"). It addresses the limitations of previous methods through two key innovations:
1. Adversarial Starting Points
Instead of an arbitrary baseline, AGI identifies targeted adversarial examples—the nearest points in the input space that cause the model to misclassify the target as a specific false class. These points serve as natural, model-dependent baselines for discrimination.
2. Steepest Ascent Path
AGI integrates gradients along the curve of steepest ascent from the adversarial example back to the original input. This path is mathematically equivalent to a straight line in the model's penultimate feature space, ensuring the explanation respects the model's internal logic.
To generate a final explanation, AGI calculates the discrimination attribution for a subset of false classes (typically 20 for ImageNet) and aggregates them. This approach is supported by the "Sum-to-Zero" property, where the gradient of the true class is shown to be the negative sum of the gradients of all false classes.
Experimental Results
The researchers evaluated AGI on the ImageNet dataset using InceptionV3, ResNet152, and VGG19 architectures.
Qualitative Performance
Qualitatively, AGI produces heatmaps that are significantly more focused on the target object compared to IG, which often generates noisy or sparse attributions. AGI excels at highlighting the contours and relevant features of objects even in challenging conditions, such as subjects in deep shadow.
Quantitative Performance
Using standard "Insertion" and "Deletion" metrics, AGI outperformed existing methods. In the Insertion game—which measures how quickly model confidence increases as important pixels are added—AGI achieved a score of 0.561 on InceptionV3, significantly higher than IG's 0.294. In Deletion tests, AGI demonstrated that removing its identified pixels causes a rapid drop in model confidence, confirming the accuracy of its feature importance rankings.
Discussion and Limitations
AGI provides a more theoretically sound framework for XAI by aligning explanations with the model's feature space. However, it introduces higher computational overhead; calculating multiple adversarial paths takes approximately 15 seconds per image on a standard GPU. Additionally, the steepest ascent algorithm can occasionally be hindered by local maxima, though the use of signed gradients helps mitigate this. Future work may explore the application of AGI to non-visual domains such as natural language processing and tabular data.
Summary updated