Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore

Junchao Wu, Runzhe Zhan, Derek F. Wong, Shu Yang, Xuebo Liu +2 more
5/7/2024
cs.CL

Official code: NLP2CT/GECScore (5 stars, last commit 2024-12-30). 1 more implementation below.

Abstract

The efficacy of detectors for texts generated by large language models (LLMs) substantially depends on the availability of large-scale training data. However, white-box zero-shot detectors, which require no such data, are limited by the accessibility of the source model of the LLM-generated text. In this paper, we propose a simple yet effective black-box zero-shot detection approach based on the observation that, from the perspective of LLMs, human-written texts typically contain more grammatical errors than LLM-generated texts. This approach involves calculating the Grammar Error Correction Score (GECScore) for the given text to differentiate between human-written and LLM-generated text. Experimental results show that our method outperforms current state-of-the-art (SOTA) zero-shot and supervised methods, achieving an average AUROC of 98.62% across XSum and Writing Prompts dataset. Additionally, our approach demonstrates strong reliability in the wild, exhibiting robust generalization and resistance to paraphrasing attacks. Data and code are available at: https://github.com/NLP2CT/GECScore.

View on arXivView PDF

Code Implementations(2)

NLP2CT/GECScoreOfficial100%

[COLING 2025] Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore

50PythonDec 15, 20241 years ago
junchaoIU/GECScoreCommunity71%

[COLING 2025] Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore

81PythonJun 24, 20241 years ago

Similar Papers

Cite this paper

@article{wu2024wrote,
  title  = {Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore},
  author = {Junchao Wu and Runzhe Zhan and Derek F. Wong and Shu Yang and Xuebo Liu and Lidia S. Chao and Min Zhang},
  year   = {2024},
  eprint = {2405.04286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.04286v2}
}

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

Discussion