Bridging Compute- and Data-Optimal Pretraining

Tian Qin, Kimia Hamidieh, David Alvarez-Melis

TL;DR

This paper introduces Compute-Data (CD) scaling laws, a unified framework that accounts for the reality of finite high-quality pretraining data. By defining a "token effectiveness" function ($\eta$), the authors quantify how much value derived tokens (like repetitions or paraphrases) add compared to fresh ones, providing a roadmap for optimal compute allocation in data-constrained regimes.

What Problem Does This Paper Address?

Classical scaling laws, most notably the "Chinchilla" laws, have guided the AI industry by prescribing how to balance model size ($N$) and dataset size ($D$) to achieve optimal performance for a given compute budget. However, these laws assume an unbounded supply of fresh data.

We are rapidly approaching a "data wall" where high-quality human-generated text is becoming scarce while available compute continues to grow exponentially. When fresh data runs out, researchers often resort to "derived" tokens—training for multiple epochs on the same data or using synthetic paraphrases. Until now, we lacked a principled way to predict how much these strategies actually help. This paper bridges the gap between compute-optimal scaling (infinite data) and data-optimal scaling (fixed data, infinite compute).

Methods

The authors propose an extension to the Chinchilla scaling law by introducing a token effectiveness function, $\eta$. This function acts as a "fresh-token equivalent" exchange rate: if $\eta=0.5$, a derived token is worth half as much as a new one.

The core of their CD-scaling law is: $$L(N, D, D') = E + \frac{A}{N^\alpha} + \frac{B}{(D + \eta \cdot D')^\beta}$$ where $D'$ represents the additional budget of derived tokens.

Key methodological highlights include:

  • Functional Form of $\eta$: They found that $\eta$ isn't a constant. It follows an exponential decay toward a saturation ceiling ($R^*$), which itself follows a power law based on model size and the tokens-per-parameter (TPP) ratio.
  • Experimental Sweep: They trained models ranging from 14M to 600M parameters on the Dolma-3 corpus, testing two main expansion strategies: multi-epoch repetition and paraphrasing (generated via SmolLM2-1.7B-Instruct).
  • Joint Optimization: Unlike previous work that fits saturation budgets in isolation, they jointly optimized all parameters of the scaling law, ensuring it remains predictive across different regimes.

Datasets

  • Pretraining: The Dolma-3 150B corpus was used as the primary data source.
  • Evaluation: A wide array of benchmarks was used to ensure validation loss improvements translated to real capabilities. These included:
  • LM-based (BPB): GSM8K, TriviaQA, HumanEval, MBPP, NQ Open, WebQS, SQuAD, and IFEval.
  • Accuracy-based: LAMBADA, HellaSwag, OpenBookQA, RACE, and SQuAD.

Key Insights and Ideas

  • The Three Regimes: The paper partitions training into three distinct operational zones:
  • Compute-bound: Extra training on derived tokens still significantly reduces loss.
  • Data-bound: Derived tokens have saturated; only fresh data can further reduce loss.
  • Model-bound: Both data and compute have saturated; the model size $N$ is the bottleneck.
The CD-scaling law partitions training into three regimes: compute-bound, data-bound, and model-bound.
  • Diminishing Returns of Scale: Perhaps most importantly, the effectiveness of derived tokens diminishes as models get larger and as the initial data becomes more abundant (higher TPP). Larger models "digest" data more efficiently and thus run out of new things to learn from repetitions faster.
  • Validation Loss is a Sufficient Statistic: Regardless of whether you use repetition or paraphrasing, if two models achieve the same validation loss, they generally perform identically on downstream benchmarks. This confirms that optimizing for loss remains a valid proxy for capability.

Key Results

  • Repetition vs. Paraphrasing: Paraphrasing is significantly more effective for small models ($\lesssim 600M$) and small data budgets. However, for larger models ($N \gtrsim 7B$) or large data budgets ($\ge 4\times$ Chinchilla), paraphrasing becomes ineffective, and simple repetition is often better or equivalent.
  • The 4-Epoch Rule is Nuanced: The common industry heuristic of training for 4 epochs is only "optimal" for medium-scale models (~3B parameters) at the Chinchilla data scale. For larger models, the recommended number of epochs decreases.
  • Predictive Power: The CD-scaling law fit on small models (14M-30M) successfully extrapolated to predict the performance of models 20x larger (600M), proving its utility for planning expensive large-scale runs.
Empirical data shows that token effectiveness $\eta$ decays as the expansion ratio $r$ and TPP increase.

Limitations and Future Work

  • Hyperparameter Sensitivity: The authors noted that the quality of the 1-epoch fit is crucial, as any residual errors are "absorbed" into the $\eta$ function.
  • Unexplored Strategies: The study focused on repetition and paraphrasing. Other strategies like self-distillation or synthetic structured data remain to be integrated into this framework.
  • Corpus-Specific $\eta$: Currently, $\eta$ is fit empirically. A major future direction is predicting $\eta$ directly from corpus statistics (like diversity or n-gram overlap) without needing to run expensive training sweeps.
  • Compute Cost: Fitting these laws is extremely expensive; this study alone consumed over 250,000 H100-hours.

Summary updated

BibTeX
@inproceedings{qin2026bridging,
  author = {Tian Qin and Kimia Hamidieh and David Alvarez-Melis},
  title = {{Bridging Compute- and Data-Optimal Pretraining}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6HVSfPO1cT},
}
Figure