Summary of "On the Nonlinearity of Learning Rate Scaling for LLM Training"
Summary (Overview)
- Key finding: The optimal learning rate for LLM training exhibits upward curvature at larger scales, deviating from the commonly assumed log-linear (power-law) scaling law, leading to underpredictions when extrapolating from smaller runs.
- Effective learning rate as a better parameterization: The effective learning rate (step size in normalized weight space) demonstrates substantially more linear scaling behavior than the raw learning rate, making it a more reliable quantity for hyperparameter transfer.
- Data-axis beats model-axis extrapolation: Fitting scaling laws along the data size axis yields much more accurate predictions than along the model size axis , requiring only ~2% additional training compute relative to using the true optimal learning rate.
- Mechanistic explanation: The nonlinearity is explained via weight-norm dynamics—small learning rates keep training in a pre-equilibrium regime where the mapping has slope 1, while larger learning rates reach equilibrium with slope 2, causing the curvature.
- Validation with AdamH: Explicitly controlling via the AdamH optimizer recovers clean log-linear scaling, confirming the theoretical explanation.
Introduction and Theoretical Foundation
Background and Motivation
Training large language models requires carefully tuned hyperparameters, but sweeping these directly at target scale is prohibitively expensive. Hyperparameter transfer—predicting effective hyperparameters at large scale from inexpensive smaller-scale runs—has become a central tool in modern model development.
Two main lines of work exist:
- Maximal Update Parameterization (P): Theoretically motivated framework ensuring optimal learning rate remains stable across width scaling, though it focuses on model scaling and doesn't cover data-scale transfer.
- Power-law scaling laws: Directly modeling the optimal learning rate as a function of data scale and model size .
Theoretical Foundation
The standard assumption is a log-linear (power-law) scaling law:
which implies .
The effective learning rate is defined as the step size in normalized weight space:
where denotes the normalized weight direction. This is motivated by scale-invariance of modern architectures: for weights with normalization layers, for all (Equation 3).
The optimal learning rate is defined as:
and the optimal effective learning rate as:
Methodology
Experimental Setup
- Models: GPT-2 style models from 22M to 707M parameters
- Data: FineWeb-100B with data budgets from 5B to 100B tokens in 2.5B-token increments
- Optimizer: AdamW with fixed hyperparameters (, weight decay ), batch size 0.52M tokens
- Learning rate sweep: Logarithmic grid with with unit increments
- Schedule: Warmup-steady-decay (WSD) schedule
Scaling Laws Evaluated
Four log-linear scaling laws were evaluated:
For optimal learning rate:
- Fixed model size : (Eq. 7)
- Fixed data size : (Eq. 8)
For optimal effective learning rate:
- Fixed model size : (Eq. 9)
- Fixed data size : (Eq. 10)
Evaluation Metrics
Out-of-distribution coefficient of determination ():
Extra Compute Ratio (ECR):
where (FLOPs for a dense Transformer) and is the additional compute needed for the predicted learning rate to match the optimal validation loss.
Compute-Constrained Training Sets
Two extrapolation strategies were tested (both with total compute budget ):
- D-axis extrapolation:
- N-axis extrapolation:
with constraint .
Empirical Validation / Results
Deviation from Log-Linear Scaling
Figure 2 shows that vs. and in log-log space exhibits systematic upward curvature at larger scales, indicating log-linearity is only a local property.
Figure 3 shows that exhibits improved linearity with higher Pearson correlation coefficients, particularly at larger scales.
Quantitative Extrapolation Performance
Figure 4a compares across compute budgets:
- Scaling along D consistently outperforms scaling along N
- consistently achieves higher than for both D-dim and N-dim fits
Figure 4b reveals a linear relationship between extrapolation error and compute cost:
Table 1: Concrete Case Study (Test: , )
| Budget Ratio (%) | Setup | Log LR Prediction Error | Val Loss Gap () | ECR (%) |
|---|---|---|---|---|
| 13.00 | D-dim, | +0.1235 | 4.77 | 1.21 |
| 13.00 | D-dim, | -0.8144 | 66.42 | 16.96 |
| 17.00 | D-dim, | +0.1148 | 4.12 | 1.04 |
| 17.00 | D-dim, | -0.7295 | 53.21 | 13.72 |
| 20.64 | D-dim, | +0.1271 | 5.06 | 1.29 |
| 20.64 | N-dim, | -0.1903 | 11.04 | 2.21 |
| 20.64 | D-dim, | -0.5736 | 32.82 | 8.65 |
| 20.64 | N-dim, | -0.5461 | 29.74 | 7.87 |
| 37.63 | D-dim, | +0.0935 | 2.73 | 0.67 |
| 37.63 | N-dim, | -0.1320 | 5.35 | 1.11 |
| 37.63 | D-dim, | -0.2061 | 4.21 | 1.20 |
| 37.63 | N-dim, | -0.2328 | 5.37 | 1.52 |
| 55.10 | D-dim, | +0.0983 | 3.02 | 0.75 |
| 55.10 | N-dim, | -0.1357 | 5.64 | 1.17 |
| 55.10 | D-dim, | -0.2286 | 5.18 | 1.47 |
| 55.10 | N-dim, | -0.2179 | 4.71 | 1.34 |
Bold indicates the lowest ECR within each block. The D-dim + setup consistently achieves the lowest extra compute ratio.
Mechanistic Explanation: Two Learning-Rate Phases
The evolution of under AdamW with constant is:
where is the initial weight norm and is the equilibrium weight norm.
This yields two asymptotic regimes:
- Equilibrium regime ():
- Pre-equilibrium regime ():
Key insight: Smaller learning rates have slower weight-norm convergence (decay time ), keeping training in the pre-equilibrium regime with slope-1 mapping. As training horizon grows, the optimal learning rate decreases, pushing training from equilibrium into pre-equilibrium regime—explaining the upward curvature.
Validation with AdamH
AdamH, which explicitly controls by normalizing both weight and update to fixed norms, recovers:
- Clean log-linear relationship: (Pearson )
- Much smaller ECR than AdamW at small compute-budget ratios
Theoretical and Practical Implications
Theoretical Implications
-
Log-linear scaling is only locally valid: The assumption that holds globally is incorrect; systematic curvature emerges at larger scales.
-
Effective learning rate is the fundamental quantity: Due to scale-invariance of modern architectures, —not —governs optimization dynamics, and it is the quantity for which clean scaling laws hold.
-
Weight-norm dynamics matter: The transient behavior of weight norms under AdamW creates a time-varying mapping between and , which is the root cause of nonlinearity.
Practical Implications
-
Recommended transfer strategy: Fit scaling laws along the data axis using the effective learning rate—this incurs only ~2% additional training compute relative to the true optimal learning rate.
-
Compute efficiency: D-axis extrapolation requires less than 20% of the compute of hyperparameter sweeping at the target scale.
-
Cost of extrapolation error: The linear relationship means even modest extrapolation degradation directly translates to proportional compute waste.
Conclusion
Main Takeaways
- Nonlinearity discovered: The optimal learning rate exhibits systematic upward curvature at larger scales, breaking the commonly assumed log-linear scaling law.
- Two improvements identified: Parameterizing by effective learning rate and extrapolating along the data axis substantially improve transfer accuracy.
- Mechanistic explanation provided: The curvature arises from weight-norm transient dynamics under AdamW, where the mapping shifts between slope-1 (pre-equilibrium) and slope-2 (equilibrium) regimes.
- AdamH validation: Explicitly controlling recovers clean linear scaling, confirming the theoretical framework.
Limitations
- Model/optimizer coverage: Only GPT-2-style architectures with AdamW on FineWeb were tested; generalization to other settings remains unverified.
- Estimation bias: Cubic polynomial fitting for may introduce bias near sweep boundaries.
- Scale limits: Analysis limited to 100B tokens and 707M parameters; more extreme regimes may exhibit additional phenomena.
Future Directions
- Extending the analysis to other architectures, optimizers, and more extreme scales
- Developing practical tools that directly control effective learning rate during training
- Further theoretical analysis of the transient dynamics and their impact on scaling behavior
Related papers
- The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks
Repository-scale coding success depends on edit-time availability of coupled facts from context or parametric memory, not on total context consumed or fact distance.
- Agent Lightning v1.0: Towards Harnessed Agentic RL
Agent Lightning enables harnessed agentic RL with rollout-level advantage and normalization, boosting coding agents on SWE-bench Verified from 41.8% to 56.4% using only ~6K examples.
- Phantom Gains: Auditing Self-Improvement Against a Measured Null
Transition-level auditing of LLM self-improvement requires measured nulls for every statistic; without them, a frozen model falsely appears to expand at 0.280.