Skip to content

Menu

WorksComputer Science

Scaling Repeated-Data Pretraining: Batch Size, Regularization, and GPU-Time Tradeoffs

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_8eezd5es. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

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 B∗B^* 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.

  1. Batch size must account for repeated-data generalization. Repeated-data training favors smaller batches than those used in conventional pretraining (§3).

  1. Training recipes must be adapted to repeated exposure. Repacking documents across epochs and regularizing embeddings improve attainable loss and make more repetitions beneficial (§4).

  1. 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×\times 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 Du/ND_u/N 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 NN parameters and DuD_u unique tokens, EE passes yield Dtrain=EDuD_{\mathrm{train}} = ED_u token presentations. We sweep global batches of 16–512 sequences for the 1.5B model and 32–512 for the smaller models.

For each (N,Du,B)(N, D_u, B), 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 (1/2×1/2\times and 2×2\times) and a weight-decay value one level higher (3×3\times).

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 B=512B = 512 run, the best B=64B = 64 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 B=64B = 64, 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 B=64B = 64 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 Bopt=0.2920CF0.3271B_{\mathrm{opt}} = 0.2920C_{\mathrm{F}}^{0.3271} and Bopt=6.42×103CF0.102B_{\mathrm{opt}} = 6.42 \times10^{3}C_{\mathrm{F}}^{0.102}, respectively, with CFC_{\mathrm{F}} in FLOPs and BB 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 1.8×10201.8 \times10^{20} 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.

CFC_{\mathrm{F}} (equiv. EE)Batch size (million tokens)
Bi et al.0.90×10190.90 \times10^{19} (E=1E = 1)0.463
Bi et al.7.20×10197.20 \times10^{19} (E=8E = 8)0.914
Bi et al.18.0×101918.0 \times10^{19} (E=20E = 20)1.233
Shuai et al.0.90×10190.90 \times10^{19} (E=1E = 1)0.551
Shuai et al.7.20×10197.20 \times10^{19} (E=8E = 8)0.681
Shuai et al.18.0×101918.0 \times10^{19} (E=20E = 20)0.747
Ours∞\infty (CF⋅E=20C_{\mathrm{F}} \cdot E = 20)0.262

Table 1. Batch-size comparison for the 1.5B model on the 1B-token pool. CF≈6NEDuC_{\mathrm{F}} \approx6NED_{\mathrm{u}} 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 (B=512B = 512) sees a larger train-validation gap and earlier validation degradation, consistent with weaker stochastic regularization.

  • B=512B = 512 vs. B=64B = 64: Early in training, B=512B = 512 is under-optimized because it takes fewer optimizer steps per epoch. Later, however, its training loss drops below that of B=64B = 64, 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].

  • B=16B = 16 vs. B=64B = 64: Their training losses are similar early in training. At later epochs, B=16B = 16 achieves lower training loss but higher validation loss than B=64B = 64. Thus, below B=64B = 64, 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., B=512B = 512) and in more severely data-constrained settings. Near the batch optimum, however, its effect is smaller: at B=64B = 64, 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:

  1. FIXED: keeping packed sequences, minibatch composition, and minibatch order fixed across epochs, as in Kim et al. [16];

  2. SHUFFLE: keeping sequence boundaries fixed while reshuffling sequences across minibatches, producing fresh batches each epoch; and

  1. 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 B={64,512}B = \{64, 512\}. FIXED clearly underperforms SHUFFLE in validation CE and exhibits a larger train-validation gap at B=512B = 512. REPACK further improves on SHUFFLE at both batch sizes and reaches its best observed validation loss later in training, with a clearer benefit at B=512B = 512 than at B=64B = 64. These results indicate that, for a fixed unique-data pool, how examples are presented across epochs materially affects the attainable frontier.

