WorksComputer Science
Scaling Repeated-Data Pretraining: Batch Size, Regularization, and GPU-Time Tradeoffs
Abstract
We study pretraining when compute is abundant but unique training data are finite, requiring repeated training on the same data. We first revisit infinite-compute pretraining (Kim et al. 2026) and show that its frontier depends critically on choices previously fixed or studied only in isolation. In particular, optimizing batch size together with epoch counts reveals a U-shaped relationship between validation loss and batch size, favoring smaller batches than typical pretraining, likely because small-batch gradient noise provides implicit regularization. We further find that training recipes, previously optimized under a single-pass assumption, can be tuned, e.g., repacking documents into new sequences every epoch, weight tying, and positive embedding weight decay. We then relax the infinite-compute assumption. In particular, smaller-than-typical batch sizes can require prohibitively long sequential training, motivating to treat GPUs and time as separate resources. Tighter deadlines favor larger batches, and latency-oriented parallelism can trade additional GPUs for shorter training. Nevertheless, even under a fixed time budget, a smaller batch with fewer GPUs can achieve lower validation loss than a larger batch with more GPUs, challenging the common practice of increasing data parallelism to maximize GPU utilization under a deadline. Together, our results identify underexplored factors in repeated-data training and provide concrete guidance on how training recipes and resource allocation should change from single-pass pretraining.
Introduction
Most language-model pretraining assumes a single pass over a large, diverse web corpus, with compute as the binding resource and data treated as effectively unlimited [14, 12]. However, the supply of high-quality human-written data is finite and grows at a physically limited rate [37], so continued scaling increasingly requires training repeatedly on the same data [24]. Prior work asks how much performance can be extracted from fixed data when compute is effectively unlimited [16, 40].
We revisit this setting and show that the infinite-compute frontier depends critically on choices previously fixed or studied only in isolation. In particular, jointly optimizing batch size, learning rate, weight decay, and the number of repetitions1 reveals a U-shaped relationship between validation loss and batch size, with the optimum at smaller batches than in conventional pretraining. The gradient noise from smaller batches, which can be undesirable in single-pass training, likely provides useful implicit regularization against repeated-data overfitting. Batch tuning extends beneficial repetitions from 8 to 20 for a 1.5B model and from 40 to 112 for a 153M model, both with substantial loss improvements (Figure 1a, blue).
Figure 1. (a) Batch-tuned infinite-compute frontier for a 153M model on the 1B-token data pool. Batch tuning and the repetition-tuned recipe progressively improve the validation loss. (b) Separating GPU availability from training time yields four distinct compute regimes. (c) An example with a 1.5B model on the 1B-token pool: even when time-constrained, a smaller batch size with fewer GPUs can achieve lower validation cross-entropy (CE) loss than a larger batch size with more GPUs, especially as compute becomes abundant.
We further find that training recipes, which are typically optimized under a single-pass assumption, can be adapted specifically for repeated-data training. We evaluate three simple practices. REPACK—repacking documents into new sequences each epoch—creates fresh sequences even when the underlying data remain fixed, acting as a form of repeated-data regularization. Tying the input and output embeddings and applying positive weight decay to the shared parameters provide additional gains. Together, these choices improve validation loss and shift the best checkpoint from epoch 20 to 32 for the 1.5B model and from epoch 112 to 240 for the 153M model (Figure 1(a), blue vs. orange).
We next move beyond the infinite compute to consider compute resources, as compute is not truly infinite in practice. In particular, the improved frontier can require prohibitively long sequential training, as it favors smaller-than-typical batch sizes. For example, our fitted extrapolation suggests that, for a 70B model trained on 10T unique tokens, reaching the near-optimal stopping point could require over 20 years. Motivated by this tension, we model GPU availability and sequential training time as separate resource constraints (Figure 1(b)). Under short deadlines, larger batches process more data per optimizer step; as more time becomes available, progressively smaller batches become preferable until the best observed unconstrained is reached. Separately, latency-oriented parallelism can trade additional GPUs for faster optimizer steps. Nevertheless, even under a fixed time budget, a smaller batch with fewer GPUs can achieve lower validation loss than a larger batch with more GPUs, especially with longer deadlines (Figure 1(c)). This finding suggests that the common practice of maximizing parallelism with more GPUs under a fixed deadline may be suboptimal for repeated-data training.
In summary, this paper shows that, when unique data become the binding constraint, both pretraining recipes and compute allocation must change.
Batch size must account for repeated-data generalization. Repeated-data training favors smaller batches than those used in conventional pretraining (§3).
Training recipes must be adapted to repeated exposure. Repacking documents across epochs and regularizing embeddings improve attainable loss and make more repetitions beneficial (§4).
Compute allocation must distinguish GPUs from time. Maximizing GPU utilization through larger batches can be suboptimal: even under the same deadline, smaller batches using fewer GPUs can achieve lower loss (§5).
Related Work
Compute-bound scaling. Conventional language-model scaling laws predict loss from model size, training tokens, and compute, then use these relationships to select compute-optimal model–data allocations ([14, 12]). They effectively assume an unlimited supply of fresh data, likely because available compute at the time had not yet reached the scale needed to exhaust the available stock of human-generated web data.
Data-bound scaling. As hardware improves and the stock of high-quality human-written text grows slowly, unique data increasingly becomes a binding resource ([37]). This has motivated repeated-data pretraining, in which models train on a fixed dataset until validation gains saturate or reverse because of overfitting ([24, 41]). At fixed compute, Fang et al. [8] show that repeatedly training on filtered data can outperform training on a 10 larger superset with proper regularization, e.g., weight decay tuning.
The infinite-compute, finite-data setting is studied most directly by two recent papers. Kim et al. [16] fix the unique data, remove the compute constraint, and show that stronger regularization, especially weight decay tuning, substantially delays overfitting. Xu et al. [40] build on this work and propose additional regularization methods and an interaction-aware scaling law. We revisit the same setting but optimize previously fixed recipe dimensions and then ask how the resulting statistical frontier changes under separate GPU and time constraints.
Batch size. Batch size optimization in conventional single-pass pretraining balances statistical efficiency and parallelism. At a fixed number of optimizer steps, larger batches process more tokens and are generally favored; at a fixed token budget, smaller batches take more steps and can be more token-efficient. Prior work identifies a critical batch size below which jointly increasing batch size and learning rate preserves token efficiency while improving throughput, and above which token efficiency degrades [20, 14, 43, 21]. However, reduced token efficiency alone does not imply worse loss under a fixed deadline, since larger batches process more tokens in the available time. Therefore, conventional recipes often increase batch size up to the critical batch size to expose parallelism.
For repeated-data training, batch size has received less attention. Kim et al. [16] select a small batch using a single-pass ablation and then hold it fixed in their repeated-data scaling experiments; Xu et al. [40] likewise use a fixed batch throughout.
We instead fix the unique-data pool and jointly tune the learning rate, weight decay, and repetitions for each batch size. We find that repeated-data training changes the conventional tradeoff: smaller batches can achieve lower validation loss, even under a fixed deadline.
Batch Size Shapes the Repeated-Data Frontier
We first revisit the unconstrained repeated-data frontier by jointly optimizing batch size, learning rate, weight decay, and epoch count, and reveal an interior batch-size optimum. Because batch size controls both statistical behavior and available parallelism, this later motivates separating GPU and time constraints in § 5.
Experimental Setup
Models & data. We train dense decoder-only Transformers with 153M, 474M, and 1.5B parameters, using the olmo-core Groeneveld et al., [10] codebase. All experiments use DCLM-Baseline Li et al., [17] as the training corpus, with a 4,096-token context and document-disjoint training, validation, and test splits. This section uses a 1B-token unique-data pool; § 4.2 expands the study to 0.333B-, 1B-, and 3B-token pools. Together, the measured grid covers from 0.22 to 19.61. We train with AdamW Loshchilov & Hutter, [19] and a warmup-stable-decay (WSD) learning-rate schedule [13, 39], with a 100M-token warmup and 10% terminal decay.
Hyperparameter tuning methodology. For a model with parameters and unique tokens, passes yield token presentations. We sweep global batches of 16–512 sequences for the 1.5B model and 32–512 for the smaller models.
For each , we tune the peak learning rate and weight decay through gradual adaptive coordinate search: we first select the pair for an earlier epoch, then proceed to the next epoch by starting from the pair selected for the previous epoch and including neighboring learning rates ( and ) and a weight-decay value one level higher ().
We seek the best training recipe at a fixed model size, rather than allowing parameter scaling or ensembling as an alternative route to lower loss [16]. This choice reflects the practical importance of inference cost.
Evaluation. Our primary metric is next-token cross-entropy (CE) on a fixed 100M-token DCLM-Baseline validation split.
Evaluations on downstream tasks, sensitivity to random seeds, and comparisons with unique-data pools are reported in §B.
Comparison with prior setups. Kim et al. [16] select a small batch using a single-pass ablation and then hold it fixed in their repeated-data scaling experiments; Xu et al. [40] likewise use a fixed batch throughout. We instead optimize batch size specifically for repeated-data training by comparing each candidate over its own training horizon. Other setup differences include sequence order and learning-rate scheduling: Kim et al. reuse a fixed sequence order across epochs and train each horizon with an independent cosine schedule, whereas we reshuffle sequence indices each epoch and use WSD. Xu et al. also use WSD and reshuffle each epoch, making their setting closer to ours. To reduce evaluation noise, we use a fixed 100M-token validation split, compared with 4M tokens in Kim et al. [16] and 10M tokens in Xu et al. [40].
Results
Unless stated otherwise, each point is the best endpoint after tuning learning rate, weight decay, and epoch count.
Batch size has an interior optimum. Figure 2 shows that batch-size tuning has a substantial effect. Relative to the best run, the best run reduces validation CE from 3.124 to 2.977 for the 1.5B model, from 3.136 to 3.093 for the 474M model, and from 3.416 to 3.332 for the 153M model. For all three model sizes, the complete sweep is U-shaped: validation CE is minimized near , with both larger and smaller batches performing worse.
Figure 2. Batch size has an interior optimum on the 1B-token pool. At each (model size, batch size) pair, we tune (learning rate, weight decay, epoch count), and report the lowest validation CE.
This optimum is notable because is substantially smaller than the batches used in public pretraining recipes at a similar scale: GPT-2, Cerebras-GPT, Pythia, and OLMo use global batches ranging from 512 to 2,048 sequences [29, 6, 3, 10].
The gap remains when compared with predictions from more recent research on batch-size scaling. For comparison, the single-pass laws of Bi et al. [2] and Shuai et al. [33] predict and , respectively, with in FLOPs and in tokens. Our 1.5B model reaches its best observed repeated-data loss after 20 passes over the 1B-token pool, which is equivalent to FLOPs. At this compute scale, the two laws predict batches of 1.233M and 0.747M tokens, respectively—4.7 and 2.9 times our selected batch of 0.262M tokens Table 1. This suggests that the batch size derived from single-pass training may be suboptimal for repeated-data regime, and the repeated-data optimum can be substantially smaller.
| (equiv. ) | Batch size (million tokens) | |
| Bi et al. | () | 0.463 |
| Bi et al. | () | 0.914 |
| Bi et al. | () | 1.233 |
| Shuai et al. | () | 0.551 |
| Shuai et al. | () | 0.681 |
| Shuai et al. | () | 0.747 |
| Ours | () | 0.262 |
Table 1. Batch-size comparison for the 1.5B model on the 1B-token pool. denotes compute consumed; batches are in millions of tokens.
Optimization and generalization jointly shape the U-curve. Then, why can’t batch size be too large or too small? Figure 3 compares training loss, validation loss, and their gap across batch sizes for the 1.5B model.
Figure 3. Training and validation losses across batch sizes. The large batch () sees a larger train-validation gap and earlier validation degradation, consistent with weaker stochastic regularization.
vs. : Early in training, is under-optimized because it takes fewer optimizer steps per epoch. Later, however, its training loss drops below that of , so under-optimization can no longer explain the difference. Its validation loss still remains worse and eventually increases. This pattern is consistent with weaker stochastic regularization at large batch sizes [15, 34].
vs. : Their training losses are similar early in training. At later epochs, achieves lower training loss but higher validation loss than . Thus, below , the additional optimizer steps eventually lead to overfitting: they continue to reduce training loss without improving held-out performance.
In short, the U-curve reflects a balance between optimization and generalization. Relative to conventional large batches, smaller batches benefit from stronger stochastic regularization and delay overfitting; below the optimum, additional optimizer steps stop improving the validation loss.
The importance of weight-decay tuning depends on batch size. Prior finite-data studies emphasize tuning weight decay to delay overfitting [16, 8, 40]. We likewise find it important for large batches (e.g., ) and in more severely data-constrained settings. Near the batch optimum, however, its effect is smaller: at , the weight decay selected at epoch 1, 0.3, remains optimal through saturation.
Training Choices Shift the Repeated-Data Frontier
In addition to batch size, we show that recipe details, typically optimized for single-pass training or chosen incidentally, can be tuned specifically for repeated-data training. We aim to improve the frontier across batch sizes rather than for the optimal batch size only, since we later show that larger-than-optimal batches can be preferred under time constraints (§ 5).
Controlled Recipe Ablations
Unless noted otherwise, all comparisons use the 1.5B model, a 1B-token unique-data pool, sequence length 4,096, WSD, and the tuning methodology from §3.
Data presentation across epochs. When a finite data is repeated, the data loader determines whether the model repeatedly encounters identical packed sequences or new combinations of documents and contexts. We compare three methods with progressively more cross-epoch variation:
FIXED: keeping packed sequences, minibatch composition, and minibatch order fixed across epochs, as in Kim et al. [16];
SHUFFLE: keeping sequence boundaries fixed while reshuffling sequences across minibatches, producing fresh batches each epoch; and
REPACK: reshuffling documents and dynamically repacking them into fixed-length sequences, producing both fresh sequences and fresh batches each epoch.
These methods are equivalent in a single pass but expose models to different examples once data are repeated. Prior repeated-data studies use either FIXED ([16]) or fixed minibatch composition with shuffled minibatch order ([8, 40]). We test whether the additional variation introduced by REPACK acts as repeated-data regularization.
Figure 4 shows results for a 1.5B model with . FIXED clearly underperforms SHUFFLE in validation CE and exhibits a larger train-validation gap at . REPACK further improves on SHUFFLE at both batch sizes and reaches its best observed validation loss later in training, with a clearer benefit at than at . These results indicate that, for a fixed unique-data pool, how examples are presented across epochs materially affects the attainable frontier.

