On the Nonlinearity of Learning Rate Scaling for LLM Training
Abstract
Learning-rate transfer is critical for reducing the cost of training large language models: instead of sweeping learning rates at target scale, practitioners extrapolate from smaller runs. Existing approaches often assume that the optimal learning rate follows a log-linear scaling law in data scale and model size. We carefully examine and evaluate this scaling law. In our empirical study of GPT-2--style models from 22M to 1.072B parameters trained on up to 100B tokens, we estimate optimal learning rates using cubic fits and quantify their uncertainty with a pairs bootstrap. The optimal raw learning rate exhibits upward curvature in log--log space, whereas the optimal effective learning rate---the step size in normalized weight space---follows a relationship closer to log-linear over the measured range. Our compute-constrained evaluation further finds that, when the compute budget for fitting the scaling law is sufficient, extrapolation along the data axis is more accurate than extrapolation along the model-size axis. Building on the empirical near-log-linearity of the optimal effective learning rate, we analyze how the horizon-dependent mapping between raw and effective learning rates can explain upward curvature in the optimal raw learning rate. AdamH experiments provide further empirical support.