Data-loader ablation: best validation CE table and validation-selected envelopes for $B = 512$
LoaderB=64B = 64B=512B = 512
FIXED3.011 (E16)3.205 (E8)
SHUFFLE2.977 (E20)3.124 (E8)
REPACK2.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 B=512B = 512; 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 {untied model, tied model}×{no embedding decay, positive embedding decay}\{\text{untied model},\ \text{tied model}\} \times\{\text{no embedding decay},\ \text{positive embedding decay}\}.

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 B=64B = 64 and from 3.064 to 3.030 at B=512B = 512, 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

Weight-tying and embedding-decay ablation with REPACK: best validation CE table and validation-selected envelopes for $B = 64$
LoaderMethodB=64B = 64B=512B = 512
SHUFFLEUntied2.977 (E20)3.124 (E8)
REPACKUntied2.971 (E24)3.064 (E24)
REPACKTied, WDEmb=0\mathrm{WD}_{\mathrm{Emb}} = 02.971 (E24)3.061 (E20)
REPACKUntied, WDEmb>0\mathrm{WD}_{\mathrm{Emb}} > 02.951 (E32)3.050 (E28)
REPACKTied, WDEmb>0\mathrm{WD}_{\mathrm{Emb}} > 02.946 (E32)3.030 (E28)

Epoch; Cross-entropy; Untied; Tied, WDEmb=0\mathrm{WD}_{\mathrm{Emb}} = 0; Tied, WDEmb>0\mathrm{WD}_{\mathrm{Emb}} > 0; 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 B=64B = 64; 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.

StackRepeated-data orderTyingEmbed. WDHead WD
OpenLMFIXEDNo>0> 0>0> 0
Marin / LevanterFIXEDNo00>0> 0
olmo-coreSHUFFLENo00>0> 0
LLM Foundry MPTSHUFFLEYesshared00
Hugging Face TrainerSHUFFLEModel-specific0000
Meta LinguaSHUFFLENo>0> 0>0> 0
Pythia / GPT-NeoXREPACKNo>0> 0>0> 0
Megatron-LMREPACKYesshared>0> 0
NeMo Megatron BridgeREPACKModel-specific>0> 0>0> 0 or shared
Ours: data-constrainedREPACKYesshared>0> 0

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 B=512B = 512 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 N=70BN = 70\mathrm{B} trained on Du=10TD_u = 10\mathrm{T} unique tokens. We fit the loss curve for extrapolation and define E⋆E^\star 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 E⋆≈214.2E^\star\approx214.2 and B⋆≈1,536B^\star\approx1{,}536. At sequence length 4,096, this corresponds to approximately 340.1 million optimizer steps. With gradient accumulation a=1a = 1, microbatch size m=1m = 1, tensor parallelism t=4t = 4, pipeline parallelism p=1p = 1, and the optimistic optimizer-step latency τ(70)≈2.10\tau(70) \approx2.10 seconds,3 the corresponding resource requirements are

G⋆≈6,144 H100 GPUsT⋆≈22.6 years.G^\star\approx6{,}144\ \mathrm{H100\ GPUs} \qquad T^\star\approx22.6\ \mathrm{years}.

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:

  1. the number of data repetitions (equivalently, the stopping epoch EE),

  2. the global batch size BB, and

  3. the compute-parallelism configuration, including the microbatch size and the DP, TP, and PP degrees.

Stopping early while retaining the unconstrained batch B⋆B^{\star} 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 EE, and batch sizes BB, 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 B⋆B^{\star}.

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; BT⋆B_{T}^{\star} 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 8×8 \times more GPUs and shortens 1.5B-model training by 2.7×2.7 \times at unchanged validation CE. At the extrapolated 70B scale, using 8×8 \times more model parallelism yields a projected 3.75×3.75 \times 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 (EE), batch size (BB), 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.

ModelNuntiedN_{\mathrm{untied}}NtiedN_{\mathrm{tied}}Layersdmodeld_{\mathrm{model}}Headsdffd_{\mathrm{ff}}
153M153,104,896101,724,6721251282,048
474M473,990,144371,229,696161,024164,096
1.5B1,484,851,2001,279,330,304162,048168,192

