Simple Algorithm
Deep Learning · Emergence · 26 min

Synthetic Data & Model Collapse

Training on generated data, and what happens when models learn from their own output.

More and more training data is generated rather than collected: rendered by simulators, written by language models, painted by diffusion models. Used well, synthetic data fills the gaps real data leaves. Used in a loop, where models train on their predecessors' output, it erodes the distribution itself: rare events vanish first, then the variety goes. This lesson derives that collapse in its simplest form, and the conditions under which it does not happen.

What you’ll learn

  • Classify uses of synthetic data (simulation and domain randomization, generated inputs, generated instructions and documents, distillation) by what is synthetic and what anchors it to reality.
  • Derive model collapse for a Gaussian refitted each generation: expected variance (M−1M)kσ02\big(\frac{M-1}{M}\big)^k\sigma_0^2 under maximum likelihood, and almost-sure collapse with a wandering mean even under unbiased refitting (Shumailov et al., 2024).
  • Explain why tails vanish first, and how cutting the tail changes scaling laws (Dohmatob et al., 2024).
  • Compare replacing data with accumulating it (Gerstgrasser et al., 2024) and adding fresh real data (Alemohammad et al., 2024; Bertrand et al., 2024), and apply practical safeguards.

Why train on generated data?

UseWhat is syntheticWhat anchors it to reality
Simulation and domain randomization: Tobin et al. (2017) trained an object detector only on simulated images with random, unrealistic textures and transferred it to a real robot, which they described as the first such transfer for robotic controlInputs and labelsA physics and rendering model, randomized so that reality looks like one more variation
Generated images: Azizi et al. (2023) fine-tuned a text-to-image diffusion model into a class-conditional ImageNet generator; adding its samples to the real training images improved ResNet and vision-transformer accuracy, while a ResNet-50 trained on generated images alone reached about 65% top-1 at 256×256256\times256, well below what real data giveInputs (images), labeled by the class promptA generator trained on real images, and the real training set kept in the mix
Back-translation (Sennrich, Haddow & Birch, 2016)Inputs (source sentences)Real human-written targets
Self-Instruct (Wang et al., 2023): GPT-3 generated about 52,000 instructions with about 82,000 input–output instances; fine-tuning GPT-3 on them gave a 33% absolute improvement on Super-NaturalInstructionsInstructions, inputs and outputs175 human-written seed tasks and filtering
"Textbook-quality" data: phi-1 (Gunasekar et al., 2023), a 1.3-billion-parameter code model trained on about 6 billion tokens of filtered web code and about 1 billion tokens of textbooks and exercises generated by GPT-3.5, reached 50.6% pass@1 on HumanEvalDocuments and exercisesA stronger generator, real code and quality filters
Distillation (Hinton, Vinyals & Dean, 2015): a student trained on a teacher's soft predictionsLabelsReal inputs and a teacher trained on real data
In every successful use, something real keeps the synthetic data honest: physics, human targets, human seeds, filters or a teacher trained on real data. Model collapse is what happens when that anchor is removed. See also Knowledge Distillation and Instruction Tuning & Its Data.
Check your understanding

Which of these setups lacks an anchor to real data?

  1. A translation model trained on back-translated sources paired with real target sentences
  2. A student network distilled from a teacher that was trained on real images
  3. An image generator trained only on images produced by the previous version of itself, generation after generation
  4. A detector trained on simulated scenes, then evaluated on real photos
Show the answer

C. An image generator trained only on images produced by the previous version of itself, generation after generation

Each generation sees only the previous model's output, so its errors become the next model's data, with nothing real to correct them. The other three keep real targets, a teacher fitted to real data, or a simulator built from physics.

Model collapse in one dimension

Shumailov, Shumaylov, Zhao, Papernot, Anderson and Gal (2024) studied recursive training: generation k+1k+1 is fitted to samples drawn from generation kk's model, and nothing else. The simplest case already shows model collapse: a Gaussian, refitted to MM of its own samples each generation.

