How does Gradient Descent Learn Features --- A Local Analysis for Regularized Two-Layer Neural Networks

Mo Zhou, Rong Ge

Introduction In deep learning theory, there is an ongoing tension between the Neural Tangent Kernel (NTK) regime—where networks act like simple linear models and neurons barely move from initialization—and the Feature Learning regime, where networks actively adapt their internal weights to represent underlying data structures. While recent "early-stage" theories demonstrate that the first few steps of gradient descent (GD) can identify the low-dimensional subspace of important features, they often assume weights remain relatively fixed afterward.

This paper asks a critical question: Does feature learning continue after this initial phase? The authors prove that feature learning is not just a "startup" phenomenon; gradient descent with decreasing weight decay continues to refine features, eventually recovering exact ground-truth directions in the final stages of training.

Theoretical Framework: The Teacher-Student Setup To rigorously analyze this, the authors utilize a synthetic teacher-student framework. Instead of real-world datasets, the input data ($x$) is sampled from a $d$-dimensional Gaussian distribution. The labels ($y$) are generated by a "teacher" network with a specific set of neurons. The core assumption is that these teacher neurons are sufficiently separated and form a low-dimensional subspace compared to the high-dimensional input.

To prove their results, the researchers propose a three-stage training algorithm to model the learning process:

  1. Stage 1 (Subspace Identification): A single step of gradient descent identifies the target subspace, ensuring student neurons point roughly in the right direction.
  2. Stage 2 (Norm Adjustment): A convex optimization step adjusts the norms (importance) of the neurons to reach a low-loss region.
  3. Stage 3 (Local Convergence): The core contribution of the paper. Using multi-epoch gradient descent with decreasing weight decay ($\lambda$), the authors analyze the local loss landscape as $\lambda \to 0$.

The Local Convergence Phase: Aligning Neurons The paper's most significant insight is that the "local" phase of training is where neurons refine their directions to match the teacher neurons exactly. While early training finds the general neighborhood (the subspace), the local convergence phase achieves exact alignment.

Neuron Alignment

Standard $\ell_2$ regularization (weight decay) is crucial for this process. It prevents "norm cancellation"—where two neurons with opposite signs cancel each other out—and promotes sparsity, ensuring the network focuses its capacity on useful directions. By using dual certificate analysis and Hermite polynomial expansions, the authors prove the loss landscape is "benign." It satisfies a version of the Łojasiewicz property, guaranteeing that gradients remain large enough to push weights toward the global optimum without getting stuck in local minima.

Key Results * Exact Neuron Alignment: As the error approaches zero, every active student neuron eventually aligns perfectly with one of the teacher's neurons. * Polynomial Time Recovery: The student network can recover the target teacher network to within a specified error margin in polynomial time relative to the dimensions and required accuracy. * Efficiency: The required width of the student network depends only on the complexity of the teacher network, bypassing the curse of dimensionality associated with the input data.

Limitations and Future Work While providing a rigorous mathematical foundation for late-stage feature learning, the study has limitations. The use of a convex optimization step in Stage 2 to "fast-forward" the analysis is a theoretical bridge; proving that standard gradient descent naturally transitions from Stage 1 to Stage 3 remains an open challenge. Additionally, the proofs rely heavily on Gaussian input distributions and are limited to two-layer networks. Future work will need to extend these local convergence analyses to more general data distributions and deeper architectures, where hierarchical feature learning introduces further complexity.

Summary updated

BibTeX
@inproceedings{zhou2024how,
  author = {Mo Zhou and Rong Ge},
  title = {{How does Gradient Descent Learn Features --- A Local Analysis for Regularized Two-Layer Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=XYw051ZmUn},
}
Figure