| Loader | ||
| FIXED | 3.011 (E16) | 3.205 (E8) |
| SHUFFLE | 2.977 (E20) | 3.124 (E8) |
| REPACK | 2.971 (E24) | 3.064 (E24) |
Epoch; Cross-entropy; Fixed; Shuffle; Repack; Train CE; Validation CE
Figure 4. Data-loader ablation. (a) Best validation loss and its selected epoch for each batch and loader, with learning rate and weight decay tuned for each. (b) Validation and train losses for ; stars indicate each method’s best observed validation checkpoint.
Tied input/output embeddings and embedding decay. Weight tying shares one parameter matrix between the input embeddings and output head and was originally proposed for parameter reduction ([27]). Although larger contemporary models often leave these matrices untied, compact models continue to use tying, e.g., Qwen3.5-0.8B (Qwen Team, 2026). We ask whether tying and decay on the shared embedding affect repeated-data training. We fix the dataloader to REPACK and evaluate .
Figure 5(a) shows that weight tying alone yields little to no improvement, while embedding decay consistently improves validation loss. Combining weight tying and positive embedding decay yields the best results, improving the validation loss from 2.971 to 2.946 at and from 3.064 to 3.030 at , relative to the original setup of untied embeddings and no embedding decay. It also reaches its best validation loss later, shifting the selected epoch from 24 to 32 and 28, respectively.2