DerivationA Gaussian learning from itself
  1. E[σk+12∣σk2]=M−1M σk2⟹E[σk2]=(1−1M)kσ02≈e−k/Mσ02\E\big[\sigma_{k+1}^2\mid\sigma_k^2\big]=\frac{M-1}{M}\,\sigma_k^2\qquad\Longrightarrow\qquad\E\big[\sigma_k^2\big]=\Big(1-\frac1M\Big)^k\sigma_0^2\approx e^{-k/M}\sigma_0^2

    Generation k+1k+1 draws MM samples from N(μk,σk2)\mathcal N(\mu_k,\sigma_k^2) and fits them by maximum likelihood. The fitted variance is a scaled chi-squared variable, Mσk+12/σk2∼χM−12M\sigma_{k+1}^2/\sigma_k^2\sim\chi^2_{M-1}, so

  2. σk2=σ02∏j=1kχM−1,j2M−1,log⁡σk2=log⁡σ02+∑j=1klog⁡χM−1,j2M−1\sigma_k^2=\sigma_0^2\prod_{j=1}^{k}\frac{\chi^2_{M-1,j}}{M-1},\qquad\log\sigma_k^2=\log\sigma_0^2+\sum_{j=1}^k\log\frac{\chi^2_{M-1,j}}{M-1}

    Use the unbiased variance (dividing by M−1M-1) instead, and E[σk2]=σ02\E[\sigma_k^2]=\sigma_0^2 for every kk. Yet the variance is a product of independent random factors:

  3. E[(μk−μ0)2]=∑j<kE[σj2]M=k σ02M ⟶ ∞\E\big[(\mu_k-\mu_0)^2\big]=\sum_{j<k}\frac{\E[\sigma_j^2]}{M}=\frac{k\,\sigma_0^2}{M}\ \longrightarrow\ \infty

    By Jensen's inequality each term has negative mean, about −1/(M−1)-1/(M-1), so by the law of large numbers log⁡σk2→−∞\log\sigma_k^2\to-\infty: σk2→0\sigma_k^2\to0 almost surely, while its mean stays σ02\sigma_0^2, held up by ever rarer chains with ever larger variance. Meanwhile the mean performs a random walk, μk+1∣μk∼N(μk,σk2/M)\mu_{k+1}\mid\mu_k\sim\mathcal N(\mu_k,\sigma_k^2/M):

  4. Shumailov et al. prove the general statement: for original data from any distribution with nonzero variance, refitted recursively with the unbiased mean and covariance estimators at a fixed sample size, the covariance tends to zero almost surely and the expected squared Wasserstein-2 distance to the original distribution tends to infinity. The model ends up both narrower and elsewhere.

Predict before you look

Each generation refits a Gaussian by maximum likelihood to M=100M=100 samples from the previous one. After k=50k=50 generations, what percentage of the original variance remains, in expectation?

Show the answer

60.5 %

(1−1/100)50=0.9950≈0.605(1-1/100)^{50}=0.99^{50}\approx0.605. The half-life is ln⁡2/(−ln⁡0.99)≈69\ln2/(-\ln0.99)\approx69 generations. With the unbiased estimator the expected variance stays at 100%, but the typical chain still shrinks at almost the same rate: after 500 generations the median is e500 Elog⁡(χ992/99)≈0.6%e^{500\,\E\log(\chi^2_{99}/99)}\approx0.6\% of the original, which a simulation of 2,000 chains reproduces.

Think first How can the variance have a constant expectation and still go to zero almost surely?

Because almost sure convergence and convergence of the mean are different things. σk2\sigma_k^2 is a nonnegative martingale: it converges almost surely, here to zero, but the mean is preserved by a shrinking set of chains whose variance becomes enormous. Averaged over many imaginary runs, the variance looks stable; in essentially every actual run, it collapses. Statements about averages across runs can hide what happens in each run.

Tails vanish first

