Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

  • 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…

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 · CC 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
What we show
Paper info, commentary and permitted figures from the original paper

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}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up