Understanding the Generalization Benefits of Late Learning Rate Decay

Yinuo Ren, Chao Ma, Lexing Ying

TL;DR

This paper provides a theoretical and empirical explanation for why "late learning rate decay"—staying at a high learning rate for an extended period—improves neural network generalization. By introducing a novel nonlinear model that mimics the loss landscapes of real networks, the authors prove that an extended high-learning-rate phase steers the training trajectory along a manifold of training minima toward the minimum $L^2$-norm solution, which aligns closely with the testing loss minimum.

What Problem Does This Paper Address?

In deep learning, practitioners often observe that maintaining a large learning rate (LR) for a long time, even after training loss has plateaued, leads to better final test performance once the LR is eventually decayed. This phenomenon is puzzling because, in overparameterized settings, there are many ways to achieve zero training loss, yet only some of these solutions generalize well to unseen data.

The core challenge is the misalignment between training and testing loss landscapes. While the training loss might have a wide "manifold" of global minima (multiple solutions with zero loss), the testing loss typically has a more isolated minimum. The authors seek to understand the mechanism by which a large learning rate helps the optimizer navigate this training manifold to find the specific region that generalizes best.

Methods

The authors combine empirical visualization with rigorous mathematical modeling:

  1. Landscape Visualization: They use Principal Component Analysis (PCA) to project the high-dimensional training trajectories of a VGG-11 model onto a 2D plane. This allows them to visualize the training and testing loss landscapes simultaneously.
  2. A Novel Nonlinear Model: To bridge the gap between simple linear models and complex neural networks, they propose a minimal nonlinear model: $$y = \|w\|^\gamma w^\top x$$ Here, $\gamma \ge 0$ is a parameter representing the depth of the network. This model captures the "shrinkage" effect observed in real neural network landscapes, where level sets become tighter as the parameter norm increases.

  3. Three-Phase SDE Analysis: The authors analyze the training process using Stochastic Differential Equations (SDEs), dividing it into three distinct phases:

  4. Phase I: The trajectory rapidly approaches the training loss minima manifold.
  5. Phase II (The Extended Phase): With a large LR, the trajectory "meanders" along the manifold, driven by the landscape's flatness and noise.
  6. Phase III: After LR decay, the trajectory settles into a nearby minimum.

Datasets

The empirical observations and visualizations were conducted using:

  • CIFAR-10: A standard image classification dataset used to train a VGG-11 model with the SGD optimizer.

Key Insights and Ideas

  • Landscape Duality: The training loss landscape features a low-dimensional manifold of minima with "open" level sets, whereas the testing loss landscape presents an isolated minimum with "closed" level sets.
  • The "Shrinkage" Effect: The authors argue that the nonlinearity introduced by network depth causes the training loss landscape to "shrink" or become flatter near the testing loss minimum. Their proposed model (Figure 3c) captures this much better than traditional linear diagonal networks (Figure 3b).
Comparison of training and testing loss landscapes for different models. The authors' reparametrization model (c) better mirrors real neural network behavior.
  • Navigation, Not Just Convergence: During the extended large LR phase (Phase II), the model isn't just oscillating; it is actively navigating the minima manifold. The noise in SGD, combined with the specific shape of the landscape, steers the model toward the minimum $L^2$-norm solution.
  • Depth as a Regularizer: In their model, the parameter $\gamma$ (representing depth) directly influences the speed at which the model converges to the minimum-norm solution.
Illustration of the trajectory navigating the manifold $M$ toward the neighborhood of the testing loss minimum.

Key Results

  • Empirical Validation: Figure 1 demonstrates that delaying the learning rate decay leads to a lower final testing loss, even if the training loss has already stabilized.
  • Theorem 3.4 (Convergence): The authors prove that for their nonlinear model, the effective dynamics during Phase II converge to the minimum $L^2$-norm solution of the population loss with high probability.
  • Exponential Mixing: Theorem 3.1 establishes that the trajectory "forgets" its initialization and redistributes according to the Gibbs energy of the empirical loss, ensuring it stays near the minima manifold.
  • Phase III Stability: Theorem 3.6 shows that once the LR is decayed, the model converges exponentially fast to the nearest point on the manifold, locking in the generalization gains achieved during Phase II.
Learning curves showing that while training loss (b) becomes chaotic after a point, the test loss (c) clearly benefits from a later decay.

Limitations and Future Work

  • Continuous-Time Approximation: The theoretical analysis relies on SDEs (continuous-time). While standard in the field, a discrete-time analysis would be more representative of actual SGD.
  • Model Simplicity: While the proposed nonlinear model is a step up from linear ones, it is still a "toy" model compared to modern architectures like Transformers or ResNets.
  • Data Distribution: The proofs assume data is drawn from a standard Gaussian distribution; extending this to more complex, structured data distributions is a potential future direction.

Summary updated

Abstract

Why do neural networks trained with large learning rates for a longer time often lead to better generalization? In this paper, we delve into this question by examining the relation between training and testing loss in neural networks. Through visualization of these losses, we note that the training trajectory with a large learning rate navigates through the minima manifold of the training loss, finally nearing the neighborhood of the testing loss minimum. Motivated by these findings, we introduce a nonlinear model whose loss landscapes mirror those observed for real neural networks. Upon investigating the training process using SGD on our model, we demonstrate that an extended phase with a large learning rate steers our model towards the minimum norm solution of the training loss, which may achieve near-optimal generalization, thereby affirming the empirically observed benefits of late learning rate decay.
BibTeX
@inproceedings{ren2024understanding,
  author = {Yinuo Ren and Chao Ma and Lexing Ying},
  title = {{Understanding the Generalization Benefits of Late Learning Rate Decay}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=jResdecmVg},
}
Figure