Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations

Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben Allal, L. V. Werra, Martin Jaggi

arXiv:2405.18392 · 2026-07-27 공개 · arXiv · PDF

model-scaling scaling-laws gpu-efficiency stochastic-weight-averaging compute-optimization training-schedules

Abstract

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

한국어 요약

한 줄 요약

고정 학습률과 쿨다운을 사용한 학습 스케줄이 코사인 스케줄과 유사한 성능을 제공하며, 스케일링 연구의 컴퓨팅 비용을 줄인다.

핵심 기여도

핵심 아이디어

기존 LLM 학습에서는 코사인 스케줄이 널리 사용되지만, 이는 학습 길이가 고정되어 있어 다양한 실험을 위해 모델을 여러 번 처음부터 학습해야 하는 문제가 있었다. 본 연구는 고정 학습률에 쿨다운 단계를 추가한 간단한 스케줄을 제안하며, 이는 코사인 스케줄과 유사한 성능을 보인다. 특히, 쿨다운 단계가 충분히 길면 코사인 스케줄을 초과하는 경우도 있다. 또한, SWA를 사용하면 학습 중간에도 성능을 개선할 수 있으며, 이는 추가 비용 없이 가능하다. 이는 곧, 스케일링 실험의 반복 비용을 줄이고, 연구 효율성을 높일 수 있음을 시사한다.

기술적 접근법

주요 결과

의의 및 한계

본 연구는 LLM 학습 스케줄의 복잡성을 줄이고, 스케일링 연구의 반복 비용을 낮추는 데 기여한다. 특히, 쿨다운 단계와 SWA를 활용하면 학습 중간에도 성능을 추적할 수 있어, 과잉 학습 환경에서 유연성을 제공한다. 그러나, 최적의 스케줄을 제시하기보다는 기존 코사인 스케줄과 대안을 비교하는 데 초점을 뒀기 때문에, 최고 성능을 보장하지는 않는다. 또한, 특정 데이터셋이나 아키텍처에 대한 일반화 가능성은 추가 실험 필요.

실용적 활용

LLM 학습 연구자와 엔지니어가 다양한 아키텍처나 데이터셋에 대해 반복 실험을 저비용으로 수행할 수 있도록 지원한다. 특히, 과잉 학습이 필요한 상황에서 유연한 학습 스케줄링이 필요할 때 활용 가능하며, 데이터셋 변경 시 스케일링 법칙을 빠르게 업데이트할 수 있다.