# The Surprising Agreement Between Convex Optimization Theory and Learning-Rate Scheduling for Large Model Training

Convex optimization theory predicts how learning-rate schedules behave in practice

Fabian Schaipp, Alexander Hägele, Adrien Taylor, Umut Simsekli, Francis Bach · arXiv · 2025-1-31

- **Problem** Cosine schedules depend on total training length, so extending a run means it no longer follows its planned curve. Learning-rate schedules have mostly been tuned by trial and error, without a theory explaining them.
- **Method** The authors derive a last-iterate bound for SGD with a learning-rate schedule. They minimize it over the base learning-rate, which gives the optimal value for each schedule and horizon.
- **Results** The bound's shape tracks validation loss curves for wsd and cosine, including the sudden drop during cooldown.

## Why cosine resists continued training

Cosine has become one of the most common schedules for large language model training. The standard practice sets the cosine frequency to half of the total number of training steps. Because of this, the whole schedule depends on the length of the training run. A run that is extended therefore doesn't follow the curve it was planned with.

The wsd schedule offers a way out, since it holds a constant phase and adds a cooldown only at the end. Its constant part can be reused, which largely reduces the compute needed for scaling-law experiments. Most advances in learning-rate scheduling have come from empirical work rather than theory. Without a fundamental understanding, tuning stays a trial-and-error process.

## A convex bound as a lens on schedules

The bound is on the expected suboptimality of the last iterate, E\[f(x\_T) - f(x\*)\], for SGD with a learning-rate schedule. The iterates take the form x\_{t+1} = x\_t - γη\_t g\_t, where γ is the base learning-rate and η\_t is the schedule. Keeping γ and η\_t separate matters, because the optimal γ differs between constant, cosine and wsd. The authors rewrite the result from Defazio et al.

(2023) so that γ and η\_t appear as separate factors.

The bound uses D = \|\|x\_1 - x\*\|\| and the sum η̄\_T = Σ η\_t, so its first term is D² divided by 2γη̄\_T. The remaining terms add γ times weighted sums of η\_t² E\|\|g\_t\|\|², plus a correction built from tail sums of the schedule. Assuming E\|\|g\_t\|\|² ≤ G\_t² turns the result into Ω\_T = T\_1/γ + γT\_2, with T\_1 built from D and the schedule, and T\_2 from the gradient terms.

Minimizing over γ gives γ\* = sqrt(T\_1/T\_2), which is the optimal base learning-rate for that schedule and horizon. Because γ can change the iterates and hence the G\_t, the corollary applies only when the same G\_t holds for every γ. A Lipschitz objective with constant G is the standard case, where G\_t = G for all t.

The two running schedules are wsd and cosine, and both reach zero at step T+1. Under wsd, the schedule stays at 1 up to T\_0 and then decays linearly to zero. Under cosine, the schedule is a half-cosine over T steps, so every η\_t with t ≤ T stays positive as the corollary requires. Applying the corollary with T replaced by t gives a bound Ω\_t for every step, which is the curve the authors plot.

Figure 2 shows the schedules and the bound for T in 200 to 600, with γ\* chosen per horizon.

## Why cooldown removes the log term

For a constant schedule with η\_t = 1, the bound takes the form DG/√T times √(1 + H\_{T−1}). Here H\_t is the harmonic number, defined as the sum of 1/k for k from 1 to t, and it behaves like ln(t) in the limit. So the constant-schedule bound keeps a logarithmic term in T.

For wsd without warmup, the authors derive a last-iterate bound in Theorem 3.4 that avoids this harmonic term. With the cooldown length set as T0 = βT, the square-root factor keeps only constants that depend on β. Its remaining β-dependent part includes ln((1+β)/(1−β)), which doesn't grow with T. So the benefit of cooldown shows up as the absence of a log in T, not as a change in the leading factor DG/√T.

Varying the cooldown fraction in simulation shows that, with a fully tuned base learning-rate, linear decay gives the best bound. The authors connect this to known lower bounds, since linear decay matches the exact lower-bound convergence bound in the stochastic convex Lipschitz case. For a fixed base learning-rate, the best cooldown fraction can be below one.

The sudden drop of the bound appears only when the gradient norm bound stays constant in t. With G\_t = t^α for α = −0.5 or −1, the drop disappears. wsd still gets a better bound than cosine when the gradient norms go to zero.