Table 2. Model architectures. Untied counts define the nominal model labels; tied counts are the trainable parameter counts used as NN in our repetition-aware scaling laws. dmodeld_{\mathrm{model}} is the residual width and dffd_{\mathrm{ff}} 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 (β1,β2)=(0.9,0.95)(\beta_1, \beta_2) = (0.9, 0.95), gradient clipping at 1.0, and a 10−510^{-5} 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 b∈{16,32,64,128,256,512}b \in\{16, 32, 64, 128, 256, 512\} sequences for the 1.5B model and b∈{32,64,128,256,512}b \in\{32, 64, 128, 256, 512\} for the 153M and 474M models. We search over peak learning rates in {5×10−4,10−3,2×10−3,4×10−3}\{5 \times10^{-4}, 10^{-3}, 2 \times10^{-3}, 4 \times10^{-3}\} and weight decays in {0.011,0.033,0.1,0.3,1.0,3.0}\{0.011, 0.033, 0.1, 0.3, 1.0, 3.0\}; values outside these ranges were never selected. Because AdamW applies decay once per optimizer step, its cumulative effect depends on BB, 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 sizeLRWDEval. epochPool APool BPool CAcross-pool SD
325×10−45\times10^{-4}0.3203.000523.000763.000930.00021
641×10−31\times10^{-3}0.3202.977132.977332.975940.00075
1281×10−31\times10^{-3}0.3162.998392.999362.996280.00157
2562×10−32\times10^{-3}0.3123.036893.042923.041670.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 B=64B=64, the batch-tuned repeated-data recipe matches training on ∼8×\sim8\times more unique data. Against the throughput-oriented B=1024B=1024 unique-data curve, it matches ∼16×\sim16\times more unique data. Without tuning BB, the prior repeated-data recipe matches only ∼8×\sim8\times more unique data. Tuning BB therefore provides a gain comparable to doubling the unique-data budget.

Unique-data equivalent of repeated-data training

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 BB. With tuning, repeated-data training matches 6×6\times–8×8\times unique data at B=64B=64 and ∼16×\sim16\times at B=1024B=1024; without tuning, it matches ∼8×\sim8\times at B=1024B=1024.

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 BB: 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 B=64B = 64.

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 B=64B = 64.

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 B=64B = 64 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 HH 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 H=32H = 32, 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.

StepsMethodVal. CE ↓HellaSwag Acc. ↑HellaSwag BPB ↓8-task average Acc. ↑8-task average BPB ↓
1,907B=512B = 512 (E4)3.22135.020.937442.701.4018
1,907B=1,024B = 1{,}024 (E8)3.22636.410.938642.551.4265
1,907B=1,024B = 1{,}024 w. DiLoCo (E8)3.21738.090.933143.171.3831
2,861B=512B = 512 (E6)—————
2,861B=1,024B = 1{,}024 (E12)3.16037.640.919143.481.3673
2,861B=1,024B = 1{,}024 w. DiLoCo (E12)3.17040.720.915744.621.3596
3,815B=512B = 512 (E8)3.13740.500.909444.931.3488
3,815B=1,024B = 1{,}024 (E16)3.12839.860.908345.161.3614
3,815B=1,024B = 1{,}024 w. DiLoCo (E16)3.13942.710.906545.881.3301
5,722B=512B = 512 (E12)3.09140.710.898045.721.3078
5,722B=1,024B = 1{,}024 (E24)3.12243.200.904245.561.3655
5,722B=1,024B = 1{,}024 w. DiLoCo (E24)3.12845.810.902946.971.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 3×33 \times3 grid of model sizes and unique-data pools in §4. The fit uses the exact tied-embedding trainable counts N∈{101,724,672;371,229,696;1,279,330,304}N \in\{101{,}724{,}672; 371{,}229{,}696; 1{,}279{,}330{,}304\} from Table 2 and the highest-precision stored validation CE from all 100 eligible checkpoints.

We model validation loss after EE passes over the unique pool as

