Abstract
Scaling neural networks to billions of parameters often involves expensive trial and error. This paper introduces a unified theoretical and empirical framework for scaling learning rates across diverse architectures and optimizers. By deriving per-layer scaling exponents, the authors demonstrate that standard parameterizations can achieve seamless hyperparameter transfer, often outperforming specialized methods like muP. Additionally, they introduce Adam-atan2, a scale-invariant optimizer that eliminates the need for the epsilon hyperparameter.
The Challenge of Hyperparameter Transfer
In the "train once" era of Large Language Models (LLMs), hyperparameter sweeps on 100B+ parameter models are computationally prohibitive. Researchers instead rely on hyperparameter transfer: identifying optimal settings on small "proxy" models and scaling them to larger versions. However, as model width ($n$) increases, the optimal learning rate (LR) typically shifts. A global LR that stabilizes hidden layers might cause readout layers to explode, while a rate safe for the readout might lead to vanishing updates in early layers.
A Unified Map of Parameterizations
The authors investigate how four major parameterizations—Standard, NTK, muP, and Mean-Field—interact with SGD, Adam, and Adafactor. They visualize these parameterizations as points in a space defined by scaling exponents for different layers.
Per-Layer Learning Rate Prescriptions
A key insight is that "alignment"—the correlation between model weights and data—is dynamic and layer-dependent. By relaxing the "full alignment" assumption of previous theories, the authors derive more realistic stability constraints. They propose layer-specific scaling exponents rather than a global LR. For instance, in standard parameterization, the embedding layer LR scales as $O(1)$, while hidden and readout layers scale as $O(1/n)$.
Adam-atan2: Solving the Epsilon Trap
The $\epsilon$ (epsilon) parameter in the Adam optimizer, often treated as a minor constant, can break scale invariance as models grow. As gradients shrink with width, they may fall below $\epsilon$, causing training to stall. To address this, the authors propose Adam-atan2, replacing the standard division with the atan2(gradient, sqrt(moment)) function. This modification makes the optimizer truly scale-invariant and removes the need to tune $\epsilon$.
Empirical Validation and Key Insights
The theory was validated through an extensive empirical sweep, training over ten thousand models ranging from 9.9M to 26.8B parameters using the C4 dataset and a decoder-only Transformer architecture (NanoDO).
- Universal Transfer: Successful hyperparameter transfer was achieved across all four parameterizations up to the 26.8B parameter scale.
- Standard Parameterization Performance: With the proposed per-layer LR scaling, standard parameterization actually outperformed muP in Adam-based experiments.
- Stability via Scaling: Correctly scaling $\epsilon$ (or using Adam-atan2) closed the performance gap between theoretically equivalent parameterizations that previously diverged due to finite-precision errors.
Limitations and Future Directions
While this work masters width scaling, other dimensions remain:
- Depth and Batch Size: Co-scaling width with depth and training horizon (the "Chinchilla" regime) is more complex and requires further study.
- Vocabulary Scaling: The study used a fixed vocabulary size (32k); future work should explore scaling input/output dimensionality with width.
- Compute-Optimal Scaling: Empirical results suggest that compute-optimal training requires more aggressive LR decay than fixed-step theory predicts.
Summary updated