Data-Constrained Language Model Pretraining: Improved Regularization and Scaling Laws

Zhiwei Xu, Shihao Wu, Hanseul Cho, Wei Hu, Yixin WangNeurIPS 2026

TL;DR

We are rapidly running out of fresh, human-generated text to feed ever-larger AI compute clusters, forcing language models to train repeatedly over finite datasets without simply memorizing them. This paper introduces Masked-Input Regularization (MIR)—a simple training trick borrowed from diffusion models that makes standard autoregressive models act as if they have 1.3x more unique training data—alongside SoftQ, a new scaling law that accurately predicts model performance when unique data, rather than compute, is the bottleneck.

What Problem Does This Paper Address?

For years, pretraining large language models (LLMs) followed "Chinchilla-style" scaling laws: if you have a fixed compute budget, scale your model size and your training token count in tandem, doing a single pass over a massive sea of text.

Today, compute is growing much faster than the supply of high-quality natural language. We are entering a data-constrained, compute-rich regime, where we have plenty of GPUs to train larger models for multiple epochs over the same finite dataset. This shift raises two big questions:

  1. How do we prevent overfitting? Recent work showed that cranking up weight decay (penalizing large weights) helps standard autoregressive (AR) models survive multi-epoch training. Meanwhile, masked diffusion language models (dLLMs)—which train by filling in random blanks—naturally resist overfitting on repeated data. Is random masking doing something special, or were AR baselines just under-regularized?
  2. What scaling law governs this regime? Classical Chinchilla laws are additive—they treat parameter count and data size as independent terms. Because of this math, Chinchilla predicts that the performance penalty for having less data is identical whether your model has 70 million parameters or 70 billion. Intuitively and empirically, that breaks down when models start starving for unique data.

Methods

The authors tackle regularization and scaling with two clean, minimal proposals:

  • Masked-Input Regularization (MIR): Instead of switching to a diffusion model (which sacrifices fast, standard left-to-right decoding at inference), the authors bring random masking into standard AR training. For every clean sequence $x$, they create a corrupted copy $\widetilde{x}$ by replacing a random fraction of tokens with a [MASK] token. The model optimizes standard next-token prediction on both: $\mathcal{L} = \mathcal{L}_{\text{NTP}}(x) + \lambda\mathcal{L}_{\text{NTP}}(\widetilde{x})$. This doubles per-step training compute (two forward passes), which is a welcome trade-off when compute is abundant and data is scarce—and adds zero inference overhead.
  • The SoftQ Scaling Law: To fix Chinchilla's additive blind spot, the authors build on the "quanta" view of scaling (which models language learning as acquiring discrete skills). SoftQ couples model parameters ($N$) and unique tokens ($U$) through a smooth bottleneck: $$L_{\text{SoftQ}}(N, U) = E + \left(\frac{A}{N^\rho} + \frac{B}{U^{\rho/(1+\alpha)}}\right)^{\alpha/\rho}$$ Like Chinchilla, SoftQ uses just five fitted parameters, where $\rho$ controls how sharply a model transitions from being parameter-limited to data-limited.

Datasets

No new benchmarks are introduced; instead, the authors evaluate their recipes across established text, code, and scaling datasets:

  • Pretraining: DataComp-LM (DCLM) for natural language (100M to 400M unique tokens, plus 10M validation) and Stack-V2 for code-heavy text (100M unique tokens).
  • Downstream Evaluation: Eight zero-shot tasks via lm-evaluation-harness: ARC-Easy, BoolQ, HellaSwag, PiQA, RACE, SciQ, and Lambada (accuracy and perplexity).
  • Scaling Law Validation: A custom 20-point grid (5 model sizes $\times$ 4 token budgets on DCLM) and an independent external data-constrained baseline grid from Kim et al. (2026a).

Key Insights and Ideas

  • The diffusion advantage was mostly missing weight decay—but masking still shines: When the authors take heavily tuned AR weight decay and apply it to both AR models and dLLMs, both improve dramatically and end up with comparable validation losses. However, layering MIR on top of strong weight decay pushes AR loss even lower. Weight decay and input masking are genuinely complementary regularizers.
