Source-linked AI summary

A Survey on LLM-Generated Text Detection: Necessity, Methods, and Future Directions

Junchao Wu, Shu Yang, Runzhe Zhan, Yulin Yuan, Derek F. Wong, Lidia S. Chao

arXiv:2310.14724v3cs.CLcs.AI

TL;DR

LLM-generated text is increasingly difficult to distinguish from human writing, creating risks ranging from erroneous or harmful content to legal and societal concerns. This survey reviews detection methods, datasets, benchmarks, evaluation issues, and future directions. It finds substantial progress across detection approaches while emphasizing unresolved robustness, distributional, real-world, and evaluation challenges.

  • Problem

    LLM-generated text is widely used and difficult to distinguish from human writing, while its misuse can spread erroneous knowledge, disinformation, plagiarism, and other harms.

  • Method

    The survey synthesizes detection methods, datasets, benchmarks, evaluation metrics, challenges, and future research directions across the field.

  • Results

    The survey reports advances in watermarking, statistics-based, neural, and human-assisted detection, including strong results from several detector families.

  • Takeaways & Limitations

    Effective detection research remains important for responsible AI because detectors must address misuse while supporting regulation, trust, and practical deployment.

  • Takeaways & Limitations

    Current detection research remains constrained by watermark robustness, cross-lingual generalization, and difficulty handling mixed or short real-world texts.

Abstract

from arXiv · show

The powerful ability to understand, follow, and generate complex language emerging from large language models (LLMs) makes LLM-generated text flood many areas of our daily lives at an incredible speed and is widely accepted by humans. As LLMs continue to expand, there is an imperative need to develop detectors that can detect LLM-generated text. This is crucial to mitigate potential misuse of LLMs and safeguard realms like artistic expression and social networks from harmful influence of LLM-generated content. The LLM-generated text detection aims to discern if a piece of text was produced by an LLM, which is essentially a binary classification task. The detector techniques have witnessed notable advancements recently, propelled by innovations in watermarking techniques, statistics-based detectors, neural-base detectors, and human-assisted methods. In this survey, we collate recent research breakthroughs in this area and underscore the pressing need to bolster detector research. We also delve into prevalent datasets, elucidating their limitations and developmental requirements. Furthermore, we analyze various LLM-generated text detection paradigms, shedding light on challenges like out-of-distribution problems, potential attacks, real-world data issues and the lack of effective evaluation framework. Conclusively, we highlight interesting directions for future research in LLM-generated text detection to advance the implementation of responsible artificial intelligence (AI). Our aim with this survey is to provide a clear and comprehensive introduction for newcomers while also offering seasoned researchers a valuable update in the field of LLM-generated text detection. The useful resources are publicly available at: https://github.com/NLP2CT/LLM-generated-Text-Detection.

1. Introduction

LLM-generated text has become difficult to distinguish from human writing as LLMs spread across everyday and professional uses. The survey reviews detection research because unreliable detectors and human judgments leave important misuse and trust risks unresolved.

  • LLMs now produce text comparable to human writing and support applications including advertising, news, and story generation.
  • LLM-generated text can spread erroneous knowledge, undermine expertise, promote plagiarism, and facilitate malicious activities such as disinformation.
  • Commercial detectors are unreliable and biased toward classifying LLM outputs as human-written rather than detecting generated text.
  • Human-based detection performs only slightly better than random classification and can be less accurate than automated detectors in some settings.
  • The survey reviews recent detection breakthroughs, datasets, benchmarks, challenges, and future research directions.

2. Background

