Sewon Min's Preprint Shows Smaller Batches Beat Overfitting on Repeated Training Data
New research finds smaller batches and tuned recipes dramatically improve pretraining when you have more compute than unique data.
Takeaways
- Jointly tuning batch size and epochs reveals a U-shape favoring smaller batches for repeated-data pretraining.
- Small-batch gradient noise acts as implicit regularization, reducing the train-validation gap under repetition.
- Repacking sequences per epoch, weight tying, and embedding weight decay form a repetition-tuned recipe.
- Tuned repeated training on 1B tokens matches roughly 6x to 8x more unique data.
- Under a deadline, smaller batches on fewer GPUs can beat larger batches on more GPUs.
- Paper: arxiv.org/abs/2610.15965; no public code released with the preprint.
Language-model teams often reuse a fixed, curated corpus for several epochs, meaning the model processes each token more than once. Sewon Min’s preprint finds that repeated-data training changes the optimum: smaller global batches, fresh sequence packing, tied embeddings, and embedding weight decay can improve held-out loss. The study also shows that GPU count and wall-clock time place separate constraints on the best configuration.
Common pretraining recipes are tuned for runs that encounter mostly unique tokens. Teams working with domain-specific, licensed, filtered, or otherwise limited datasets face a different problem because repetition increases the risk of memorization and overfitting. Settings that maximize hardware throughput can therefore produce a worse model from the same corpus.
A fixed corpus changes the optimum
Min calls the first experimental setting infinite-compute pretraining. The term means the optimizer may take as many steps as needed over a fixed pool of unique tokens, allowing the experiments to isolate data repetition from hardware limits. Wall-clock and GPU constraints return in the paper’s later analysis.
Batch size and epoch count are tuned together because they determine how often the model sees each token and how many optimizer updates it receives. Fixing one while sweeping the other can hide the best configuration, especially when a small batch creates many more sequential updates per epoch.
The loss curve bends back up
Validation loss follows a U-shaped curve as global batch size increases. Loss initially improves, reaches a minimum, and then worsens at batch sizes below those commonly used in large distributed training jobs. The precise optimum varies with model size, dataset size, and training duration, so the paper supports a batch sweep rather than a universal target.
Smaller batches produce noisier gradient estimates, and that noise can act as implicit regularization when the same examples recur. Larger batches reduce the noise and improve throughput, but the experiments show a wider gap between training and validation loss along with earlier overfitting. The evidence is consistent with the regularization explanation, although it does not establish gradient noise as the sole cause.
Three defenses against repetition
Three recipe changes consistently improve results when the fixed corpus is reused:
- Repack documents every epoch. Regroup documents into new context windows so repeated tokens appear beside different neighbors instead of preserving identical packed sequences.
- Tie input and output embeddings. Sharing these parameters reduces model capacity in a component that can readily memorize rare tokens.
- Decay embedding weights. Apply nonzero weight decay to embedding parameters, which many single-pass recipes exclude from regularization.
The changes lower the batch-tuned validation-loss frontier, meaning the best held-out loss achieved after tuning at each scale. The experiments cover models from 153 million to 1.5 billion parameters and unique-token pools from 333 million to 3 billion tokens. Improvements also appear on downstream measurements, including HellaSwag evaluated in bits per byte, where lower values indicate better normalized likelihood.
Under the study’s conditions, repeated training on a 1-billion-token pool reaches validation performance comparable to runs using roughly six to eight times as many unique tokens. That figure is an empirical result from the tested models and datasets, not a general conversion rate for repeated data.
A deadline reshapes the batch choice
A fixed completion time limits how small the batch can become because smaller batches require more sequential optimizer steps for the same number of tokens. The statistically best batch may therefore miss the deadline even when additional GPUs are available.
Data parallelism processes different microbatches on replicas and usually increases the global batch when the per-GPU microbatch remains fixed. Tensor and pipeline parallelism instead split the work required for a model update across devices, which can reduce step latency without automatically increasing the effective batch. Their benefit depends on communication overhead, model size, memory pressure, and interconnect speed.
| Operating condition | Primary constraint | Practical response |
|---|---|---|
| Flexible deadline, fixed corpus | Generalization | Sweep smaller global batches jointly with epoch count. |
| Tight deadline, spare GPUs | Sequential step latency | Test tensor or pipeline parallelism before increasing the global batch. |
| Tight deadline, data parallelism only | Number of optimizer steps | Increase batch only enough to meet the schedule, then compare validation loss. |
| GPU cap and fixed deadline | Hardware and time | Benchmark feasible configurations and select from the measured loss-time frontier. |
The deadline experiments show cases where a smaller batch on fewer GPUs beats a larger batch on more GPUs within the same time budget. High cluster occupancy does not guarantee the best validation loss because extra data-parallel replicas can push the global batch beyond its statistical optimum.
A practical test plan
Teams training on a limited corpus can evaluate the recipe with a controlled sweep:
- Hold the tokenizer, corpus, model architecture, and validation set constant.
- Sweep global batch size and epoch count together, recording tokens seen, optimizer steps, gradient accumulation, and validation loss.
- Repeat the strongest runs with per-epoch repacking, tied embeddings, and nonzero embedding weight decay.
- Benchmark data, tensor, and pipeline parallel configurations on the target hardware, including communication overhead.
- Select the lowest-loss configuration that satisfies the GPU and wall-clock budgets, then confirm the result on downstream evaluations.
Where the evidence stops
The experiments end at 1.5 billion parameters and use token pools no larger than 3 billion, leaving the exact batch optimum at frontier scale unresolved. The reported six-to-eight-times data equivalence may also change with corpus diversity, model architecture, tokenizer, and training duration.
The preprint does not provide code or model checkpoints, so teams must reproduce the sweeps in their own training stacks. Its timing analysis assumes H100-class hardware and a fixed microbatch size; conclusions about GPU count can shift with interconnect bandwidth, kernel efficiency, memory capacity, and the chosen parallelism strategy.
For developers working with repeated data, batch size, sequence packing, and embedding regularization belong in the core data-efficiency sweep. Hardware allocation should follow the measured validation-loss frontier under the project’s actual deadline and cluster constraints.