A Multi-Power Law for Loss Curve Prediction Across Learning Rate Schedules

Kairong Luo, Haodong Wen, Shengding Hu, Zhenbo Sun, Zhiyuan Liu, Maosong Sun, Kaifeng Lyu, Wenguang Chen

Abstract

Training large models is both resource-intensive and time-consuming, making it crucial to understand the quantitative relationship between model performance and hyperparameters. In this paper, we present an empirical law that describes how the pretraining loss of large language models evolves under different learning rate schedules, such as constant, cosine, and step decay schedules. Our proposed law takes a multi-power form, combining a power law based on the sum of learning rates and additional power laws to account for a loss reduction effect induced by learning rate decay. We extensively validate this law on various model sizes and architectures, and demonstrate that after fitting on a few learning rate schedules, the law accurately predicts the loss curves for unseen schedules of different shapes and horizons. Moreover, by minimizing the predicted final pretraining loss across learning rate schedules, we are able to find a schedule that outperforms the widely used cosine learning rate schedule. Interestingly, this automatically discovered schedule bears some resemblance to the recently proposed Warmup-Stable-Decay (WSD) schedule but achieves a slightly lower final loss. We believe these results could offer valuable insights for understanding the dynamics of pretraining and designing learning rate schedules to improve efficiency.

Introduction

Training Large Language Models (LLMs) is a high-stakes endeavor requiring massive computational resources. While "Scaling Laws" (e.g., the Chinchilla law) have provided a framework for predicting final model performance based on parameter count and compute budget, they often treat the Learning Rate (LR) schedule as a fixed background variable. Most existing laws assume a standard cosine decay and training to completion; however, if a researcher changes the schedule, stops training early, or modifies the optimization strategy, these predictive models often break down.

In this work, we introduce the Multi-Power Law (MPL). This empirical law moves beyond predicting a single final data point to forecasting the entire loss curve across virtually any LR schedule. By treating the LR schedule as a high-dimensional input, the MPL allows for the "auto-discovery" of training schedules that can outperform industry standards like cosine decay.

The Multi-Power Law Framework

The Learning Rate is arguably the most sensitive hyperparameter in deep learning. A high LR accelerates initial learning but risks instability or "overshooting" the local minimum; conversely, a low LR provides stability but is computationally inefficient. Finding the optimal transition between these states—the schedule—has historically been more of an art than a science.

The MPL is built on a key empirical observation: Learning Rate Sum Matching. We observed that if two training runs share the same cumulative sum of learning rates, their loss values tend to be remarkably similar, regardless of the specific path taken to reach that sum.

Based on this, the MPL formula decomposes the loss $\mathcal{L}(t)$ into three primary components:

  1. The Constant Process: A power law based on the cumulative sum of learning rates ($S_1(t)$), representing the "distance" the model has traveled in parameter space.
  2. The Loss Reduction (LD) Term: A correction factor accounting for the additional "bonus" in loss reduction achieved specifically when the learning rate is decayed.
  3. The Saturating Factor: A non-linear function $G(x)$ that captures how the benefits of LR decay eventually plateau as the model settles into a local minimum.

Crucially, the MPL can be calibrated using just two or three short training runs (for example, one constant LR run and one cosine run). Once fitted, the law can predict the loss curve for complex, unseen schedules, including non-monotonic or cyclic paths.

Experimental Validation

We validated the MPL across several architectures and scales to ensure its robustness:

  • Models: Llama-2 architectures (25M to 400M parameters), GPT-2, and the 7B OLMo model.
  • Data: Standard token streams ranging from 12B to 36B tokens.
  • Evaluation: Beyond loss prediction, we tested downstream performance on benchmarks including LAMBADA, HellaSwag, PIQA, ARC-Easy, C3, and RTE.

Predictive Accuracy

The MPL demonstrated exceptional predictive power, achieving an $R^2$ value of over 0.99 when forecasting loss curves for unseen schedules. This accuracy held true even for unconventional schedules, such as random polylines or cyclic learning rates, suggesting that the law captures a fundamental dynamic of LLM optimization.

Schedule Optimization and Discovery

By using the MPL as a surrogate model to mathematically optimize the LR schedule, we were able to "auto-discover" schedules that outperform the standard cosine decay.

Key Findings:

  • Outperforming Cosine: The MPL-optimized schedules achieved a final loss reduction of more than 0.02 compared to standard cosine decay.
  • Downstream Gains: Models trained with these optimized schedules showed an average improvement of 1.03 points across NLP benchmarks.
  • The "River Valley" Connection: The optimized schedules naturally converged on a "Stable-Decay" pattern. This aligns with the "river valley" theory of loss landscapes: a high LR is used to move rapidly down the long axis of a valley, followed by a sharp decay to settle into the very bottom of the "river."
  • Zero-Ending LR: Our optimization suggests that decaying the LR to near-zero, rather than the common practice of ending at 10% of the peak LR, is often beneficial if the decay follows the correct power-law shape.

Discussion and Limitations

While the MPL offers a more rigorous approach to optimization, several avenues for future work remain:

  1. Warmup Phase: The current law focuses on the decay phase and assumes a fixed warmup. Future iterations could integrate warmup dynamics into the power-law framework.
  2. Hyperparameter Interaction: The law currently assumes other hyperparameters (batch size, weight decay) are constant. In practice, these likely interact with the LR in complex ways.
  3. Theoretical Foundations: While we provide theoretical analysis for quadratic loss functions, bridging the gap to the highly non-convex landscapes of real-world LLMs remains a challenge.

Conclusion

The Multi-Power Law transitions LLM training from empirical trial-and-error toward a predictable science. By accurately modeling the relationship between the learning rate trajectory and loss reduction, researchers can squeeze greater efficiency out of their pretraining budgets and discover schedules that surpass current industry standards.

Summary updated

Abstract

Training large models is both resource-intensive and time-consuming, making it crucial to understand the quantitative relationship between model performance and hyperparameters. In this paper, we present an empirical law that describes how the pretraining loss of large language models evolves under different learning rate schedules, such as constant, cosine, and step decay schedules. Our proposed law takes a multi-power form, combining a power law based on the sum of learning rates and additional power laws to account for a loss reduction effect induced by learning rate decay. We extensively validate this law on various model sizes and architectures, and demonstrate that after fitting on a few learning rate schedules, the law accurately predicts the loss curves for unseen schedules of different shapes and horizons. Moreover, by minimizing the predicted final pretraining loss across learning rate schedules, we are able to find a schedule that outperforms the widely used cosine learning rate schedule. Interestingly, this automatically discovered schedule bears some resemblance to the recently proposed Warmup-Stable-Decay (WSD) schedule (Hu et al, 2024) but achieves a slightly lower final loss. We believe these results could offer valuable insights for understanding the dynamics of pretraining and designing learning rate schedules to improve efficiency.
BibTeX
@inproceedings{luo2025multi,
  author = {Kairong Luo and Haodong Wen and Shengding Hu and Zhenbo Sun and Zhiyuan Liu and Maosong Sun and Kaifeng Lyu and Wenguang Chen},
  title = {{A Multi-Power Law for Loss Curve Prediction Across Learning Rate Schedules}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=KnoS9XxIlK},
}
Figure