The background defines LLM-generated text detection as binary classification and explains how LLM generation, decoding choices, and emerging capabilities shape the task. It also presents detection as necessary for addressing legal, societal, and developmental concerns.

  • LLM-generated Text Detection Task: Humans often struggle to distinguish LLM-generated from human-written text, with performance only slightly exceeding random classification.
  • Definitions: LLM-generated text is defined as cohesive, grammatically sound, and pertinent content produced by LLMs, whose quality depends on model scale and training-data diversity.
  • LLM-generated Text Detection Task: The detection task assigns whether text x was generated by an LLM or written by a human, making it a binary classification problem.
  • Generation Mechanisms: LLMs generate text sequentially by predicting each next token from the input sequence and previously decoded tokens.
  • Decoding Strategies: Greedy search is fast but less diverse, beam search improves quality but may duplicate text, while top-k and top-p sampling trade diversity against generation control.
  • Why Detection Is Needed: Detection is presented as relevant to legal questions about ownership and copyright protection for AI-generated creative works.
  • Why Detection Is Needed: LLM self-consumption may homogenize generated text and hinder long-term progress when training data increasingly contains model outputs.

3. Related Works and Our Investigation

This survey systematically reviews LLM-generated text detection, extending earlier work through broader coverage of detection strategies, datasets, benchmarks, challenges, and future directions. Its literature investigation identified 83 pertinent works, with most published in 2023.

  • Related works: Earlier surveys emphasized machine-translation detection and simple statistical methods, whereas autoregressive models increased the complexity of text detection.The survey positions its investigation against foundational work on computer-generated and machine-generated text detection.
  • Our investigation: The review covers the task’s motivation, datasets and benchmarks, detection and attack methods, evaluation frameworks, current challenges, and future directions.It is presented as a systematic and comprehensive examination of the field.
  • Our investigation: The survey analyzes detection strategies from traditional approaches to recent research, including their effectiveness, strengths, and weaknesses.
  • Our investigation: Its practical discussion addresses how model size affects detection, the identification of partially LLM-generated text, and the lack of effective evaluation frameworks.
  • Systematic investigation and implementation: Using a System for Literature Review framework, the study searched related detection terms, applied inclusion criteria, and identified 83 pertinent works after de-duplication and manual screening.The search covered reviews, detection methodologies, and work on challenges or future directions.
  • Systematic investigation and implementation: Most relevant research was published in 2023, indicating vibrant development in LLM-generated text detection.

4. Data

The survey reviews datasets and benchmarks for LLM-generated text detection, emphasizing their limited coverage, outdated models, and need for multifaceted evaluation.

  • Data resources: High-quality datasets support detector training, calibration, and standardized evaluation, but current resources remain limited in volume and sample complexity.The survey organizes datasets and benchmarks to help researchers select resources suited to specific practical issues.
  • Detection datasets: The survey covers detection datasets including HC3, CHEAT, HC3 Plus, OpenLLMText, TweepFake, and GPT2-Output.These resources compare human-written and generated text across domains, languages, models, and generation settings.
  • Detection datasets: OpenLLMText contains 344k samples from GPT-3.5, PaLM, LLaMA-7B, and GPT2-1B, but does not fully capture cross-domain and multilingual text.Its samples include 68k human-written texts and are split into training, validation, and test sets at 76%, 12%, and 12%, respectively.
  • Evaluation benchmarks: TuringBench contains outputs from 19 generation models, but its older samples are less suitable for contemporary detector training and validation.The survey calls for timely updates incorporating newer generation models and their texts.
  • Potential datasets: Researchers often adapt datasets from Q&A, academic writing, and story generation, then produce LLM-generated text through prompt engineering and bootstrap complementation.This practice reflects the resource-intensive nature of constructing paired human-written and generated-text datasets from scratch.
  • Data challenges: Existing datasets and benchmarks inadequately address diverse research perspectives, motivating systematic evaluation across attacks, domains, tasks, and models.The survey identifies multiple attack types and multiple LLMs as important benchmark dimensions, while emphasizing that emerging models such as LLaMA, PaLM, and Claude-2 should be considered.

5. Advances in Detector Research

The survey organizes recent LLM-generated text detection methods by their underlying principles, covering watermarking, statistics-based, neural-based, and human-assisted approaches.

  • Detector paradigms: The survey categorizes detector designs into watermarking technology, statistics-based detectors, neural-based detectors, and human-assisted methods.It focuses on recently proposed methods and structures the discussion according to their underlying principles.

