Introduction
Optimizing the "annealing" or learning rate decay phase is a critical yet computationally expensive aspect of Large Language Model (LLM) training. Traditionally, finding the optimal schedule requires significant trial-and-error. This paper introduces a Forward-Momentum Scaling Law that accurately predicts training dynamics, demonstrating that optimal annealing strategies follow predictable power laws. This allows researchers to optimize schedules on small proxy models and reliably transfer those strategies to much larger ones.
The Forward-Momentum Scaling Law
Standard scaling laws typically focus on final model performance relative to compute or parameters. However, they often fail to capture the specific trajectories of loss curves when training configurations—such as batch sizes or learning rate (LR) schedulers—are modified. The authors propose a refined framework based on two key innovations:
- Step-Based Modeling: The researchers observed that while different batch sizes produce divergent loss curves when plotted against tokens, these curves tend to converge when plotted against training steps, provided the batch size is within a practical range.
- Adam-Style Momentum Term (ASMT): To capture the "kinetic effect" of learning rate decay—how model parameters "settle" during cooldown—the authors introduced a momentum term ($M$). Unlike previous unstable methods, this Adam-style integral is numerically robust across various batch sizes.
The resulting predictive formula is defined as: $$L = \lambda_S S^{-\alpha_S} + \lambda_N N^{-\alpha_N} + \lambda_M M + L_0$$ Where $S$ represents the integral of the learning rate, $N$ is the model size, and $M$ is the momentum term.
Key Insights and Results
The study focused on the Warmup-Steady-Decay (WSD) scheduler, using The Pile for training and a diverse suite of benchmarks (MMLU, OpenWebText2) for evaluation.
Predictive Accuracy and Transferability
The proposed scaling law achieves high predictive accuracy, with a Mean Absolute Percentage Error (MAPE) of less than 2% across different model sizes. Crucially, the optimal annealing ratio ($R_{opt}$) follows a power-law relationship with the maximum learning rate and total training steps.
Experiments showed that the optimal annealing ratio found on a 50M or 100M parameter model transfers reliably to a 7B parameter model. This transferability holds across different validation datasets, suggesting that the underlying "physics" of annealing is tied to training dynamics rather than specific data distributions.
Conclusion and Future Work
This framework provides a unified approach to predicting optimal annealing schedules, significantly reducing the compute required for hyperparameter tuning. While the principles transfer effectively across model scales within the same architecture (e.g., Dense to Dense), future work is needed to determine if these laws hold when transferring between different architectures, such as from Dense to Mixture-of-Experts (MoE) models, or when scaling beyond the 7B parameter threshold.
Summary updated