MAGE: Machine-generated Text Detection in the Wild

Yafu Li, Qintong Li, Leyang Cui, Wei Bi, Zhilin Wang +4 more
5/22/2023
cs.CL

Official code: yafuly/MAGE (232 stars, Apache-2.0, last commit 2025-03-06). 1 more implementation below.

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.

View on arXivView PDF

Code Implementations(2)

yafuly/MAGEOfficial100%
Apache-2.0

Machine-generated text detection in the wild (ACL 2024)

23214Shell, PythonMay 22, 20231 years agoApache-2.0

A reproducibility study for the paper MAGE: Machine-generated Text Detection in the Wild, implementing Longformer and DistilBERT models to detect machine-generated text across diverse domains. This repository includes datasets, scripts, and evaluation metrics for benchmarking detection performance.

00Shell, PythonDec 6, 20241 years ago
bert-modelcloud-computinggcp-projectlongformernatural-language-processing+4 more

Similar Papers

Cite this paper

@article{li2023mage,
  title  = {MAGE: Machine-generated Text Detection in the Wild},
  author = {Yafu Li and Qintong Li and Leyang Cui and Wei Bi and Zhilin Wang and Longyue Wang and Linyi Yang and Shuming Shi and Yue Zhang},
  year   = {2023},
  eprint = {2305.13242},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13242v3}
}

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/2305.13242.svg)](https://codeofpaper.com/paper/2305.13242)

Discussion