NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Empirical Study on the Relation between Network Interpretability and Adversarial Robustness

Adam Noack, Isaac Ahern, Dejing Dou, Boyang Li · DOI

Abstract

Deep neural networks (DNNs) have had many successes, but they suffer from two major issues: (1) a vulnerability to adversarial examples and (2) a tendency to elude human interpretation. Interestingly, recent empirical and theoretical evidence suggests these two seemingly disparate issues are actually connected. In particular, robust models tend to provide more interpretable gradients than non-robust models. However, whether this relationship works in the opposite direction remains obscure. With this paper, we seek empirical answers to the following question: can models acquire adversarial robustness when they are trained to have interpretable gradients? We introduce a theoretically inspired technique called Interpretation Regularization (IR), which encourages a model's gradients to (1) match the direction of interpretable target salience maps and (2) have small magnitude. To assess model performance and tease apart factors that contribute to adversarial robustness, we conduct extensive experiments on MNIST and CIFAR-10 with both $\ell_2$ and $\ell_\infty$ attacks. We demonstrate that training the networks to have interpretable gradients improves their robustness to adversarial perturbations. Applying the network interpretation technique SmoothGrad yields additional performance gains, especially in cross-norm attacks and under heavy perturbations. The results indicate that the interpretability of the model gradients is a crucial factor for adversarial robustness.

Introduction

Deep Neural Networks (DNNs) currently face a dual crisis of trust: they are easily deceived by imperceptible adversarial perturbations and their internal decision-making processes remain largely opaque to human observers. While these problems are often studied in isolation, recent research has uncovered a compelling correlation: models hardened against adversarial attacks (typically through computationally expensive adversarial training) naturally produce cleaner, more intuitive gradient-based explanations.

This paper investigates the causal nature of this relationship. Rather than viewing interpretability as a byproduct of robustness, the authors ask: can we achieve robustness by explicitly training a model to be interpretable? By introducing a novel training objective called Interpretation Regularization (IR), this study demonstrates that forcing a network's gradients to align with meaningful, human-centric "salience maps" significantly enhances its resistance to adversarial manipulation.

Methodology: Interpretation Regularization (IR)

The authors propose Interpretation Regularization (IR) to bridge the gap between explainability and security. Instead of optimizing solely for classification accuracy, the IR objective incorporates two specific regularization terms designed to shape the model's gradients:

  1. Alignment: This term utilizes cosine similarity to force the model’s "simple gradient" (the raw sensitivity of the output relative to input pixels) to point in the same direction as a "target interpretation."
  2. Magnitude: This term (the Frobenius norm of the Jacobian slice) encourages the gradients to remain small, preventing the model from becoming overly sensitive to minor pixel variations.

To generate the "target interpretations" used for alignment, the authors employ SmoothGrad. This technique averages gradients over multiple noisy versions of an image to produce a denoised, clearer map of feature importance. These targets are derived from pre-existing robust models, effectively teaching the new model to focus on the same robust features—such as the structural loops of a digit or the wings of a bird—that a human would recognize.

Experimental Setup

The IR technique was evaluated on two benchmark datasets:

  • MNIST: Handwritten digits.
  • CIFAR-10: 60,000 small color images across ten categories.

The models were subjected to Projected Gradient Descent (PGD) attacks under both $\ell_2$ and $\ell_\infty$ constraints to determine if interpretability-driven training provides broad protection against different perturbation types.

Key Insights and Results

The Importance of Gradient Direction

A primary finding of the study is that the direction of the gradient (the "where" of feature importance) is more critical for robustness than the magnitude (the "how much"). While standard Jacobian Regularization (JR) attempts to minimize all gradient magnitudes uniformly, IR is more surgical. By guiding the model toward specific semantic features, IR consistently outperformed JR across all tests. This suggests that interpretability acts as a form of feature selection, preventing the model from relying on brittle, high-frequency patterns that are invisible to humans but easily exploited by adversaries.

Performance Benchmarks

  • MNIST: Under high-difficulty $\ell_\infty$ attacks ($\epsilon=0.30$), the IR model using SmoothGrad targets achieved 11.52% accuracy. In contrast, a standard model achieved only 1.71%, and a model using standard Jacobian Regularization reached 6.54%.
  • CIFAR-10: IR demonstrated superior performance over JR in every configuration. Under moderate $\ell_2$ attacks, the best IR setup reached 63.71% accuracy, while JR lagged at 58.96%.
  • Cross-Norm Robustness: Surprisingly, models trained with IR using targets from an $\ell_2$-robust model performed exceptionally well against $\ell_\infty$ attacks, sometimes even exceeding the robustness of the original "teacher" model.

Validation of Semantic Content

To ensure that the robustness gains were truly driven by interpretability, the authors conducted a control experiment where target maps were randomly permuted. When the semantic content of the interpretation was destroyed, the robustness gains vanished, confirming that the alignment with human-interpretable features is the driving force behind the defense.

Conclusion and Future Work

This research establishes that the interpretability of model gradients is a fundamental component of adversarial robustness. By training models to "see" like humans, we can inherently limit their vulnerability to non-robust, adversarial features.

However, the authors note a current limitation: IR currently functions as a form of knowledge distillation, requiring a pre-existing robust "teacher" model to provide target interpretations. Future research will focus on generating these interpretable targets without the need for a pre-trained robust model, potentially utilizing synthetic data or human-annotated saliency maps to create a ground-up defense strategy.

Summary updated

BibTeX
@misc{noack2019empirical,
  author = {Adam Noack and Isaac Ahern and Dejing Dou and Boyang Li},
  title = {{An Empirical Study on the Relation between Network Interpretability and Adversarial Robustness}},
  year = {2019},
  eprint = {1912.03430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03430},
}
Figure