For a discrete distribution the mechanism is even starker. A category with probability qq is missing from MM samples with probability (1−q)M(1-q)^M, and once a generation's sample misses it, a model fitted by counting assigns it probability zero, so it can never come back. With q=10−3q=10^{-3} and M=1,000M=1{,}000, that happens with probability (1−10−3)1000≈0.37(1-10^{-3})^{1000}\approx0.37 in a single generation. Rare events go first, which Shumailov et al. call early model collapse; late collapse is the convergence to a narrow distribution bearing little resemblance to the original.

They trace collapse to three sources of error: statistical approximation (finite samples, the primary source), functional expressivity (the model family cannot represent the true distribution) and functional approximation (the learning procedure, such as SGD, is imperfect). In language models fine-tuned on their own generations over several rounds (OPT-125m on wikitext2), performance on the original data degraded and the generated text drifted toward sequences the original model found highly probable, while also introducing improbable sequences of its own; keeping a random 10% of the original data in every generation reduced the degradation to a minor one.

Dohmatob, Feng, Yang, Charton and Kempe (2024) translated tail loss into the language of scaling laws. Suppose the data follow a heavy-tailed, Zipf-like law pi∝i−βp_i\propto i^{-\beta}, and generated data cut the tail at rank kk, through top-kk or nucleus sampling, or because the generating model was fitted to too few samples to represent the rare items. In their model, training on TT such samples gives

Etest≍T−(β−1)/β+k−(β−1)E_{\text{test}}\asymp T^{-(\beta-1)/\beta}+k^{-(\beta-1)}
The first term is the usual power law in data; the second is a floor set by the missing tail. Once T≳kβT\gtrsim k^\beta, more synthetic data stops helping: a loss of scaling. Lowering the sampling temperature narrows the tail instead and yields a slower power law rather than a plateau. Mixing in a fraction π\pi of real data, the plateau persists until TT reaches about kβ/πk^\beta/\pi, after which the clean law (πT)−(1−1/β)(\pi T)^{-(1-1/\beta)} resumes, however small π\pi is.
Check your understanding

Why do rare events disappear first when models are trained recursively on their own samples?

  1. A finite sample often contains no instance of a rare event, and a model fitted to that sample then gives it (near) zero probability, so it is never generated again
  2. Generators deliberately suppress rare events to save capacity
  3. Rare events have larger gradients and are overwritten by later updates
  4. Only the most frequent event can be represented by a neural network
Show the answer

A. A finite sample often contains no instance of a rare event, and a model fitted to that sample then gives it (near) zero probability, so it is never generated again

An event with probability qq is absent from MM samples with probability (1−q)M(1-q)^M, which is large for q≪1/Mq\ll1/M. Losing it is an absorbing state: no later generation sees it. Sampling tricks such as top-kk truncation cut the tail deliberately and speed this up.

Replace, accumulate or refresh

Alemohammad et al. (2024) studied "self-consuming" loops of image generators, which differ in whether the real training data stay fixed or are refreshed each generation, and in whether samples are biased toward quality at the expense of diversity. Their conclusion: without enough fresh real data in each generation, quality (precision) or diversity (recall) progressively declines. They called it Model Autophagy Disorder. But the collapse theorems above assume each generation replaces its data. What if data accumulate instead?

Etestaccum(n)=σ2dT−d−1∑i=1n1i2 ≤ π26⋅σ2dT−d−1E^{\text{accum}}_{\text{test}}(n)=\frac{\sigma^2d}{T-d-1}\sum_{i=1}^n\frac1{i^2}\ \le\ \frac{\pi^2}{6}\cdot\frac{\sigma^2d}{T-d-1}
Bounded for every nn, by about 1.64 times the first model's error. Roughly, each generation's new synthetic data make up a shrinking share of a growing pool, so the error they inject is damped. Gerstgrasser et al. found the same contrast empirically for transformer language models, diffusion models of molecules and VAEs on images: replacing collapsed, accumulating did not.

