Understanding the dynamics of the frequency bias in neural networks
Juan Molina, Mircea Petrache, Francisco Sahli Costabal, Matías Courdurier
TL;DR
This work tackles the spectral bias observed in neural network training by deriving a PDE describing the frequency dynamics of a two-layer Fourier Features network within the Neural Tangent Kernel regime. The dynamics reduce to a damped heat equation in Fourier space, with the diffusion and damping controlled by the initialization distribution ρ_w and the weight variance σ_a^2; this yields a clear mechanism for how different frequencies are learned over time. Empirical validation via finite element method simulations of the PDE and direct neural-network training confirms that appropriate choices of initialization can mitigate or eliminate frequency bias, and the results extend to multilayer FF-NN settings. The findings provide a principled initialization design principle to achieve balanced frequency learning, with implications for neural field representations and NTK-based analyses, and open avenues for optimizing learning dynamics under alternative training schemes.
Abstract
Recent works have shown that traditional Neural Network (NN) architectures display a marked frequency bias in the learning process. Namely, the NN first learns the low-frequency features before learning the high-frequency ones. In this study, we rigorously develop a partial differential equation (PDE) that unravels the frequency dynamics of the error for a 2-layer NN in the Neural Tangent Kernel regime. Furthermore, using this insight, we explicitly demonstrate how an appropriate choice of distributions for the initialization weights can eliminate or control the frequency bias. We focus our study on the Fourier Features model, an NN where the first layer has sine and cosine activation functions, with frequencies sampled from a prescribed distribution. In this setup, we experimentally validate our theoretical results and compare the NN dynamics to the solution of the PDE using the finite element method. Finally, we empirically show that the same principle extends to multi-layer NNs.
