Feature Denoising for Improving Adversarial Robustness

Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan L. Yuille, Kaiming He

TL;DR

This paper introduces "feature denoising" as a novel technique to significantly improve the robustness of image classification models against adversarial attacks. By incorporating specialized denoising blocks within the network architecture and training them end-to-end with adversarial training, the authors achieve state-of-the-art performance on challenging adversarial benchmarks, outperforming existing methods.

What Problem Does This Paper Address?

Deep neural networks, particularly convolutional neural networks (CNNs) used for image classification, are surprisingly vulnerable to adversarial attacks. These attacks involve making tiny, often imperceptible, perturbations to input images that cause the network to misclassify them. While these perturbations might seem small in the pixel space, they can lead to drastic changes in the internal "feature representations" that the network learns. This phenomenon poses a significant security threat and also highlights a fundamental difference between how neural networks and human brains process visual information. The core problem this paper addresses is how to make these powerful image classification systems more resilient to these deceptive adversarial perturbations.

Methods

The paper's central innovation is the concept of feature denoising. The authors hypothesize that adversarial perturbations introduce "noise" into the feature maps generated by CNNs. To combat this, they propose incorporating denoising blocks into the network architecture. These blocks are designed to clean up these noisy feature maps at intermediate layers.

Key aspects of their approach include:

  • Denoising Blocks: These blocks are designed to wrap a denoising operation (like non-local means, mean, median, or bilateral filters) with a 1x1 convolution and an identity skip connection. This structure allows for feature combination and helps retain important semantic information while suppressing noise.
  • End-to-End Training with Adversarial Training: The denoising blocks are trained jointly with the rest of the network using adversarial training. This means the network learns to denoise features specifically in the context of adversarial attacks, making the denoising process data-dependent and adaptive.
  • Non-Local Means: The authors found that non-local means, a technique inspired by self-attention mechanisms, proved particularly effective for feature denoising. This method computes a weighted average of features across different spatial locations, effectively "denoising" by considering global context.
  • Ablation Studies: The paper rigorously investigates the impact of different denoising operations (mean, median, bilateral, non-local) and the architectural components of the denoising block (1x1 convolution, residual connection) to understand their contributions to robustness.

Datasets

The primary dataset used for training and evaluation is ImageNet, a large-scale dataset for image classification. The authors also mention using a secret, ImageNet-like test dataset for the CAAD 2018 competition.

Key Insights and Ideas

  • Adversarial Perturbations Manifest as Feature Noise: The paper provides compelling visual evidence that adversarial attacks, even with small pixel-level changes, create significant "noise" in the network's internal feature representations, activating irrelevant regions.
  • Feature Denoising is a Powerful Defense: Directly denoising these noisy feature maps, rather than just pixels, proves to be a highly effective strategy for improving adversarial robustness.
  • Non-Local Means Shine: Among the tested denoising operations, non-local means (inspired by self-attention) demonstrated the most significant improvements, suggesting that capturing long-range dependencies in features is crucial for robustness.
  • Architectural Components Matter: The denoising block's design, particularly the inclusion of residual connections and 1x1 convolutions alongside the denoising operation, is critical for its effectiveness. Simply denoising isn't enough; proper integration with the network's existing structure is key.
  • Specialized Architectures for Robustness: The study suggests that certain architectural designs, like feature denoising blocks, might be inherently better suited for adversarial robustness, even if they don't offer significant gains in standard (non-adversarial) settings.

Key Results

  • State-of-the-Art White-Box Robustness: On ImageNet, under 10-iteration PGD white-box attacks, their method achieved 55.7% accuracy, a substantial leap from the prior art's 27.9%.
  • Extreme Attack Resilience: Even against extremely challenging 2000-iteration PGD attacks, their method maintained 42.6% accuracy, demonstrating robustness against very strong adversaries.
  • Top Performer in CAAD 2018: The authors' method won the defense track of the CAAD 2018 competition, achieving 50.6% accuracy on a secret dataset against 48 unknown attackers, outperforming the runner-up by approximately 10%.
  • Consistent Improvement: Across various attack strengths and settings, feature denoising consistently improved adversarial robustness compared to baseline models trained with adversarial training alone.

Limitations and Future Work

  • Trade-off with Clean Accuracy: The paper notes a slight trade-off between adversarial robustness and accuracy on clean (non-adversarial) images. While their adversarially trained models with denoising achieve good clean accuracy (e.g., 79.08% for a specific configuration), this is a general observation in adversarial training research.
  • Understanding Feature Noise: While the paper visually demonstrates feature noise, quantitatively measuring and precisely characterizing it remains a challenge.
  • Future Research: The authors encourage further research into designing "innate" adversarial robustness into network architectures and exploring the observed trade-offs. They also suggest that future work could investigate the impact of denoising blocks on shallower networks and explore more complex denoising operations.

Summary updated

BibTeX
@inproceedings{xie2019feature,
  author = {Cihang Xie and Yuxin Wu and Laurens van der Maaten and Alan L. Yuille and Kaiming He},
  title = {{Feature Denoising for Improving Adversarial Robustness}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=r7KwK17xOpr},
}
Figure