Towards Frequency-Based Explanation for Robust CNN

Zifan Wang, Yilin Yang, Ankit Shrivastava, Varun Rawal, Zihao DingarXiv 2020

Introduction

Deep learning models, particularly Convolutional Neural Networks (CNNs), are notoriously fragile. While they achieve high accuracy on standard benchmarks, they are easily deceived by adversarial attacks—small, calculated distortions that are imperceptible to human eyes but catastrophic for model performance. This paper shifts the investigation of adversarial vulnerability from the spatial domain (pixels) to the frequency domain. By analyzing models as signal processors, the authors demonstrate that standard CNNs are "distracted" by high-frequency patterns, and that adversarial robustness is achieved by shifting model attention back to low-frequency components.

Methodology: CNNs as Signal Processors

To quantify how models utilize different frequencies, the authors employ the Discrete Cosine Transform (DCT). The experiments were conducted using the CIFAR-10 dataset, evaluating architectures such as VGG-19 and ResNet-50 (both standard and robustly trained). They introduce two primary analytical tools:

  1. Occluded Frequency (OF): Unlike traditional attribution methods that highlight spatial pixels, OF "masks" specific frequency bands and measures the resulting change in the model's prediction. This allows researchers to pinpoint exactly which frequencies drive a model's decision.
  2. Relative Change in DCT (RCT): This metric visualizes the spectral distribution of adversarial perturbations, showing where attackers like PGD or FGSM place their energy.

Furthermore, the paper provides a mathematical proof (Proposition 1) showing that for a given amount of spectral energy, perturbing high-frequency components results in a smaller change in the $\ell_1$ distance (pixel-wise difference) compared to low-frequency components. This explains the "invisible" nature of adversarial attacks: they naturally gravitate toward high frequencies to remain imperceptible to humans.

Adversarial Attacks as High-Frequency Signals

The study confirms that adversarial attacks are not random noise but structured high-frequency signals. By applying the RCT metric to various attack methods, including PGD, CW, FGSM, and SimBA, the authors found that perturbations are consistently concentrated in the middle-to-high frequency ranges.

Frequency distribution of adversarial perturbations across different attack types.

Because standard CNNs are frequency-agnostic, they readily utilize these high-frequency features to boost accuracy. However, these features are "non-robust" and easily manipulated by attackers.

Robustness through Frequency Selection

The most significant contribution of this work is the observation that adversarial training acts as a frequency selector. By forcing a model to remain stable under perturbations, the training process effectively teaches the model to ignore high-frequency noise and rely more heavily on the low-frequency "content" of the image—aligning the model's logic more closely with human perception.

Frequency attribution shift in robust vs. standard models.

As illustrated in the attribution plots above, naturally trained models (blue line) distribute their attention across the entire frequency spectrum. In contrast, robustly trained models (orange and red lines) show a dramatic spike in attribution at low frequencies and near-zero attribution for high-frequency components.

Conclusion and Future Work

This frequency-based perspective offers a clear explanation for model robustness: robust models succeed because they focus on the structural shapes humans use for recognition. However, several limitations remain. The current experiments were conducted on the CIFAR-10 dataset. In higher-resolution datasets like ImageNet, the frequency spectrum is much broader, and the definition of "high frequency" may shift. Future work will explore whether these findings scale to larger architectures and more complex adversarial defense strategies.

Summary updated

BibTeX
@misc{wang2020towards,
  author = {Zifan Wang and Yilin Yang and Ankit Shrivastava and Varun Rawal and Zihao Ding},
  title = {{Towards Frequency-Based Explanation for Robust CNN}},
  year = {2020},
  eprint = {2005.03141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.03141},
}
Figure