L^(E,N,Du)=L0+AE−α+BrepEβ,Brep=αAβEmin⁡α+β,(1)\widehat{L}(E,N,D_u) = L_0 + AE^{-\alpha} + B_{\mathrm{rep}}E^\beta,\qquad B_{\mathrm{rep}} = \frac{\alpha A}{\beta E_{\min}^{\alpha+\beta}}, \tag*{(1)}

where the first term captures useful learning and the second captures degradation from repetition; this parameterization makes Emin⁡E_{\min} 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 EE so that densely sampled early epochs do not dominate. Because the loss curves become very flat near saturation, estimates of Emin⁡E_{\min} 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 EaE_a and EbE_b, the penalty is zero for Ea<Emin⁡<EbE_a < E_{\min} < E_b and grows quadratically only when Emin⁡E_{\min} falls outside this interval. For N=153MN = 153\mathrm{M} and Du=3BD_u = 3\mathrm{B}, we stopped training at E=640E = 640 due to compute constraints, even though the validation loss was still improving; we therefore use a one-sided penalty that increases only when Emin⁡E_{\min} lies below that endpoint. The hinge weight is 2.0.

Let x=log⁡(N/371,229,696)x = \log(N/371{,}229{,}696) and y=log⁡(Du/109)y = \log(D_u/10^9). A joint 15-parameter fit makes the five latent curve parameters affine in (x,y)(x,y):

\begin{bmatrix} L_0\\ \log A\\ \log\alpha\\ \log E_{\min}\\ \log\beta \end{bmatrix} = \begin{bmatrix} -0.10524 & -0.59081 & -1.51710\\ 0.60213 & 0.18444 & 0.39532\\ -1.62858 & -0.04994 & -0.64827\\ 4.55678 & -0.74715 & 0.54148\\ -2.80029 & 0.25300 & -0.07690 \end{bmatrix} \begin{bmatrix} 1\\ x\\ y \end{bmatrix}. \tag*{(2)}\end{bmatrix}

The resulting mean within-grid, log-spacing-weighted R2R^2 for the checkpoint-loss predictions is 0.980.

Next, we use the fitted curves to estimate E⋆(N,Du)E^\star(N,D_u), the practical saturation epoch for model size NN and unique-data pool DuD_u. 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:

E⋆(N,Du)=min⁡{E≥1:L^(E,N,Du)≤L^(Emin⁡,N,Du)+0.001}.(3)E^\star(N,D_u) = \min\left\{E \ge1 : \widehat{L}(E,N,D_u) \le\widehat{L}(E_{\min},N,D_u) + 0.001\right\}. \tag*{(3)}

This corresponds to a perplexity ratio of at most exp⁡(0.001)≈1.001\exp(0.001) \approx1.001.

To extrapolate beyond the measured grid, we calculate E⋆E^\star for each of the nine fitted grid-cell curves and fit a power function to those nine model-derived values:

E⋆(N,Du)=37.64(N109)−0.6986(Du109)0.5111.(4)E^\star(N,D_u) = 37.64\left(\frac{N}{10^9}\right)^{-0.6986}\left(\frac{D_u}{10^9}\right)^{0.5111}. \tag*{(4)}

This summary fit has a multiplicative RMS error of 1.011× and log-space R2=0.9998R^2 = 0.9998 on the nine model-derived targets, and gives E⋆(70B,10T)=214.2E^\star(70\mathrm{B},10\mathrm{T}) = 214.2, 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

B⋆(N,Du)=101.751(N109)−0.13583(Du109)0.35740 sequences.(5)B^{\star}(N,D_u)=101.751\left(\frac{N}{10^9}\right)^{-0.13583}\left(\frac{D_u}{10^9}\right)^{0.35740}\ \text{sequences}. \tag*{(5)}

Its multiplicative RMS error is 1.29× and its log-space R2R^2 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 E⋆=214E^{\star}=214 and B⋆=1,536B^{\star}=1{,}536 gives approximately 340.1 million optimizer steps. Under the conventional configuration (Table 6)—gradient accumulation a=1a=1, microbatch size m=1m=1, tensor parallelism t=4t=4, pipeline parallelism p=1p=1, and optimizer-step latency τ(70)≈2.10\tau(70)\approx2.10 seconds—this corresponds to approximately 6,144 H100 GPUs and 22.6 years of training.

ModelmmDPTPPPGPUsTstepT_{\mathrm{step}}Tok./s/GPUmmDPTPPPGPUsTstepT_{\mathrm{step}}Tok./s/GPU
1.5B812811128∼0.60\sim0.60 s54.6k11024111024∼0.22\sim0.22 s18.6k
8B251211512∼1.00\sim1.00 s8.19k11024212048∼0.60\sim0.60 s3.41k
32B11024212048∼1.95\sim1.95 s1.05k11024428192∼0.70\sim0.70 s0.73k
70B11024414096∼2.10\sim2.10 s0.49k110248432768∼0.56\sim0.56 s0.23k

Table 6. H100 projections for throughput-first and latency-first compute-parallelism configurations at the same global batch size, B=1,024B = 1{,}024 sequences, with gradient accumulation a=1a = 1. 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 a=1a=1, so that Bfixed=dmB_{\mathrm{fixed}}=dm, the conventional policy selects the feasible configuration with the highest throughput per GPU:

(dth⋆,tth⋆,pth⋆,mth⋆)=arg⁡max⁡d,t,p,mdm=Bfixeddtp≤G mStpTstep(d,t,p,m).(d_{\mathrm{th}}^{\star},t_{\mathrm{th}}^{\star},p_{\mathrm{th}}^{\star},m_{\mathrm{th}}^{\star})=\underset{\substack{d,t,p,m\\dm=B_{\mathrm{fixed}}\\dtp\leq G}}{\arg\max}\ \frac{mS}{tpT_{\mathrm{step}}(d,t,p,m)}.

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:

(d⋆,t⋆,p⋆,m⋆)=arg⁡min⁡d,t,p,mdm=Bfixeddtp≤G Tstep(d,t,p,m),(d^{\star},t^{\star},p^{\star},m^{\star})=\underset{\substack{d,t,p,m\\dm=B_{\mathrm{fixed}}\\dtp\leq G}}{\arg\min}\ T_{\mathrm{step}}(d,t,p,m),

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 (TstepT_{\mathrm{step}}) 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. BB is the global batch size in 4,096-token sequences, LR is the peak learning rate, WD is AdamW weight decay, and EE is the number of training passes, including terminal WSD decay.

1.5B, B=512B = 512
EELRWDCE
110−310^{-3}0.14.000
210−310^{-3}0.33.469
410−310^{-3}0.33.224
82×10−32 \times10^{-3}0.33.124
1210−310^{-3}0.33.198
474M, B=512B = 512
EELRWDCE
12×10−32 \times10^{-3}0.14.235
22×10−32 \times10^{-3}0.13.625
42×10−32 \times10^{-3}0.33.364
82×10−32 \times10^{-3}0.33.226
122×10−32 \times10^{-3}0.33.178
162×10−32 \times10^{-3}0.33.155
242×10−32 \times10^{-3}0.33.136
322×10−32 \times10^{-3}0.33.136
153M, B=256B = 256
EELRWDCE
12×10−32 \times10^{-3}0.0334.038
22×10−32 \times10^{-3}0.0333.710
42×10−32 \times10^{-3}0.0333.531
82×10−32 \times10^{-3}0.0333.444
122×10−32 \times10^{-3}0.13.413
162×10−32 \times10^{-3}0.13.392
242×10−32 \times10^{-3}0.13.372
322×10−32 \times10^{-3}0.13.364
402×10−32 \times10^{-3}0.13.361
482×10−32 \times10^{-3}0.13.360
562×10−32 \times10^{-3}0.13.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) B=16B = 16
EELRWDCE
15×10−45 \times10^{-4}0.13.420
25×10−45 \times10^{-4}0.13.260
45×10−45 \times10^{-4}0.13.147
85×10−45 \times10^{-4}0.13.066
125×10−45 \times10^{-4}0.13.034
165×10−45 \times10^{-4}0.13.021
205×10−45 \times10^{-4}0.13.017
(b) B=64B = 64
EELRWDCE
110−310^{-3}0.33.397
210−310^{-3}0.33.230
45×10−45 \times10^{-4}0.33.108
810−310^{-3}0.33.029
1210−310^{-3}0.32.996
1610−310^{-3}0.32.982
2010−310^{-3}0.32.977
(c) B=512B = 512
EELRWDCE
110−310^{-3}0.14.000
210−310^{-3}0.33.469
410−310^{-3}0.33.224
82×10−32 \times10^{-3}0.33.124
1210−310^{-3}0.33.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.

B=64B = 64
LoaderLRWDEECE
Fixed10−310^{-3}0.3163.011
Shuffle10−310^{-3}0.3202.977
Repack10−310^{-3}0.3242.971
B=512B = 512
LoaderLRWDEECE
Fixed10−310^{-3}0.383.205
Shuffle2×10−32 \times10^{-3}0.383.124
Repack10−310^{-3}1243.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.

FIXEDSHUFFLEREPACK
EELRWDCEEELRWDCEEELRWDCE
110−310^{-3}0.34.000110−310^{-3}0.14.000110−310^{-3}0.14.000
210−310^{-3}0.33.467210−310^{-3}0.33.469210−310^{-3}0.33.468
410−310^{-3}0.33.240410−310^{-3}0.33.224410−310^{-3}0.33.221
810−310^{-3}0.33.20582×10−32 \times10^{-3}0.33.124810−310^{-3}0.33.137
1210−310^{-3}0.33.2481210−310^{-3}0.33.1981210−310^{-3}13.091
1610−310^{-3}13.069
2010−310^{-3}13.065
2410−310^{-3}13.064
2810−310^{-3}13.067

Table 11. Hyperparameters for every plotted checkpoint in Figure 4(b) (§4), with the 1.5B model, a 1B-token pool, and B=512B = 512. All runs use untied embeddings and no embedding decay.

B=64B = 64B=512B = 512
ConfigurationWDEmb\mathrm{WD}_{\mathrm{Emb}}LRWDEECEConfigurationWDEmb\mathrm{WD}_{\mathrm{Emb}}LRWDEECE
SHUFFLE, untied010−310^{-3}0.3202.977SHUFFLE, untied02×10−32 \times10^{-3}0.383.124
REPACK, untied010−310^{-3}0.3242.971REPACK, untied010−310^{-3}1243.064
REPACK, tied010−310^{-3}0.3242.971REPACK, tied010−310^{-3}1203.061
REPACK, untied0.310−310^{-3}0.3322.951REPACK, untied110−310^{-3}1283.050
REPACK, tied0.310−310^{-3}0.3322.946REPACK, tied110−310^{-3}1283.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 decayTied, no embedding decayTied, positive embedding decay
EELRWDCEEELRWDCEEELRWDCE
110−310^{-3}0.33.397110−310^{-3}0.33.376110−310^{-3}0.33.381
210−310^{-3}0.33.229210−310^{-3}0.33.211210−310^{-3}0.33.217
410−310^{-3}0.33.112410−310^{-3}0.33.097410−310^{-3}0.33.102
810−310^{-3}0.33.027810−310^{-3}0.33.021810−310^{-3}0.33.020
1210−310^{-3}0.32.9941210−310^{-3}0.32.9931210−310^{-3}0.32.986
1610−310^{-3}0.32.9781610−310^{-3}0.32.9791610−310^{-3}0.32.967
2010−310^{-3}0.32.9722010−310^{-3}0.32.9732010−310^{-3}0.32.956
2410−310^{-3}0.32.9712410−310^{-3}0.32.9712410−310^{-3}0.32.950
2810−310^{-3}0.32.947
3210−310^{-3}0.32.946
3610−310^{-3}0.32.946

Table 13. Hyperparameters for every plotted checkpoint in Figure 5(b) (§4), with the 1.5B model, a 1B-token pool, B=64B = 64, and REPACK.

1.5B474M153M
BBLRWDEECEBBLRWDEECEBBLRWDEECE
6410−310^{-3}0.3322.946642×10−32 \times10^{-3}0.1563.064642×10−32 \times10^{-3}0.12243.293
12810−310^{-3}0.3202.9791282×10−32 \times10^{-3}0.3803.0601282×10−32 \times10^{-3}0.12403.285
25610−310^{-3}1403.0192562×10−32 \times10^{-3}0.3643.0642562×10−32 \times10^{-3}0.12083.298
51210−310^{-3}1283.0305122×10−32 \times10^{-3}0.3403.1055122×10−32 \times10^{-3}0.32563.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
BBLRWDEECE
165×10−45 \times10^{-4}0.1203.017
325×10−45 \times10^{-4}0.3203.001
6410−310^{-3}0.3202.977
12810−310^{-3}0.3162.998
2562×10−32 \times10^{-3}0.3123.037
5122×10−32 \times10^{-3}0.383.124
474M
BBLRWDEECE
3210−310^{-3}0.1323.113
642×10−32 \times10^{-3}0.1323.093
1282×10−32 \times10^{-3}0.3403.101
2562×10−32 \times10^{-3}0.3323.102
5122×10−32 \times10^{-3}0.3243.136
153M
BBLRWDEECE
3210−310^{-3}0.1883.350
642×10−32 \times10^{-3}0.11123.332
1282×10−32 \times10^{-3}0.1723.341
2562×10−32 \times10^{-3}0.1483.360
5122×10−32 \times10^{-3}0.1403.416

Table 7. Hyperparameters for the batch-size sweep in Figure 2 (§3), all on a 1B-token pool. The 1.5B, B=64B = 64 row also supplies our observed result in the batch-size comparison in Table 1. All runs use the original recipe.

1.5B474M153M
DuD_{\mathrm{u}}BBLRWDEECEDuD_{\mathrm{u}}BBLRWDEECEDuD_{\mathrm{u}}BBLRWDEECE
0.3336410−310^{-3}0.3283.2550.333642×10−32 \times10^{-3}0.3323.2810.333642×10−32 \times10^{-3}0.31443.452
16410−310^{-3}0.3322.94611282×10−32 \times10^{-3}0.3803.06011282×10−32 \times10^{-3}0.12403.285
312810−310^{-3}0.3802.76732562×10−32 \times10^{-3}0.11122.90932562×10−32 \times10^{-3}0.16403.196

Table 15. Hyperparameters for every repetition-tuned point in the data-pool-size comparison of Figure 7 (§4). DuD_{\mathrm{u}} 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 S=4,096S = 4{,}096, with no context parallelism. Let dd, tt, pp, mm, and aa denote the data-parallel, tensor-parallel, pipeline-parallel, microbatch, and gradient-accumulation degrees. Then

B=dma,M=tp,G=dtp.(6)B = dma,\qquad M = tp,\qquad G = dtp. \tag*{(6)}

We assume FP8 matrix multiplications, BF16 parameters and communication, FlashAttention, activation checkpointing, sequence parallelism for t>1t > 1, 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 B=1,024B = 1{,}024 sequences and gradient accumulation at a=1a = 1.

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 m=1m = 1, hence d=1,024d = 1{,}024, and searches t∈{1,2,4,8}t \in\{1, 2, 4, 8\} and p∈{1,2,4,8}p \in\{1, 2, 4, 8\} 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 NN, the forward-and-backward work per sequence is Fseq≈6NSF_{\mathrm{seq}} \approx6NS. Rather than assigning one effective FLOP rate to all latency-first configurations, let Peff(N,t,p,m)P_{\mathrm{eff}}(N, t, p, m) 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

TFB(t,p,m)=pTstage(N,t,p,m)≈6NSmtPeff(N,t,p,m).(7)T_{\mathrm{FB}}(t,p,m) = pT_{\mathrm{stage}}(N,t,p,m) \approx\frac{6NSm}{tP_{\mathrm{eff}}(N,t,p,m)}. \tag*{(7)}

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 p−1p - 1 pipeline boundaries. For hidden dimension hh, their approximate BF16 volume is

