Controlling the Inductive Bias of Wide Neural Networks by Modifying the Kernel’s Spectrum

Amnon Geifman, Daniel Barzilai, Ronen Basri, Meirav Galun

Introduction

Deep neural networks exhibit a well-documented "spectral bias," where they prioritize learning simple, low-frequency functions over complex, high-frequency details. In the framework of the Neural Tangent Kernel (NTK), this bias is a direct consequence of the rapid decay of the kernel's eigenvalues. This paper, authored by Amnon Geifmann, Daniel Barzilai, Ronen Basri, and Meirav Galun, introduces a method to "reprogram" this inductive bias, enabling networks to learn high-frequency patterns with significantly improved efficiency.

The Problem: Spectral Bias in Wide Networks

In the infinite-width limit, the training dynamics of a neural network are governed by its NTK. The time required to learn a specific component of the target function is inversely proportional to the corresponding eigenvalue of the NTK matrix. Because these eigenvalues typically decay at a polynomial or even exponential rate, learning fine-grained details (like sharp edges or intricate textures) can become computationally intractable. The authors seek to manipulate this spectrum to accelerate the learning of these "difficult" components.

Proposed Methodology

The authors propose two interconnected innovations to address spectral bias:

1. Modified Spectrum Kernels (MSKs)

MSKs are a new family of kernels derived by applying a transformation function $g(\lambda)$ to the eigenvalues of an existing kernel (such as the NTK). By choosing $g$ appropriately, one can flatten the eigenvalue spectrum, effectively equalizing the learning rates across different frequencies. While a closed-form expression for these kernels may not exist, they can be accurately approximated using the eigenvectors of the empirical kernel matrix.

2. Preconditioned Gradient Descent (PGD)

To implement MSKs in practice, the authors introduce a preconditioner $S$ into the gradient update rule. Unlike traditional second-order methods that require a $p \times p$ matrix (where $p$ is the number of parameters), this preconditioner is an $n \times n$ matrix (where $n$ is the number of data points). In the common regime of overparameterized networks where $n \ll p$, this approach is computationally feasible.

A key theoretical contribution is the proof of consistency: in the infinite-width limit, a network trained using this PGD approach will converge to the same global minimum as standard gradient descent. The modification only changes the path taken during optimization, not the final destination.

Key Insights

  • Trajectory Control: Inductive bias is fundamentally about the learning trajectory. By changing the preconditioner, the optimizer prioritizes different "directions" in the function space, making high-frequency components as accessible as low-frequency ones.
  • Exponential Acceleration: For activation functions like tanh, where NTK eigenvalues decay exponentially, the PGD method can provide an exponential speedup, turning a task that would take eons into one that takes seconds.
  • Implicit Regularization: Modifying the spectrum can also serve as a regularizer. By slowing down the decay of eigenvalues, the method can reduce model variance and prevent the network from overfitting to high-frequency noise.

Experimental Results

The method was validated using synthetic datasets designed to isolate spectral behavior, such as Fourier components on a circle ($S^1$) and sphere ($S^2$).

  • Frequency Independence: While standard SGD requires iterations that grow quadratically with the frequency of the target function, the PGD method maintains nearly constant iteration counts regardless of frequency.
  • Efficiency: The preconditioner is computed once at the start of training. For wide networks, this is significantly more efficient than standard second-order methods like Gauss-Newton.

Limitations and Future Directions

Despite its advantages, the method faces some bottlenecks:

  • Computational Scaling: Computing the full NTK matrix and its spectral decomposition scales as $O(n^3)$, which limits applicability to very large datasets.
  • Architectural Scope: The current theoretical framework is centered on fully connected networks in the NTK regime. Extending this analysis to CNNs or Transformers is an area for future work.
  • Real-World Application: Future research should explore the effectiveness of MSKs on complex real-world tasks, such as high-resolution image synthesis or Physics-Informed Neural Networks (PINNs).

Summary updated

BibTeX
@article{geifman2023controlling,
  author = {Amnon Geifman and Daniel Barzilai and Ronen Basri and Meirav Galun},
  title = {{Controlling the Inductive Bias of Wide Neural Networks by Modifying the Kernel’s Spectrum}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=WYX33ILcZQ},
}
Figure