NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Spectral Bias of Neural Networks

Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Dräxler, Min Lin, Fred A. Hamprecht, Yoshua Bengio, Aaron C. Courville

This paper, a highlight from ICML 2019, provides a compelling theoretical and empirical look at why deep neural networks generalize so well despite their massive capacity. The authors introduce the concept of Spectral Bias, showing that neural networks are naturally "lazy" when it comes to complexity—they prioritize learning low-frequency patterns before they ever touch high-frequency details.

The Generalization Paradox

One of the biggest mysteries in deep learning is the "Generalization Paradox." We know that large neural networks have the capacity to fit completely random noise with 100% accuracy. According to traditional statistical learning theory, such highly over-parameterized models should overfit and fail on new data. Yet, in practice, they generalize remarkably well.

This paper argues that the answer lies not just in the final state of the network, but in the dynamics of the learning process. The authors set out to quantify the "complexity" of what a network learns at different stages of training. By using Fourier analysis, they investigate whether gradient descent inherently favors certain types of functions over others.

Uncovering Spectral Bias: Methodology

The researchers combine rigorous mathematical derivation with controlled experiments to isolate how networks handle different frequencies:

  1. Analytical Fourier Spectrum: They exploit the fact that ReLU networks are continuous piecewise-linear (CPWL) functions. This structure allows them to analytically derive the Fourier transform of a ReLU network, showing that its spectral components decay as a rational function (specifically, $1/k^{n+1}$ where $k$ is frequency).
  2. Synthetic 1D Experiments: To isolate the effect of frequency, they trained networks to regress 1D functions composed of multiple sine waves with different frequencies and amplitudes.
  3. Manifold Analysis: They studied how the geometry of the data (the "manifold" it sits on) affects learning, using custom 2D "flower-shaped" manifolds to see if the complexity of the data's shape changes how frequencies are learned.
  4. Generalized Frequency for High-D Data: Since standard Fourier transforms are hard to compute for 784-dimensional MNIST images, they used the eigenfunctions of a Gaussian RBF kernel as a proxy for frequency to study spectral bias on real-world datasets.

Key Insights

Neural networks exhibit a "spectral bias," meaning they learn the low-frequency (simple, global) components of a function significantly faster than high-frequency (complex, local) ones. This inherent preference acts as a form of implicit regularization.

  • The "Low-Pass Filter" of Learning: Gradient descent acts like a frequency-dependent filter. Even if a high-frequency component has a much larger amplitude than a low-frequency one in the training data, the network will still capture the low-frequency component first.
  • Robustness vs. Frequency: Lower frequency components are significantly more "robust." If you randomly perturb the weights of a trained network, the high-frequency details of the output function are destroyed almost immediately, while the global, low-frequency shape remains intact.
Heatmap demonstrating that lower frequency components remain robust to larger weight perturbations compared to high frequencies.
  • Explaining the "Validation Dip": When training on noisy data, validation accuracy often peaks and then declines. Spectral bias explains this phenomenon: the network first learns the "true" low-frequency signal (improving validation) and only later starts memorizing the high-frequency noise (causing the dip).
  • Manifold Complexity is a Shortcut: Counter-intuitively, learning high frequencies becomes easier if the data lies on a complex, lower-dimensional manifold. Essentially, a complex embedding "folds" high frequencies into the input space in a way that makes them look like lower frequencies to the network.

Empirical Results

The theoretical claims are strongly supported by the paper's empirical findings across both synthetic and real-world datasets:

  • Frequency-Dependent Speed: In 1D regression tests, low frequencies were regressed to near-perfect accuracy within 1,000 iterations, while high frequencies remained unlearned even after 10,000 iterations.
Progression of a neural network fitting a 1D function over 80,000 iterations. The network captures the low-frequency global shape early on, only fitting the high-frequency details much later in training.
  • Noise Sensitivity: On MNIST, adding low-frequency noise (global distortions) severely damaged performance. However, the networks were almost entirely "blind" to high-frequency noise during the early stages of training.
  • Spectral Decay: The authors proved that the Fourier components of a ReLU network are bounded by the Lipschitz constant of the network, which scales with the spectral norm of the weights. This explains why weight decay and other regularization techniques that keep weights small specifically suppress high-frequency learning.

Limitations and Future Directions

While groundbreaking, the theoretical derivation is specific to ReLU activations. While the authors suspect similar behavior in other activations (like Sigmoid or Tanh), the piecewise-linear proof doesn't directly apply. Additionally, the use of RBF kernel eigenfunctions as a proxy for "frequency" in high dimensions is a clever workaround, but it isn't a perfect 1:1 mapping to traditional Fourier analysis.

Looking forward, the authors suggest that Fourier analysis could be used to develop new "sensitivity" metrics to evaluate model complexity more accurately than simple parameter counts. They also propose exploring how this bias can be used to design better architectures for tasks that inherently require high-frequency information, such as fine-grained image texture recognition.

Summary updated

BibTeX
@inproceedings{rahaman2019spectral,
  author = {Nasim Rahaman and Aristide Baratin and Devansh Arpit and Felix Dräxler and Min Lin and Fred A. Hamprecht and Yoshua Bengio and Aaron C. Courville},
  title = {{On the Spectral Bias of Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HJ4E0c-dZH},
}
Figure