TL;DR
This paper challenges the conventional wisdom that large learning rates lead to instability in neural networks trained with standard parameterization. By introducing a finer-grained analysis of the "unstable" regime, the authors reveal a "controlled divergence" phenomenon under cross-entropy loss, which allows for stable training and effective feature learning even at large learning rates. This finding has significant implications for understanding and optimizing large-scale neural networks.
What Problem Does This Paper Address?
The dominant paradigm in training large neural networks, known as standard parameterization (SP), involves He initialization and a single global learning rate. However, existing theoretical frameworks predict that SP networks become unstable with large learning rates, leading to vanishing feature learning. This contradicts empirical observations where networks trained with SP exhibit stable training and effective feature learning even with large learning rates. This discrepancy raises a fundamental question: why does SP remain stable and effective at large learning rates despite theoretical predictions, and does an infinite-width limit exist that better explains practical network behavior?
Methods
The authors tackle this problem by performing a finer-grained analysis of the learning rate regime previously considered unstable. They introduce the concept of "controlled divergence," where network outputs (logits) might diverge, but gradients and activations remain stable. This is particularly observed under the cross-entropy (CE) loss. They also leverage "refined coordinate checks" (RCC) to disentangle effective updates from propagating updates, providing a more precise understanding of how weight updates influence activations. Their theoretical framework is rooted in Tensor Program (TP) theory, which allows for analyzing width-scaling properties of neural networks.
Datasets
The paper utilizes several standard datasets for training and evaluation:
- MNIST: A dataset of handwritten digits.
- CIFAR-10: A dataset of 10 classes of small images.
- Fashion-MNIST: A dataset of Zalando's article images.
- Tiny ImageNet: A subset of the ImageNet dataset.
- DCLM-Baseline dataset: Used for language modeling experiments with Pythia-GPTs.
- Generated multi-index data: A custom dataset designed to test specific learning dynamics, particularly for input layer feature learning.
Key Insights and Ideas
- Controlled Divergence: The "unstable" regime at large learning rates isn't uniformly catastrophic. Under CE loss, there's a "controlled divergence" where logits diverge but activations and gradients remain stable, allowing for continued learning.
- CE Loss is Key: The cross-entropy loss plays a crucial role in enabling this controlled divergence. Unlike MSE loss, CE loss's gradient calculation effectively uses the network's output after the softmax, making it less sensitive to large logit values.
- Infinite-Width Proxy: The authors propose a new infinite-width proxy that better aligns with practical finite-width network behavior, particularly in the feature-learning regime.
- Width-Scaling Predictions Hold: Despite the surprising effectiveness of large learning rates, the authors demonstrate that width-scaling considerations are still surprisingly useful for predicting maximal stable learning rate exponents, which guide optimal learning rates.
- Limitations of MSE Loss: MSE loss, when combined with softmax, leads to vanishing gradients under output blowup, hindering learning. This makes CE loss a more robust choice for stable training with large learning rates.
Key Results
- Under CE loss, a controlled divergence regime exists for learning rates scaling as $n^{-1/2}$ for deep MLPs in SP, where features continue to evolve in all hidden layers.
- This controlled divergence regime provides a well-defined infinite-width limit for feature learning in SP, which was previously thought to be absent.
- Empirical evidence across various optimizers, architectures, and data modalities validates that neural networks operate in this controlled divergence regime under CE loss, but not under MSE loss.
- The proposed width-scaling considerations accurately predict maximal stable learning rate exponents, offering guidance for optimal learning rate selection.
- The analysis clarifies the effectiveness and limitations of recently proposed layerwise learning rate scalings for standard initialization.
Limitations and Future Work
- Numerical Precision: The analysis assumes sufficient numerical precision. In practice, diverging signals can lead to floating-point range issues at moderate widths, potentially requiring specialized implementations.
- Understanding Optimal Learning Rate Transfer: The exact conditions that induce hyperparameter transfer are still not fully understood. Strong architectural and distributional assumptions are likely needed for rigorous statements about optimal LR exponents.
- Interplay of Components: The interplay between different components like optimizers (Adam), normalization layers, and parameterizations in maintaining stability and enabling feature learning requires deeper investigation.
- Multi-Epoch Training: The current study focuses on single-epoch training. A systematic study of multi-epoch settings is left for future work.
- Generalization under Logit Blowup: While logit blowup might explain overconfidence, its effect on generalization and the calibration of neural networks in SP warrants further investigation.
- Computational Cost of RCC: While RCC is a useful diagnostic tool, its computational cost can be high, especially for very deep networks.
Summary updated