How to Synthesize Text Data without Model Collapse?

Xuekai Zhu, Daixuan Cheng, Hengli Li, Kaiyan Zhang, Ermo Hua, Xingtai Lv, Ning Ding, Zhouhan Lin, Zilong Zheng, Bowen Zhou

TL;DR

Training AI models on their own synthetic output typically leads to "model collapse"—a degenerative process where the model loses the ability to represent rare, "long-tail" data. This paper introduces ToEdit (Token-Level Editing), a method that creates high-quality "semi-synthetic" data by selectively resampling common tokens in human-produced text. By preserving the structural complexity of human language while introducing controlled variance, ToEdit prevents model collapse and actually improves performance across pre-training and fine-tuning tasks.

What Problem Does This Paper Address?

As AI-generated content proliferates online, we are rapidly approaching a "data exhaustion" point where future models will inevitably be trained on a mixture of human and synthetic data. Previous research has identified a phenomenon called model collapse: when a model trains on its own previous outputs, errors accumulate, the data distribution narrows, and the model eventually becomes "stupid," failing to capture the diversity of real-world information.

Perplexity (PPL) increases as the proportion of synthetic data grows, indicating a drop in model performance.

The authors tackle two specific questions:

  1. What is the actual impact of mixing synthetic data into training? They find that even "non-iterative" mixing (simply adding synthetic data to a human dataset) causes performance to drop, as evidenced by rising perplexity scores when synthetic proportions increase.
  2. How can we synthesize data that helps rather than hurts? They identify that pure synthetic data lacks the "long tail" (the rare, complex parts of language) and suffers from "coverage narrowing."

Methods

The authors propose a novel strategy called ToEdit. Instead of asking an LLM to generate a brand-new sentence from scratch (which often results in generic, "average" text), they take existing human-produced text and "edit" it at the token level.

Comparison of the standard model collapse setting versus the proposed Token-Level Editing (ToEdit) approach.

The ToEdit Algorithm: 1. Probability Estimation: Use a strong "prior" model (like Llama-3) to calculate the conditional probability of every token in a human-produced sequence. 2. Selective Resampling: If a token is "too easy" to predict (meaning its probability $P \ge p$, where $p$ is a high threshold like 0.99), the system resamples that token from the model's distribution. 3. Preservation: If a token is "hard" (low probability), it is left exactly as the human wrote it.

The logic is that the "hard" tokens represent the valuable, rare information (the long tail) that synthetic models usually fail to generate. By only changing the "easy" parts, the method introduces beneficial diversity without destroying the underlying distribution of human knowledge. Crucially, the authors provide a theoretical proof showing that this method keeps the model's test error within a finite upper bound, effectively "breaking" the cycle of model collapse.

Datasets

The study utilizes several high-profile datasets for training and evaluation:

  • Dolma (v6): Used as the source for "real" human-produced data.
  • Cosmopedia: A massive synthetic dataset distilled from Mixtral-8x7B, used as the "pure synthetic" baseline.
  • The Pile: Used for comprehensive perplexity (PPL) evaluation across 22 subdomains.
  • Paloma Benchmark: Used to measure how well models fit real-world data distributions.
  • Domain-Specific Corpora: PubMed (Biomedicine), financial news, and math datasets for continual pre-training experiments.

Key Insights and Ideas

  • The "Long Tail" is the Secret Sauce: Human data is "messy" in a way that is vital for generalization. Synthetic data tends to be "too perfect" and stays in the center of the distribution. When models train on this "clean" data, they forget how to handle the rare cases found in the real world.
  • Non-Iterative Collapse: You don't need multiple generations of models training on each other to see a decline. Simply replacing 25% of your human training data with pure synthetic data leads to a measurable drop in performance.
  • The U-Shaped Distribution: The authors found that tokens in a corpus follow a U-shaped probability distribution—most tokens are either very easy or very hard to predict. ToEdit targets the "easy" peak to maximize information entropy without losing the "hard" peak's complexity.
  • Efficiency: Unlike standard data synthesis which requires slow, autoregressive generation, ToEdit only requires a single forward pass to identify and replace tokens, making it computationally efficient for massive datasets.

Key Results

  • Pre-training from Scratch: Training an OLMo-1B model using ToEdit improved the average score across 8 general tasks from 32.75 to 33.11 compared to the base human data.
  • Continual Pre-training: In specialized domains, the gains were even more pronounced. In Biomedicine, the average score jumped from 36.63 to 40.89. In Finance, it rose from 46.22 to 50.21.
  • Supervised Fine-Tuning (SFT): ToEdit consistently outperformed standard Llama-3 fine-tuning on instruction following and code reasoning tasks, proving that "semi-synthetic" data can be superior to the original human source for specific training stages.
  • Avoiding the "Curse of Recursion": While pure synthetic data caused a linear increase in test error over time, ToEdit's error remained stable and bounded.

Limitations and Future Work

  • Text Coherence: While the authors use a high threshold ($p=0.99$) to ensure the resampled tokens fit the context, there is a theoretical risk that non-autoregressive editing could occasionally produce less coherent sentences compared to full re-writes.
  • Dependence on the Prior: The quality of ToEdit depends on the "prior" model used to estimate probabilities. If the prior model itself has significant biases, those might be baked into the edited data.
  • Scaling to Other Modalities: The current work is strictly focused on text. A major future direction is determining if "token editing" (or its equivalent) can prevent model collapse in image generation (diffusion models) or video synthesis.

Summary updated

BibTeX
@inproceedings{zhu2025how,
  author = {Xuekai Zhu and Daixuan Cheng and Hengli Li and Kaiyan Zhang and Ermo Hua and Xingtai Lv and Ning Ding and Zhouhan Lin and Zilong Zheng and Bowen Zhou},
  title = {{How to Synthesize Text Data without Model Collapse?}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ihUi76a4u7},
}
Figure