A Hitchhiker's Guide to Scaling Law Estimation

Leshem Choshen, Yang Zhang, Jacob Andreas
10/15/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: IBM/ColPret (22 stars, MIT, last commit 2025-09-18).

Abstract

Scaling laws predict the loss of a target machine learning model by extrapolating from easier-to-train models with fewer parameters or smaller training sets. This provides an efficient way for practitioners and researchers alike to compare pretraining decisions involving optimizers, datasets, and model architectures. Despite the widespread use of scaling laws to model the dynamics of language model training, there has been little work on understanding how to best estimate and interpret them. We collect (and release) a large-scale dataset containing losses and downstream evaluations for 485 previously published pretrained models. We use these to estimate more than 1000 scaling laws, then derive a set of best practices for estimating scaling laws in new model families. We find that fitting scaling laws to intermediate checkpoints of training runs (and not just their final losses) substantially improves accuracy, and that -- all else equal -- estimates of performance are generally most accurate when derived from other models of similar sizes. However, because there is a significant degree of variability across model seeds, training multiple small models is sometimes more useful than training a single large one. Moreover, while different model families differ scaling behavior, they are often similar enough that a target model's behavior can be predicted from a single model with the same architecture, along with scaling parameter estimates derived from other model families.

View on arXivView PDF

Code Implementations(1)

IBM/ColPretCommunity100%
MIT

Efficient Scaling laws and collaborative pretraining.

222Python, Jupyter NotebookApr 1, 20241 years agoMIT

Similar Papers

Cite this paper

@article{choshen2024hitchhikers,
  title  = {A Hitchhiker's Guide to Scaling Law Estimation},
  author = {Leshem Choshen and Yang Zhang and Jacob Andreas},
  year   = {2024},
  eprint = {2410.11840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.11840v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.11840.svg)](https://codeofpaper.com/paper/2410.11840)

Discussion