Abstract
Deep neural networks (DNNs) have achieved remarkable success across various domains but remain plagued by two significant challenges: vulnerability to adversarial examples and a lack of human-centric interpretability. While prior research has noted that adversarially robust models tend to produce more interpretable gradients, the causal direction of this relationship remains under-explored. This paper investigates whether enforcing interpretability during training can serve as a mechanism for achieving adversarial robustness. We propose Interpretation Regularization (IR), a technique that encourages a model’s gradients to align with interpretable target salience maps while maintaining a small magnitude. Our results on MNIST and CIFAR-10 show that IR-trained models exhibit significantly higher robustness against $\ell_2$ and $\ell_\infty$ attacks compared to standard training and Jacobian Regularization.
1. Introduction
The "black box" nature of deep learning presents a dual challenge. First, DNNs are susceptible to adversarial perturbations—small, often imperceptible changes to input data that lead to incorrect classifications. Second, the decision-making process of these models is often opaque, making it difficult for users to trust their outputs in critical applications.
Interestingly, these two issues appear to be intertwined. Empirical observations suggest that models made robust through adversarial training (AT) naturally develop "cleaner" and more recognizable gradient-based explanations. This paper explores the inverse hypothesis: can we achieve robustness by explicitly training a model to be interpretable? By introducing Interpretation Regularization (IR), we demonstrate that guiding a model to focus on human-meaningful features indeed confers a degree of adversarial protection.
2. Methodology: Interpretation Regularization (IR)
The core of our approach is Interpretation Regularization (IR). Unlike standard training, which focuses solely on minimizing classification error, IR incorporates a dual-component regularization term into the loss function.
2.1 Gradient Alignment and Magnitude Suppression
IR operates on the input-logits gradient, forcing it to adhere to two constraints:
- Directional Alignment: Using cosine similarity, the model’s gradient is encouraged to point in the same direction as a "target interpretation"—a high-quality salience map representing the features a robust model would prioritize.
- Magnitude Suppression: This term penalizes large gradient magnitudes, effectively reducing the model's sensitivity to small input fluctuations.
2.2 Target Interpretations and SmoothGrad
To provide the model with a "ground truth" for interpretability, we utilize salience maps extracted from pre-existing robust models. We further refine these targets using SmoothGrad, a technique that averages gradients over multiple noisy versions of an input. This process filters out visual noise, providing the training process with a clearer signal of which spatial features are truly relevant for classification.
3. Experimental Evaluation
We evaluated IR on the MNIST and CIFAR-10 datasets, testing against Projected Gradient Descent (PGD) attacks under both $\ell_2$ and $\ell_\infty$ norms.
3.1 MNIST Results
On MNIST, IR demonstrated a clear advantage in high-perturbation scenarios. Under a heavy $\ell_\infty$ attack ($\epsilon=0.30$), the IR-trained model (utilizing SmoothGrad targets) achieved an accuracy of 11.52%, a significant improvement over the 1.71% accuracy of the standard model. In certain cases, IR performance even rivaled the adversarial training baseline it was designed to emulate.
3.2 CIFAR-10 Results
The benefits of IR were even more pronounced on the CIFAR-10 dataset. When compared to standard Jacobian Regularization (JR)—which penalizes gradient magnitude without considering direction—IR consistently came out on top. For an $\ell_\infty$ (8/255) attack, IR reached 14.25% accuracy, while JR lagged significantly at 2.51%. This suggests that the direction of the gradient (where the model is looking) is as critical as its sensitivity.
4. Discussion: The Role of Spatial Meaning
A key insight from our study is that the spatial information contained within the interpretation maps is the primary driver of robustness. To test this, we conducted a "permutation experiment" where the pixels of the target salience maps were randomly scrambled. As the maps lost their human-recognizable structure, the resulting model's robustness plummeted. This confirms that IR works by forcing the model to perform "feature selection," ignoring non-robust statistical noise and focusing on the structural features that humans use for recognition.
Furthermore, IR showed strong performance in cross-norm attacks. Models trained with $\ell_2$-based targets remained resilient against $\ell_\infty$ attacks, suggesting that the learned interpretability provides a generalized defense mechanism rather than one tuned to a specific perturbation type.
5. Conclusion
Our research demonstrates that interpretability is not merely a beneficial side effect of adversarial robustness but can be a primary driver of it. By regularizing models to produce human-meaningful gradients, we can improve their resilience to adversarial manipulation.
However, IR currently faces two main limitations: it requires a pre-trained robust model to provide target interpretations (acting as a form of "robustness distillation"), and the use of SmoothGrad introduces significant computational overhead during training. Future work will focus on generating high-quality target maps without the need for an existing robust model, potentially by leveraging synthetic saliency or geometric priors.
Summary updated