Bertrand, Bose, Duplessis, Jiralerspong and Gidel (2024) proved a complementary stability result for generative models retrained on a mixture of real data and their own samples: if the initial model is close enough to the data distribution and the share of real data is large enough, iterative retraining stays stable. Their condition is sufficient, not necessary, and they supported it with normalizing flows and diffusion models on CIFAR-10 and FFHQ. The picture that emerges: collapse is what happens when real data are thrown away or swamped; keeping them anchors the loop.

Check your understanding

In the linear-regression model of Gerstgrasser et al., how does test error behave over many iterations when synthetic data are added to the pool instead of replacing it?

  1. It grows linearly, as with replacement, only more slowly
  2. It falls to zero, because the pool keeps growing
  3. It oscillates without settling
  4. It stays bounded, below π2/6≈1.64\pi^2/6\approx1.64 times the first model's error
Show the answer

D. It stays bounded, below π2/6≈1.64\pi^2/6\approx1.64 times the first model's error

The error is σ2dT−d−1∑i≤n1/i2\frac{\sigma^2d}{T-d-1}\sum_{i\le n}1/i^2, an increasing sequence with finite limit π26σ2dT−d−1\frac{\pi^2}{6}\frac{\sigma^2d}{T-d-1}. Replacement gives nn times the first error instead.

Using synthetic data well

The theory and experiments point to a short list of safeguards:

  • Keep the anchor. Keep real data in every training mix, and add synthetic data to it rather than replacing it.
  • Verify when you can. Synthetic data are most valuable when they can be checked: code that must pass tests, mathematics with checkable answers, simulators with known physics. Where they cannot, filter them with quality classifiers or reward models (Data Quality, Filtering & Mixtures); training on verified outcomes is the idea behind Reinforcement Learning for Reasoning.
  • Protect diversity. Vary prompts, seeds and generators, deduplicate, and remember that low temperatures and truncated sampling cut the tail.
  • Target the gaps. Synthetic data help most where real data are scarce: rare classes, edge cases, simulated situations too dangerous or expensive to record.
  • Track provenance. Web crawls made after generative models became widespread contain machine-written text in proportions that are hard to measure. Knowing where each training example came from is what makes filtering, mixing ratios and audits possible later.

Key takeaways

  • Synthetic data works when something real anchors it: physics in simulators, real targets in back-translation, human seeds and filters in Self-Instruct, a teacher trained on real data in distillation.
  • Recursive refitting collapses: for a Gaussian with MM samples per generation, E[σk2]=(1−1/M)kσ02\E[\sigma_k^2]=(1-1/M)^k\sigma_0^2 under maximum likelihood, and even with unbiased estimates σk2→0\sigma_k^2\to0 almost surely while the mean wanders off, so the Wasserstein distance to the original diverges (Shumailov et al., 2024).
  • Rare events vanish first, since a finite sample often misses them and they never return; in scaling-law terms, a cut tail puts a floor k−(β−1)k^{-(\beta-1)} under the test error (Dohmatob et al., 2024).
  • Replacing data with model output makes error grow without bound; accumulating keeps it below π26\frac{\pi^2}{6} times the first model's error in linear regression (Gerstgrasser et al., 2024), and enough real data in the mix keeps retraining stable (Bertrand et al., 2024).
  • Use synthetic data with an anchor: keep and accumulate real data, verify or filter what is generated, protect diversity, target gaps, and track provenance.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

A Gaussian is refitted by maximum likelihood to MM of its own samples, generation after generation. What happens to the expected variance?

  1. It stays constant, because maximum likelihood is consistent
  2. It decays geometrically, by the factor (M−1)/M(M-1)/M per generation
  3. It grows, because sampling noise adds variance each generation
  4. It drops to zero after exactly MM generations
Show the answer

B. It decays geometrically, by the factor (M−1)/M(M-1)/M per generation

The maximum-likelihood variance has expectation M−1M\frac{M-1}{M} times the true variance, so E[σk2]=(1−1/M)kσ02\E[\sigma_k^2]=(1-1/M)^k\sigma_0^2. Consistency is a statement about M→∞M\to\infty with one generation, not about a fixed MM over many generations.

