Scaling and Transferability of Annealing Strategies in Large Language Model Training

Siqi Wang, Zhengyu Chen, Teng Xiao, Zheqi Lv, Jinluan Yang, Xunliang Cai, Jingang Wang, Xiaomeng LiarXiv 2025 · DOI

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:

  1. 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.
  2. 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.
Figure 1: Comparison of loss curves plotted against training tokens (left) versus training steps (right). Plotting by steps reveals a convergence across different batch sizes that token-based plots obscure.

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.

Figure 4: The Forward-Momentum Scaling Law fit (dashed lines) accurately tracks the actual loss curves across models ranging from 100M to 1.5B parameters.

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

BibTeX
@misc{wang2025scaling,
  author = {Siqi Wang and Zhengyu Chen and Teng Xiao and Zheqi Lv and Jinluan Yang and Xunliang Cai and Jingang Wang and Xiaomeng Li},
  title = {{Scaling and Transferability of Annealing Strategies in Large Language Model Training}},
  year = {2025},
  eprint = {2512.13705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13705},
}
Figure