| Loader | Method | ||
| SHUFFLE | Untied | 2.977 (E20) | 3.124 (E8) |
| REPACK | Untied | 2.971 (E24) | 3.064 (E24) |
| REPACK | Tied, | 2.971 (E24) | 3.061 (E20) |
| REPACK | Untied, | 2.951 (E32) | 3.050 (E28) |
| REPACK | Tied, | 2.946 (E32) | 3.030 (E28) |
Epoch; Cross-entropy; Untied; Tied, ; Tied, ; Train CE; Validation CE
Figure 5. Weight-tying and embedding-decay ablation with REPACK. (a) Best validation loss and its selected epoch for each batch size and method, with learning rate and weight decay tuned for each. (b) Validation and train losses for ; stars indicate each recipe’s best validation checkpoint.
Failed attempts & higher-risk recipes (§C.2). We also tried numerous other approaches, specifically for recovering the regularization benefits of noisy, small-batch gradients while retaining the data parallelism of large-batch training. Methods we tried include batch warmdown, structured gradient noise, and periodically synchronized local optimization methods such as LocalSGD (Stich, [35]) and DiLoCo (Douillard et al., [7]). Discussions and selected results are provided in §C.2. In short, although some of these approaches showed promising signals, none of them yielded improvements as clear or consistent as the methods described in this section, and we therefore did not use them for the rest of our experiments.
Complete Results with the Repetition-Tuned Recipe
Complete original vs. repetition-aware recipe comparison. Figure 6 reports a complete comparison between the original (SHUFFLE, untied embeddings, and no embedding decay) and repetition-aware (REPACK, tied embeddings, and positive embedding decay) recipes across model sizes and batch sizes. The repetition-aware recipe improves validation loss and HellaSwag bits-per-byte (BPB) across all three model sizes and extends the validation-selected training horizon. The selected epoch moves from 20 to 32 for the 1.5B model, from 32 to 80 for the 474M model, and from 112 to 240 for the 153M model. The recipe also shifts the optimal batch size from 64 to 128 for the 474M and 153M models. It is likely because the additional regularization reduces the marginal regularization benefit of small-batch gradient noise.
Figure 6. Comparison between the original and repetition-tuned recipes (REPACK, tied embeddings, positive embedding decay). The repetition-tuned recipe improves both validation CE (top) and HellaSwag BPB (bottom) across model sizes and batch sizes.
Comparison with open-source default. Our survey of nine representative open-source training stacks (Table 4 in §C.1) shows that these ingredients already appear in some stacks, but in inconsistent combinations that often differ from our best-performing configuration and are generally not motivated by repeated-data behavior. Since our experiments show that these choices materially affect attainable loss, we recommend that researchers and LLM developers treat these choices as explicit design decisions rather than blindly inheriting a stack’s defaults.
| Stack | Repeated-data order | Tying | Embed. WD | Head WD |
| OpenLM | FIXED | No | ||
| Marin / Levanter | FIXED | No | ||
| olmo-core | SHUFFLE | No | ||
| LLM Foundry MPT | SHUFFLE | Yes | shared | |
| Hugging Face Trainer | SHUFFLE | Model-specific | ||
| Meta Lingua | SHUFFLE | No | ||
| Pythia / GPT-NeoX | REPACK | No | ||
| Megatron-LM | REPACK | Yes | shared | |
| NeMo Megatron Bridge | REPACK | Model-specific | or shared | |
| Ours: data-constrained | REPACK | Yes | shared |
Table 4. Representative open-source defaults and our data-constrained recommendation.
Applying the finalized recipe across data-pool sizes. Having established the repetition-aware recipe, we fix it for the rest of the experiments and extend our analysis to three unique-data pools: 0.333B, 1B, and 3B tokens. We tune the learning rate on the 1B-token pool and transfer it to the 0.333B- and 3B-token pools, following prior evidence that the optimal learning rate is relatively stable across data-pool sizes ([16, 40]); our preliminary experiments show the same pattern. We also tune weight decay with the assumption that larger data pools use weight decay values no higher than those used for smaller pools.
Figure 7 shows that more unique data improves the best observed validation loss and shifts the selected configuration toward larger batches and later epochs. This is likely because larger pools are less data-constrained: overfitting begins later and additional repetitions remain useful for longer.
Figure 7. The repetition-tuned recipe improves as the unique-data pool grows. We report the best observed validation CE on 0.333B-, 1B-, and 3B-token pools. Orange diamonds show the tuned original recipe on the 1B-token pool, and purple squares show its untuned baseline. Labels give the selected batch size and epoch.
Scaling Across GPU and Time Budgets
We now relax the infinite-compute assumption and consider realistic resource constraints. In particular, our results in § 3 motivate treating GPUs and time separately: smaller-than-typical batches may use fewer GPUs but require longer training. This matters because some labs may have abundant (nearly unlimited) GPUs but still finite time. We therefore treat GPU availability and training time as separate constraints and study scaling under limits on time, GPUs, or both.
Motivation: Why Separate GPUs and Time?
To quantify the potential resource implications, we consider a hypothetical scenario with a dense model with trained on unique tokens. We fit the loss curve for extrapolation and define as the earliest epoch whose fitted validation CE is within 0.001 of its fitted minimum (about 0.1% in perplexity). We also estimate the corresponding batch size separately. The fitting procedure and extrapolation are detailed in §D.1. Note that this example is an extreme extrapolation far beyond our measured model and data scales, with no target-scale statistical validation; we therefore treat the resulting numbers as illustrative rather than conclusive.
The fit gives and . At sequence length 4,096, this corresponds to approximately 340.1 million optimizer steps. With gradient accumulation , microbatch size , tensor parallelism , pipeline parallelism , and the optimistic optimizer-step latency seconds,3 the corresponding resource requirements are
This extrapolated near-optimal operating point motivates the four resource regimes in Figure 1(b).
1) Infinite GPUs, infinite time. If a lab has sufficient GPUs and time, it can execute the infinite-compute recipe directly.
2) Finite GPUs, infinite time. With fewer GPUs but sufficient time, gradient accumulation can trade parallelism for sequential execution. The same statistical recipe can therefore still be realized, though more slowly.
3) Infinite GPUs, finite time. If GPU availability is effectively nonbinding but training faces a deadline—as may be the case for hyperscale frontier labs—then sequential time becomes the primary constraint. Publicly reported training scales suggest that this regime is already plausible: Llama 4 reports using 32,000 GPUs, and Grok 3 reportedly used approximately 100,000 H100s [22, 32]. Thus, our extrapolated requirement of 6,144 H100s may be attainable for large AI labs; however, the projected 22.6-year training time would likely remain a constraint.
In this regime, the unconstrained recipe generally cannot be used as is. Additional GPUs can shorten training by increasing the data-parallel batch or using more aggressive tensor or pipeline parallelism, but neither tradeoff is free. A larger batch can worsen attainable validation loss, and model parallelism incurs communication and scheduling overhead. This motivates time-constrained scaling in § 5.2.
4) Finite GPUs, finite time. When both resources bind, as is likely in most settings, the stopping epoch, batch size, and compute configuration must be selected jointly for the available budgets. We study this joint GPU-time-constrained regime in § 5.3.
Time-Constrained Scaling
When training is deadline-constrained, three coupled choices determine the attainable loss:
the number of data repetitions (equivalently, the stopping epoch ),
the global batch size , and
the compute-parallelism configuration, including the microbatch size and the DP, TP, and PP degrees.
Stopping early while retaining the unconstrained batch may expose the model to too little data. On the other hand, increasing the batch processes more data per optimizer step, but can eventually yield worse validation loss as repeated-data overfitting emerges. This motivates a deadline-aware recipe that jointly optimizes these choices.
Short deadlines favor larger batches. Figure 8 shows this tradeoff systematically across training recipes, epoch counts , and batch sizes , across all three model sizes. Under short budgets, larger batches tend to be preferred because they process more data per optimizer step. As the budget increases, progressively smaller batches become preferable, until the frontier reaches the best observed unconstrained batch .
Figure 8. The time-constrained frontier jointly selects the training recipe, batch size, and the number of repetitions on the 1B-token data pool. The black curve shows the best validation CE attainable at each optimizer-step deadline; indicates the batch that supplies the frontier.
Importantly, a fixed time budget does not imply that larger batches are always preferable. Figure 1(c) illustrates this for the 1.5B model. Under a short deadline (equivalent to 8K steps), a larger batch using 64 GPUs achieves the best loss. As the deadline increases (equivalent to 32K steps), however, a small batch using only 16 GPUs achieves a lower loss, despite using strictly fewer GPUs. This indicates that maximizing available GPUs by increasing the global batch size can be suboptimal.
Deadlines also change the preferred training recipe. For small models (474M and 153M), ORIGINAL may be preferred under very short deadlines, likely because repeated-data overfitting has not yet become relevant. The repetition-aware recipe subsequently becomes optimal and remains so at longer deadlines, including across the entire observed horizon for the 1.5B model. The difference is consistent but minor, likely because it primarily helps by delaying overfitting and increasing the number of beneficial repetitions.
Parallelism can instead be spent on latency. Batch size is not the only way to trade compute for training time. The compute-parallelism configuration itself can be optimized for latency rather than throughput, using additional GPUs to shorten training without changing the global batch size, e.g., by minimizing the microbatch size and using more aggressive model parallelism. §D.2 reports projections from a simulated, communication-aware H100 model; these are illustrative rather than end-to-end measurements. In this model, reducing the microbatch size from the throughput-optimal value of 8 to 1 uses more GPUs and shortens 1.5B-model training by at unchanged validation CE. At the extrapolated 70B scale, using more model parallelism yields a projected speedup; additional model parallelism provides no further modeled latency reduction. We do not include these projections in figures and the subsequent § 5.3 as we focus on the empirically observed frontier, but recommend future work to explore this direction.
Joint GPU-Time-Constrained Scaling
Finally, when both resources are constrained, the number of repetitions (), batch size (), and compute-parallelism configuration must be selected jointly; gradient accumulation provides an additional mechanism for trading training time against GPU availability.
Figure 9 reports the best evaluated configuration at each GPU count and deadline on the 1B-token pool, with time measured in optimizer-step equivalents. We show the resulting frontiers for ORIGINAL (left) and repetition-aware training (right). For both recipes, more GPUs move the selected configuration toward batches that expose greater concurrency, whereas more time favors smaller batches as they generalize better with more repetitions. As more time becomes available, additional GPUs provide only marginal gains, and eventually, configurations using more GPUs perform worse than those using fewer GPUs, consistent with the finding in § 5.2.
Figure 9. Joint GPU-time-constrained frontier for the original and repetition-aware recipes on the 1B-token data pool. Each cell shows the lowest observed validation loss achieved using exactly the indicated number of GPUs within the deadline. Colors range from blue (lower loss) to red (higher loss), normalized separately for each model size on a log scale. The black boundary indicates where the best observed unconstrained loss is reached; beyond it, neither additional time nor additional GPUs improve validation loss.
Comparing the left (ORIGINAL) and right (repetition-aware) panels of Figure 9, we find that repetition-aware training uniformly improves the joint GPU-time frontier. Its gains therefore persist even after each recipe is independently optimized for the available resources.
Finally, the solid black boundary indicates where the best observed unconstrained loss is reached. Beyond it, neither more GPUs nor more time improves the frontier.
Conclusion and Limitations
This work studies pretraining when compute is abundant but unique training data are limited, requiring models to train repeatedly on the same data until validation performance approaches its attainable minimum. We begin with the infinite-compute setting studied in prior work (Kim et al. [16]; Xu et al. [40]), but show that batch size, previously underexplored, materially affects the repeated-data frontier. We further show that this frontier can be substantially improved through repetition-aware training: dynamically repacking sequences each epoch, tying input and output embeddings, and applying positive weight decay to the shared embeddings.
However, the infinite-compute optimum can require prohibitively many sequential optimizer steps, making it impractical under tighter training deadlines. This motivates decomposing compute into two distinct resources—GPUs and time—and studying regimes in which either or both are binding. Combining observed results across 153M–1.5B-parameter models and 0.333B–3B-token data pools, we map the attainable frontier across GPU and time budgets. Our results show that optimal data-constrained pretraining requires jointly selecting the number of repetitions, batch size, compute-parallelism configuration, and training recipe.
Limitations. There are many ways to improve this work but here we highlight the two most important limitations. First, our observations are limited to 153M–1.5B-parameter models and 0.333B–3B-token data pools. In particular, the illustrative 70B/10T example requires significant extrapolation and should be viewed as illustrative projections rather than estimates that have been rigorously validated at the target scale. Second, our findings may depend on the specific architecture (particularly dense models), optimizer and learning-rate schedule (AdamW with WSD), context length, and training data (the relatively heavily filtered DCLM-Baseline corpus). Extending these results from dense models to mixture-of-experts (MoE) is especially likely to affect our conclusions and remains one of the most important directions for future data-constrained scaling research.
Acknowledgement
We thank Will Merrill, Yashas Samaga, Mike Lewis, Iz Beltagy, Hanlin Zhang, Amil Dravid, and members of Berkeley NLP and AI2 for discussions and feedback.
Reproducibility Statement
Code and exact commands will be released upon acceptance. We report the hyperparameters (learning rate, weight decay, batch size) needed to reproduce every figure and table in §E.
Training, Model, and Evaluation Details
Model Architectures
We train dense decoder-only Transformers with 153M, 474M, and 1.5B parameters using the EMO codebase ([38]), built on olmo-core ([10]). All models use a 4,096-token context, a 100,278-token padded vocabulary, rotary position embeddings with base 500,000, RMSNorm, and SwiGLU feed-forward blocks. We do not use QK normalization. The attention head dimension is 64 for the 153M and 474M models and 128 for the 1.5B model.
Table 2 reports the exact parameter counts and other architectural hyperparameters. After weight tying, which we find beneficial in § 4, the parameter counts decrease to approximately 102M, 372M, and 1.3B. For consistency and to avoid confusion, we continue to refer to these models as 153M, 474M, and 1.5B throughout the paper. This convention does not unfairly favor our conclusions: it effectively compares a larger untied baseline against our smaller tied model, which nevertheless performs better. Both our experiments and prior work consistently show that larger models perform better even in the overfitted, repeated-data regime.
| Model | Layers | Heads | ||||
| 153M | 153,104,896 | 101,724,672 | 12 | 512 | 8 | 2,048 |
| 474M | 473,990,144 | 371,229,696 | 16 | 1,024 | 16 | 4,096 |
| 1.5B | 1,484,851,200 | 1,279,330,304 | 16 | 2,048 | 16 | 8,192 |
Table 2. Model architectures. Untied counts define the nominal model labels; tied counts are the trainable parameter counts used as in our repetition-aware scaling laws. is the residual width and is the SwiGLU feed-forward width.
Data and Training Details
All training text comes from DCLM-Baseline ([17]). We split documents before packing to form the training and validation sets. The validation set contains 100M tokens.
In § 3, we reshuffle sequence indices every epoch (defined as SHUFFLE in § 4.1), by default. Later in § 4.1 we ablate this choice and converge on repacking every epoch (defined as REPACK), and the rest of the paper from there uses REPACK by default. We use seed for the dataloader (12,536 as an offset and adds epoch number) for reproducibility.
We optimize with AdamW ([19]), using , gradient clipping at 1.0, and a z-loss.
We use a warmup–stable–decay (WSD) learning-rate schedule ([13, 39]), with an approximately 100M-token warmup and a target-specific terminal decay over the final 10% of each run.
We sweep batch sizes of sequences for the 1.5B model and for the 153M and 474M models. We search over peak learning rates in and weight decays in ; values outside these ranges were never selected. Because AdamW applies decay once per optimizer step, its cumulative effect depends on , so we tune learning rate and weight decay jointly with batch size. We use adaptive coordinate search: at each new epoch, the search starts from the previous best configuration and evaluates neighboring learning rates and higher weight decays. We tune the learning rate on the 1B-token pool and transfer it to the 0.333B- and 3B-token pools, following prior evidence that the optimal learning rate is relatively stable across data-pool sizes ([16, 40]); our preliminary experiments show the same pattern.
Evaluation Details
Our primary metric is next-token cross-entropy (CE) on a fixed, document-disjoint DCLM-Baseline validation split. §B.3 later discusses efforts on evaluating on downstream tasks instead.
Additional Results for §3
Robustness to Random Seeds
We repeat experiments in §3 for a 1.5B model trained on a 1B-token unique-data pool, using three independently sampled pools, denoted Pool A, Pool B, and Pool C in Table 3. Across all batches, the standard deviation of validation CE across pools ranges from only 0.00021 to 0.00318. This variation is substantially smaller than the differences between batch configurations, and the optimal batch size is consistent across all three pools (batch size of 64).
| Batch size | LR | WD | Eval. epoch | Pool A | Pool B | Pool C | Across-pool SD |
| 32 | 0.3 | 20 | 3.00052 | 3.00076 | 3.00093 | 0.00021 | |
| 64 | 0.3 | 20 | 2.97713 | 2.97733 | 2.97594 | 0.00075 | |
| 128 | 0.3 | 16 | 2.99839 | 2.99936 | 2.99628 | 0.00157 | |
| 256 | 0.3 | 12 | 3.03689 | 3.04292 | 3.04167 | 0.00318 |
Table 3. Impact of different random seeds in the 1B-token unique data pools. SD indicates standard deviation.
Comparison with Unique-Data Training
Repeated-data training substitutes for substantially more unique data. Figure 10 compares the best repeated-data endpoints with batch-tuned unique-data curves. At matched , the batch-tuned repeated-data recipe matches training on more unique data. Against the throughput-oriented unique-data curve, it matches more unique data. Without tuning , the prior repeated-data recipe matches only more unique data. Tuning therefore provides a gain comparable to doubling the unique-data budget.

