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 ηstrat[0,1]\eta^{strat} \in [0,1] that quantifies how much a derived token (from multi-epoch repetition or paraphrasing) is worth relative to a fresh token.

  • Empirical findings: Fitting η\eta 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 NN and dataset size DD. 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 NN trained on a fixed corpus DD, how much can additional compute reduce loss?

Two Limiting Regimes

The paper frames the problem through two extremes:

  1. Compute-optimal scaling LChinL^{Chin}: Data is unbounded, compute is the bottleneck (classical scaling laws)
  2. Data-optimal scaling LDL^{D}: DD 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:

LChin(N,D)=E+ANα+BDβ\mathcal{L}^{\mathrm{Chin}}(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}}

to incorporate derived tokens DD':

LCD(N,D,D)=E+ANα+B(D+ηstrat(N,TPP,D/D)D)β\mathcal{L}^{\mathrm{CD}}(N, D, D') = E + \frac{A}{N^{\alpha}} + \frac{B}{(D + \eta^{\mathrm{strat}}(N, \mathrm{TPP}, D'/D) \cdot D')^{\beta}}

where:

  • η=1\eta = 1 means derived tokens are as informative as fresh data
  • η=0\eta = 0 means derived tokens provide no benefit
  • TPP = D/ND/N is the tokens-per-parameter ratio

Methodology

Experimental Setup

Training configuration:

  • Models: NN = 14M to 600M parameters
  • Fresh data: DD = 30M to 30B tokens from Dolma-3 150B corpus
  • Derived tokens: DD' = 30M to 120B tokens
  • Sequence length: 4096, batch size: 512
  • Optimizer: AdamW with cosine learning-rate decay
  • Hyperparameter sweep: learning rate {1e4,3e4,1e3,3e3}\in \{1e-4, 3e-4, 1e-3, 3e-3\}, weight decay {0.1,0.2,0.4,0.8,1.6}\in \{0.1, 0.2, 0.4, 0.8, 1.6\}

Data Expansion Strategies

  1. Multi-epoch repetition: Repeat the original corpus for additional epochs
  2. 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 η\eta

The empirical coefficient ηemp\eta_{emp} is defined as the unique value that reproduces observed loss when substituted into Eq. (2). Three key observations emerge:

  1. η\eta decays monotonically with TPP (fresh data availability)
  2. η\eta decays with expansion ratio r=D/Dr = D'/D
  3. The quantity ηr\eta \cdot r saturates to a finite limit as rr \to \infty

Functional Form

The exponential form for η\eta:

η=Rr(1er/R)\eta = \frac{R^{*}}{r}\left(1 - e^{-r/R^{*}}\right)

where RR^{*} is the saturation ceiling (maximum fresh-equivalent tokens a corpus can yield through expansion), modeled as:

R(D,N)=K(D/N)ρNσR^{*}(D, N) = K \cdot (D/N)^{\rho} \cdot N^{\sigma}

Empirical Validation / Results

Fitted Parameters

ParameterValue [95% CI]
EE1.35 [1.0, 1.6]
AA205 [90, 676]
BB16,597 [7,677, 34,475]
α\alpha0.283 [0.22, 0.37]
β\beta0.435 [0.40, 0.47]
Strategylog Kρ\rhoσ\sigmaRMSE
Repetition10.93 [9.7, 13.5]-0.42 [-0.71, -0.15]-0.41 [-0.55, -0.35]0.035
Paraphrase30.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 N{14,30}N \in \{14, 30\}M only and predicting held-out losses at N{60,100,190,370,600}N \in \{60, 100, 190, 370, 600\}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 (N50N \lesssim 50M)
  • Repetition wins for large models (N190N \gtrsim 190M)
  • Crossover at N94N \approx 94M

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-RR^{*} 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 DD' \to \infty, the CD law approaches:

LD(N,D)=E+ANα+B[D(1+R(D,N))]β\mathcal{L}^{D}(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{[D(1 + R^{*}(D, N))]^{\beta}}

Theoretical and Practical Implications

Three Training Regimes

The CD scaling law identifies three distinct regions:

  1. Compute-bound (between LChinL^{Chin} and LDL^D): Additional derived tokens DD' still reduce loss; compute is the binding resource
  2. Data-bound (between LDL^D and LNL^N): Derived data has saturated to RDR^{*}D; only fresh data can further reduce loss
  3. Model-bound (at LNL^N): Both compute and data have saturated; model size NN 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 600\lesssim 600M and small data budgets (<1×< 1\times Chinchilla)
  • Paraphrasing becomes ineffective for N7N \geq 7B or large data budgets (4×\geq 4\times Chinchilla)

Conclusion

Main Takeaways

  1. The CD scaling law provides a unified framework bridging compute-optimal and data-optimal training through the effectiveness function ηstrat\eta^{strat}
  2. The effectiveness of derived tokens diminishes with both model size and data availability, with the saturation ceiling RR^{*} following a power law in (D/N)(D/N) and NN
  3. The framework identifies which resource (compute, data, or model) is the binding constraint for any training configuration

Future Directions

  • Predicting η\eta 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 η\eta than any single approach

Limitations

  • The functional form absorbs residual misspecification of the 1-epoch fit (can push ηemp\eta_{emp} above 1)
  • Only learning rate and weight decay were swept; other hyperparameters could interact with η\eta
  • Over 250k H100-hours of compute were consumed; only two expansion strategies were fit at small-to-medium scale

Related papers