High Frequency Component Helps Explain the Generalization of Convolutional Neural Networks

Haohan Wang, Xindi Wu, Pengcheng Yin, Eric P. Xing

This paper, "High-frequency Component Helps Explain the Generalization of Convolutional Neural Networks," offers a compelling look at the "perceptual disparity" between humans and machines. While we see objects and shapes, Convolutional Neural Networks (CNNs) might be looking at a world of high-frequency textures that are entirely invisible to us.

TL;DR

CNNs achieve high performance by exploiting high-frequency image components that humans cannot perceive. This reliance on "invisible" signals explains why models generalize well yet remain vulnerable to adversarial attacks, revealing a fundamental trade-off between accuracy and robustness.

What Problem Does This Paper Address?

Deep learning has a "generalization mystery." CNNs are incredibly accurate, yet they exhibit behaviors that baffle researchers: they can easily memorize data with completely random labels, and they are notoriously fragile, often fooled by "adversarial examples"—tiny, invisible changes to an image that cause the model to fail spectacularly.

The authors address the gap in our understanding of why these behaviors occur. They hypothesize that the root cause is a difference in how humans and CNNs perceive data. While humans are essentially low-pass filters—focusing on global structures and "semantic" components—CNNs can perceive data at a much higher granularity, capturing high-frequency components (HFC) that carry predictive power but lack human-understandable meaning.

Figure 1. The central hypothesis of our paper: within a data col- lection, there are correlations between the high-frequency com- ponents and the “semantic” component of the images. As a re- sult, the model will perceive both high-frequency components as well as the “semantic” ones, leading to generalization behaviors counter-intuitive to human (e.g., adversarial examples).

Methods

The researchers use Fourier Transforms to decompose images into Low-Frequency Components (LFC) and High-Frequency Components (HFC) based on a threshold radius $r$.

  1. Frequency Analysis: They trained standard architectures (like ResNet-18) on original images and then tested them on LFC-only and HFC-only versions of the test set.
  2. Heuristic Evaluation: They re-evaluated common training "tricks"—such as BatchNorm, Mixup, and Dropout—to see how they affect the model's tendency to capture different frequencies.
  3. Kernel Smoothing: To test the link between frequency and robustness, they introduced a simple method to "smooth" the convolutional kernels in the first layer by averaging adjacent weights, effectively acting as a low-pass filter for the model itself.

Datasets

The study primarily utilizes CIFAR-10 for its core experiments. To ensure the findings were robust, the authors repeated experiments on MNIST, FashionMNIST, and a subset of ImageNet. For the extension into object detection, they used the COCO dataset.

Key Insights and Ideas

  • The Invisible Signal: CNNs can correctly classify images using only the high-frequency components—parts of the image that look like meaningless black noise to a human. Conversely, a model might fail on a low-frequency version of an image that looks perfectly clear to us.
  • Generalization vs. Memorization: The authors suggest that in normal training, models pick up LFC first because it leads to the "steepest descent" on the loss surface. However, when labels are shuffled, the LFC-label association is destroyed, forcing the model to rely equally on HFC and sample-specific idiosyncrasies to minimize loss.
  • The Cost of Accuracy: Many heuristics used to boost leaderboard scores (like BatchNorm and Mixup) actually encourage the model to capture more HFC. While this increases accuracy, it inherently decreases robustness because these high-frequency signals are easily manipulated.
  • Smoothness equals Robustness: Adversarially robust models naturally develop "smoother" kernels in their first layer. By manually smoothing these kernels, the authors could improve a model's resistance to attacks without any additional training.
Figure 2. Eight testing samples selected from CIFAR10 that help explain that CNN can capture the high-frequency image: the model (ResNet18) correctly predicts the original image (1st column in each panel) and the high-frequency reconstructed image (3rd column in each panel), but incorrectly predict the low-frequency reconstructed image (2nd column in each panel). The prediction confidences are also shown. The frequency components are split with r = 12. Details of the experiment will be introduced later.

Key Results

  • Predictive Power of Frequencies: On CIFAR-10, a model trained on original data achieved ~77% accuracy when tested on LFC-only data ($r=16$) and ~13% on HFC-only data.
  • BatchNorm's Role: BatchNorm was found to significantly help the model capture HFC, which explains why it boosts convergence speed but has also been linked to adversarial vulnerability in other studies.
  • Robustness Gains: Applying the kernel smoothing method (with $\rho=1.0$) to a standard model improved its PGD adversarial accuracy from near 0% to 12.7% at a perturbation level of $\epsilon=0.09$, though it came at the cost of clean accuracy (dropping from 85.6% to 63.1%).

Limitations and Future Work

The authors acknowledge that their analysis of convolutional kernels is largely restricted to the first layer, as the relationship between kernels and raw data becomes obscured in deeper layers.

Looking forward, they suggest that the computer vision community should move beyond chasing a single accuracy metric on a leaderboard. Instead, they propose a new testing paradigm where a model's performance on low-frequency counterparts is reported alongside standard accuracy. They advocate for developing models with explicit "human-like" inductive biases—perhaps by forcing models to rely more on the low-frequency signals that humans use to navigate the world.

Summary updated

Abstract

We investigate the relationship between the frequency spectrum of image data and the generalization behavior of convolutional neural networks (CNN). We first notice CNN's ability in capturing the high-frequency components of images. These high-frequency components are almost imperceptible to a human. Thus the observation leads to multiple hypotheses that are related to the generalization behaviors of CNN, including a potential explanation for adversarial examples, a discussion of CNN's trade-off between robustness and accuracy, and some evidence in understanding training heuristics.
BibTeX
@inproceedings{wang2020high,
  author = {Haohan Wang and Xindi Wu and Pengcheng Yin 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