RADAR: Robust AI-Text Detection via Adversarial Learning

Xiaomeng Hu, Pin-Yu Chen, Tsung-Yi Ho
7/7/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: IBM/RADAR (75 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Recent advances in large language models (LLMs) and the intensifying popularity of ChatGPT-like applications have blurred the boundary of high-quality text generation between humans and machines. However, in addition to the anticipated revolutionary changes to our technology and society, the difficulty of distinguishing LLM-generated texts (AI-text) from human-generated texts poses new challenges of misuse and fairness, such as fake content generation, plagiarism, and false accusations of innocent writers. While existing works show that current AI-text detectors are not robust to LLM-based paraphrasing, this paper aims to bridge this gap by proposing a new framework called RADAR, which jointly trains a robust AI-text detector via adversarial learning. RADAR is based on adversarial training of a paraphraser and a detector. The paraphraser's goal is to generate realistic content to evade AI-text detection. RADAR uses the feedback from the detector to update the paraphraser, and vice versa. Evaluated with 8 different LLMs (Pythia, Dolly 2.0, Palmyra, Camel, GPT-J, Dolly 1.0, LLaMA, and Vicuna) across 4 datasets, experimental results show that RADAR significantly outperforms existing AI-text detection methods, especially when paraphrasing is in place. We also identify the strong transferability of RADAR from instruction-tuned LLMs to other LLMs, and evaluate the improved capability of RADAR via GPT-3.5-Turbo.

View on arXivView PDF

Code Implementations(1)

IBM/RADARCommunity68%
Apache-2.0

Code for our NeurIPS2023 accepted paper: RADAR: Robust AI-Text Detection via Adversarial Learning. We tested RADAR on 8 LLMs including Vicuna and LLaMA. The results show that RADAR can attain good detection performance on LLM-generated AI-text while being robust against paraphrasing.

758Jupyter NotebookMar 2, 20241 years agoApache-2.0
ai-text-detector

Similar Papers

Cite this paper

@article{hu2023radar,
  title  = {RADAR: Robust AI-Text Detection via Adversarial Learning},
  author = {Xiaomeng Hu and Pin-Yu Chen and Tsung-Yi Ho},
  year   = {2023},
  eprint = {2307.03838},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.03838v2},
  journal = {NEURIPS 2023 2023}
}

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

Discussion