Bridging Compute- and Data-Optimal Pretraining
Summary (Overview)
-
Unified scaling law framework: The paper introduces Compute-Data (CD) scaling laws that bridge two limiting regimes: compute-optimal scaling (where data is unbounded) and data-optimal scaling (where the corpus is fixed and compute grows unbounded).
-
Token effectiveness function: Central to the framework is an effectiveness function that quantifies how much a derived token (from multi-epoch repetition or paraphrasing) is worth relative to a fresh token.
-
Empirical findings: Fitting across model sizes from 14M to 600M parameters on the Dolma-3 corpus reveals that token effectiveness decays with both model size and tokens-per-parameter ratio, and saturates as the corpus is expanded.
-
Three training regimes: The CD scaling law partitions training into compute-bound, data-bound, and model-bound regimes, showing that classic compute-optimal allocation is suboptimal across most practically relevant settings.
-
Practical guidance: The framework prescribes optimal compute-data allocation, identifies when to switch between repetition and paraphrasing, and shows that the "4-epoch rule" holds only for medium-scale models near 1× Chinchilla data budgets.
Introduction and Theoretical Foundation
Background and Motivation
Classical scaling laws (Hoffmann et al., 2022; Kaplan et al., 2020) assume an unbounded supply of fresh pretraining data, prescribing compute-optimal allocation between model size and dataset size . However, this assumption is becoming inaccurate:
- Compute continues to grow at exponential rates (Sevilla et al., 2022)
- High-quality pretraining data remains finite and costly to curate (Villalobos et al., 2024)
The central question becomes: For a model of size trained on a fixed corpus , how much can additional compute reduce loss?
Two Limiting Regimes
The paper frames the problem through two extremes:
- Compute-optimal scaling : Data is unbounded, compute is the bottleneck (classical scaling laws)
- Data-optimal scaling : is fixed, compute is unbounded (the asymptote of additional training on a given corpus)
Modern pretraining sits between these two limits.
Key Theoretical Contribution
The CD scaling law extends the classical Chinchilla law:
to incorporate derived tokens :
where:
- means derived tokens are as informative as fresh data
- means derived tokens provide no benefit
- TPP = is the tokens-per-parameter ratio
Methodology
Experimental Setup
Training configuration:
- Models: = 14M to 600M parameters
- Fresh data: = 30M to 30B tokens from Dolma-3 150B corpus
- Derived tokens: = 30M to 120B tokens
- Sequence length: 4096, batch size: 512
- Optimizer: AdamW with cosine learning-rate decay
- Hyperparameter sweep: learning rate , weight decay
Data Expansion Strategies
- Multi-epoch repetition: Repeat the original corpus for additional epochs
- Paraphrasing: Rephrase documents using SmolLM2-1.7B-Instruct, sampling up to 16 paraphrases per document with styles drawn uniformly from {question, math/wiki, FAQ, table}
Empirical Characterization of
The empirical coefficient is defined as the unique value that reproduces observed loss when substituted into Eq. (2). Three key observations emerge:
- decays monotonically with TPP (fresh data availability)
- decays with expansion ratio
- The quantity saturates to a finite limit as
Functional Form
The exponential form for :
where is the saturation ceiling (maximum fresh-equivalent tokens a corpus can yield through expansion), modeled as:
Empirical Validation / Results
Fitted Parameters
| Parameter | Value [95% CI] |
|---|---|
| 1.35 [1.0, 1.6] | |
| 205 [90, 676] | |
| 16,597 [7,677, 34,475] | |
| 0.283 [0.22, 0.37] | |
| 0.435 [0.40, 0.47] |
| Strategy | log K | RMSE | ||
|---|---|---|---|---|
| Repetition | 10.93 [9.7, 13.5] | -0.42 [-0.71, -0.15] | -0.41 [-0.55, -0.35] | 0.035 |
| Paraphrase | 30.50 [30.4, 30.8] | -1.52 [-1.71, -1.22] | -1.30 [-1.35, -1.26] | 0.024 |
Key Results
Cross-scale validation: Fitting on M only and predicting held-out losses at M achieves RMSE 0.079 on held-out points (vs. 0.048 in-sample), demonstrating clean transfer across an order of magnitude in model size.
Strategy comparison: At Chinchilla-optimal budget (TPP = 20):
- Paraphrasing significantly wins for small models (M)
- Repetition wins for large models (M)
- Crossover at M
Loss-to-downstream transfer: Runs from all strategies and scales collapse onto a single curve when plotted against validation BPB, confirming validation loss is a sufficient statistic for downstream capability.
Ablations: The constant- baseline (Muennighoff et al., 2025) is rejected by ~40% in relative leave-one-out RMSE. Both exponents in Eq. (5) are individually necessary.
Data-Optimal Scaling Limit
As , the CD law approaches:
Theoretical and Practical Implications
Three Training Regimes
The CD scaling law identifies three distinct regions:
- Compute-bound (between and ): Additional derived tokens still reduce loss; compute is the binding resource
- Data-bound (between and ): Derived data has saturated to ; only fresh data can further reduce loss
- Model-bound (at ): Both compute and data have saturated; model size is the binding resource
Compute-Data Pareto Frontier
The framework generalizes Chinchilla's compute-only optimization into a joint compute-data Pareto frontier. The empirical optimal path:
- Prefers scaling compute in the data-scarce regime
- Then scales both data and compute in equal proportion
- Enters a basin where fresh data dominates and further compute yields diminishing returns
Strategy Selection Guidance
- Recommended epochs decrease as model size and data budget grow; 4-epoch training is recommended only for medium-scale models (~3B) near 1× Chinchilla
- Paraphrasing is preferred for models M and small data budgets ( Chinchilla)
- Paraphrasing becomes ineffective for B or large data budgets ( Chinchilla)
Conclusion
Main Takeaways
- The CD scaling law provides a unified framework bridging compute-optimal and data-optimal training through the effectiveness function
- The effectiveness of derived tokens diminishes with both model size and data availability, with the saturation ceiling following a power law in and
- The framework identifies which resource (compute, data, or model) is the binding constraint for any training configuration
Future Directions
- Predicting from corpus statistics: Using summary statistics like token diversity, n-gram overlap, or perplexity distributions to assess expansion strategies before committing compute
- Additional strategies: Self-distillation, synthetic structured data, and combinations of strategies that may yield higher effective than any single approach
Limitations
- The functional form absorbs residual misspecification of the 1-epoch fit (can push above 1)
- Only learning rate and weight decay were swept; other hyperparameters could interact with
- Over 250k H100-hours of compute were consumed; only two expansion strategies were fit at small-to-medium scale
Related papers
- Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMs
Lexical density, not just length, causally degrades LLM retrieval, activating lost-in-the-middle effects at contexts far below advertised limits.
- On the Nonlinearity of Learning Rate Scaling for LLM Training
The optimal learning rate for LLM training exhibits upward curvature at scale, breaking log-linear scaling, but effective learning rate with data-axis extrapolation transfers accurately with only ~2% extra compute.
- Priming: Hybrid State Space Models From Pre-trained Transformers
Priming initializes hybrid state-space models from pre-trained Transformers using less than 0.5% of the token budget, yielding faster, lighter models that outperform source Transformers on reasoning benchmarks.