Large Language Models can be Guided to Evade AI-Generated Text Detection

Ning Lu, Shengcai Liu, Rui He, Qi Wang, Yew-Soon Ong +1 more
5/18/2023
87 citations
cs.CLcs.AI

Official code: ColinLu50/Evade-GPT-Detector (70 stars, Python, last commit 2023-06-15).

Abstract

Large language models (LLMs) have shown remarkable performance in various tasks and have been extensively utilized by the public. However, the increasing concerns regarding the misuse of LLMs, such as plagiarism and spamming, have led to the development of multiple detectors, including fine-tuned classifiers and statistical methods.

Show full abstract

In this study, we equip LLMs with prompts, rather than relying on an external paraphraser, to evaluate the vulnerability of these detectors. We propose a novel Substitution-based In-Context example Optimization method (SICO) to automatically construct prompts for evading the detectors. SICO is cost-efficient as it requires only 40 human-written examples and a limited number of LLM inferences to generate a prompt. Moreover, once a task-specific prompt has been constructed, it can be universally used against a wide range of detectors. Extensive experiments across three real-world tasks demonstrate that SICO significantly outperforms the paraphraser baselines and enables GPT-3.5 to successfully evade six detectors, decreasing their AUC by 0.5 on average. Furthermore, a comprehensive human evaluation show that the SICO-generated text achieves human-level readability and task completion rates, while preserving high imperceptibility. Finally, we propose an ensemble approach to enhance the robustness of detectors against SICO attack. The code is publicly available at https://github.com/ColinLu50/Evade-GPT-Detector.

View on arXivView PDF

Code Implementations(1)

Official repo for paper "Large Language Models can be Guided to Evade AI-Generated Text Detection" in TMLR 2024.

704Python, ShellJun 15, 20233 years ago

Similar Papers

Cite this paper

@article{lu2023large,
  title  = {Large Language Models can be Guided to Evade AI-Generated Text Detection},
  author = {Ning Lu and Shengcai Liu and Rui He and Qi Wang and Yew-Soon Ong and Ke Tang},
  year   = {2023},
  eprint = {2305.10847},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10847v6}
}

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

Discussion