Defense Against Adversarial Attacks Using High-Level Representation Guided Denoiser

Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Xiaolin Hu, Jun Zhu

Abstract

Deep neural networks are highly susceptible to adversarial attacks—small, human-imperceptible perturbations that lead to incorrect classifications. This paper introduces the High-Level Representation Guided Denoiser (HGD), a framework that trains a denoiser to minimize differences in a model's internal high-level features rather than pixel-level discrepancies. By neutralizing the "error amplification effect," HGD significantly improves robustness and secured first place in the NIPS 2017 Adversarial Defense competition.

Introduction: The Fragility of Deep Learning

State-of-the-art image classifiers can be easily deceived by adversarial examples. For instance, a slight modification to an image of a "Panda" can cause a model to classify it as a "Dog" with high confidence. While image denoising is a common defense, standard techniques often fail due to the error amplification effect. Even if a denoiser removes the majority of adversarial noise, the remaining residual signal is progressively amplified as it passes through the network's layers, ultimately leading to classification failure.

Conceptual overview of adversarial attacks and the denoising process.

Methodology

The authors propose a specialized architecture and a novel training objective to address these vulnerabilities.

Denoising U-Net (DUNET)

Instead of a standard autoencoder, the system utilizes a U-Net structure with lateral connections. The network employs residual learning, where it learns to predict the adversarial noise itself rather than reconstructing the clean image from scratch. This predicted noise is then subtracted from the corrupted input to produce a clean image.

High-Level Guidance

The core innovation of HGD is its loss function. While standard denoisers minimize pixel-level distance ($L_1$ or $L_2$), HGD uses the target model's internal representations as a guide. Three variants were developed:

  1. Feature Guided Denoiser (FGD): Minimizes the difference in activations at the topmost convolutional layer.
  2. Logits Guided Denoiser (LGD): Minimizes the difference in the logits (the layer preceding the final softmax).
  3. Class label Guided Denoiser (CGD): Uses the final classification loss as the training signal.
Comparison of training objectives: Feature Guided (FGD), Logits Guided (LGD), and Class label Guided (CGD) Denoisers.

By guiding the denoiser with these high-level signals, the model learns to prioritize removing the specific noise components that the classifier is most sensitive to.

Experimental Results

The HGD framework was evaluated using the ImageNet dataset and the NIPS 2017 Adversarial Defense competition dataset.

  • NIPS 2017 Champion: The HGD approach won 1st place out of 107 teams, outperforming competitors in both accuracy and inference speed.
  • Robustness and Transferability: On the "BlackTestSet" (attacks targeting a holdout model), the Logits Guided Denoiser (LGD) achieved 72.2% accuracy, compared to 41.0% for an undefended model and 62.0% for previous state-of-the-art ensemble adversarial training. Furthermore, a denoiser guided by an Inception v3 model successfully protected a ResNet model, demonstrating strong cross-architecture transferability.

Key Insights and Conclusion

A central finding of this work is that pixel perfection is unnecessary. A denoiser does not need to make an image look perfect to a human; it only needs to make it appear clean to the classifier's internal logic. In fact, HGD-denoised images often contain more pixel-level noise than the original adversarial images, as the denoiser adds its own "favorable" perturbations to assist the classifier.

HGD offers a more efficient alternative to brute-force adversarial training. It can be trained on a relatively small subset of data (30,000 images) in under 30 epochs while maintaining exceptional generalization across unseen classes and attack types.

Summary updated

BibTeX
@inproceedings{liao2018defense,
  author = {Fangzhou Liao and Ming Liang and Yinpeng Dong and Tianyu Pang and Xiaolin Hu and Jun Zhu},
  title = {{Defense Against Adversarial Attacks Using High-Level Representation Guided Denoiser}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00191},
}
Figure