Red Teaming Language Model Detectors with Language Models
Zhouxing Shi, Yihan Wang, Fan Yin, Xiangning Chen, Kai-Wei Chang, Cho-Jui Hsieh
TL;DR
This work reveals that existing LLM-generated text detectors, including DetectGPT, watermarking, and classifier based systems, are vulnerable to adversarial attacks that preserve text plausibility. It introduces two red-teaming strategies: word substitutions generated by a protected attacker LLM and instructional prompts that steer generation away from detectable distributions, both under black-box constraints. Across GPT-2-XL, LLaMA-65B, and ChatGPT, the attacks substantially degrade detector performance measured by AUROC, DR, and ASR, while human judgments indicate only modest quality loss. The findings highlight an urgent need for robust detectors, including hybrid approaches that couple watermarking with likelihood-based checks to improve resilience against evolving evasion tactics.
Abstract
The prevalence and strong capability of large language models (LLMs) present significant safety and ethical risks if exploited by malicious users. To prevent the potentially deceptive usage of LLMs, recent works have proposed algorithms to detect LLM-generated text and protect LLMs. In this paper, we investigate the robustness and reliability of these LLM detectors under adversarial attacks. We study two types of attack strategies: 1) replacing certain words in an LLM's output with their synonyms given the context; 2) automatically searching for an instructional prompt to alter the writing style of the generation. In both strategies, we leverage an auxiliary LLM to generate the word replacements or the instructional prompt. Different from previous works, we consider a challenging setting where the auxiliary LLM can also be protected by a detector. Experiments reveal that our attacks effectively compromise the performance of all detectors in the study with plausible generations, underscoring the urgent need to improve the robustness of LLM-generated text detection systems.