VPP≈4(p−1)mSht,TPP=VPPβPP+2(p−1)αPP.(8)V_{\mathrm{PP}} \approx\frac{4(p-1)mSh}{t},\qquad T_{\mathrm{PP}} = \frac{V_{\mathrm{PP}}}{\beta_{\mathrm{PP}}} + 2(p-1)\alpha_{\mathrm{PP}}. \tag*{(8)}

This term is normally much smaller than DP gradient communication, but it is monotone in pp 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

VRS≈VAG≈2Ntpd−1d.(9)V_{\mathrm{RS}} \approx V_{\mathrm{AG}} \approx\frac{2N}{tp}\frac{d-1}{d}. \tag*{(9)}

Let TRST_{\mathrm{RS}} and TAGT_{\mathrm{AG}} 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 TDP=TRS+TAGT_{\mathrm{DP}} = T_{\mathrm{RS}} + T_{\mathrm{AG}} and expose only the portion that cannot overlap the forward–backward critical path:

TDPexp=TDP−ηmin⁡(TFB,TDP),(10)T_{\mathrm{DP}}^{\mathrm{exp}} = T_{\mathrm{DP}} - \eta\min(T_{\mathrm{FB}}, T_{\mathrm{DP}}), \tag*{(10)}

where η\eta is a fitted overlap fraction. This interpolates between no overlap (η=0\eta= 0) and the optimistic maximum model (η=1\eta= 1) without allowing communication to overlap more compute than is available.

Our steady-state step estimate is

T^step(d,t,p,m)=TFB(t,p,m)+TDPexp(d,t,p)+TPP(t,p,m)+Topt(t,p)+T0,(11)\widehat{T}_{\mathrm{step}}(d,t,p,m) = T_{\mathrm{FB}}(t,p,m) + T_{\mathrm{DP}}^{\mathrm{exp}}(d,t,p) + T_{\mathrm{PP}}(t,p,m) + T_{\mathrm{opt}}(t,p) + T_0, \tag*{(11)}

where ToptT_{\mathrm{opt}} and T0T_0 cover optimizer and fixed framework costs. All terms that vary with tt or pp 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 Peff=0.65P_{\mathrm{eff}} = 0.65 PFLOP/s/GPU at TP8, η=0.5\eta= 0.5, and fit the effective DP bandwidth to the stated TP4/PP1 latency of 2.10 s. This gives βDP=40\beta_{\mathrm{DP}} = 40 GB/s. We apply stage-efficiency penalties of 0%, 3%, and 8% at PP2, PP4, and PP8, respectively. The fitted combined values of TPP+Topt+T0T_{\mathrm{PP}} + T_{\mathrm{opt}} + T_0 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

(t,p)(t,p)(4,1)(4,1)(4,2)(4,2)(4,4)(4,4)(4,8)(4,8)(8,1)(8,1)(8,2)(8,2)(8,4)(8,4)(8,8)(8,8)
T^step\widehat{T}_{\mathrm{step}} (s)2.101.281.011.011.080.690.560.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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [19]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
  20. [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. [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. [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. [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. [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
  25. [26]NVIDIA. Megatron Bridge: Performance archive. NVIDIA documentation, 2026b. Accessed 2026-08-17.
  26. [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
  27. [29]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. Technical report, OpenAI, 2019.
  28. [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
  29. [31]Maarten Sap, Hannah Rashkin, Derek Chen, Ronan Le Bras, and Yejin Choi. Social IQA: Common-sense reasoning about social interactions. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, 2019.
  30. [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.
  31. [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
  32. [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
  33. [35]Sebastian U. Stich. Local SGD converges fast and communicates little. In International Conference on Learning Representations, 2019.arxiv.org/abs/1805.09767
  34. [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
  35. [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.
  36. [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
  37. [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
  38. [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
  39. [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
  40. [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
  41. [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.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type