Question 2

With the unbiased variance estimator, E[σk2]=σ02\E[\sigma_k^2]=\sigma_0^2 for every generation kk. Does the variance collapse?

  1. No: an unbiased estimator cannot drift
  2. Only if MM is smaller than the number of generations
  3. Yes: log⁡σk2\log\sigma_k^2 is a random walk with negative drift, so σk2→0\sigma_k^2\to0 almost surely, while rare large chains keep the mean at σ02\sigma_0^2
  4. Only if the original data were not Gaussian
Show the answer

C. Yes: log⁡σk2\log\sigma_k^2 is a random walk with negative drift, so σk2→0\sigma_k^2\to0 almost surely, while rare large chains keep the mean at σ02\sigma_0^2

Each step multiplies the variance by χM−12/(M−1)\chi^2_{M-1}/(M-1), whose logarithm has negative mean by Jensen's inequality. The product goes to zero almost surely even though its expectation is constant.

Question 3

In the scaling-law model of Dohmatob et al. (2024), a model is trained on TT samples from a Zipf-like distribution whose tail was cut at rank kk. What happens as TT grows?

  1. The test error keeps falling as a power law, as with real data
  2. The test error rises with TT, because the model memorizes the synthetic data
  3. The test error drops to zero once T>kT>k
  4. The test error plateaus at a floor of order k−(β−1)k^{-(\beta-1)} once T≳kβT\gtrsim k^\beta: more synthetic data stops helping
Show the answer

D. The test error plateaus at a floor of order k−(β−1)k^{-(\beta-1)} once T≳kβT\gtrsim k^\beta: more synthetic data stops helping

Etest≍T−(β−1)/β+k−(β−1)E_{\text{test}}\asymp T^{-(\beta-1)/\beta}+k^{-(\beta-1)}: the first term shrinks with data, the second is the price of the missing tail. Mixing in a fraction π\pi of real data restores the clean law once TT exceeds about kβ/πk^\beta/\pi.

Question 4

You plan to retrain a model every month on a web crawl that increasingly contains its own outputs. Which practice best guards against collapse?

  1. Keep accumulating data, retain the original human-written corpus in the mix, and track which examples are machine-generated
  2. Replace last month's data with the new crawl each time, to stay current
  3. Lower the sampling temperature of the model, so its outputs in the crawl are of higher quality
  4. Train for more epochs on each month's crawl
Show the answer

A. Keep accumulating data, retain the original human-written corpus in the mix, and track which examples are machine-generated

Collapse results assume each generation replaces its data with model output. Accumulating, keeping real data and knowing the provenance of examples (so they can be filtered or reweighted) keep the loop anchored; in the linear model accumulation bounds the error at π2/6\pi^2/6 times its first-generation value.

Further reading

  • I. Shumailov, Z. Shumaylov, Y. Zhao, N. Papernot, R. Anderson & Y. Gal, "AI models collapse when trained on recursively generated data," Nature 631, 755–759 (2024).
  • E. Dohmatob, Y. Feng, P. Yang, F. Charton & J. Kempe, "A tale of tails: model collapse as a change of scaling laws," ICML (2024).
  • M. Gerstgrasser, R. Schaeffer, A. Dey, R. Rafailov, D. Pai, H. Sleight, J. Hughes, T. Korbak, R. Agrawal, A. Gromov, D. A. Roberts, D. Yang, D. Donoho & S. Koyejo, "Is model collapse inevitable? Breaking the curse of recursion by accumulating real and synthetic data," arXiv:2404.01413 (2024).
  • S. Alemohammad, J. Casco-Rodriguez, L. Luzi, A. I. Humayun, H. Babaei, D. LeJeune, A. Siahkoohi & R. G. Baraniuk, "Self-consuming generative models go MAD," ICLR (2024).
  • Q. Bertrand, A. J. Bose, A. Duplessis, M. Jiralerspong & G. Gidel, "On the stability of iterative retraining of generative models on their own data," ICLR (2024).