Figure 10. Unique-data equivalent of repeated-data training. Curves show validation CE for unique-data training at three batch sizes. Horizontal lines mark the best repeated 1B-token results with and without tuning . With tuning, repeated-data training matches – unique data at and at ; without tuning, it matches at .
Prior findings tied to a particular number of epochs are also batch-dependent. For example, the observation that unique and repeated data remain similar for roughly four epochs [24] changes with : larger batches keep the two settings close for more epochs but fewer optimizer steps, while smaller batches keep them close for more optimizer steps but fewer epochs.
Downstream Task Generalization
Making modeling conclusions from downstream performance is substantially more difficult than doing so with validation loss: individual-task accuracies vary considerably across checkpoints, particularly for small models. Recent work therefore predicts task performance indirectly through language-modeling loss, aggregates results across tasks, or uses soft metrics like perplexity or bits per byte (BPB) [9, 1, 11]. These studies find that task aggregates are more predictable than many individual accuracies and that perplexity and BPB are often more reliable.
We evaluate eight widely used pre-training evaluation benchmarks: HellaSwag [42]; ARC-Easy and ARC-Challenge [5]; CommonsenseQA [36]; Open-BookQA [23]; PIQA [4]; SocialIQA [31]; and WinoGrande [30].
Figure 11 reports performance of three models, 1.5B, 474M, and 153M, on four downstream task metrics: Hellaswag accuracy, aggregated eight-task averaged accuracy, Hellaswag BPB, and aggregated eight-task BPB. The top figure (a) reports the metric from checkpoints selected by validation CE for each batch size, and the bottom figure (b) reports the metric over epochs for .
Figure 11. HellaSwag and aggregate downstream performance. (a) Performance versus batch size. Each best available epoch was selected based on validation CE. (b) Performance across epochs at .
The main conclusions from the earlier sections continue to hold. Across all model sizes, overly large batches perform poorly; very small batches are not uniformly optimal either; the strongest results tend to occur at intermediate batch sizes.
At the same time, we confirm previous findings that downstream evaluation exhibits substantially greater variance. Its curves are not always convex, as would be expected from a reliable scaling signal. BPB generally produces smoother trends than accuracy, consistent with prior work [11], e.g., convex trends emerge in both BPB panels for the 1.5B and 153M models and in the Hellaswag BPB panel for the 474M model. Whenever the curve is convex, the downstream results closely agree with the validation-loss results: the optimal batch size lies consistently near across model sizes.
Additional Results for §4
Comparison with existing open-source defaults
Our survey of nine representative open-source training stacks (Table 4) shows that their default configurations vary substantially and often differ from our best-performing repetition-aware training. We recommend that researchers and LLM developers treat these choices as explicit design decisions rather than uncritically inheriting a stack’s defaults.
Failed Attempts or Higher-risk Recipes: Small-Batch Noise at Large Batch
One of our key findings is that the gradient noises from small-batch training likely provide beneficial regularization. This raises a natural question: can we recover some of these regularization benefits while retaining the computational efficiency and parallelism of larger-batch training? In other words, can we delay overfitting without sacrificing the parallelism for faster training?
We explored several approaches in this direction.
Batch warmdown. This method gradually reduces the batch size over the course of training. However, in our experiments, it did not improve the training-time-validation-loss Pareto frontier.
Branch-train-merge. Following Li et al. [18], we train multiple models initialized from a shared checkpoint and subsequently merges their weights. However, in our experiments, it did not improve the training-time-validation-loss Pareto frontier.
Structured gradient noise. We add structured gradient noise to large-batch updates. However, it suffered from recurrent gradient spikes and did not yield a stable training trajectory.
Periodically synchronized local optimization. Among the approaches we tested, this was the only one that produced promising results. The general idea is to perform multiple local optimization steps in parallel, and then synchronizing across workers. We consider two concrete methods: (1) LocalSGD (Stich, [35]), which allows each worker to perform local optimization steps and then averaging model parameters across workers, and (2) DiLoCo (Douillard et al., [7]), which similarly performs multiple local updates between synchronization points, but uses an outer optimizer to update the shared model from the accumulated differences between the initial and locally trained parameters.
In our experiments, DiLoCo consistently outperformed LocalSGD, so we report DiLoCo’s results here. We fix the synchronization interval to , the outer learning rate to 0.7, and the outer momentum to 0.9. We vary the per-worker batch size over 64, 256 and initialize from checkpoints obtained after either two or four passes over the data using a global batch size of 1,024, yielding four configurations. After tuning the inner learning rate and weight decay, we report the best result across these configurations for each metric and matched optimizer-step budget.
Table 5 shows that DiLoCo does not consistently improve validation CE. It does, however, consistently improve downstream accuracy: on HellaSwag, our most reliable downstream metric, it gains approximately 1.7–3.1% over the stronger matched-step baseline. This was one of few settings in which validation CE and downstream performance consistently led to different conclusions.
| Steps | Method | Val. CE ↓ | HellaSwag Acc. ↑ | HellaSwag BPB ↓ | 8-task average Acc. ↑ | 8-task average BPB ↓ |
| 1,907 | (E4) | 3.221 | 35.02 | 0.9374 | 42.70 | 1.4018 |
| 1,907 | (E8) | 3.226 | 36.41 | 0.9386 | 42.55 | 1.4265 |
| 1,907 | w. DiLoCo (E8) | 3.217 | 38.09 | 0.9331 | 43.17 | 1.3831 |
| 2,861 | (E6) | — | — | — | — | — |
| 2,861 | (E12) | 3.160 | 37.64 | 0.9191 | 43.48 | 1.3673 |
| 2,861 | w. DiLoCo (E12) | 3.170 | 40.72 | 0.9157 | 44.62 | 1.3596 |
| 3,815 | (E8) | 3.137 | 40.50 | 0.9094 | 44.93 | 1.3488 |
| 3,815 | (E16) | 3.128 | 39.86 | 0.9083 | 45.16 | 1.3614 |
| 3,815 | w. DiLoCo (E16) | 3.139 | 42.71 | 0.9065 | 45.88 | 1.3301 |
| 5,722 | (E12) | 3.091 | 40.71 | 0.8980 | 45.72 | 1.3078 |
| 5,722 | (E24) | 3.122 | 43.20 | 0.9042 | 45.56 | 1.3655 |
| 5,722 | w. DiLoCo (E24) | 3.128 | 45.81 | 0.9029 | 46.97 | 1.3435 |
Table 5. Matched-optimizer-step comparison of baselines and DiLoCo. All methods use REPACK. Bold marks the best available result within each step budget.
We therefore view DiLoCo as promising but not yet conclusive, so did not use it for the rest of the experiments in the paper. We encourage further investigation into local-update methods for repeated-data training.
Additional Results for §5
Illustrative 70B/10T Repetition and Batch Extrapolation
We use our measured grid to estimate the repetition count and batch size—and hence the time and GPU resources—for a hypothetical 70B model trained on a 10T-token unique-data pool. This is an extreme, illustrative extrapolation rather than a precise target-scale prediction.
Epoch count. We first fit the validation-loss curves only to the tuned repetition-aware trajectories—REPACK, tied embeddings, and positive embedding weight decay—for the grid of model sizes and unique-data pools in §4. The fit uses the exact tied-embedding trainable counts from Table 2 and the highest-precision stored validation CE from all 100 eligible checkpoints.
We model validation loss after passes over the unique pool as
where the first term captures useful learning and the second captures degradation from repetition; this parameterization makes the continuous minimizer.
The loss is the mean of the weighted squared errors across the nine grid cells, in order to give each cell equal weight; within each cell, checkpoints are weighted by their local spacing in log so that densely sampled early epochs do not dominate. Because the loss curves become very flat near saturation, estimates of can be brittle. We therefore add soft hinge penalties that capture the observed curve shape without introducing synthetic loss values. When the first non-improving checkpoint brackets the turn between evaluated epochs and , the penalty is zero for and grows quadratically only when falls outside this interval. For and , we stopped training at due to compute constraints, even though the validation loss was still improving; we therefore use a one-sided penalty that increases only when lies below that endpoint. The hinge weight is 2.0.
Let and . A joint 15-parameter fit makes the five latent curve parameters affine in :
The resulting mean within-grid, log-spacing-weighted for the checkpoint-loss predictions is 0.980.
Next, we use the fitted curves to estimate , the practical saturation epoch for model size and unique-data pool . Because the exact minimizer can be unstable when the loss curve is flat, we define the stopping target as the first integer epoch within 0.001 validation loss of the fitted minimum:
This corresponds to a perplexity ratio of at most .
To extrapolate beyond the measured grid, we calculate for each of the nine fitted grid-cell curves and fit a power function to those nine model-derived values:
This summary fit has a multiplicative RMS error of 1.011× and log-space on the nine model-derived targets, and gives , which we round to 214 epochs.
Batch size. For batch size, nine observations are too few to support even this simple fit reliably. We therefore add the three Pool-111M batch optima, producing twelve observations for the batch-size fit only. The Pool-111M runs were continued only far enough to identify a clear batch-size winner for each model; because we did not train every model to saturation on that pool, we exclude those trajectories from the loss and epoch fits above. Ordinary least squares in log space gives
Its multiplicative RMS error is 1.29× and its log-space is 0.768. For a 70B model and 10T unique tokens, this fit extrapolates to approximately 1,536 sequences.
Resulting resource estimate. Rounding the projections to and gives approximately 340.1 million optimizer steps. Under the conventional configuration (Table 6)—gradient accumulation , microbatch size , tensor parallelism , pipeline parallelism , and optimizer-step latency seconds—this corresponds to approximately 6,144 H100 GPUs and 22.6 years of training.
| Model | DP | TP | PP | GPUs | Tok./s/GPU | DP | TP | PP | GPUs | Tok./s/GPU | ||||
| 1.5B | 8 | 128 | 1 | 1 | 128 | s | 54.6k | 1 | 1024 | 1 | 1 | 1024 | s | 18.6k |
| 8B | 2 | 512 | 1 | 1 | 512 | s | 8.19k | 1 | 1024 | 2 | 1 | 2048 | s | 3.41k |
| 32B | 1 | 1024 | 2 | 1 | 2048 | s | 1.05k | 1 | 1024 | 4 | 2 | 8192 | s | 0.73k |
| 70B | 1 | 1024 | 4 | 1 | 4096 | s | 0.49k | 1 | 1024 | 8 | 4 | 32768 | s | 0.23k |
Table 6. H100 projections for throughput-first and latency-first compute-parallelism configurations at the same global batch size, sequences, with gradient accumulation . Throughput and latency are simulated using a model that accounts for communication overhead. See §F for details.
From Throughput-First to Latency-First Compute Parallelism
This section describes how explicitly replacing a conventional, throughput-optimal model-parallelism configuration with a latency-optimal configuration can reduce training time—at the cost of using more GPUs—when training is time-constrained.
Conventional throughput-first policy. Large-scale training distributes a global batch across a compute-parallelism configuration defined by the local microbatch size and the data-parallel (DP), tensor-parallel (TP), and pipeline-parallel (PP) degrees.4 With gradient accumulation fixed to , so that , the conventional policy selects the feasible configuration with the highest throughput per GPU:
In practice, this favors the minimum model-parallel degree needed for memory feasibility and satisfactory utilization, a microbatch near the per-GPU throughput optimum, and DP for the remaining batch parallelism.
Latency-first policy. The latency-first policy instead selects the feasible microbatch and DP/TP/PP configuration with the shortest optimizer step while preserving the same global batch:
subject to memory, divisibility, and topology constraints. Additional H100s are assigned to TP or PP only when the reduction in exposed DP communication exceeds the added model-parallel communication and scheduling overhead.
Implementing and benchmarking the full microbatch and DP/TP/PP design space is beyond our scope. Instead, we use the simulated, communication-aware H100 model in §F to estimate optimizer-step latency () and throughput (tokens/s/GPU) across feasible configurations, and then report the throughput-optimal (left) and latency-optimal (right) configurations in Table 6. These results are fitted projections rather than end-to-end measurements.
Results show that explicitly optimizing for latency yields 1.67×–3.75× shorter optimizer steps across model sizes, at the cost of using more GPUs, through smaller microbatches and more aggressive model parallelism. For example, the latency-optimal 70B configuration reduces step latency by 3.75× by using 8× more GPUs. It is also worth noting that further model parallelism eventually stops improving latency because of communication and other overheads. For example, the 70B latency improvement saturates at 3.75× under our fitted model; beyond that point, additional model parallelism does not reduce latency.
Supplementary Materials for Time–GPU-Constrained Scaling
Figure 12 shows the batch size selected at each GPU count and deadline for the loss frontier in Figure 9 (§5.3). Each configuration uses exactly the indicated number of GPUs, with microbatch size held fixed. The corresponding validation losses are shown in Figure 9, with the black boundary indicating the region where the globally optimal loss under unconstrained GPU and time budgets is reached; beyond it, moving right (more time) or up (more GPUs) does not improve the validation loss.
Figure 12. Optimal batch size at each GPU count and deadline on the 1B-token pool, both for the original (left) and the repetition-aware recipe (right). Colors indicate the batch size of the observed configuration with the lowest validation CE that uses exactly the indicated number of H100 GPUs and finishes within the optimizer-step-equivalent deadline, with microbatch size held fixed. The black boundary indicates the region where the globally optimal loss under unconstrained GPU and time budgets is reached; beyond it, moving right (more time) or up (more GPUs) does not improve the validation loss.
Experiment Configurations for Sections 3 and 4
We report the exact hyperparameters used in all experiments in the main paper. is the global batch size in 4,096-token sequences, LR is the peak learning rate, WD is AdamW weight decay, and is the number of training passes, including terminal WSD decay.
| 1.5B, | |||
| LR | WD | CE | |
| 1 | 0.1 | 4.000 | |
| 2 | 0.3 | 3.469 | |
| 4 | 0.3 | 3.224 | |
| 8 | 0.3 | 3.124 | |
| 12 | 0.3 | 3.198 | |
| 474M, | |||
| LR | WD | CE | |
| 1 | 0.1 | 4.235 | |
| 2 | 0.1 | 3.625 | |
| 4 | 0.3 | 3.364 | |
| 8 | 0.3 | 3.226 | |
| 12 | 0.3 | 3.178 | |
| 16 | 0.3 | 3.155 | |
| 24 | 0.3 | 3.136 | |
| 32 | 0.3 | 3.136 | |
| 153M, | |||
| LR | WD | CE | |
| 1 | 0.033 | 4.038 | |
| 2 | 0.033 | 3.710 | |
| 4 | 0.033 | 3.531 | |
| 8 | 0.033 | 3.444 | |
| 12 | 0.1 | 3.413 | |
| 16 | 0.1 | 3.392 | |
| 24 | 0.1 | 3.372 | |
| 32 | 0.1 | 3.364 | |
| 40 | 0.1 | 3.361 | |
| 48 | 0.1 | 3.360 | |
| 56 | 0.1 | 3.360 |
Table 8. Examples of selected hyperparameters across training horizons for three model sizes on the 1B-token pool, corresponding to Figure 2 (§3). All evaluated epochs through the first checkpoint after the validation loss saturates or reverses are shown. Bold marks the best checkpoint. All runs use the original recipe.
| (a) | |||
| LR | WD | CE | |
| 1 | 0.1 | 3.420 | |
| 2 | 0.1 | 3.260 | |
| 4 | 0.1 | 3.147 | |
| 8 | 0.1 | 3.066 | |
| 12 | 0.1 | 3.034 | |
| 16 | 0.1 | 3.021 | |
| 20 | 0.1 | 3.017 | |
| (b) | |||
| LR | WD | CE | |
| 1 | 0.3 | 3.397 | |
| 2 | 0.3 | 3.230 | |
| 4 | 0.3 | 3.108 | |
| 8 | 0.3 | 3.029 | |
| 12 | 0.3 | 2.996 | |
| 16 | 0.3 | 2.982 | |
| 20 | 0.3 | 2.977 | |
| (c) | |||
| LR | WD | CE | |
| 1 | 0.1 | 4.000 | |
| 2 | 0.3 | 3.469 | |
| 4 | 0.3 | 3.224 | |
| 8 | 0.3 | 3.124 | |
| 12 | 0.3 | 3.198 |
Table 9. Hyperparameters for every plotted checkpoint in Figure 3 (§3), with the 1.5B model and a 1B-token pool. Each epoch uses its own selected LR/WD pair. All runs use the original recipe.
| Loader | LR | WD | CE | |
| Fixed | 0.3 | 16 | 3.011 | |
| Shuffle | 0.3 | 20 | 2.977 | |
| Repack | 0.3 | 24 | 2.971 | |
| Loader | LR | WD | CE | |
| Fixed | 0.3 | 8 | 3.205 | |
| Shuffle | 0.3 | 8 | 3.124 | |
| Repack | 1 | 24 | 3.064 |
Table 10. Configurations for the data-loader comparison table in Figure 4a (§4), with the 1.5B model and a 1B-token pool. All runs use untied embeddings and no embedding decay.
| FIXED | SHUFFLE | REPACK | |||||||||
| LR | WD | CE | LR | WD | CE | LR | WD | CE | |||
| 1 | 0.3 | 4.000 | 1 | 0.1 | 4.000 | 1 | 0.1 | 4.000 | |||
| 2 | 0.3 | 3.467 | 2 | 0.3 | 3.469 | 2 | 0.3 | 3.468 | |||
| 4 | 0.3 | 3.240 | 4 | 0.3 | 3.224 | 4 | 0.3 | 3.221 | |||
| 8 | 0.3 | 3.205 | 8 | 0.3 | 3.124 | 8 | 0.3 | 3.137 | |||
| 12 | 0.3 | 3.248 | 12 | 0.3 | 3.198 | 12 | 1 | 3.091 | |||
| 16 | 1 | 3.069 | |||||||||
| 20 | 1 | 3.065 | |||||||||
| 24 | 1 | 3.064 | |||||||||
| 28 | 1 | 3.067 |
Table 11. Hyperparameters for every plotted checkpoint in Figure 4(b) (§4), with the 1.5B model, a 1B-token pool, and . All runs use untied embeddings and no embedding decay.
| Configuration | LR | WD | CE | Configuration | LR | WD | CE | ||||
| SHUFFLE, untied | 0 | 0.3 | 20 | 2.977 | SHUFFLE, untied | 0 | 0.3 | 8 | 3.124 | ||
| REPACK, untied | 0 | 0.3 | 24 | 2.971 | REPACK, untied | 0 | 1 | 24 | 3.064 | ||
| REPACK, tied | 0 | 0.3 | 24 | 2.971 | REPACK, tied | 0 | 1 | 20 | 3.061 | ||
| REPACK, untied | 0.3 | 0.3 | 32 | 2.951 | REPACK, untied | 1 | 1 | 28 | 3.050 | ||
| REPACK, tied | 0.3 | 0.3 | 32 | 2.946 | REPACK, tied | 1 | 1 | 28 | 3.030 |
Table 12. Configurations for the weight-tying/embedding-decay comparison table in Figure 5(a) (§4), with the 1.5B model and a 1B-token pool.
| Untied, no embedding decay | Tied, no embedding decay | Tied, positive embedding decay | |||||||||
| LR | WD | CE | LR | WD | CE | LR | WD | CE | |||
| 1 | 0.3 | 3.397 | 1 | 0.3 | 3.376 | 1 | 0.3 | 3.381 | |||
| 2 | 0.3 | 3.229 | 2 | 0.3 | 3.211 | 2 | 0.3 | 3.217 | |||
| 4 | 0.3 | 3.112 | 4 | 0.3 | 3.097 | 4 | 0.3 | 3.102 | |||
| 8 | 0.3 | 3.027 | 8 | 0.3 | 3.021 | 8 | 0.3 | 3.020 | |||
| 12 | 0.3 | 2.994 | 12 | 0.3 | 2.993 | 12 | 0.3 | 2.986 | |||
| 16 | 0.3 | 2.978 | 16 | 0.3 | 2.979 | 16 | 0.3 | 2.967 | |||
| 20 | 0.3 | 2.972 | 20 | 0.3 | 2.973 | 20 | 0.3 | 2.956 | |||
| 24 | 0.3 | 2.971 | 24 | 0.3 | 2.971 | 24 | 0.3 | 2.950 | |||
| 28 | 0.3 | 2.947 | |||||||||
| 32 | 0.3 | 2.946 | |||||||||
| 36 | 0.3 | 2.946 |
Table 13. Hyperparameters for every plotted checkpoint in Figure 5(b) (§4), with the 1.5B model, a 1B-token pool, , and REPACK.
| 1.5B | 474M | 153M | ||||||||||||
| LR | WD | CE | LR | WD | CE | LR | WD | CE | ||||||
| 64 | 0.3 | 32 | 2.946 | 64 | 0.1 | 56 | 3.064 | 64 | 0.1 | 224 | 3.293 | |||
| 128 | 0.3 | 20 | 2.979 | 128 | 0.3 | 80 | 3.060 | 128 | 0.1 | 240 | 3.285 | |||
| 256 | 1 | 40 | 3.019 | 256 | 0.3 | 64 | 3.064 | 256 | 0.1 | 208 | 3.298 | |||
| 512 | 1 | 28 | 3.030 | 512 | 0.3 | 40 | 3.105 | 512 | 0.3 | 256 | 3.322 |
Table 14. Hyperparameters for the repetition-tuned recipe across all model sizes and batch sizes, in Figure 6 (§4), on a 1B-token pool. The same checkpoints were used for the validation loss and the Hellaswag BPB. Original-recipe configurations are in Table 7.
| 1.5B | |||||
| LR | WD | CE | |||
| 16 | 0.1 | 20 | 3.017 | ||
| 32 | 0.3 | 20 | 3.001 | ||
| 64 | 0.3 | 20 | 2.977 | ||
| 128 | 0.3 | 16 | 2.998 | ||
| 256 | 0.3 | 12 | 3.037 | ||
| 512 | 0.3 | 8 | 3.124 | ||
| 474M | |||||
| LR | WD | CE | |||
| 32 | 0.1 | 32 | 3.113 | ||
| 64 | 0.1 | 32 | 3.093 | ||
| 128 | 0.3 | 40 | 3.101 | ||
| 256 | 0.3 | 32 | 3.102 | ||
| 512 | 0.3 | 24 | 3.136 | ||
| 153M | |||||
| LR | WD | CE | |||
| 32 | 0.1 | 88 | 3.350 | ||
| 64 | 0.1 | 112 | 3.332 | ||
| 128 | 0.1 | 72 | 3.341 | ||
| 256 | 0.1 | 48 | 3.360 | ||
| 512 | 0.1 | 40 | 3.416 |
Table 7. Hyperparameters for the batch-size sweep in Figure 2 (§3), all on a 1B-token pool. The 1.5B, row also supplies our observed result in the batch-size comparison in Table 1. All runs use the original recipe.
| 1.5B | 474M | 153M | |||||||||||||||
| LR | WD | CE | LR | WD | CE | LR | WD | CE | |||||||||
| 0.333 | 64 | 0.3 | 28 | 3.255 | 0.333 | 64 | 0.3 | 32 | 3.281 | 0.333 | 64 | 0.3 | 144 | 3.452 | |||
| 1 | 64 | 0.3 | 32 | 2.946 | 1 | 128 | 0.3 | 80 | 3.060 | 1 | 128 | 0.1 | 240 | 3.285 | |||
| 3 | 128 | 0.3 | 80 | 2.767 | 3 | 256 | 0.1 | 112 | 2.909 | 3 | 256 | 0.1 | 640 | 3.196 |
Table 15. Hyperparameters for every repetition-tuned point in the data-pool-size comparison of Figure 7 (§4). is the unique-data pool size in billions of tokens.
Parallelism and Step-Time Estimation
This appendix summarizes the H100 performance model used in §D.2. We compare (1) a conventional thoughput-first policy that prioritizes tokens per GPU-second with (2) a latency-first policy that minimizes optimizer-step time. The estimates are projections rather than measurements of every configuration.
Setup and policies. We model dense decoder-only Transformers at sequence length , with no context parallelism. Let , , , , and denote the data-parallel, tensor-parallel, pipeline-parallel, microbatch, and gradient-accumulation degrees. Then
We assume FP8 matrix multiplications, BF16 parameters and communication, FlashAttention, activation checkpointing, sequence parallelism for , and distributed AdamW with sharded optimizer states. Parameters remain replicated across DP groups; we do not substitute ZeRO-3 or FSDP for TP or PP. Both policies fix the global batch at sequences and gradient accumulation at .
The throughput-first policy uses a microbatch near the per-GPU throughput optimum and the smallest model-parallel degree that fits. The latency-first policy instead fixes , hence , and searches and subject to memory, divisibility, and topology constraints. TP groups are kept within one eight-GPU NVLink domain.
Configuration-dependent compute and pipeline time. For parameter count , the forward-and-backward work per sequence is . Rather than assigning one effective FLOP rate to all latency-first configurations, let denote the effective per-GPU rate for the particular configuration. This rate includes TP collectives and the loss of kernel efficiency as local matrices and pipeline stages become smaller. For one microbatch, the pipeline critical path is
The second form is exact only when stages are balanced. Writing the first form explicitly matters: PP does not ideally shorten the single-microbatch compute path, and can lengthen it when smaller stages lower utilization.
Forward activations and backward activation gradients cross each of the pipeline boundaries. For hidden dimension , their approximate BF16 volume is
This term is normally much smaller than DP gradient communication, but it is monotone in and therefore prevents cost-free pipeline splitting.
Data-parallel communication and overlap. With BF16 communication, a distributed-optimizer step performs a gradient reduce-scatter and a parameter all-gather. Their per-rank volumes are
Let and include both bandwidth and collective latency. Gradient reduction can overlap only with the remaining backward schedule after a bucket becomes ready; parameter gathering can overlap only with optimizer work and the appropriate portion of the next forward pass. For a compact fitted model, we combine the phases into and expose only the portion that cannot overlap the forward–backward critical path:
where is a fitted overlap fraction. This interpolates between no overlap () and the optimistic maximum model () without allowing communication to overlap more compute than is available.
Our steady-state step estimate is
where and cover optimizer and fixed framework costs. All terms that vary with or are kept explicit or calibrated separately; they are not absorbed into a configuration-independent residual.
Calibration and selection. We anchor H100 compute rates and feasible configurations to NVIDIA Megatron measurements [26 a]. For 70B we use PFLOP/s/GPU at TP8, , and fit the effective DP bandwidth to the stated TP4/PP1 latency of 2.10 s. This gives GB/s. We apply stage-efficiency penalties of 0%, 3%, and 8% at PP2, PP4, and PP8, respectively. The fitted combined values of are 0.05, 0.09, 0.11, and 0.18 s for PP1, PP2, PP4, and PP8. These coefficients are held fixed while evaluating the candidates; they are not refit to favor a particular configuration.
The resulting 70B candidate latencies are
| (s) | 2.10 | 1.28 | 1.01 | 1.01 | 1.08 | 0.69 | 0.56 | 0.59 |
Table 16.
Thus the fitted latency objective selects TP8/PP4. PP8 provides no ideal single-microbatch compute reduction after PP4 reaches the compute floor, and its lower stage efficiency and additional PP overhead make it slower.
References
- [1]Akshita Bhagia, Jiacheng Liu, Alexander Wettig, David Heineman, Oyvind Tafjord, Ananya Harsh Jha, Luca Soldaini, Noah A. Smith, Dirk Groeneveld, Pang Wei Koh, Jesse Dodge, and Hanneah Hajishirzi. Establishing task scaling laws via compute-efficient model ladders. In Conference on Language Modeling, 2025.arxiv.org/abs/2412.04403
- [2]Xiao Bi, Deli Chen, Guanting Chen, et al. DeepSeek LLM: Scaling open-source language models with longtermism. arXiv preprint arXiv:2401.02954, 2024.arxiv.org/abs/2401.02954
- [3]Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aivya Skowron, Lintang Sutawika, and Oskar van der Wal. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, 2023.arxiv.org/abs/2304.01373
- [4]Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, 2020.arxiv.org/abs/1911.11641
- [5]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try ARC, the AI2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.arxiv.org/abs/1803.05457
- [6]Nolan Dey, Gurpreet Gosal, Zhiming (Charles) Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. Cerebras-GPT: Open compute-optimal language models trained on the cerebras wafer-scale cluster. arXiv preprint arXiv:2304.03208, 2023.arxiv.org/abs/2304.03208
- [7]Arthur Douillard, Qixuan Feng, Andrei A. Rusu, Rachita Chhaparia, Yani Donchev, Adhiguna Kuncoro, Marc’Aurelio Ranzato, Arthur Szlam, and Jiajun Shen. DiLoCo: Distributed low-communication training of language models. In ICML Workshop on Advancing Neural Network Training (WANT), 2024.arxiv.org/abs/2311.08105
- [8]Alex Fang, Hadi Pouransari, Matt Jordan, Alexander Toshev, Vaishaal Shankar, Ludwig Schmidt, and Tom Gunter. Datasets, documents, and repetitions: The practicalities of unequal data quality. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2503.07879
- [9]Samir Yitzhak Gadre, Georgios Smyrnis, Vaishaal Shankar, Suchin Gururangan, Mitchell Wortsman, Rulin Shao, Jean Mercat, Alex Fang, Jeffrey Li, Sedrick Keh, Rui Xin, Marianna Nezhurina, Igor Vasiljevic, Jenia Jitsev, Luca Soldaini, Alexandros G. Dimakis, Gabriel Ilharco, Pang Wei Koh, Shuran Song, Thomas Kollar, Yair Carmon, Achal Dave, Reinhard Heckel, Niklas Muennighoff, and Ludwig Schmidt. Language models scale reliably with over-training and on downstream tasks. In International Conference on Learning Representations, 2025.arxiv.org/abs/2403.08540
- [10]Dirk Groeneveld, Iz Beltagy, Pete Walsh, et al. OLMo: Accelerating the science of language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2024.arxiv.org/abs/2402.00838
- [11]David Heineman, Valentin Hofmann, Ian Magnusson, Yuling Gu, Noah A. Smith, Hannah Hajjishirzi, Kyle Lo, and Jesse Dodge. Signal and noise: A framework for reducing uncertainty in language model evaluation. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2508.13144
- [12]Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Henighan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Oriol Vinyals, Jack W. Rae, and Laurent Sifre. Training compute-optimal large language models. In Advances in Neural Information Processing Systems, volume 35, 2022.arxiv.org/abs/2203.15556
- [13]Shengding Hu, Yuge Tu, Xu Han, et al. MiniCPM: Unveiling the potential of small language models with scalable training strategies. In Conference on Language Modeling, 2024.arxiv.org/abs/2404.06395
- [14]Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.arxiv.org/abs/2001.08361
- [15]Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In International Conference on Learning Representations, 2017.arxiv.org/abs/1609.04836
- [16]Konwoo Kim, Suhas Kotha, Percy Liang, and Tatsunori Hashimoto. Pre-training under infinite compute. In International Conference on Learning Representations, 2026.arxiv.org/abs/2509.14786
- [17]Jeffrey Li, Alex Fang, Georgios Smyrnis, et al. DataComp-LM: In search of the next generation of training sets for language models. In Advances in Neural Information Processing Systems, volume 37, 2024.arxiv.org/abs/2406.11794
- [18]Margaret Li, Suchin Gururangan, Tim Dettmers, Mike Lewis, Tim Althoff, Noah A. Smith, and Luke Zettlemoyer. Branch-train-merge: Embarrassingly parallel training of expert language models. arXiv preprint arXiv:2208.03306, 2022.arxiv.org/abs/2208.03306
- [19]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
- [20]Sam McCandlish, Jared Kaplan, Dario Amodei, and OpenAI Dota Team. An empirical model of large-batch training. arXiv preprint arXiv:1812.06162, 2018.arxiv.org/abs/1812.06162
- [21]William Merrill, Shane Arora, Dirk Groeneveld, and Hanneah Hajishirzi. Critical batch size revisited: A simple empirical approach to large-batch language model training. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2505.23971
- [22]Meta AI. The Llama 4 herd: The beginning of a new era of natively multimodal AI innovation. Meta AI, 2025. April 5, 2025.
- [23]Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018.arxiv.org/abs/1809.02789
- [24]Niklas Muennighoff, Alexander M. Rush, Boaz Barak, Teven Le Scao, Aleksandra Piktus, Nouamane Tazi, Sampo Pyysalo, Thomas Wolf, and Colin Raffel. Scaling data-constrained language models. In Advances in Neural Information Processing Systems, volume 36, 2023.arxiv.org/abs/2305.16264
- [26]NVIDIA. Megatron Bridge: Performance archive. NVIDIA documentation, 2026b. Accessed 2026-08-17.
- [27]Ofr Press and Lior Wolf. Using the output embedding to improve language models. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers. Association for Computational Linguistics, 2017.arxiv.org/abs/1608.05859
- [29]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. Technical report, OpenAI, 2019.
- [30]Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An adversarial winograd schema challenge at scale. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, 2020.arxiv.org/abs/1907.10641
- [32]Anton Shilov. Elon musk confirms that Grok 3 is coming soon—pretraining took 10X more compute power than Grok 2 on 100,000 Nvidia H100 GPUs. Tom’s Hardware, 2025. January 6, 2025.
- [33]Xian Shuai, Yiding Wang, Yimeng Wu, Xin Jiang, and Xiaozhe Ren. Scaling law for language models training considering batch size. arXiv preprint arXiv:2412.01505, 2024.arxiv.org/abs/2412.01505
- [34]Samuel L. Smith, Erich Elsen, and Soham De. On the generalization benefit of noise in stochastic gradient descent. In International Conference on Machine Learning, 2020.arxiv.org/abs/2006.15081
- [35]Sebastian U. Stich. Local SGD converges fast and communicates little. In International Conference on Learning Representations, 2019.arxiv.org/abs/1805.09767
- [36]Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. CommonsenseQA: A question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), 2019.arxiv.org/abs/1811.00937
- [37]Pablo Villalobos, Anson Ho, Jaime Sevilla, Tamay Besiroglu, Lennart Heim, and Marius Hobbhahn. Position: Will we run out of data? limits for LLM scaling based on human-generated data. In International Conference on Machine Learning, 2024.
- [38]Ryan Wang, Akshita Bhagia, and Sewon Min. EMO: Pretraining mixture of experts for emergent modularity. In Advances in Neural Information Processing Systems, 2026.arxiv.org/abs/2605.06663
- [39]Kaiyue Wen, Zhiyuan Li, Jason Wang, David Hall, Percy Liang, and Tengyu Ma. Understanding warmup-stable-decay learning rates: A river valley loss landscape view. In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.05192
- [40]Zhiwei Xu, Shihao Wu, Hanseul Cho, Wei Hu, and Yixin Wang. Data-constrained language model pre-training: Improved regularization and scaling laws. In Advances in Neural Information Processing Systems, 2026.arxiv.org/abs/2606.06888
- [41]Fuzhao Xue, Yao Fu, Wangchunshu Zhou, Zangwei Zheng, and Yang You. To repeat or not to repeat: Insights from scaling LLM under token-crisis. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2305.13230
- [42]Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019.arxiv.org/abs/1905.07830
- [43]Hanlin Zhang, Depen Morwani, Nikhil Vyas, Jingfeng Wu, Difan Zou, Udaya Ghai, Dean Foster, and Sham M. Kakade. How does critical batch size scale in pre-training? In International Conference on Learning Representations, 2025.arxiv.org/abs/2410.21676
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.








