Papers › Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations

Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations

28 May 2024arXiv:2405.18392archive 2025-07-28

Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben allal, Leandro von Werra, Martin Jaggi

Scale has become a main ingredient in obtaining strong machine learning models. As a result, understanding a model's scaling properties is key to effectively designing both the right training setup as well as future generations of architectures. In this work, we argue that scale and training research has been needlessly complex due to reliance on the cosine schedule, which prevents training across different lengths for the same model size. We investigate the training behavior of a direct alternative -- constant learning rate and cooldowns -- and find that it scales predictably and reliably similar to cosine. Additionally, we show that stochastic weight averaging yields improved performance along the training trajectory, without additional training costs, across different scales. Importantly, with these findings we demonstrate that scaling experiments can be performed with significantly reduced compute and GPU hours by utilizing fewer but reusable training runs. Our code is available at \url{https://github.com/epfml/schedules-and-scaling/}.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.18392")

Code

Syntology Ran 7 of 13 code samples harvested from 3 repositories linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 3 ran; community (archive-listed): 5 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

epfml/schedules-and-scaling officialmentioned in papermentioned on GitHubpytorchMIT report
fabian-sp/lr-scheduling mentioned on GitHub report
frotaur/icmlbackperp mentioned on GitHubpytorch report
frotaur/llm-arrows-of-time mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
6ran
6unverified

Licence: 4 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

move_to_cpu epfml/schedules-and-scaling/src/logger/logger.py official repository ran MIT (permissive) · 1bd86a911c3f78a3 · report
precompute_freqs_cis epfml/schedules-and-scaling/src/models/llama.py official repository ran MIT (permissive) · a1d6f89d43fc42e1 · report
self_preserving_overwrite epfml/schedules-and-scaling/src/logger/logger.py official repository ran MIT (permissive) · 198aea734522a443 · report
apply_rotary_emb epfml/schedules-and-scaling/src/models/llama.py official repository unverified MIT (permissive) · 9891174b43bd9c9a · report
cos_inf_schedule epfml/schedules-and-scaling/src/optim/utils.py official repository unverified MIT (permissive) · 91d9a7a7d597054b · report
get_batch epfml/schedules-and-scaling/src/optim/utils.py official repository unverified MIT (permissive) · f9dc20d4ad58a5f9 · report
get_model epfml/schedules-and-scaling/src/models/utils.py official repository unverified MIT (permissive) · 843859340885ab12 · report
wsd_schedule epfml/schedules-and-scaling/src/optim/utils.py official repository unverified MIT (permissive) · e8ac769090ecbe45 · report
calculate_slope fabian-sp/lr-scheduling/reanalysis/analysis_horizon_transfer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · c2122ff2161f0942 · report
multiget frotaur/icmlbackperp/modules/tokenizer.py community (archive-listed) ran no licence file found · pointer only · db9d402a23bb81a3 · report
put_and_return frotaur/icmlbackperp/modules/tokenizer.py community (archive-listed) ran no licence file found · pointer only · e21c63d05fe20e51 · report
remove_none_vals frotaur/icmlbackperp/modules/tokenizer.py community (archive-listed) ran no licence file found · pointer only · b5644fc0a380fa78 · report
load_model frotaur/icmlbackperp/modules/models/load_model.py community (archive-listed) unverified no licence file found · pointer only · 98497683abdc8f17 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Stochastic Weight Averaging

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections