[Paper Review] Defense against Adversarial Attacks Using High-Level Representation Guided Denoiser
This paper proposes High-Level Representation Guided Denoiser (HGD), a defense method that uses the difference in top-layer model outputs between clean and adversarial images to train a denoiser, overcoming the error amplification effect seen in standard denoisers. HGD achieves state-of-the-art robustness against both white-box and black-box attacks, outperformed ensemble adversarial training, and won first place in the NIPS 2017 adversarial defense competition with high accuracy and fast inference.
Neural networks are vulnerable to adversarial examples, which poses a threat to their application in security sensitive systems. We propose high-level representation guided denoiser (HGD) as a defense for image classification. Standard denoiser suffers from the error amplification effect, in which small residual adversarial noise is progressively amplified and leads to wrong classifications. HGD overcomes this problem by using a loss function defined as the difference between the target model's outputs activated by the clean image and denoised image. Compared with ensemble adversarial training which is the state-of-the-art defending method on large images, HGD has three advantages. First, with HGD as a defense, the target model is more robust to either white-box or black-box adversarial attacks. Second, HGD can be trained on a small subset of the images and generalizes well to other images and unseen classes. Third, HGD can be transferred to defend models other than the one guiding it. In NIPS competition on defense against adversarial attacks, our HGD solution won the first place and outperformed other models by a large margin.
Motivation & Objective
- To address the error amplification effect in standard denoisers, where small adversarial perturbations are amplified in deep network layers, leading to misclassification.
- To develop a defense method that is robust against both white-box and black-box adversarial attacks without requiring extensive training data.
- To enable generalization of the defense to unseen classes and transferability across different target models.
- To improve inference speed and robustness compared to existing state-of-the-art defenses like ensemble adversarial training.
Proposed method
- HGD trains a denoiser using a loss function based on the difference in logits (high-level representations) between the clean image and the denoised image, rather than pixel-level reconstruction loss.
- The denoiser is trained to minimize the discrepancy in the target model's predictions for the clean image and the denoised image, effectively suppressing adversarial perturbations.
- The method leverages the transferability of adversarial examples by using a pre-trained target model to guide the denoising process.
- HGD is trained on a small subset of images and generalizes well to other images and unseen classes, reducing data and training time requirements.
- The approach is evaluated using FGSM and iterative attacks during training, with model ensembling to improve robustness.
- HGD functions as an anti-adversarial transformer by transforming adversarial inputs into more easily classifiable forms, even if pixel-level noise increases.
Experimental results
Research questions
- RQ1Can a denoiser guided by high-level model representations effectively reduce the impact of adversarial perturbations?
- RQ2Does using top-layer model outputs as a supervision signal prevent the error amplification effect seen in standard denoisers?
- RQ3Can HGD generalize well to unseen classes and other images with minimal training data?
- RQ4Is HGD transferable across different target models, enabling defense for models not used in training?
- RQ5How does HGD compare in robustness and inference speed to state-of-the-art defenses like ensemble adversarial training?
Key findings
- HGD achieved a normalized score of 0.9532 in the NIPS 2017 adversarial defense competition, significantly outperforming the second-place team (0.9235).
- HGD demonstrated superior robustness against both white-box and black-box attacks, including 91 non-targeted and 65 targeted attacks in the competition.
- The method achieved faster inference speed (50.24 seconds average evaluation time) compared to top competitors, which ranged from 86.44 to 127.39 seconds.
- HGD generalizes well to unseen classes and requires only a small subset of training images, unlike data-hungry methods such as ensemble adversarial training.
- Despite increasing pixel-level noise in some cases, HGD effectively reduces adversarial perturbations by aligning the model’s top-layer predictions for denoised and clean images.
- The 2D histogram analysis confirmed that HGD’s predicted perturbation correlates strongly with the original adversarial noise, indicating effective suppression of harmful perturbations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.