Towards Understanding the Spectral Bias of Deep Learning

Yuan Cao, Zhiying Fang, Yue Wu, Ding-Xuan Zhou, Quanquan Gu

Abstract

This work establishes a theoretical foundation for "spectral bias"—the phenomenon where neural networks prioritize learning simple, low-frequency patterns before complex, high-frequency ones. By leveraging the Neural Tangent Kernel (NTK) framework, we demonstrate that a network's convergence rate is governed by the eigenvalues of the NTK, where larger eigenvalues correspond to lower-complexity components that are mastered early in training.

Introduction

Despite their capacity to memorize noisy data, deep neural networks often generalize remarkably well. A long-standing hypothesis is that this is due to spectral bias: a tendency for gradient descent to fit "simple" functions first. While empirical evidence using Fourier analysis has supported this, a comprehensive theoretical explanation has been missing, particularly for high-dimensional data. This research aims to bridge that gap by mathematically proving how different components of a target function are learned at varying speeds based on their complexity.

Theoretical Framework: The NTK Regime

The authors analyze two-layer ReLU neural networks within the Neural Tangent Kernel (NTK) regime. The NTK describes the evolution of network outputs during gradient descent when the network is sufficiently wide.

Key technical components of the analysis include:

  • Eigen-decomposition: The training process is decomposed along the directions defined by the eigenfunctions of the NTK integral operator.
  • Mercer’s Theorem: This allows the kernel to be represented as a sum of its eigenvalues and eigenfunctions, enabling the tracking of residual error for each "frequency" component individually.
  • Spherical Harmonic Analysis: For data uniformly distributed on a unit sphere $S^d$, spherical harmonics serve as a natural basis for complexity. Lower-degree harmonics represent simple, low-frequency functions, while higher-degree harmonics represent complex, high-frequency ones.

Key Insights: Eigenvalues as Learning Rates

The central insight is that each eigen-direction of the NTK possesses its own convergence rate. If a component of the target function corresponds to a large eigenvalue, the network learns that component rapidly. In the context of spherical data, the eigenvalues of the NTK decay as the degree of the spherical harmonic increases. This mathematically equates "low complexity" with "large eigenvalues," providing a formal mechanism for spectral bias.

Evolution of projection lengths $\hat{a}_k$ for $k=1, 2, 4$ during training, showing faster convergence for lower-frequency components.

Experimental Results and Robustness

The authors proved that the residual error along a specific eigen-direction $r_k$ decays at a rate of $(1 - \eta \lambda_{r_k})^T$, explicitly linking the eigenvalue $\lambda$ to the speed of error reduction. For data in $d$ dimensions, eigenvalues for degree $k$ harmonics scale roughly as $k^{-d-1}$. As $k$ (complexity) increases, the eigenvalue shrinks, and the learning speed drops precipitously.

Beyond idealized uniform distributions, the researchers tested the theory against "model misspecification" using non-uniform distributions:

  • Piece-wise Uniform Distribution (PUD): Data split between two semi-spheres with different densities.
  • Normalized Anisotropic Gaussian (NAG): Data generated from a Gaussian with non-zero mean and projected onto a sphere.
  • Normalized Gaussian Mixture (NGM): A mixture of three NAG distributions.
Spectral bias persists across various non-uniform data distributions (PUD, NAG, NGM), confirming the robustness of the theoretical predictions.

Experiments confirmed that spectral bias is robust; even in these skewed distributions, low-frequency components ($k=1$) converge almost instantly, while higher-frequency components ($k=4$) require significantly more iterations.

Conclusion and Future Directions

This work demonstrates that neural networks inherently prioritize simple patterns, even without explicit regularization or infinite width. However, the study is limited to the "lazy training" NTK regime, which may not fully capture the "feature learning" seen in practical deep learning where representations change significantly. Future work may explore how explicit regularization like weight decay interacts with this inherent bias and extend these proofs to deeper architectures.

Summary updated

BibTeX
@inproceedings{cao2021towards,
  author = {Yuan Cao and Zhiying Fang and Yue Wu and Ding-Xuan Zhou and Quanquan Gu},
  title = {{Towards Understanding the Spectral Bias of Deep Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/304},
}
Figure