Learning to Rewrite: Generalized Detection of LLM-Generated Text
Ran LiWei HaoWeiliang Zhao
Junfeng YangChengzhi Mao Ran Li
Wei Hao
Weiliang Zhao

Junfeng Yang
Chengzhi Mao
+5
We introduce Learning2Rewrite, a framework for detecting LLM-generated text that generalizes to unseen domains. Built on the observation that LLMs alter AI-generated text less than human-written text when rewriting, the method trains LLMs to minimize edits on AI inputs, amplifying this disparity into a more distinguishable, generalizable edit distance. Evaluations across 21 domains and four LLMs (GPT-3.5, GPT-4, Gemini, Llama-3) show AUROC gains up to 23.04% in-distribution, 37.26% out-of-distribution, and 48.66% under adversarial attacks, outperforming state-of-the-art detectors.

OpenReview · September 27, 2024