On the Nonlinearity of Learning Rate Scaling for LLM Training

Zaiwen Yang, Huaqing Zhang, Jing Xu, Jingzhao Zhang

TL;DR

Standard log-linear scaling laws for learning rates break down at large scales due to an unexpected upward curvature, leading to underpredicted learning rates. This paper demonstrates that switching to the effective learning rate (the step size in normalized weight space) and extrapolating along the data axis rather than the model-size axis restores linearity, enabling highly accurate hyperparameter transfer that saves substantial training compute.

What Problem Does This Paper Address?

Tuning hyperparameters—especially the learning rate (LR)—is one of the most expensive parts of training Large Language Models (LLMs). To avoid costly sweeps at the target scale, practitioners rely on hyperparameter transfer, fitting a log-linear power law on small-scale runs to extrapolate the optimal LR ($\eta^*$) for larger models or data scales.

However, the authors discover a critical flaw in this assumption: as data scale ($D$) and model size ($N$) grow, the optimal learning rate develops an upward curvature in log-log space. This means standard log-linear scaling laws systematically underpredict the optimal learning rate at scale, leading to suboptimal training runs. This paper investigates why this nonlinearity occurs and how to fix it.

Figure 1: Compute-constrained extrapolation: D-axis extrapolation uses reduced data with the full model, while N-axis extrapolation uses smaller models with full data, both under a fixed compute budget.

Methods

The authors conduct a rigorous empirical study using GPT-2–style architectures, evaluating how the optimal learning rate scales across both model sizes and data budgets. To resolve the nonlinearity problem, they introduce and evaluate two key shifts in strategy:

  1. Effective Learning Rate ($\eta_{\text{eff}}$): Instead of looking at the raw learning rate ($\eta$), they analyze the step size in the normalized parameter space: $$\eta_{\text{eff}}(t) = \|\hat{w}_{t+1} - \hat{w}_t\|_2$$ where $\hat{w}$ represents the normalized weight direction. Because modern architectures use normalization layers (like LayerNorm), the network's loss is scale-invariant, meaning optimization dynamics depend primarily on weight direction rather than magnitude.

  2. Data-Axis ($D$-axis) Extrapolation: Instead of the traditional approach of training smaller models on full data ($N$-axis extrapolation), they propose keeping the model size large but training on reduced data amounts ($D$-axis extrapolation) under a fixed compute budget.

They also analyze the implicit weight-norm dynamics of the AdamW optimizer mathematically and validate their insights using AdamH, an optimizer that explicitly controls the effective learning rate by normalizing weights and updates to a fixed norm.

Datasets

  • FineWeb-100B: Used as the pre-training dataset.
  • LR-Transfer-Trajectory Dataset: The authors have publicly released a comprehensive dataset containing dense coverage of loss trajectories and optimization statistics spanning their grid of model sizes, data scales, and learning rates.

Key Insights and Ideas

  • The Curvature is an Artifact of Weight-Norm Dynamics: Under AdamW, the raw learning rate maps to the effective learning rate through a time-varying relationship governed by the weight norm.
  • Two Asymptotic Regimes: The authors identify that AdamW operates in two phases:
  • Pre-equilibrium regime (short horizons/small LRs): The weight norm hasn't stabilized, and $\eta_{\text{eff}} \propto \eta$ (a log-log slope of 1).
  • Equilibrium regime (long horizons/large LRs): The weight norm stabilizes, and $\eta_{\text{eff}} \propto \sqrt{\eta}$ (a log-log slope of 2). As the training horizon grows, the optimal learning rate decreases, pushing the training dynamics from the equilibrium regime back into the pre-equilibrium regime. This transition is what causes the upward bend in standard LR scaling laws.

  • Effective LR Restores Linearity: Because $\eta_{\text{eff}}$ directly captures the directional step size, its optimal scaling law remains remarkably linear across scales, bypassing the complex weight-norm dynamics of AdamW.

The optimal raw learning rate curves upward at larger scales (left), while the optimal effective learning rate remains stable and linear (right).

Key Results

  • Data-Axis Extrapolation Wins: Extrapolating along the data-size axis ($D$-axis) consistently outperforms model-size ($N$-axis) scaling.
  • Massive Compute Savings: Fitting the learning rate scaling law along the data axis using $\eta_{\text{eff}}$ incurs only 2% additional training compute relative to using the true, perfectly swept optimal learning rate.
  • Sweeping Reduction: This approach requires less than 20% of the compute typically wasted on hyperparameter sweeping at the target scale.
  • AdamH Validation: When using the AdamH optimizer to explicitly stabilize $\eta_{\text{eff}}$, the upward curvature completely disappears, confirming the authors' theoretical explanation.

Limitations and Future Work

  • Model and Optimizer Coverage: The study was bounded to GPT-2 architectures trained with AdamW and AdamH. Generalization to other popular architectures (like LLaMA-style models) or alternative optimizers remains to be verified.
  • Scale Limits: The empirical validation was conducted up to a 707M parameter model and 100B tokens. While substantial, it does not probe the extreme multi-billion parameter regimes where additional scaling phenomena might emerge.
  • Estimation Bias: The optimal learning rate was determined using a cubic polynomial fit on validation loss, which can introduce minor biases if the true optimum lies near the boundaries of the hyperparameter sweep grid.

Summary updated

BibTeX
@inproceedings{yang2026nonlinearity,
  author = {Zaiwen Yang and Huaqing Zhang and Jing Xu and Jingzhao Zhang},
  title = {{On the Nonlinearity of Learning Rate Scaling for LLM Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3fy5G5iNJf},
}
Figure