Brain-inspired reverse adversarial examples

Shaokai Ye, Sia Huat Tan, Kaidi Xu, Yanzhi Wang, Chenglong Bao, Kaisheng MaarXiv 2019

Abstract

Deep Neural Networks (DNNs) are highly susceptible to performance degradation when faced with environmental shifts or model compression. This paper proposes a novel "Brain-inspired Calibrater" that utilizes reverse adversarial examples to enhance model robustness. Unlike traditional adversarial attacks that maximize loss, the calibrater is a small generative network trained to minimize loss by pre-processing inputs. By employing multiplicative perturbations inspired by biological attention mechanisms, the system significantly improves accuracy on unseen data and quantized models without requiring retraining of the primary architecture.

1. Introduction

Deep neural networks (DNNs) have achieved remarkable success across various domains but remain notoriously fragile. Models trained under specific conditions often fail when exposed to real-world variations like weather changes or when compressed for edge-device deployment. Traditionally, addressing these issues requires computationally expensive fine-tuning of the entire model. This paper introduces a more efficient alternative: changing the data to fit the model rather than the model to fit the data.

2. Methodology

2.1 Reverse Adversarial Perturbation

The core innovation is the use of "reverse adversarial examples." In a standard adversarial attack, an optimizer finds a perturbation ($\delta$) that maximizes the model's loss. The proposed calibrater—a small generative network—reverses this process by finding a perturbation that minimizes loss. This effectively "pulls" out-of-distribution data back into the primary model's learned feature space.

2.2 Multiplicative vs. Additive Perturbations

While most adversarial research focuses on additive noise ($x + \delta$), this work draws inspiration from biological attention mechanisms to use point-wise multiplication ($x \odot \delta$). This allows the calibrater to act as a semantic mask, highlighting critical features while suppressing irrelevant noise.

Comparison of input images under different perturbation strategies: (a) original, (b) additive, and (c) multiplicative.

As shown in Figure 1, additive perturbations often result in high-frequency noise, whereas multiplicative perturbations produce saliency-like maps that emphasize the object being classified. This approach provides greater semantic leverage over the model's behavior.

3. Experimental Results

3.1 Robustness to Unseen Transformations

The researchers evaluated the calibrater on CIFAR-10 across two scenarios: Scenario A (standard data) and Scenario B (unseen transformations like rotation and color jittering). On Scenario B2, the method improved accuracy by an average of 19.02% across ResNet18, MobileNet, and VGG16 architectures.

3.2 Recovery from Quantization Loss

Model quantization typically leads to significant robustness drops. The calibrater demonstrated a remarkable ability to compensate for this, providing an absolute 30.78% accuracy improvement for 2-bit and 3-bit models.

3.3 The Power of Input Optimization

In a proof-of-concept experiment, the authors applied reverse attacks to a completely untrained LeNet with random weights. Remarkably, they achieved 87% accuracy on MNIST, demonstrating that optimizing the input space can compensate for even the most extreme model deficiencies.

4. Discussion and Conclusion

The proposed system is designed for hardware efficiency. The large main model can be frozen on high-efficiency ASIC hardware, while the tiny calibrater (roughly 10% of the main model's size) runs on flexible ARM processors. This allows for rapid adaptation to new environments without the need for full-scale retraining. Furthermore, these benign perturbations exhibit transferability; a calibrater trained for one architecture can significantly benefit others. Future work will focus on scaling this approach to high-resolution datasets like ImageNet and exploring unsupervised training methods for the calibrater.

Summary updated

Abstract

A human does not have to see all elephants to recognize an animal as an elephant. On contrast, current state-of-the-art deep learning approaches heavily depend on the variety of training samples and the capacity of the network. In practice, the size of network is always limited and it is impossible to access all the data samples. Under this circumstance, deep learning models are extremely fragile to human-imperceivable adversarial examples, which impose threats to all safety critical systems. Inspired by the association and attention mechanisms of the human brain, we propose reverse adversarial examples method that can greatly improve models' robustness on unseen data. Experiments show that our reverse adversarial method can improve accuracy on average 19.02% on ResNet18, MobileNet, and VGG16 on unseen data transformation. Besides, the proposed method is also applicable to compressed models and shows potential to compensate the robustness drop brought by model quantization - an absolute 30.78% accuracy improvement.
BibTeX
@misc{ye2019brain,
  author = {Shaokai Ye and Sia Huat Tan and Kaidi Xu and Yanzhi Wang and Chenglong Bao and Kaisheng Ma},
  title = {{Brain-inspired reverse adversarial examples}},
  year = {2019},
  eprint = {1905.12171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12171},
}
Figure