5.1 Watermarking Technology

The survey groups watermarking detectors into data-driven, model-driven, and post-processing approaches, alongside the broader detector taxonomy. These methods differ in where watermarks are embedded and face robustness, security, generalizability, or deployment constraints.

  • Data-Driven Watermarking: Data-driven watermarking embeds patterns or tags in training data, typically through backdoors that learn a defender-controlled secret trigger.These methods support ownership verification and tracking of illegal copying or misuse.
  • Taxonomy: Watermarking is classified alongside statistics-based, neural-based, and human-assisted methods for detecting LLM-generated text.Figure 4 distinguishes the detector families and uses orange lines for detection-capability sources and green lines for detection processes.
  • Data-Driven Watermarking: Data-driven methods generally have limited payload capacity and generalizability while requiring substantial data embedding and model retraining.They were initially designed for dataset copyright protection rather than broad LLM-generated text detection.
  • Model-Driven Watermarking: Model-driven watermarking manipulates logits or token sampling during inference so generated responses carry embedded watermarks.Logits-based methods partition tokens into green and red sets and gently steer generation toward green tokens.
  • Model-Driven Watermarking: Model-driven watermarking is plug-and-play with minimal text-quality impact, but its robustness and practical usability still require further study.Attacks, paraphrasing, and secret-key requirements create additional robustness and security concerns.
  • Post-Processing Watermarking: Post-processing watermarking operates as a separate module after generation, using character, synonym, or sequence-to-sequence transformations.Compared with model-driven watermarking, it may rely more heavily on visible rules and be more vulnerable to sophisticated attacks.

5.2 Statistics-Based Methods

Statistics-based detectors identify LLM-generated text from linguistic or model-derived regularities without supervised training, using white-box or black-box access patterns. Their limitations include dependence on corpus and model statistics, computational cost, and access overhead.

  • Overview: Statistics-based detection derives regularities from text features or LLM outputs without additional supervised training.Methods may compute features, scores, or thresholds from statistical data and distinctive text characteristics.
  • Linguistic Statistics: Linguistic-statistics methods use features such as grammatical structure, word frequencies, repeated n-grams, and statistical similarities to distinguish generated text.Their effectiveness depends heavily on extensive corpus statistics and coverage of different LLMs.
  • White-Box Statistics: White-box detectors require source-model access, obtain logits, calculate metrics such as likelihood, rank, entropy, or perplexity, and compare them with thresholds.These methods use model probability distributions to characterize the text being evaluated.
  • Perturbation-Based Methods: Perturbation-based methods compare model probabilities before and after generating semantically similar alternatives, but DetectGPT can be computationally expensive and sensitive to rewrite quality.Reported improvements reduce query overhead or increase speed through surrogate modeling and more efficient sampling.
  • Black-Box Statistics: Black-box statistics use external model continuations or rewrites and compare their similarity with the original text without source-model logits.These methods incur substantial access overhead and long response times.

5.3 Neural-Based Methods

Neural-based detectors use linguistic or model features with classifiers, fine-tuned language models, contrastive learning, adversarial training, or LLM prompting. Reported results are strong in some settings, but robustness, generalization, and reliability remain important concerns.

  • Features-Based Classifiers: Feature-based classifiers extract stylistic, complexity, semantic, and other linguistic features before applying machine-learning classification.Features include word frequencies, lexical diversity, sentence structure, punctuation, and semantic measures.
  • Features-Based Classifiers: Feature-based systems report strong in-domain results, including 93% accuracy and F1 scores of 98.36% on English and 98.29% on Spanish datasets.One optimized detector exceeded GPTZero by 183.8% in F1 Score.
  • Features-Based Classifiers: Linguistic-feature classifiers can be poorly robust to ambiguous semantics, underperform neural features, and have limited ability to detect LLM-generated misinformation.Statistical features may nevertheless contribute additional adversarial robustness in integrated models.
  • Pre-Training Classifiers: Fine-tuned Transformer classifiers, especially RoBERTa-based models, provide strong in-domain baselines but tend to lose performance on cross-domain or unseen data.Across reported domains, fine-tuned models averaged 95% accuracy and showed some resilience to attacks.
  • Adversarial Learning: Adversarial-learning approaches improve detector training by augmenting samples with attacks or by iteratively training attack and detection models.The reviewed methods include sample-enhancement strategies and two-player-game frameworks such as RADAR.
  • LLMs as Detectors: Using LLMs as detectors is presented as questionable, although an in-context-learning strategy outperformed traditional zero-shot methods and RoBERTa-based detectors.The approach continuously supplies example samples to the LLM for detection tasks.

