Abstract: Adversarial attacks to image classification systems present challenges to convolutional networks and opportunities for understanding them. This study suggests that adversarial perturbations on images lead to noise in the features constructed by these networks. Motivated by this observation, we develop new network architectures that increase adversarial robustness by performing feature denoising. Specifically, our networks contain blocks that denoise the features using non-local means or other filters; the entire networks are trained end-to-end. When combined with adversarial training, our feature denoising networks substantially improve the state-of-the-art in adversarial robustness in both white-box and black-box attack settings. On ImageNet, under 10-iteration PGD white-box attacks where prior art has 27.9% accuracy, our method achieves 55.7%; even under extreme 2000-iteration PGD white-box attacks, our method secures 42.6% accuracy. Our method was ranked first in Competition on Adversarial Attacks and Defenses (CAAD) 2018 --- it achieved 50.6% classification accuracy on a secret, ImageNet-like test dataset against 48 unknown attackers, surpassing the runner-up approach by 10%.
Introduction
Adversarial attacks involve adding tiny, calculated perturbations to an image that are imperceptible to humans but cause deep learning models to fail catastrophically. While many defenses focus on "cleaning" the input pixels or modifying the training loss, this research investigates the internal dynamics of the network itself.
A key observation of this work is that adversarial perturbations, though nearly invisible in pixels, create massive "hallucinated" noise in a neural network's internal feature maps. As an adversarial image propagates through a Convolutional Neural Network (CNN), the initial small perturbation is amplified. By the time the data reaches the middle layers, the feature maps—which should represent semantic concepts like "ears" or "wheels"—are overwhelmed by spurious, noisy activations. This "feature noise" drowns out the true signal, leading to incorrect classifications.
The Feature Denoising Block
To combat this phenomenon, the authors introduce the Denoising Block, a new architectural component designed to be inserted into standard networks like ResNet. The block architecture wraps a denoising operation with a $1 \times 1$ convolution (to manage channels) and a residual skip connection, allowing the network to learn the optimal level of denoising required.
Several filtering techniques were evaluated for the denoising operation:
- Non-Local Means (NLM): The most effective version, which computes a feature at a specific point by taking a weighted average of features from all other spatial locations. This is mathematically related to the "Self-Attention" mechanism.
- Bilateral Filters: A local filter that denoises while preserving edges.
- Mean/Median Filters: Standard signal processing filters used to smooth out "salt-and-pepper" noise.
Crucially, these blocks are fully differentiable. Unlike previous "input denoising" defenses that used non-differentiable operations (which can be bypassed by "Obfuscated Gradients" attacks), these blocks allow for end-to-end adversarial training using Projected Gradient Descent (PGD). This forces the model to learn how to specifically filter out adversarial noise during the forward pass.
Experimental Results
The study focused on the ImageNet classification dataset, demonstrating that feature denoising scales effectively to large-scale problems.
White-Box and Black-Box Robustness
On ImageNet, under a 10-iteration PGD white-box attack, a ResNet-152 equipped with denoising blocks achieved 55.7% accuracy, a massive leap over the previous state-of-the-art (Adversarial Logit Pairing) at 27.9%. Even under extreme 2000-iteration PGD attacks designed to break most defenses, the model maintained 42.6% accuracy.
Competition Success
The method's efficacy was further proven by winning the CAAD 2018 (Competition on Adversarial Attacks and Defenses). The model achieved 50.6% accuracy against 48 unknown, diverse adversarial methods on a secret test set, outperforming the runner-up by approximately 10% absolute.
Conclusion
Feature denoising represents a significant shift in adversarial defense by addressing the internal noise amplification caused by perturbations. By looking at the entire feature map to determine the value of a single pixel (non-local means), the network can more easily distinguish between global semantic signals and local adversarial noise. While a gap still exists between clean and adversarial accuracy, this architectural approach provides a robust foundation for future research in secure deep learning.
Summary updated