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
TL;DR
The paper introduces the Multi-Power Law (MPL), a schedule-aware empirical law that predicts the pretraining loss curve across learning-rate schedules by combining a base power-law in the LR-sum with a loss-reduction correction LD that captures LR decay effects. MPL is derived via a bottom-up, LR-sum-matching approach and validated across model sizes and architectures, demonstrating strong generalization to unseen and longer-horizon schedules. The authors show that fitting MPL on a small set of schedules enables accurate prediction of entire loss trajectories and enables optimization of LR schedules that outperform cosine and tuned Warmup-Stable-Decay patterns, with downstream gains. A theoretical analysis under quadratic loss and spectral assumptions links MPL to power-law structures in the Hessian and gradient noise, and extensive ablations confirm robustness across architectures, sizes, and hyperparameters. Overall, MPL offers a practical, data-efficient tool for understanding and designing LR schedules to improve training efficiency in large-language-model pretraining.
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.
