Full text not available for this paper
A Scaling Theory of Multi-Epoch Pretraining: Late-Time Overfitting and Ensembling
Summary (Overview)
-
Core Problem: The paper addresses the emerging regime where language model pretraining is limited by total available data rather than compute, requiring new scaling laws that account for data reuse (multiple training epochs) and ensembling.
-
Key Empirical Finding: On FineWeb language-model experiments, logit averaging across independently trained models reduces late-training deterioration, delays optimal stopping time, and outperforms wider or deeper single models at matched parameter-token budgets.
-
Theoretical Contribution: The authors derive a dynamical mean-field theory (DMFT) for multi-epoch stochastic gradient descent in power-law random-feature ensembles, tracking error correlations across epochs and between ensemble members.
-
Scaling Laws: They derive compute-allocation laws at fixed data and model sizes, showing ensemble size grows with compute at least as fast as training time per member, with excess test loss decreasing as a power of compute.
-
Optimal Stopping: The theory predicts that ensembling reduces prediction variance responsible for late-time growth in expected test error, fundamentally changing the optimal stopping time.
Introduction and Theoretical Foundation
Background and Motivation
Traditional scaling laws (Hoffmann et al., 2022; Kaplan et al., 2020) assume one-pass training where model size and data grow together with compute. However, the supply of high-quality unique text may not grow at the same rate as compute (Kim et al., 2025; Muennighoff et al., 2023; Villalobos et al., 2024). When a corpus is reused, additional optimization has two opposing effects:
- It continues to fit the available data
- It amplifies noise tied to the particular dataset, model, or training order
This creates a non-monotone validation curve even as training loss keeps falling.
Theoretical Framework
The paper builds on the DMFT framework of Bordelon et al. (2024), extending it to fixed-order, multi-epoch SGD. The model considers an ensemble of random-feature models, each with trainable parameters and independently sampled feature matrices, trained on the same examples using fixed-order SGD.
The random-feature predictor is defined as:
where the training feature vectors are independent draws from with , has independent standard Gaussian entries, and .
Key Notation
| Symbol | Meaning | Symbol | Meaning |
|---|---|---|---|
| Model width | Population feature dimension | ||
| Training samples | Samples per update | ||
| Ensemble members | Training epochs | ||
| Updates per epoch | Total updates |
Methodology
Multi-Epoch Dynamics
The discrepancy between target and learned feature coefficients is:
The exact residual recursion for fixed-order SGD is:
DMFT Equations
The response equations characterize the system through:
The correlations and losses are given by:
Power-Law Source/Capacity Conditions
The analysis assumes power-law spectra:
where describes feature-spectrum decay and describes target power.
Empirical Validation / Results
Late-Time Growth Near Interpolation
At (the interpolation threshold), the growing contribution to a single model's test loss is:
This shows the expected test error grows as at late times—the root cause of late-training overfitting.
Ensembling and Optimal Stopping
For an ensemble of models at :
where is one member's expected squared error and is the expected product of errors from two distinct members. The asymptotic expansions are:
Compute Allocation Results
Table 2: Optimal stopping and compute allocation at fixed N = P
| Condition | Optimal stopping | Ensemble size | Excess loss |
|---|---|---|---|
| 1 |
Language-Model Experiments (FineWeb)
Key empirical results:
-
Validation loss follows a U-shaped trajectory while training loss continues to fall, with minima after roughly 9–14 epochs across tested corpus sizes.
-
Ensembling reduces late-time deterioration: Logit averaging lowers validation loss and reduces its late-time rise. An ensemble of four base models attains validation loss 0.16 nats/token lower than a single model with twice the width.
-
Larger models reach minima earlier: Optimal epoch count falls from 21 to 6 over the tested model-size range (11M–679M parameters).
-
Ensembles outperform larger single models: Four-member ensembles achieve validation losses 0.12–0.20 nats lower than corresponding wider or deeper single models at matched parameter-token budgets.
-
Ensembling delays optimal stopping: The optimal stopping epoch scales as across model configurations.
Theoretical and Practical Implications
Theoretical Implications
-
Breakdown of Chinchilla-style scaling: The theory predicts compute-optimal scaling breaks down around compute scale where , with an "effectively online" regime at low compute and a "possible overfit" regime at higher compute.
-
Mechanistic understanding of ensembling: Ensembling reduces prediction variance across random projections by a factor of , while the shared-data error (bias) remains. This changes the bias-variance tradeoff that determines optimal stopping.
-
Universal scaling laws: The excess loss above the limiting loss decreases as a power of compute: where depending on the source-capacity relationship.
Practical Implications
-
Compute allocation strategy: When data is fixed, additional compute should be allocated to increasing ensemble size at least as fast as training time per member, rather than solely increasing model size.
-
Optimal stopping rules: Training should be stopped earlier for larger models and later for ensembles, with the optimal epoch count depending on both model size and ensemble size.
-
Architecture considerations: At approximately 170M parameters, a deeper, narrower model attains loss 0.06 nats/token below a shallower, wider model, suggesting architecture matters beyond parameter count.
Conclusion
This paper provides a comprehensive theoretical and empirical framework for understanding multi-epoch pretraining in the data-constrained regime. The key contributions are:
-
A multi-epoch DMFT that tracks error correlations within epochs, across epochs, and between ensemble members, with a finite-horizon loss-approximation bound for Gaussian features.
-
Ensemble-dependent stopping laws for noiseless Gaussian gradient flow at , showing how ensembling changes optimal training time.
-
Compute-allocation laws under power-law source/capacity conditions, showing ensemble size should grow with compute at least as fast as training time per member.
The authors note that a quantitative connection to Transformer language models requires accounting for feature learning and optimizer dynamics, and that their label-noise analysis provides a starting point for extending these laws to noisy targets. Future work includes analyzing reshuffling effects and how changing data order affects cross-epoch correlations.
Main takeaway: When training on a fixed dataset, the number of training epochs and ensemble members should be chosen jointly, as ensembling suppresses the late-time error growth that makes longer training harmful, effectively converting a data-limited problem into one where additional compute can still yield substantial gains.
Related papers
- Loopback Transformer: Towards a Unified View of Residual Looped Transformers
The Loopback Transformer stores block updates separately with decay-bounded attention, beating standard Transformers with 40-75% of their parameters.
- Delivered, Not Used: Evaluating Agent Memory at Its Point of Use
MemUse reveals that LLM memory systems deliver mostly irrelevant or unused content, with task outcomes hiding beneficial use in failures and harmful use in successes.
- There Is No Free Loop: When Does Looping a Trained Model Pay for Its Inference Compute?
Looping transformer layers only improves accuracy in small 0.8B models, not at 4B or 9B, and is only worthwhile under a fixed parameter budget.