[Paper Review] Scaling Data-Constrained Language Models
The paper investigates how to scale large language models when data is limited, introducing data-constrained scaling laws that account for repetition, and showing that more epochs and smaller models can outperform single-epoch, larger-model setups under a fixed compute budget.
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.
Motivation & Objective
- Motivate the study by addressing data limits as model sizes grow.
- Quantify the impact of repeating data under fixed compute budgets.
- Develop and validate a data-constrained scaling law that extends Chinchilla scaling.
- Explore complementary strategies like code augmentation and filtering to mitigate data scarcity.
Proposed method
- Train transformer language models with GPT-2 architecture up to 8.7B parameters across up to 900B tokens.
- Introduce a data-constrained scaling framework by splitting data into unique tokens and repetitions.
- Generalize the loss scaling law to account for data repetition via effective data and effective parameters (D′ and N′) with exponential-decay-like terms.
- Fit the scaling law parameters using empirical results from 400+ training runs.
- Evaluate allocation and return through fixed unique data, fixed FLOPs, and parametric extrapolation.
- Experiment with code data augmentation and data filtering strategies to assess complementary data strategies.
Experimental results
Research questions
- RQ1How should compute be allocated between model size and data epochs when data is limited?
- RQ2What is the value and diminishing returns of repeating data under a fixed compute budget?
- RQ3Can a data-constrained scaling law extend the Chinchilla framework to repeated-data regimes?
- RQ4Do strategies like code augmentation and relaxed filtering improve downstream performance under data scarcity?
Key findings
- Repeated data yields diminishing returns after about 16 epochs, with significant gains up to that point.
- Under data constraints, allocate more compute to more epochs rather than to larger models, especially as repetitions exceed initial optimal points.
- A data-constrained scaling law accurately predicts loss trends and outlines an efficient frontier differing from Chinchilla when data is repeated.
- Code data augmentation can provide up to roughly a 2x increase in effective tokens for natural language tasks.
- Deduplication filtering is not consistently beneficial for downstream tasks, while perplexity-based filtering helps on noisier datasets.
- Combining code augmentation with data repetition can match the performance of having more unique data from the start.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.