Scaling Data-Constrained Language Models
Niklas Muennighoff, Alexander M. Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, Colin Raffel

TL;DR
This paper investigates the effects of data repetition and scarcity on the training of large language models, proposing a scaling law for compute optimality and exploring methods to mitigate data limitations.
Contribution
It introduces a new scaling law for data-constrained language model training and evaluates strategies to improve performance under limited data conditions.
Findings
Training with up to 4 epochs of repeated data has minimal impact on loss.
Additional data repetition beyond a certain point offers diminishing returns.
Augmenting datasets with code data or removing filters can help mitigate data scarcity.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗Finnish-NLP/llama-7b-finnishmodel· 12 dl· ♡ 412 dl♡ 4
- 🤗Finnish-NLP/llama-3b-finnishmodel· 313 dl· ♡ 5313 dl♡ 5
- 🤗Finnish-NLP/Ahma-3Bmodel· 29 dl· ♡ 1229 dl♡ 12
- 🤗Finnish-NLP/Ahma-7Bmodel· 30 dl· ♡ 830 dl♡ 8
- 🤗RichardErkhov/Finnish-NLP_-_llama-7b-finnish-ggufmodel· 90 dl90 dl
- 🤗QuantFactory/Ahma-3B-GGUFmodel· 275 dl· ♡ 2275 dl♡ 2
- 🤗RichardErkhov/Finnish-NLP_-_llama-3b-finnish-ggufmodel· 138 dl138 dl
- 🤗RichardErkhov/Finnish-NLP_-_Ahma-3B-ggufmodel· 113 dl113 dl
- 🤗RichardErkhov/Finnish-NLP_-_Ahma-7B-4bitsmodel
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
