Skip to main content
QUICK REVIEW

[Paper Review] MAGE: Machine-generated Text Detection in the Wild

Yafu Li, Qintong Li|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science9 citations
TL;DR

This paper builds a wild testbed for machine-written text detection across diverse domains and LLMs, benchmarks several detectors, and shows that supervised PLM-based methods are strongest, with out-of-distribution detection improved by boundary adjustment using a tiny in-domain sample.

ABSTRACT

Large language models (LLMs) have achieved human-level text generation, emphasizing the need for effective AI-generated text detection to mitigate risks like the spread of fake news and plagiarism. Existing research has been constrained by evaluating detection methods on specific domains or particular language models. In practical scenarios, however, the detector faces texts from various domains or LLMs without knowing their sources. To this end, we build a comprehensive testbed by gathering texts from diverse human writings and texts generated by different LLMs. Empirical results show challenges in distinguishing machine-generated texts from human-authored ones across various scenarios, especially out-of-distribution. These challenges are due to the decreasing linguistic distinctions between the two sources. Despite challenges, the top-performing detector can identify 86.54% out-of-domain texts generated by a new LLM, indicating the feasibility for application scenarios. We release our resources at https://github.com/yafuly/MAGE.

Motivation & Objective

  • Motivate robust deepfake text detection in realistic, source-unknown settings across diverse domains and models.
  • Create a large, diverse wild testbed pairing human-written texts with machine-generated texts from many LLMs.
  • Evaluate common detection methods under in-domain and out-of-distribution conditions to understand generalization gaps.
  • Investigate linguistic and perplexity-related biases that affect detector boundaries and performance.
  • Provide practical guidance on improving real-world detector deployment and evaluation.

Proposed method

  • Construct a large-scale wild testbed with 10 human-written datasets and machine-generated texts from 27 LLMs using three prompt types (continuation, topical, specified).
  • Fine-tune a Longformer-based PLM classifier with a classification head for detection tasks.
  • Compare against feature-based detectors (FastText, GLTR) and a zero-shot detector (DetectGPT).
  • Evaluate detectors across six in-distribution testbeds (increasing wildness) and two out-of-distribution scenarios (unseen domains/models).
  • Use AvgRec (average recall) as the primary metric and AUROC as a supplementary metric.

Experimental results

Research questions

  • RQ1Do inherent differences exist between human-written and machine-generated text across topics and domains, regardless of content?
  • RQ2Can common detection methods identify machine-generated text in wild settings without access to the source LLM?
  • RQ3How well do detectors generalize to unseen domains or unseen model families?
  • RQ4What practical adjustments (e.g., decision boundary tuning) improve out-of-distribution detection?

Key findings

  • PLM-based detectors consistently outperform others across in-domain settings, achieving high AvgRec and AUROC.
  • Detector performance degrades when faces cross-domain or cross-model data, with notable drops in AvgRec and AUROC under out-of-distribution conditions.
  • DetectGPT and GLTR show strong performance when the scoring model aligns with the fake text source, but their performance collapses for unseen models or domains.
  • Longformer maintains the strongest overall performance in cross-domain/cross-model settings, with AvgRec around 90% in many cases and AUROC near 0.99 in some in-domain settings.
  • Perplexity bias exists in PLM-based detectors, where low perplexity text is more likely misclassified as machine-generated and high perplexity text as human-written, affecting decision boundaries.
  • A tiny re-selection of the decision boundary using 0.1% in-domain data markedly boosts out-of-distribution AvgRec (e.g., up to +13.38%).
  • Longer texts improve detection accuracy, supporting the intuition that more content provides more signals for detectors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.