High-Frequency Component Helps Explain the Generalization of Convolutional Neural Networks

Haohan Wang, Xindi Wu, Zeyi Huang, Eric P. Xing

Abstract

Convolutional Neural Networks (CNNs) exhibit behaviors that often diverge from human intuition, such as vulnerability to adversarial attacks and the ability to memorize random labels. This paper proposes a unified explanation: CNNs exploit high-frequency image components that are imperceptible to humans. This "perceptual disparity" provides a framework for understanding model generalization, robustness, and the impact of common training heuristics.

Introduction: The Perceptual Disparity

Deep learning models possess a "personality" that is both impressively accurate and bafflingly fragile. While CNNs excel at image recognition, they suffer from three major enigmas:

  1. The Memorization Paradox: Models can memorize datasets with shuffled labels while still generalizing on natural data.
  2. Adversarial Vulnerability: Imperceptible noise can trigger catastrophic misclassifications.
  3. The Heuristic Mystery: Techniques like Batch Normalization improve performance through mechanisms that remain poorly understood.

The authors argue these are not disparate issues but symptoms of a single cause: CNNs perceive data at a higher frequency granularity than humans. While humans focus on "semantic" components (e.g., the shape of an object), models readily utilize high-frequency patterns—fine textures or noise—to minimize training loss.

Conceptual Framework

The core of the argument lies in how data is partitioned between human and machine perception.

Conceptual framework of human vs. model data perception.

As shown in Figure 1, "Data" contains both semantic and high-frequency components. Humans primarily link labels to semantic features. However, models can pick up on both, often relying on distribution-specific correlations found in high-frequency components that humans ignore.

Methodology: Frequency Decomposition

To isolate these effects, the researchers employed Fourier Transforms to decompose images into:

  • Low-Frequency Components (LFC): The "semantic" parts recognizable to humans (shapes, global structure).
  • High-Frequency Components (HFC): Fine details that often appear as gray or nearly invisible noise to the human eye.
Image decomposition and model prediction across frequency components.

By training models on these separated components, they tested how CNNs prioritize different parts of the spectrum. They also introduced Kernel Smoothing—averaging the weights of first-layer convolutional kernels—to reduce sensitivity to high frequencies and observe if models become more "human-like" and robust.

Key Insights

  • The "Steepest Descent" Preference: Models prefer LFC because it leads to a faster drop in training loss and is more generalizable. However, if LFC is unavailable (e.g., in shuffled label tests), the model pivots to HFC to complete the task.
  • Adversarial Examples as HFC: Adversarial attacks typically perturb the high-frequency spectrum. Since humans are insensitive to these frequencies, the image appears unchanged to us, while the model's input is fundamentally altered.
  • The BatchNorm Trade-off: Batch Normalization helps models capture HFC more effectively. This boosts accuracy on clean data but simultaneously increases vulnerability to adversarial attacks.
  • Robustness through Smoothness: Models trained for adversarial robustness naturally develop "smoother" kernels in their first layer, acting as low-pass filters that ignore high-frequency noise.

Experimental Results

The study utilized standard benchmarks including CIFAR-10, MNIST, FashionMNIST, ImageNet, and MS COCO.

  • LFC vs. HFC Performance: On CIFAR-10, a model trained only on LFC (radius $r=4$) achieved ~61% test accuracy. In contrast, HFC-only models showed much lower generalization (~12-20%), confirming that while HFC contains predictive signals, they are less generalizable than semantic shapes.
  • Defense through Smoothing: Manually smoothing kernels ($\rho=1.0$) improved PGD adversarial robustness from nearly 0% to 7.8% on a standard model without additional training.
  • Object Detection: In MS COCO, removing HFC dropped the Mean Average Precision (mAP) from 35.6% to 27.5%, suggesting that HFC is necessary for detecting small objects with limited pixel counts.

Conclusion and Future Work

The relationship between kernels and frequency is most direct at the network's first layer. As data progresses deeper, representations become more abstract and harder to map to original pixels. The authors suggest a "survival bias" in AI research, where architectures have been selected for their alignment with human LFC preferences. They propose that future research should explicitly report performance on "low-frequency counterparts" to measure the alignment between AI "worldviews" and human perception.

Summary updated

BibTeX
@inproceedings{wang2020high,
  author = {Haohan Wang and Xindi Wu and Zeyi Huang and Eric P. Xing},
  title = {{High-Frequency Component Helps Explain the Generalization of Convolutional Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00871},
}
Figure