## Bound shape against validation curves

Figure 1 places the theoretical suboptimality bound beside validation loss of a 210M Llama model trained with AdamW. Both panels show cosine and wsd for training lengths T in 22k, 33k and 44k. The cosine base learning-rate is twice that of wsd, so the comparison fixes the relative step sizes of the two schedules. The wsd curve falls sharply during cooldown in both panels, which is the feature the bound is meant to explain.

![Figure 1: Strikingly similar: Validation loss for a 210M Llama model trained with AdamW (left) and the theoretical suboptimality bound (6) from convex optimiza…](https://refivu.com/papers/3a431e7f-c68b-477b-a0ef-073c8d045e7b/figures/figure-5d9e549742f722b30dfbfc0e4338fee2.png?thumb=512)

**Figure 1** . Strikingly similar: Validation loss for a 210M Llama model trained with AdamW (left) and the theoretical suboptimality bound (6) from convex optimization (right). Both plots show wsd and cosine schedule with different training lengths T , and with base learning-rate of cosine being twice as large as for wsd.

[Original paper](https://arxiv.org/abs/2501.18965v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fabian Schaipp, Alexander Hägele, Adrien Taylor, Umut Simsekli, Francis Bach · The Surprising Agreement Between Convex Optimization Theory and Learning-Rate Scheduling for Large Model Training · Original paper figure · Extracted the figure area from page 1 of the original PDF.

The authors say the match depends on using a last-iterate bound rather than a bound on the minimum suboptimality. When they use a standard bound on the minimum suboptimality instead, the curves no longer resemble the empirical loss curves. They compare this ablation with the last-iterate bound in Corollary 3.3, which keeps the shape of the Hägele et al.

(2024) loss curves. The sudden drop for wsd during cooldown is visible in the last-iterate bound.

The fitted optimal base learning-rates are 0.92 · T^-0.492 for cosine and 0.47 · T^-0.488 for wsd. Both scale roughly with 1/√T, and the cosine value is about twice the wsd value. The authors say this agrees with empirical observations in Shen et al. (2024) and Hägele et al. (2024).

The authors also compute PEP lower bounds for cosine and wsd at T = 60. Their worst-case values are very similar for both schedules. The PEP lower bound also shows the sudden drop for wsd, so the upper bound's shape is not an artifact of the upper bound alone. Gradient descent with the wsd schedule on a two-dimensional non-smooth convex problem, minimizing ∥Ax − b∥∞, shows the same drop during cooldown.

## Adapting the schedule for continued training

Continued training runs into a problem because the optimal base learning-rate falls as the training horizon grows. Continuing at the old base learning-rate until T2 would therefore use a suboptimal learning rate. The authors offer two fixes for this mismatch. The first fix, B1, lengthens the cooldown fraction of the long run to compensate for the smaller base learning-rate.

The second fix, B2, keeps the cooldown fraction and lowers the constant level by a factor ρ.

The authors construct both extended schedules by sweeping c1 for B1 and ρ for B2. They pick the value at which the optimal base learning-rate from Corollary 3.3 is closest to γ⋆. The factor ρ is 0.525 for T2 = 2T1 and 0.375 for T2 = 4T1. For B1, the adapted cooldown fraction c1 is roughly 0.6 when doubling the training length. The authors prefer B2 because it reuses the whole short run without drawbacks in terms of the bound.

The real experiments extend the training of 124M and 210M Llama-style transformers on the SlimPajama dataset. They set T1 = 50k and T2 to 100k or 200k, with a base learning-rate of about 0.001 from a 50k sweep. The adapted schedule gives a slight but noticeable improvement in validation loss, larger for the 210M model. Cooldown initialized right after 40k steps, a 60% cooldown, gives even larger gains in the 100k run.

The authors measure the 0.01 gain against the slope of the loss curves. For T2 = 100k, a decrease of 0.01 takes roughly 6k steps, and for T2 = 200k it takes roughly 14.5k steps. These steps translate to 0.6B and 1.5B tokens, respectively. Matching the adapted wsd schedule would need 6% and 7.25% longer training.

## Moving the learning-rate to linear decay

The bound makes the dependence of γ⋆ on G and D multiplicative, so a tuned value for one practical problem carries over to another. Linear decay, the cooldown fraction c equal to 1, attains the optimal bound, so the authors want γ⋆(1) when they retrain a better model. The authors assume that γ⋆(c) was published or came from a sweep that used the wsd schedule.

The problem is that γ⋆(1) is unknown, so the authors ask whether theory can compute it from γ⋆(c).

In the simulation, the authors plot ln(γ⋆(1)/γ⋆(c)) for c between 0 and 1 under both linear cooldown and 1-sqrt cooldown. Across several horizons T, the results stay consistent, for example knowing γ⋆ for 20% linear cooldown gives γ⋆(1) ≈ e0.7γ⋆(0.2). For the simulation, G and D are both set to 1, and varying either one doesn't change the curve.

On real data, the authors train a 124M Llama-style model for 50k steps with linear cooldown. The measured ln(γ⋆(1)/γ⋆(c)) matches the curve predicted by theory almost perfectly. Knowing the optimal base learning-rate for 20% cooldown lets them transfer it to linear decay without extra sweeps.

The linear-decay run reaches a final validation loss of 2.9535. The best run with 20% cooldown reaches a final loss of 2.9660. The gain is small, and the authors note that the convex theory cannot cover every factor in training.

## Where the convex bound stops matching practice

Most of the empirical evidence in the paper comes from Adam(W), while the theory covers SGD. So the bound cannot explain performance differences that stem from the choice of optimization algorithm. The authors expect this gap to close, and they give a proof for mirror descent in Appendix F as a first step. Recent SGD variants also narrow the gap to Adam on transformer problems.

Most parameters of language models can also be trained well with SGD.

The second limitation is convexity, since modern deep learning problems are non-convex. The authors don't have an explanation for why the convex theory still matches some real-world observations. They point to evidence that neural network optimization landscapes may be reasonably close to convex. The cooldown drop also appears outside language modeling, for ResNets trained with SGD and for ViTs.

The authors verify this with SGD on ImageNet in Appendix C, which also includes OpenWebText2 experiments.

The quantity compared with the bound is the test loss, not the training loss. The authors argue that single-pass training of large models falls within that category. They don't test settings with a large generalization gap between training and test loss.

The authors' broader takeaway is that gradient norms that do not go to zero may underlie the observed behavior. That non-vanishing norm could come from non-smoothness of the objective or from inherent gradient noise. The authors leave explaining this phenomenon to future work.

## Paper info

- **Authors**: Fabian Schaipp, Alexander Hägele, Adrien Taylor, Umut Simsekli, Francis Bach
- **Venue**: arXiv · Preprint
- **First published**: 2025-1-31
- **Added**: 2026-10-31
- **Updated**: 2025-7-23
- **Version**: v2
- **arXiv**: 2501.18965
- **Category**: cs.LG · math.OC · stat.ML
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2501.18965v2) · [PDF ↗](https://arxiv.org/pdf/2501.18965v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

We show that learning-rate schedules for large model training behave surprisingly similar to a performance bound from non-smooth convex optimization theory. We provide a bound for the constant schedule with linear cooldown; in particular, the practical benefit of cooldown is reflected in the bound due to the absence of logarithmic terms. Further, we show that this surprisingly close match between optimization theory and practice can be exploited for learning-rate tuning: we achieve noticeable improvements for training 124M and 210M Llama-type models by (i) extending the schedule for continued training with optimal learning-rate, and (ii) transferring the optimal learning-rate across schedules.

## Quote from the paper

Fabian Schaipp, Alexander Hägele, Adrien Taylor, Umut Simsekli, Francis Bach (2025). The Surprising Agreement Between Convex Optimization Theory and Learning-Rate Scheduling for Large Model Training. arXiv:2501.18965v2. https://arxiv.org/abs/2501.18965v2

**BibTeX**

```
@misc{schaipp2025surprising,
  title = {{The Surprising Agreement Between Convex Optimization Theory and Learning-Rate Scheduling for Large Model Training}},
  author = {Fabian Schaipp and Alexander Hägele and Adrien Taylor and Umut Simsekli and Francis Bach},
  year = {2025},
  eprint = {2501.18965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.18965v2}
}
```

## Related papers

- [Equal Steps, Unequal Curvature: Where Muon's Update Goes Wrong](https://refivu.com/en/papers/fb6483b8-4d92-41c0-9d58-f42a67ef93b2-equal-steps-unequal-curvature-where-muon-s-update.md)
- [LAION-Audio-XL: A Web-Scale Corpus and Scaling Studies for Contrastive Language-Audio Pretraining](https://refivu.com/en/papers/6c336d9f-23f9-4295-9c53-71a28682b228-laion-audio-xl-a-web-scale-corpus-and.md)
- [Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet](https://refivu.com/en/papers/55385708-c65a-43d7-b2e0-c4751a8d2757-tokens-to-token-vit-training-vision-transformers-from.md)
- [Vision Transformers for Dense Prediction](https://refivu.com/en/papers/9b71a7ee-e2ab-43e8-a6e8-d9dd244b9be7-vision-transformers-for-dense-prediction.md)
- [Bregman geometry in regular exponential families: dual representations and relative smoothness](https://refivu.com/en/papers/5e6a626e-e508-4fd8-80fa-b09e4ba2171a-bregman-geometry-in-regular-exponential-families-dual.md)
- [Data-Free Metrics Don't Work: The Missing Invariance Under Functionally Preserving Reparameterisations](https://refivu.com/en/papers/fc25b6b1-5380-409c-a68f-e908f390f16e-data-free-metrics-don-t-work-the-missing.md)

## Other paper commentary

- [Understanding and Improving Length Generalization in Recurrent Models](https://refivu.com/en/papers/f9cd6a9a-de1d-4e94-a91d-e03ad7e1036c-understanding-and-improving-length-generalization-in.md)
- [Deep Double Descent: Where Bigger Models and More Data Hurt](https://refivu.com/en/papers/b2896f17-e97a-4348-9222-94e1bc37bc56-deep-double-descent-where-bigger-models-and-more.md)
- [mixup: Beyond Empirical Risk Minimization](https://refivu.com/en/papers/cc1e3261-af7e-47fa-99d8-0806fbe6afcf-mixup-beyond-empirical-risk-minimization.md)
- [Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networks](https://refivu.com/en/papers/c1050ccf-ffa6-4158-8fff-24b3a8223df6-weight-normalization-a-simple-reparameterization-to.md)
- [Neural Tangent Kernel: Convergence and Generalization in Neural Networks](https://refivu.com/en/papers/00c81960-6246-4381-80a5-696fbeb26240-neural-tangent-kernel-convergence-and-generalization-in.md)
- [The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks](https://refivu.com/en/papers/9c072b5c-bd96-4202-8960-653ce6a7f2fb-the-lottery-ticket-hypothesis-finding-sparse-trainable.md)
- [History-Guided Video Diffusion](https://refivu.com/en/papers/6108fb68-ef01-4b85-84db-35036f8a36f4-history-guided-video-diffusion.md)
- [Preference learning made easy: Everything should be understood through win rate](https://refivu.com/en/papers/264a94d1-35b3-4713-ad28-4fb53ff57907-preference-learning-made-easy-everything-should-be.md)
- [NestQuant: Nested Lattice Quantization for Matrix Products and LLMs](https://refivu.com/en/papers/fcf33004-4ca4-4b0c-bd9b-474a77e2a35d-nestquant-nested-lattice-quantization-for-matrix-products.md)
- [EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling](https://refivu.com/en/papers/fab7b7ee-5523-498a-a636-595696465569-eq-vae-equivariance-regularized-latent-space-for-improved.md)
- [Stochastic Encodings for Active Feature Acquisition](https://refivu.com/en/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88-stochastic-encodings-for-active-feature-acquisition.md)
- [Ehrenfeucht-Haussler Rank and Chain of Thought](https://refivu.com/en/papers/cd83075a-e02f-4d42-b023-d9aff551bfbf-ehrenfeucht-haussler-rank-and-chain-of-thought.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [gradient descent](https://refivu.com/en/terms/7557852c745c-gradient-descent)
- [SGD](https://refivu.com/en/terms/96a2d83e44ca-sgd)
- [validation loss](https://refivu.com/en/terms/3fadf1366c80-validation-loss)
- [cosine schedule](https://refivu.com/en/terms/9a0025eb03ca-cosine-schedule)
- [Convexity](https://refivu.com/en/terms/9b4e4421964b-convexity)
- [wsd](https://refivu.com/en/terms/f6de15570046-wsd)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/3a431e7f-c68b-477b-a0ef-073c8d045e7b-the-surprising-agreement-between-convex-optimization-theory)
