Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Scaling Data-Constrained Language Models

About

The current trend of scaling language models involves increasing both parameter count and training dataset size. Extrapolating this trend suggests that training dataset size may soon be limited by the amount of text data available on the internet. Motivated by this limit, we investigate scaling language models in data-constrained regimes. Specifically, we run a large set of experiments varying the extent of data repetition and compute budget, ranging up to 900 billion training tokens and 9 billion parameter models. We find that with constrained data for a fixed compute budget, training with up to 4 epochs of repeated data yields negligible changes to loss compared to having unique data. However, with more repetition, the value of adding compute eventually decays to zero. We propose and empirically validate a scaling law for compute optimality that accounts for the decreasing value of repeated tokens and excess parameters. Finally, we experiment with approaches mitigating data scarcity, including augmenting the training dataset with code data or removing commonly used filters. Models and datasets from our 400 training runs are freely available at https://github.com/huggingface/datablations.

Niklas Muennighoff, Alexander M. Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, Colin Raffel• 2023

Related benchmarks

TaskDatasetResultRank
Zero/Few-shot Language ModelingStandard Downstream Tasks (arc-c, arc-e, boolq, hellaswag, piqa, siqa, winogrande)
ARC-C Accuracy45.14
55
Bivariate scaling behavior extrapolationBirds
RMSLE0.34
35
Bivariate scaling behavior extrapolationCars
RMSLE0.303
35
Bivariate scaling behavior extrapolationImageNet
RMSLE0.217
35
Extrapolation Accuracy PredictionJapanese, Indonesian, and Swahili All 1-stage + 2-stage data (test)
R^2 (C)0.55
8
Scaling-law extrapolationTinyStories high-C holdout
RMSE (log space)0.095
6
Scaling-law extrapolationMNIST high-D holdout
RMSE (log space)0.122
6
Scaling-law extrapolationDarcy high-C (holdout)
RMSE (log space)0.181
6
Scaling-law extrapolationMuennighoff grid high-C holdout
RMSE (log space)0.087
6
Scaling-law extrapolationCIFAR-100 high-D holdout
RMSE (log space)0.171
6
Showing 10 of 30 rows

Other info

Follow for update