Figure 2: Validation Loss dynamics on DCLM 100M for the 257M model. Large weight decay substantially improves both multi-epoch AR and dLLM training; with both well regularized, their validation losses become comparable.
  • Masking stops models from obsessing over noisy context: Why does MIR work? A token-level analysis reveals that MIR doesn't just rescue rare vocabulary words. It helps most when the target next token is an everyday word or punctuation mark (like "between", "shoulders", or ")"), right after a bizarre or noisy prefix—like mixed English/Japanese scripts, broken subwords, or messy web markup. Masking forces the model to rely on generalizable patterns rather than memorizing brittle, context-specific noise.
  • Data scarcity hurts bigger models more: Plotting the loss gap between smaller datasets (100M–300M tokens) and a 400M-token budget across model sizes reveals a clear "fan-out": tiny models barely notice the missing data because capacity is their bottleneck, while 1.4B models pay a steep penalty. SoftQ captures this curve; Chinchilla draws flat horizontal lines.
Figure 1: Overview of the main results. Left: On DataComp-LM (DCLM) dataset [Li et al., 2024] with 100M unique training tokens, MIR improves validation loss over the strongly regularized autoregressive baseline across model sizes. Points show means over five random seeds, error bars show one standard deviation, and faint markers show individual runs. Right: On the strongly regularized baseline grid, we plot the loss gap L(N, U) −L(N, 400M) for unique data budget U ∈{100M, 200M, 300M}. Chinchilla predicts a model-size-invariant gap for each U, while SoftQ tracks the empirical fan-out: the penalty from limited unique data grows with model size.

Key Results

  • Consistent pretraining gains: Across Llama-style models from 72M to 1.4B parameters on DCLM (100M tokens), MIR beats strong weight decay on every random seed. The loss reduction grows with model scale—from ~0.006 at 72M to 0.030 at 1.4B (dropping validation loss from 3.347 to 3.317). Without retuning hyperparameters, MIR also lowers loss across all five model scales on Stack-V2 code by 0.008 to 0.020.
  • Downstream task boosts: At 1.4B parameters, MIR outperforms the strongly regularized baseline on 6 of 8 zero-shot metrics, highlighted by a +10.18 percentage point jump on BoolQ (45.11% to 55.29%) and +2.20 points on SciQ.
  • Superior scaling fits & 1.3x data efficiency: SoftQ achieves an RMSE of 0.00595 when extrapolating to a held-out 400M token budget, substantially beating Chinchilla (0.03106), Muennighoff's repeated-data law (0.03252), and Quanta (0.01497). Using SoftQ to measure data efficiency, MIR at 200M–400M tokens matches the infinite-model asymptote of a baseline trained on 1.28x to 1.34x as much unique data.

Limitations and Future Work

  • Academic scale: Experiments top out at 1.4B parameters and 400M unique tokens. Testing whether MIR and SoftQ hold at frontier scales (tens of billions of parameters and trillions of tokens) remains open.
  • Fixed architecture and optimizer: Every run used a standard Llama-style decoder and AdamW; varying architectures or optimizers might change the regularization dynamics.
  • Expensive hyperparameter tuning: Achieving the "strongly regularized" envelope required heavy grid searches over epochs, learning rate, and weight decay for every single $(N, U)$ cell. Developing a predictable hyperparameter-transfer recipe (akin to $\mu$P) for the data-constrained regime is a prime next step.

Summary updated

Abstract

Classical scaling laws for language model pretraining balance model size against training dataset size under a fixed compute budget, assuming abundant data and a single pass over the corpus. As training compute grows faster than the supply of natural language data, pretraining is likely to enter a data-constrained, compute-rich regime where models train for multiple epochs over a finite dataset. We study data-constrained pretraining along two axes, regularization and scaling. For regularization, we study masked-input regularization (MIR), an auxiliary next-token prediction loss on randomly masked inputs. MIR tests whether the random masking central to diffusion language models can benefit autoregressive pretraining without architectural changes or inference overhead. Across 72M to 1.4B parameter models, we find that MIR added on top of strong weight decay improves validation loss over autoregressive strong-weight-decay-only models, with downstream gains at 1.4B. For scaling, we propose SoftQ, a scaling law that couples model size and data size to capture their interaction under repeated data. Classical alternatives such as the Chinchilla law use an additive form that decouples these terms, making them misspecified in the data-constrained regime. We find that SoftQ fits data-constrained experiments substantially better than these alternatives, and estimates MIR's gains as equivalent to roughly 1.3 times as much unique training data. We release our code at https://github.com/yixinw-lab/dc_pretrain.
BibTeX
@inproceedings{xu2026data,
  author = {Zhiwei Xu and Shihao Wu and Hanseul Cho and Wei Hu and Yixin Wang},
  title = {{Data-Constrained Language Model Pretraining: Improved Regularization and Scaling Laws}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lYgfGE5Vvq},
}
Figure