TL;DR
As the internet's text data becomes a bottleneck for scaling language models, this paper explores training with repeated data. They found that repeating data up to 4 epochs yields minimal loss compared to unique data, and propose a new scaling law that accounts for this data constraint, suggesting a shift towards more epochs rather than just more parameters.
What Problem Does This Paper Address?
The current paradigm for scaling Large Language Models (LLMs) involves increasing both the number of parameters and the size of the training dataset. However, extrapolating this trend suggests that we might soon exhaust the available text data on the internet. This poses a significant challenge for continued LLM development. The paper addresses this by investigating how to effectively scale LLMs when the amount of unique training data is limited, specifically by exploring the impact of repeating existing data.
Methods
The core of this paper's methodology involves a large-scale empirical study of LLM training under data-constrained conditions. They trained over 400 models, varying parameter counts (up to 9 billion) and training tokens (up to 900 billion), with a focus on data repetition (epochs).
Key methodological contributions include:
- Data-Constrained Scaling Law: They propose a new scaling law that generalizes existing ones (like Chinchilla's) by incorporating the concept of "effective data" and "effective parameters." This accounts for the diminishing returns of repeated data and excess parameters.
- Empirical Validation: They conducted extensive experiments to fit the parameters of their new scaling law and validate its predictive power.
- Data Augmentation and Filtering Strategies: Beyond repetition, they explored other methods to mitigate data scarcity, such as incorporating code data and experimenting with different filtering techniques (deduplication and perplexity filtering).
Datasets
The paper primarily uses subsets of the C4 dataset for training their models. They also mention using Wikipedia for language model training in the context of perplexity filtering. For code augmentation, they refer to The Stack dataset. No new benchmarks were introduced, but they evaluated on 19 natural language tasks for downstream performance.
Key Insights and Ideas
- Repetition is (Mostly) Okay: Training with repeated data for up to 4 epochs yields negligible changes in loss compared to using entirely unique data, especially for a fixed compute budget. This is a significant finding, as many prior LLMs were trained on a single epoch.
- Diminishing Returns are Real: While repetition is beneficial, the value of adding compute eventually decays to zero with excessive repetition. Similarly, having too many parameters beyond what the data can support also leads to diminishing returns.
- Shift in Allocation Strategy: The data-constrained scaling law suggests that to maximize performance when repeating data, it's more effective to train smaller models for more epochs, rather than strictly following the "Chinchilla scaling laws" which advocate for proportional scaling of parameters and data. This implies a faster scaling of epochs relative to parameters.
- Code Augmentation is Powerful: Incorporating code data can significantly boost performance, even on natural language tasks, by effectively increasing the training data size.
- Filtering is Data-Dependent: Filtering techniques like perplexity filtering are most effective on noisy datasets. Deduplication, however, did not show significant benefits in their experiments for downstream tasks.
Key Results
- Models trained with up to 4 epochs of repeated data showed negligible loss differences compared to models trained on unique data for a fixed compute budget.
- Their proposed data-constrained scaling law provides better predictions of loss in data-limited regimes compared to existing laws.
- For a data budget of 100M unique tokens, they found that allocating compute to more parameters and epochs (around 20-60x more than compute-optimal for a single epoch) yielded the best results.
- Incorporating code data (up to 50% of the data budget) showed no performance degradation on natural language tasks and even provided benefits for specific tasks like reasoning and generation.
- Perplexity filtering was found to be effective, while deduplication filtering did not significantly improve downstream performance in their setup.
Limitations and Future Work
- Overfitting with Excessive Repetition: The paper acknowledges that extreme repetition can lead to overfitting, and their scaling law does not explicitly model the point where excess epochs or parameters could hurt performance.
- Filtering Effectiveness: While perplexity filtering was beneficial, the paper notes that deduplication might still have value in reducing memorization, which wasn't directly evaluated.
- Future Work: The authors suggest exploring further methods for using current data more effectively, in addition to collecting more data. They also highlight the potential for smaller models to be cheaper for inference, even if they require more epochs for training. The availability of their models and datasets is intended to facilitate future research in this area.
Summary updated