Introduction
Deep neural networks are often criticized as "black boxes" due to their complex, non-linear decision-making processes. To demystify these models, researchers employ feature attribution methods—such as saliency maps—to identify which input features (e.g., specific pixels in an image) most significantly influence a prediction. However, these interpretations are notoriously fragile. A minor, imperceptible adversarial perturbation can drastically alter an explanation without changing the model's classification, leading to a "manipulated" interpretation that might suggest the model is looking at irrelevant background features instead of the primary object.
The Normalization Oversight
Existing strategies to stabilize interpretations often focus on smoothing the model's gradients using the $\ell_2$ distance. The underlying assumption is that if the gradient at a point is similar to the gradients in its immediate neighborhood, the resulting explanation will be stable.
However, this paper identifies a critical flaw: standard visualization techniques almost always normalize attribution maps. Because $\ell_2$ distance is not normalization-invariant, a model can minimize its robustness loss simply by shrinking the magnitude of its gradients. This "cheating" satisfies the mathematical constraint without actually improving the directional alignment of the gradients, which is what determines the visual structure of the explanation.
Methodology: Local Gradient Alignment
To address this, the authors propose a novel training objective centered on the Cosine Robust Criterion (CRC). Unlike Euclidean distance, the cosine distance measures the alignment (angle) between gradients. Since cosine distance is normalization-invariant, it directly optimizes for the visual stability of the normalized attribution maps.
The researchers found that relying solely on cosine distance can cause training instability, particularly when gradient directions flip at the boundaries of a neighborhood. To mitigate this, they introduced a Hybrid Loss ($\ell_2 + \text{Cosd}$). This combination leverages the stability of $\ell_2$ regularization while ensuring the directional alignment necessary for robust visualization.
Key Results and Visual Robustness
The proposed method was evaluated on CIFAR-10 and ImageNet-100. Quantitatively, the $\ell_2 + \text{Cosd}$ approach achieved superior Random Perturbation Similarity (RPS) across various attribution methods, including Gradient, xGrad, and LRP. In adversarial scenarios, the difference is even more pronounced. In the "Adv-Insertion Game," where an attacker attempts to hijack the attribution map, models trained with the hybrid loss maintained meaningful explanations, whereas standard models produced noisy, nonsensical maps.
Conclusion
By prioritizing gradient alignment over magnitude, this work provides a more principled approach to robust model interpretation. The method is computationally efficient—running significantly faster than previous second-order optimization techniques—making it feasible for large-scale datasets like ImageNet. While challenges remain regarding hyperparameter tuning and training overhead, local gradient alignment represents a significant step toward making neural network explanations as reliable as the models they seek to describe.
Summary updated