Where Classification Fails, Interpretation Rises

Chanh Nguyen, Georgi Georgiev, Yujie Ji, Ting WangarXiv 2017

Abstract

Deep Neural Networks (DNNs) are susceptible to adversarial attacks that manipulate classification outputs through imperceptible perturbations. This paper proposes a novel detection framework that leverages the stability of model interpretations—specifically attention masks—to identify adversarial inputs. By comparing the classification label of an input image with the classification of its corresponding attention mask, the system can effectively flag discrepancies caused by adversarial noise.

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success in computer vision but remain notoriously fragile. Adversarial attacks can force a model to misclassify an image (e.g., labeling a "ship" as a "frog") by adding tiny, often imperceptible perturbations. While many defenses focus on input sanitization or robust retraining, these often lead to an "arms race" with adaptive attackers. This research explores a different defensive posture: using interpretability as a security layer. The core hypothesis is that while an attack can easily flip a model's final output, it is significantly harder to alter the underlying features the model deems important without fundamentally changing the image's appearance to a human observer.

Methodology: Contrastive Detection Framework

The proposed "classification-interpretation contrastive detection" framework consists of three integrated modules designed to cross-verify model decisions.

The proposed detection framework architecture, showing the parallel processing of the input image through a classifier and an attention-based mask classifier.
  1. Image Classifier ($f_1$): A standard deep learning model (e.g., AlexNet) that generates a prediction label ($y_1$) for the input image ($x$).
  2. Attention Model ($g$): Utilizing a Latent Attention Network (LAN), this module produces an "attention mask" ($m$). This mask highlights pixels most influential to the classification by measuring loss sensitivity to localized noise.
  3. Mask Classifier ($f_2$): A secondary model (e.g., LeNet) trained to classify the attention mask itself into a decision ($y_2$).

The system flags an input as adversarial if there is a mismatch between $y_1$ and $y_2$. For instance, if the image classifier predicts "frog" but the mask classifier identifies the underlying attention pattern as a "ship," the input is deemed suspicious.

Experimental Setup

The framework was evaluated using the CIFAR-10 dataset, comprising 60,000 images across 10 classes. The researchers tested the system against three prominent adversarial attack vectors:

  • FGSM ($l_\infty$): Small, uniform perturbations across all pixels.
  • JSMA ($l_0$): Significant changes to a small subset of pixels.
  • C&W ($l_2$): A sophisticated optimization-based attack designed to minimize detectable noise.

Results and Discussion: The Invariance of Interpretation

The study's most significant finding is the "invariance of interpretation." Despite successful adversarial attacks flipping the classification label, the generated attention masks remained remarkably consistent with the original benign images.

Comparison of a 'ship' image under various adversarial attacks. While the classification labels change, the attention masks remain visually and semantically consistent.

As shown in the figure above, the attention mask for a "ship" remains stable even when the classifier is tricked into seeing a "car" or a "frog." Quantitatively, the attention masks remained similar to their benign counterparts over 85% of the time during successful attacks. This suggests that adversarial noise often exploits "shallow," brittle features that affect the final layer's logit distribution without fundamentally shifting the semantic regions the model prioritizes.

The framework demonstrated high detection accuracy on AlexNet, identifying 96% of JSMA attacks and approximately 86-87% of FGSM and C&W attacks. Furthermore, the method showed strong transferability, remaining effective against attacks generated for different model architectures (e.g., VGG-like networks).

Conclusion and Future Work

By shifting the focus from what a model predicts to where it looks, this research provides a robust mechanism for detecting adversarial subversion. However, a current limitation is the reliability of the mask generator; the system currently faces a relatively high false-alarm rate (~34-39%) on benign images due to "noisy" mask generation. Future work will focus on developing more robust interpretability models and exploring alternative techniques like Grad-CAM or Integrated Gradients to provide even more stable defensive signals.

Summary updated

BibTeX
@misc{nguyen2017where,
  author = {Chanh Nguyen and Georgi Georgiev and Yujie Ji and Ting Wang},
  title = {{Where Classification Fails, Interpretation Rises}},
  year = {2017},
  eprint = {1712.00558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.00558},
}
Figure