arXiv:2610.27590cs.CLOct 2026

Manuscript Offprint

arXiv:2610.27590

Benefit and Cost of Random-Token Replacement under Repeated Data: A Known-Entropy Decomposition and Evidence from Ten Real Corpora

Wonsup Shin, Jingu Kim

Abstract

When unique pretraining data is scarce, models see the same tokens many times and are thought to memorize. Random-token replacement, an input-corruption augmentation, is one remedy reported to lower validation loss, but a lower loss alone does not reveal which source of error it reduces. On a controlled source whose entropy rate is known in closed form, we show that replacement shrinks predictions toward the corpus average. We also introduce a decomposition that separates validation loss into approximation, estimation, and memorization terms. This shrinkage view predicts that replacement's bias cost needs no memorization but its benefit does. Memorization raises validation loss after its minimum, so we report the effect at two points, the minimum validation loss and the end of a fixed budget. Where replacement helps, it reduces this rise by about 60%. At the end of the budget, it turns from harmful to helpful as the controlled source becomes less predictable; at the minimum, it helps at no predictability level under the fixed recipe. On Korean and Japanese web text, replacement removes about a third of the loss rise after the minimum by the end of the budget, but its effect at the minimum is much smaller. Across ten real corpora, replacement lowers the final loss on nine. It harms only the census corpus, program-generated JSON that is the most redundant of the ten and much more redundant than any of 64 further prose and code corpora we measure.

1 Introduction

Pretraining a language model when the supply of unique text is limited (Villalobos et al., 2024) forces repeated passes over the same tokens. Beyond roughly four epochs the marginal value of repetition falls sharply, and past ∼\sim16 epochs additional repetition adds essentially nothing (Muennighoff et al., 2023). This is usually attributed to memorization, as the model overfits the training data.

A widely used remedy is training-time input-corruption augmentation. At each step it replaces a fraction of input tokens with random tokens or masks them (Chen et al., 2026; Xu et al., 2026). Yet existing studies leave three questions. First, validation loss alone cannot tell memorization from other sources of error, so an improvement in it does not show whether the corruption acts on memorization or on something else. Second, it is unclear whether the cost and benefit of the augmentation appear at the same point of training, and so whether the effect depends on when training stops. Third, the evidence comes almost entirely from English prose and code (Chen et al., 2026; Xu et al., 2026), leaving unclear how far it carries to other languages and other kinds of text. We address all three for random-token replacement.

Replacement shrinks the model’s predictions toward the corpus average. Shrinkage reduces variance at the cost of a bias (Bishop, 1995; Xie et al., 2017). Under repetition, the natural reading is that this variance comes from memorization. Where text is predictable, the next token is nearly determined, so the shrinkage should cost more and help less (Figure 1(a)). From this shrinkage view we predict that the cost appears immediately, while the benefit emerges only after the model has memorized finite data, and that the cost is larger on more predictable text.

We derive this view on an order-1 Markov source, whose entropy rate is known in closed form ( §4§4). On this source we introduce a decomposition of validation loss into approximation, estimation, and memorization terms. It uses the entropy rate as the ground-truth lower bound on loss, and it identifies which term produces the benefit or harm ( §5§5).

We then test the range of the effect on ten real corpora while holding the model and training

Figure

(b) Measured, Markov source

Figure

(c) Measured, web text

Figure 1: (a) A schematic of the benefit and the bias as the corruption rate p rises; the bias climbs faster on a more predictable corpus. (b, c) Measured net effect of replacement, positive when it helps. (b) The Markov source at temperatures 0.2 to 2.0, written t02 to t20, under a constant learning rate. (c) Web text under a learning rate decayed within each budget (Table 3). Error bars give the s.d. over three seeds.

recipe fixed. 1^{1} The corpora span four respects: language, modality, structure, and origin ( §3\S3). We repeat the core comparison at two model scales.

On our main training budget ( §3§3), we report each effect at two points of training, since the two can disagree. The minimum loss is the lowest validation loss a run reaches, the point early stopping selects, and the final loss is the validation loss at the end of a fixed budget. Our main budget runs far past the minimum as a deliberate stress test. Runs are often not stopped at the minimum loss, since they follow a fixed token budget (Hoffmann et al., 2022; Muennighoff et al., 2023) and continued training can improve downstream performance after the pretraining loss stops falling (Liu et al., 2023).

References (20)