Interpreting and Improving Adversarial Robustness with Neuron Sensitivity

Chongzhi Zhang, Aishan Liu, Xianglong Liu, Yitao Xu, Hang Yu, Yuqing Ma, Tianlin Li · DOI

Abstract

Deep neural networks (DNNs) are vulnerable to adversarial examples where inputs with imperceptible perturbations mislead DNNs to incorrect results. Despite the potential risk they bring, adversarial examples are also valuable for providing insights into the weakness and blind-spots of DNNs. Thus, the interpretability of a DNN in the adversarial setting aims to explain the rationale behind its decision-making process and makes deeper understanding which results in better practical applications. To address this issue, we try to explain adversarial robustness for deep models from a new perspective of neuron sensitivity which is measured by neuron behavior variation intensity against benign and adversarial examples. In this paper, we first draw the close connection between adversarial robustness and neuron sensitivities, as sensitive neurons make the most non-trivial contributions to model predictions in the adversarial setting. Based on that, we further propose to improve adversarial robustness by constraining the similarities of sensitive neurons between benign and adversarial examples which stabilizes the behaviors of sensitive neurons towards adversarial noises. Moreover, we demonstrate that state-of-the-art adversarial training methods improve model robustness by reducing neuron sensitivities which in turn confirms the strong connections between adversarial robustness and neuron sensitivity as well as the effectiveness of using sensitive neurons to build robust models. Extensive experiments on various datasets demonstrate that our algorithm effectively achieves excellent results.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile; tiny, human-imperceptible perturbations, known as adversarial attacks, can flip a model's prediction from one class to another (e.g., "Bird" to "Cat"). While the existence of these vulnerabilities is well-documented, understanding the internal mechanics of why they occur remains a challenge due to the "black box" nature of deep learning. Most defense methods focus on input-level pixels or output-level logits. This research shifts the focus to intermediate layers, arguing that adversarial vulnerability stems from specific internal neurons that are highly sensitive to noise.

Methodology: Neuron Sensitivity and SNS

The core of this approach is the quantification of Neuron Sensitivity ($\sigma$). Sensitivity is defined as the average $L_1$ distance between a neuron's activation for a clean image ($x$) and its corresponding adversarial counterpart ($x'$). By identifying neurons with the highest variation intensity, we can pinpoint the internal "blind spots" of the network.

Figure 1: The framework for measuring neuron sensitivity and selecting the top-k sensitive neurons across different layers of a DNN.

To mitigate this vulnerability, we introduce Sensitive Neuron Stabilizing (SNS). SNS is a novel training objective that incorporates a regularization term into the standard classification loss. While standard adversarial training (PAT) simply minimizes classification loss on adversarial examples, SNS explicitly penalizes the model if its sensitive neurons behave differently when processing clean versus adversarial data. This forces the network to maintain consistent internal representations, effectively stabilizing the "weak links" in the architecture.

Analysis of Sensitive Neurons

Experimental analysis reveals that sensitive neurons are a double-edged sword. They are found to carry the most critical "semantic information" for the model; suppressing these neurons leads to a significant drop in clean-image accuracy. However, their high responsiveness also makes them the primary entry points for adversarial exploitation.

Figure 3: Visualization of activations for specific sensitive neurons (Neuron 5, 73, and 45), demonstrating how they capture high-level semantic features of objects like cars and animals.

Furthermore, the research confirms that adversarial perturbations are amplified as they propagate through the network. Interestingly, ReLU layers were found to significantly increase sensitivity ratios compared to convolutional layers. Regardless of the specific target label an attacker intends to achieve, the sensitive neurons in the bottom layers remain largely consistent, suggesting fundamental structural weaknesses at the lower levels of DNN architectures.

Experimental Results

The SNS method was evaluated on gold-standard benchmarks including CIFAR-10 and ImageNet (ILSVRC-2012) using various architectures like VGG-16 and ResNet-18. SNS consistently outperformed state-of-the-art defenses:

  • CIFAR-10 (VGG-16): Under strong $\ell_\infty$ PGD attacks, SNS achieved 39.6% robust accuracy, compared to 37.4% for standard adversarial training (PAT).
  • ImageNet (ResNet-18): SNS reached 13.0% robust accuracy, surpassing both PAT (11.4%) and Adversarial Logit Pairing (ALP) (11.2%).
  • Black-Box Resilience: SNS showed superior performance against unseen attacks like SPSA and NAttack, indicating that the model does not rely on gradient masking to achieve robustness.

Conclusion

This work demonstrates that neuron sensitivity is a powerful lens through which to interpret and improve adversarial robustness. By identifying and stabilizing the most sensitive neurons, particularly in the top layers where high-level semantic information resides, we can build models that are significantly more resilient to adversarial noise. Future work will focus on adaptive layer selection and dynamic hyperparameter tuning to further optimize the SNS framework.

Summary updated

BibTeX
@misc{zhang2019interpreting,
  author = {Chongzhi Zhang and Aishan Liu and Xianglong Liu and Yitao Xu and Hang Yu and Yuqing Ma and Tianlin Li},
  title = {{Interpreting and Improving Adversarial Robustness with Neuron Sensitivity}},
  year = {2019},
  eprint = {1909.06978},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06978},
}
Figure