5.4 Human-Assisted Methods

Human-assisted detection uses human judgment to identify linguistic inconsistencies, but training and structured annotation can improve performance and support interpretable machine-assisted systems.

  • Human-assisted methods leverage prior knowledge and analytical skills, providing interpretability and credibility during detection.
  • Semantic inconsistencies, logical errors, and poor coherence can indicate LLM-generated text to human evaluators.
  • Human evaluators may underperform detection algorithms, but exposure to examples improves detection, especially for longer samples.
  • Manual annotation outperformed detection models on half of SCARECROW’s error types, indicating potential for annotation systems despite human overhead.
  • A mixed prototype trains and iteratively refines machine-learning models from expert labels, then selects an intuitive detector through visual statistical analysis.

6. Evaluation Metrics

LLM-generated text detection requires multiple evaluation metrics because detectors face different error types, class-balance conditions, and threshold settings. The survey defines metrics for overall accuracy, class-specific performance, false errors, and threshold-sensitive discrimination.

  • The confusion matrix distinguishes true positives, true negatives, false positives, and false negatives as the four possible classification outcomes.
  • Accuracy measures correctly classified texts overall but becomes less useful on unbalanced datasets because it is sensitive to category imbalance.
  • Paired accuracy compares machine probabilities for matched human and generated samples, whereas unpaired accuracy independently classifies each sample and is more difficult.
  • Precision measures the proportion of correctly detected LLM-generated samples among all samples classified as LLM-generated, emphasizing false positives.
  • Recall measures the proportion of actual LLM-generated texts correctly identified, while HumanRec and LLMRec report performance separately for the two classes.
  • F1 Score combines precision and recall through their harmonic mean when balancing false positives and false negatives is important.
  • AUROC evaluates classification performance across varying thresholds, which is particularly useful for zero-shot detectors whose detection rates depend on threshold choice.

7. Important Issues of LLM-generated Text Detection

LLM-generated text detectors face broad reliability problems across domains, languages, models, attacks, real-world mixed text, and evaluation settings. The survey reviews these issues and the conditions that limit detector performance and reproducibility.

  • Out-of-distribution challenges: Cross-domain detectors can degrade substantially on out-of-distribution data, with some classifiers only marginally exceeding random classification.This gap between reported performance and real-world reliability motivates more critical evaluation and method improvement.
  • Out-of-distribution challenges: Cross-lingual detectors often lack consistent control across languages, and performance declines on text written by non-native English speakers.Prompt strategies may reduce this bias but can also allow generated text to bypass detectors and risk penalizing non-standard linguistic styles.
  • Out-of-distribution challenges: White-box methods may underperform on text from unknown LLMs, while neural classifiers can struggle with models absent from their training data.Surrogate-model comparisons and identifying the generative model are proposed as ways to mitigate cross-LLM limitations.
  • Potential attacks: Supervised training on adversarial samples can improve robustness, but detector resilience varies across attack types and detector architectures.Some semantic perturbations leave Grover unaffected, whereas adversarial embeddings can deceive it and significantly degrade fine-tuning classifiers.
  • Potential attacks: Paraphrase, adversarial, and training-based attacks can substantially reduce detector effectiveness by altering lexical, syntactic, or distributional features.A contextual example optimisation attack lowers AUC by an average of 0.54, while fine-tuning Llama-2-7B reduces OpenAI RoBERTa-Large AUROC from 0.84 to 0.62.
  • Real-world data issues: Real-world detection must handle data-mixed and human-edited text, yet current detectors struggle with short text and paraphrased or manually modified content.The survey calls for fine-grained detection, dedicated datasets, and task definitions for these settings.
  • Impact of model size: Detector performance is affected by generative-model size: larger-model outputs are harder to detect, especially when classifiers train on smaller-model outputs.Training on medium-sized-model data may generalize to larger models, whereas data from overly large or small models can reduce generalization.
  • Evaluation framework: Evaluation results are difficult to reproduce because test-set parameters, computational environments, text distributions, and processing choices vary across studies.The survey advocates a comprehensive evaluation framework and open sharing of test sets.

