TL;DR
Large Language Models (LLMs) can degrade over time if trained on their own synthetic outputs, a phenomenon called "model collapse." This paper shows that the way a model generates text (its decoding strategy) significantly impacts this collapse. They propose a novel method using a machine-generated text detector to intelligently resample training data, preventing collapse and even improving performance.
What Problem Does This Paper Address?
As LLMs become more prevalent, they're increasingly used to generate content that then feeds back into training data for future models. This creates a risk of "model collapse," where models recursively trained on their own outputs can become repetitive, lose diversity, and ultimately perform worse. This is a critical issue for the long-term development and reliability of AI language capabilities. The paper specifically investigates how different decoding strategies (the methods used to select the next word when generating text) influence this collapse, a factor previously underexplored.
Methods
The core of the paper's contribution lies in two main areas:
- Investigating Decoding Strategies: The authors systematically evaluate how various decoding strategies (greedy, beam search, pure sampling, temperature sampling, top-k, and nucleus sampling) affect model collapse. They simulate recursive training by fine-tuning LLMs on their own generated outputs over multiple generations.
- Importance Resampling for Prevention: To combat model collapse, they train a machine-generated text detector. This detector assigns a probability score to each text sample, indicating its likelihood of being human-generated. This score is then used to perform "importance resampling" on the training data. Essentially, the method up-weights samples that the detector believes are human-generated, thereby curating the training data and preventing the model from collapsing into a low-diversity, error-reinforcing loop.
Datasets
- WikiText-2: Used for fine-tuning LLMs and evaluating model performance in recursive training experiments.
- MAGE (Machine-generated text detection benchmark): Used for training and evaluating the machine-generated text detector. This dataset consists of human-written texts and corresponding machine-generated versions from various LLMs.
- RAID dataset: Used to further train the machine-generated text detector, particularly for improving performance on SmolLM2 models.
Key Insights and Ideas
- Decoding Strategy Matters: The choice of decoding strategy has a dramatic impact on model collapse. Deterministic strategies (like greedy decoding) lead to the most severe collapse, while stochastic methods show more gradual degradation.
- Pure Sampling's Nuance: For GPT-2, pure sampling led to the worst performance and low similarity to human text after recursive training. However, for SmolLM2, pure sampling was more robust. This highlights model-specific sensitivities.
- Detector-Guided Resampling Works: The proposed method of using a machine-generated text detector to guide data resampling effectively prevents model collapse.
- Synthetic Data is Valuable (When Curated): The approach not only prevents collapse but also improves performance compared to training solely on human data, underscoring the benefits of synthetic data when properly curated.
Key Results
- Preventing Collapse: The proposed importance resampling method successfully prevented model collapse across all tested LLMs (GPT-2 and SmolLM2 variants) and decoding strategies.
- Performance Improvement: In scenarios with an equal mix of human and synthetic data, the resampling method led to improved performance (e.g., reduced perplexity, increased accuracy and diversity) compared to training exclusively on human data.
- Decoding Strategy Impact: Deterministic decoding strategies caused perplexity scores to increase by a factor of ~2.5, while stochastic methods showed linear degradation.
- Detector Performance: The trained ModernBERT detector achieved high AUC scores (up to .986 in-distribution, .943 out-of-distribution) on the MAGE dataset.
Limitations and Future Work
- Fine-tuning vs. Pre-training: The study focuses on fine-tuning, not pre-training from scratch. While this aligns with prior work, pre-training experiments could offer deeper insights.
- Open-Ended Generation Focus: The findings are primarily for open-ended text generation. Their generalizability to other domains like structured prediction or code generation needs further exploration.
- Computational Cost: Evaluating large models with multiple decoding strategies and data mixing settings is computationally expensive, limiting the scale of models tested. Future work could extend this to larger models.
- Data Mixing Coefficients: While the method doesn't assume knowledge of mixing coefficients, exploring their impact further is suggested.
- Accumulated Synthetic Data: The study notes that accumulating cross-generational data had a minimal effect on collapse in their experiments, contrasting with some prior work, possibly due to differences in experimental setup (e.g., fixed dataset size).
Summary updated