Abstract: Neural networks are known to be a class of highly expressive functions able to fit even random input-output mappings with $100\%$ accuracy. In this work, we present properties of neural networks that complement this aspect of expressivity. By using tools from Fourier analysis, we show that deep ReLU networks are biased towards low frequency functions, meaning that they cannot have local fluctuations without affecting their global behavior. Intuitively, this property is in line with the observation that over-parameterized networks find simple patterns that generalize across data samples. We also investigate how the shape of the data manifold affects expressivity by showing evidence that learning high frequencies gets easier with increasing manifold complexity, and present a theoretical understanding of this behavior. Finally, we study the robustness of the frequency components with respect to parameter perturbation, to develop the intuition that the parameters must be finely tuned to express high frequency functions.
Introduction
Deep neural networks are famously over-parameterized—they often possess far more parameters than data points. Theoretically, such models could fit any jagged, chaotic mapping perfectly, including random noise. Yet, in practice, they consistently find smooth, simple solutions that generalize well to unseen data. This phenomenon, often attributed to "implicit regularization," suggests a hidden force in gradient descent that prioritizes simplicity.
In this work, we quantify this simplicity using Fourier analysis. We demonstrate that neural networks exhibit a "spectral bias," meaning they prioritize learning the low-frequency (smooth) components of a function before the high-frequency (wiggly) ones. This bias is a fundamental reason why over-parameterized models generalize instead of merely memorizing noise.
Methodology
Our analysis focuses on ReLU networks, which are continuous piecewise linear functions. This structure allows for an analytic Fourier treatment to bound the network's ability to represent high frequencies based on its weights and depth.
To empirically validate our theoretical findings, we conducted several experiments:
- Synthetic 1D Experiments: We trained networks to regress 1D functions composed of multiple sinusoids with varying frequencies and amplitudes.
- Noise Sensitivity on MNIST: We added frequency-specific noise to MNIST labels to test if the network is "blind" to high-frequency noise while remaining sensitive to low-frequency signals.
- Manifold Complexity: We utilized custom 2D "flower-shaped" manifolds to observe how the geometry of the data affects the speed of learning different frequencies.
Key Insights: The Low-Pass Filter of Learning
During training, the error (residual) for low-frequency components drops significantly faster than for high-frequency ones. The network essentially acts as a low-pass filter that slowly admits higher frequencies as training progresses. This is not just a matter of amplitude; even when high and low frequencies have equal power in the target signal, the low frequencies are captured first.
Furthermore, low-frequency components are more robust to random changes in the network's weights. High-frequency components require parameters to be "finely tuned" to work in concert. If the weights of a trained model are perturbed, the high-frequency details are the first to degrade.
Key Results
In our 1D synthetic tests, low-frequency components were fitted almost immediately. In contrast, high-frequency components of the same amplitude required tens of thousands of iterations to converge. This temporal separation of learning scales is a hallmark of spectral bias.
We also found that learning high frequencies becomes counter-intuitively easier as the data manifold becomes more complex. If the data lies on a "wiggly" path, a signal that appears high-frequency along that path might actually project as a low-frequency signal in the broader input space. This suggests that the inherent "shape" of real-world data may actually assist neural networks in learning complex patterns more efficiently.
Conclusion
Spectral bias provides a compelling explanation for the generalization capabilities of deep learning. By proving that the Fourier spectrum of a ReLU network decays at a rate of at least $1/k^2$, we establish a mathematical enforcement of smoothness. While this study primarily addresses ReLU activations and lower-dimensional manifolds, it opens the door for Fourier analysis to become a standard tool for measuring model sensitivity and complexity, potentially leading to architectures better tuned to the relevant frequencies of specific tasks.
Summary updated