8. Future Research Directions

The survey identifies attacks, resource constraints, mixed-source text, data authenticity, evaluation realism, and factual verification as priorities for future detector research.

  • Robustness against attacks: Detectors should be evaluated against paraphrase, adversarial, and prompt attacks rather than isolated threat types.The survey notes that robustness work often addresses specific attacks while neglecting others.
  • Zero-shot detectors: Zero-shot detection research should seek discriminative features spanning low- and high-dimensional differences between generated and human-written text.The survey highlights stability, controllability, interpretability, and the potential of black-box methods.
  • Resource constraints: Resource requirements and detector efficacy across different data volumes remain inadequately explored, especially in resource-constrained settings.Future studies should clarify the minimum resources needed for satisfactory detection.
  • Real-world text: Mixed-source and human-edited texts require dedicated datasets and tasks because such content may be common in practical detector applications.The survey presents solutions for these cases as pending verification.
  • Data authenticity: Detector research should verify the authenticity of collected training data because contaminated web sources can compromise research integrity and create a feedback loop.Blogs and web comments may contain substantial amounts of LLM-generated text.
  • Evaluation: Evaluation should address creator-favored test-set biases and idealized benchmarks that differ from real-world settings.The survey identifies this mismatch as limiting practical detector effectiveness.
  • Factual verification: Future detectors should assess factual veracity alongside stylistic or distributional features to help distinguish misinformation.The survey argues that detecting whether factual claims are true or false is an overlooked capability.

9. Conclusion

The survey presents LLM-generated text detection as increasingly necessary and synthesizes its methods, datasets, limitations, and future directions. It emphasizes out-of-distribution data, attacks, real-world data, and evaluation frameworks as central unresolved challenges.

  • Conclusion: LLM-generated text detectors are increasingly important for distinguishing human-written from LLM-generated content amid widespread LLM use.The survey connects this role with concerns including deceptive news, scams, and educational inequality.
  • Conclusion: The survey covers detection methods, datasets, detector limitations, and future research directions for responsible AI.Its scope includes the task definition, sources of LLM capabilities, and requirements for existing datasets and detectors.
  • Conclusion: Key unresolved challenges include out-of-distribution data, potential attacks, real-world data issues, and ineffective evaluation frameworks.The survey highlights these issues to direct research attention toward future detector development.

2023. A deep fusion model for human

The supplied passages consist of bibliographic entries for prior work on machine-generated text, detection, attacks, language models, and related methods.

  • Related work: The references include surveys addressing machine-generated text threat models and detection methods.The entries identify comprehensive survey works in this area.
  • Related work: The bibliography includes studies on detecting synthetic or machine-generated text with neural, statistical, and emotion-related approaches.The listed works cover unsupervised detection, neural detection, and emotion-recognition-based detection.
  • Related work: Several references concern adversarial or paraphrase methods relevant to evading text classifiers and detection systems.The entries include black-box adversarial text generation and paraphrase generation.
Loading 2310.14724v3…