Learning Two-Layer Neural Networks, One (Giant) Step at a Time

Yatin Dandi, Florent Krzakala, Bruno Loureiro, Luca Pesce, Ludovic Stephan · DOI

Abstract

This paper investigates the mechanism of feature learning in two-layer neural networks, moving beyond the "lazy" regime where weights barely deviate from initialization. By analyzing high-dimensional Gaussian data and multi-index target models, the authors characterize the sample complexity required to learn specific features. They introduce the "staircase" property, demonstrating how networks can progressively learn complex directions by building upon simpler ones across multiple gradient steps, effectively overcoming the curse of dimensionality.

Introduction: Beyond the Lazy Regime

Most current theoretical understanding of neural networks relies on the "lazy regime" or Neural Tangent Kernel (NTK) regime. While mathematically tractable, this framework fails to capture feature learning—the process where neurons adapt to the specific structure of the data. In high-dimensional settings, learning is often hindered by the curse of dimensionality. To address this, researchers assume target functions depend on a few relevant directions (multi-index models). This paper quantifies exactly how much data ($n$) and how many gradient descent steps are required for a network to "find" these directions and outperform simple kernel methods.

Theoretical Framework and Methods

The authors employ a rigorous framework combining several key techniques:

  • Multi-index Target Models: The target function $y = f^*(z)$ is assumed to depend only on a few orthogonal directions in high-dimensional space.
  • Hermite Decomposition: The "leap index" ($\ell$)—the lowest non-zero degree in the target's Hermite expansion—is used to measure task complexity.
  • Subspace Conditioning: A novel technique to track how learning one direction "unlocks" subsequent, more complex directions.
  • Gaussian Equivalence: Theorems that model complex neural features as equivalent linear models to provide generalization bounds.

The Batch Size vs. Complexity Trade-off

A core insight of the paper is the relationship between batch size and the complexity of the features being learned. For a single gradient step, the batch size $n$ must scale with the dimension $d$ raised to the power of the leap index ($n = \Theta(d^\ell)$). For instance, if a target function has a quadratic component ($\ell=2$), a batch of $O(d)$ is insufficient; $O(d^2)$ samples are required to learn that direction in one step.

Figure 1: Phase diagram illustrating the learning regimes. Learning complex directions requires batch sizes that scale polynomially with the dimension $d$ based on the leap index $\ell$.

The "Staircase" Property

The paper's most intuitive contribution is the "staircase" property. The authors demonstrate that multiple gradient steps allow for a hierarchical learning process. If a complex direction is "linearly connected" to a simpler one already learned, the network can learn it in the next step using only $O(d)$ samples. This hierarchical approach allows the network to "climb" a ladder of complexity, progressively specializing neurons to the target function's structure.

Figure 2: Visualization of the staircase learning process. As time $T$ progresses, the network learns increasingly complex directions, represented by the evolving spheres and learned subspaces.

Key Results and Generalization

  • Single Step Limits: With $n = O(d)$, a single gradient step can only learn the linear component. Learning multiple directions simultaneously requires $n = O(d^2)$ or higher.
  • Staircase Efficiency: Over multiple iterations, a batch size of $n = O(d)$ is sufficient to learn an $r$-dimensional subspace, provided the target function satisfies the staircase condition.
  • Generalization Gap: The authors prove a "separation of scale," where feature learning allows the network to achieve significantly lower generalization error than random features or kernels, which would require $O(d^k)$ samples to fit a degree-$k$ polynomial.
  • Numerical Validation: Experiments with $d=512$ confirm the theoretical plateaus, showing exactly when a network surpasses linear or quadratic kernels.

Conclusion and Future Directions

While the analysis relies on Gaussian data and polynomial activations, it provides a crucial roadmap for understanding non-lazy learning. Future work remains in extending these results to manifold data and fully mapping the long-term convergence to zero training error in the feature-learning regime. In the era of massive distributed computing, understanding these "giant steps" is increasingly relevant for practical deep learning.

Summary updated

BibTeX
@misc{dandi2023learning,
  author = {Yatin Dandi and Florent Krzakala and Bruno Loureiro and Luca Pesce and Ludovic Stephan},
  title = {{Learning Two-Layer Neural Networks, One (Giant) Step at a Time}},
  year = {2023},
  eprint = {2305.18270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18270},
}
Figure