DataDecide: How to Predict Best Pretraining Data with Small Experiments

Ian Magnusson, Nguyen Tai, Ben Bogin, David Heineman, Jena D. Hwang, Luca Soldaini, Akshita Bhagia, Jiacheng Liu, Dirk Groeneveld, Oyvind Tafjord, Noah A. Smith, Pang Wei Koh, Jesse Dodge · DOI

TL;DR

Training massive language models is incredibly expensive, making it crucial to pick the right pretraining data. This paper introduces DataDecide, a comprehensive benchmark and dataset of pretraining experiments, to evaluate how well small-scale experiments can predict the best data for large models. They found that simple single-scale evaluations are surprisingly effective, and using continuous likelihood metrics as proxies can significantly improve prediction accuracy for certain tasks.

What Problem Does This Paper Address?

The core challenge is the immense cost of pretraining large language models (LLMs). This cost makes it impractical to experiment with many different pretraining datasets at full scale. Researchers often rely on smaller-scale experiments to guide decisions about which datasets to use for larger, more expensive training runs. However, it's unclear which methods for making these small-scale decisions are most reliable in predicting the performance of the final, large-scale models. Existing approaches include:

  • Single-scale experiments: Training models at a small size (e.g., fewer parameters and tokens) and using their performance to rank datasets.
  • Scaling laws: Fitting mathematical models to performance observed across multiple small scales to extrapolate to larger scales.

The problem is that these methods haven't been rigorously validated against the "counterfactual outcome" – meaning, we don't have a large-scale dataset of experiments to definitively say which small-scale method works best. This paper aims to fill that gap by creating a large, controlled experimental suite to empirically study and compare these decision-making methods.

Methods

The authors introduce DataDecide, a large-scale experimental suite designed to evaluate methods for predicting the best pretraining data. Key aspects include:

  • Controlled Pretraining Experiments: They pretrain a massive number of models (over 30,000 checkpoints) across 25 different "data recipes" (variations of pretraining corpora). These recipes involve different sources, deduplication strategies, and filtering techniques.
  • Multiple Scales: Experiments are conducted at various model sizes, ranging from 4 million to 1 billion parameters, with a fixed token-to-parameter ratio.
  • Random Seeds: For the largest models (1B parameters), they include three random seed reruns to quantify the impact of initialization and data order on performance. Smaller models are trained with fewer seeds but are terminated early to save compute.
  • Evaluation Benchmarks: All models are evaluated on a suite of 10 downstream tasks from the OLMES benchmark.
  • Prediction Methods Tested:
    • Single-Scale Ranking: Evaluating models at a small scale and directly ranking datasets based on their performance.
  • Scaling Laws: Implementing and testing 8 different multi-scale scaling law approaches to predict performance at the target 1B scale.
  • Decision Accuracy Metric: A novel metric that measures how often a small-scale prediction correctly identifies the better dataset between any pair of datasets, compared to their performance at the target scale.

Datasets

  • Training Data: The paper utilizes 25 different "data recipes" for pretraining. These are derived from popular corpora like Dolma, RefinedWeb, C4, and FineWeb, with various interventions such as source mixing, deduplication, and quality filtering.
  • Evaluation Benchmarks: The models are evaluated on the OLMES suite, which consists of 10 multiple-choice question-answering benchmarks. These include MMLU, HellaSwag, ARC Challenge, ARC Easy, PIQA, CommonsenseQA, SocialIQA, OpenBookQA, BoolQ, and WinoGrande. The paper notes that these tasks are generally well-suited for their model scales, with the exception of BoolQ.

Key Insights and Ideas

  • Single-scale is surprisingly strong: The simplest method – ranking datasets based on performance at a single, small model scale – is a remarkably effective baseline for predicting performance at a much larger scale (1B parameters), achieving around 80% decision accuracy.
  • Scaling laws aren't magic (yet): None of the 8 tested scaling law methods outperformed the simple single-scale approach in terms of the compute-to-decision accuracy trade-off. This suggests that current scaling law formulations might not be capturing the nuances of data scaling as effectively as direct small-scale evaluation.
  • Proxy metrics matter: Using continuous likelihood metrics (like "Correct Prob" or "Total Prob") as proxies for discrete accuracy metrics at small scales can significantly improve prediction accuracy, especially for tasks that are difficult to predict with standard accuracy metrics at small scales.
  • Task-specific predictability: The ease of predicting data performance varies greatly by task. Some tasks (like ARC Easy and MMLU) are predictable with very little compute, while others (like HellaSwag) require substantially more.
  • Noise and Spread are Key: Decision accuracy is influenced by both the "noise" (run-to-run variance) and the "spread" (performance difference between datasets) observed in evaluations. Tasks with low noise and high spread are generally easier to predict.

Key Results

  • Ranking models at a single small size (e.g., 150M parameters) predicts the best models at the target 1B scale with approximately 80% decision accuracy.
  • Using continuous likelihood metrics (like "Correct Prob") as proxies for discrete accuracy metrics makes benchmarks like MMLU, ARC, HellaSwag, MBPP, and HumanEval over 80% predictable at the 1B scale using just 0.01% of the compute.
  • The paper released DataDecide, a suite of over 30,000 models, 25 pretraining corpora, and evaluation results, making it the most extensive open resource for studying data scaling.

Limitations and Future Work

  • Fixed Token-to-Parameter Ratio: The study is limited to a single ratio of tokens to parameters (100:1), which is common for inference efficiency but might not cover all scenarios.
  • Limited Model Configurations: While 14 model sizes are used, exploring more configurations would always be beneficial.
  • Representativeness of Data Recipes: The 25 data recipes are extensive, but there's always a possibility that findings might not generalize to entirely novel data recipes.
  • Focus on Multiple-Choice Tasks: The primary evaluations use multiple-choice tasks. Future work could explore other benchmark types.

The authors suggest that future research can leverage DataDecide to:

  • Develop improved scaling law methods.
  • Assess new evaluation benchmarks.
  • Pretrain additional models to compare against their existing suite.
  • Explore changing target metrics (e.g., using "Correct Prob" as the target for code tasks).

Summary updated

BibTeX
@inproceedings{magnusson2025datadecide,
  author = {Ian Magnusson and Nguyen Tai and Ben Bogin and David Heineman and Jena D. Hwang and Luca Soldaini and Akshita Bhagia and Jiacheng Liu and Dirk Groeneveld and Oyvind Tafjord and Noah A. Smith and Pang Wei Koh and Jesse Dodge},
  title = {{DataDecide: How to Predict Best Pretraining Data with Small Experiments}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=p9YlQPF8fE},
}
Figure