A Survey on Detection of LLMs-Generated Content

Xianjun Yang, Liangming Pan, Xuandong Zhao, Haifeng Chen, Linda R. Petzold, William Yang Wang, Wei Cheng

Abstract

The burgeoning capabilities of advanced large language models (LLMs) such as ChatGPT have led to an increase in synthetic content generation with implications across a variety of sectors, including media, cybersecurity, public discourse, and education. As such, the ability to detect LLMs-generated content has become of paramount importance. We aim to provide a detailed overview of existing detection strategies and benchmarks, scrutinizing their differences and identifying key challenges and prospects in the field, advocating for more adaptable and robust models to enhance detection accuracy. We also posit the necessity for a multi-faceted approach to defend against various attacks to counter the rapidly advancing capabilities of LLMs. To the best of our knowledge, this work is the first comprehensive survey on the detection in the era of LLMs. We hope it will provide a broad understanding of the current landscape of LLMs-generated content detection, offering a guiding reference for researchers and practitioners striving to uphold the integrity of digital information in an era increasingly dominated by synthetic content.

Introduction: The Digital Arms Race

As Large Language Models (LLMs) like ChatGPT and GPT-4 become indistinguishable from human writers, we find ourselves in a digital "arms race." Whether it's a professor checking an essay or a platform filtering misinformation, the need to identify machine-generated text has never been more urgent. This survey provides a comprehensive map of this rapidly evolving battlefield, moving beyond simple binary thinking to explore different levels of model access and detection methodologies.

The core challenge is the erosion of the "human-AI boundary." We are entering an era where humans can no longer reliably distinguish between synthetic and organic text. This creates massive risks for academic integrity, cybersecurity (automated phishing), and public discourse (fake news).

Taxonomy of Detection Methods

Detection strategies are organized into three main pillars: training-based classifiers, zero-shot detectors, and watermarking. These methods vary based on the level of transparency and access to the underlying model, ranging from "Black-box" scenarios (where only the text is available) to "White-box" scenarios (where internal model probabilities are accessible).

Conceptual framework of LLM detection categories and access levels.
  1. Training-based Classifiers: These supervised models (often based on RoBERTa or T5) are trained on massive datasets of paired human and AI text. While powerful, they often struggle to generalize to new, unseen models.
  2. Zero-shot Detectors: These leverage the intrinsic statistical properties of LLMs without needing extra training. A standout example is DetectGPT, which observes that AI text tends to occupy "negative curvature" regions of a model's log-probability function. Essentially, if you slightly perturb a sentence and the probability drops sharply, it’s likely AI-generated.
  3. Watermarking: This is a proactive approach where the model creator "hides" a signal in the text during generation. This is often done by biasedly selecting certain tokens (a "green list") based on the previous token's hash.

Benchmarks and Datasets

The field has moved from simple news articles to complex multi-domain datasets. Key benchmarks include HC3 (Human ChatGPT Comparison Corpus), which features Q&A pairs from Reddit and Wikipedia, and M4, a massive multi-generator, multi-domain, and multi-lingual corpus.

Summary of key datasets and benchmarks used for evaluating LLM detection.

Researchers must also account for Data Contamination, where detectors accidentally classify classic texts like the Bible as AI-generated because they were heavily represented in the LLM's original training data.

Key Insights and Challenges

  • The "Low FPR" Requirement: In real-world applications like academia, a 95% accuracy rate is insufficient if the 5% error rate leads to false accusations. Detection must aim for a very low False Positive Rate (FPR).
  • The Paraphrasing Paradox: Most current detectors can be defeated by simple "paraphrasing attacks." If a human or another AI rewords the output, the statistical "fingerprint" of the original LLM often vanishes.
  • Bias Against Non-Native Speakers: Detectors are often biased against non-native English writers. Because non-native writing can have lower linguistic entropy, detectors frequently misidentify it as AI-generated.
  • Code Detection Difficulty: Detecting AI-generated code is significantly harder than prose because code is naturally more deterministic and has lower entropy, leaving fewer "tells."

Future Directions

As LLMs approach "perfect" mimicry of human distribution, detection may become mathematically impossible. Future research must focus on fine-grained detection (identifying specific AI-edited sections), increasing robustness to adversarial attacks, and improving transparency through explainable detection results.

Summary updated

Abstract

The burgeoning capabilities of advanced large language models (LLMs) such as ChatGPT have led to an increase in synthetic content generation with implications across a variety of sectors, including media, cybersecurity, public discourse, and education. As such, the ability to detect LLMs-generated content has become of paramount importance. We aim to provide a detailed overview of existing detection strategies and benchmarks, scrutinizing their differences and identifying key challenges and prospects in the field, advocating for more adaptable and robust models to enhance detection accuracy. We also posit the necessity for a multi-faceted approach to defend against various attacks to counter the rapidly advancing capabilities of LLMs. To the best of our knowledge, this work is the first comprehensive survey on the detection in the era of LLMs. We hope it will provide a broad understanding of the current landscape of LLMs-generated content detection, offering a guiding reference for researchers and practitioners striving to uphold the integrity of digital information in an era increasingly dominated by synthetic content. The relevant papers are summarized and will be consistently updated at https://github.com/Xianjun-Yang/Awesome_papers_on_LLMs_detection.git.
BibTeX
@inproceedings{yang2024survey,
  author = {Xianjun Yang and Liangming Pan and Xuandong Zhao and Haifeng Chen and Linda R. Petzold and William Yang Wang and Wei Cheng},
  title = {{A Survey on Detection of LLMs-Generated Content}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.572},
}
Figure