Machine-generated text detection prevents language model collapse

George Drayson, Emine Yilmaz, Vasileios Lampos
2/21/2025
26 citations
cs.CLcs.LG

Official code: GeorgeDrayson/model_collapse (11 stars, Python, MIT, last commit 2026-03-13).

Abstract

As Large Language Models (LLMs) become increasingly prevalent, their generated outputs are proliferating across the web, risking a future where machine-generated content dilutes human-authored text. Since online data is the primary resource for LLM pre-training, subsequent models could be trained on an unknown portion of synthetic samples.

Show full abstract

This could lead to model collapse, a degenerative process whereby LLMs reinforce their own errors, reduce output diversity, and ultimately yield declining performance. In this study, we investigate the impact of decoding strategy on model collapse, analysing the text characteristics at each model generation, the similarity to human references, and the resulting model performance. Using the decoding strategies that lead to the most significant degradation, we evaluate model collapse in a more realistic scenario where the origin of the data (human or synthetic) is unknown. We train a machine-generated text detector and propose an importance resampling approach to prevent model collapse by up-sampling likely human content in the training data. Our method is validated on four LLMs from two model families (GPT-2 and SmolLM2), across a range of model sizes 124M to 1.7B). We demonstrate that it not only prevents model collapse but also improves performance compared to training on purely human data, underscoring the benefit of synthetic samples and the importance of data curation.

View on arXivView PDF

Code Implementations(1)

MIT
112PythonApr 14, 20258 months agoMIT

Similar Papers

Cite this paper

@article{drayson2025machinegenerated,
  title  = {Machine-generated text detection prevents language model collapse},
  author = {George Drayson and Emine Yilmaz and Vasileios Lampos},
  year   = {2025},
  eprint = {2502.15654},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15654v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15654.svg)](https://codeofpaper.com/paper/2502.15654)

Discussion