Red Teaming Language Model Detectors with Language Models
Paper · 2024 · Zhouxing Shi, Yihan Wang, Fan Yin et al.
Summary
Detectors that flag LLM-generated text are proposed as a safeguard against misuse such as plagiarism or mass misinformation, but it was unclear how well they resist deliberate evasion. The authors stress-test three detector families: a trained classifier (OpenAI's AI Text Classifier), the watermarking scheme of Kirchenbauer et al. (2023), and the likelihood-based DetectGPT. Their setting is harder than earlier paraphrasing attacks because the attacker's helper LLM is assumed to be protected by a detector too. They introduce two attacks. The first asks the auxiliary LLM for context-aware synonym candidates and chooses replacements either without consulting the detector or through a query-based evolutionary search. The second targets instruction-following models like ChatGPT. It uses a small training subset to find one fixed extra instruction that pushes the writing style toward text the classifier misses. On XSum and ELI5, every detector loses substantial AUROC and detection rate. Human raters still judge the attacked outputs as reasonably fluent and plausible. The work shows current detection tools are not yet trustworthy.
Key points
- Attacks cover all three detector types. Word substitution works against classifier, watermark, and likelihood detectors. Instructional prompts target classifier-based detection of instruction-tuned LLMs and need no test-time queries.
- The prompt search drew on a training set of n = 50 examples and ran for T = 5 rounds, considering K = 5 candidates in each round. The OpenAI classifier was evaluated at a 0.9 threshold for detection rate. The found prompts beat paraphrasing with ChatGPT.
- Watermarking proved the most robust of the three, which the authors attribute to its statistical nature. Query-based substitution generally gave the strongest attacks, while query-free substitution tended to preserve fluency better.
- Human evaluation ran on Amazon MTurk. It covered the first 20 test examples per dataset, with 3 workers each rating fluency and plausibility on a 1–3 scale. Quality dropped only slightly.
- Proposed defence: evading the watermark typically requires swapping about 20% of tokens from greenlist to redlist. Checking redlist-token likelihood or perplexity under the watermarked model could therefore expose such tampering. Code is available at github.com/shizhouxing/LLM-Detector-Robustness.
Institutions
Fields, topics and concepts
📚 Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 worksComputer Vision and Pattern Recognition · 2,869 works
🧭 Topics 2Research subjects and languages the work is about.Language models & pretraining · 3,320 worksBias, fairness & safety · 517 works
Cite
Cite as Zhouxing Shi, Yihan Wang, Fan Yin, Xiangning Chen, Kai-Wei Chang and Cho-Jui Hsieh. 2024. Red Teaming Language Model Detectors with Language Models. Transactions of the Association for Computational Linguistics.
@article{shi2024red,
title = {{Red Teaming Language Model Detectors with Language Models}},
author = {Zhouxing Shi, Yihan Wang, Fan Yin, Xiangning Chen, Kai-Wei Chang and Cho-Jui Hsieh},
journal = {Transactions of the Association for Computational Linguistics},
year = {2024},
doi = {10.1162/tacl\_a\_00639},
url = {https://doi.org/10.1162/tacl_a_00639}
}References
- Moustafa Alzantot, Yash Sharma, Ahmed Elgohary, Bo-Jhang Ho, Mani Srivastava, and Kai-Wei Chang. 2018. Generating natural language adversarial examples. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2890–2896, Brussels, Belgium. https://doi.org/10.1…
- Anas Awadalla, Mitchell Wortsman, Gabriel Ilharco, Sewon Min, Ian Magnusson, Hannaneh Hajishirzi, and Ludwig Schmidt. 2022. Exploring the landscape of distributional robustness for question answering models. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 5971–5987. h… find
- Conclusion and Limitations Melika Behjati, Seyed-Mohsen Moosavi-Dezfooli, Mahdieh Soleymani Baghshah, and Pascal Frossard. 2019. Universal adversarial attacks on text classifiers. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7345–7349.… — [doi:10.1109/icassp.2019.8682430](https://doi.org/10.1109/icassp.2019.8682430) find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/shi-2024-red-teaming-language-model-detectors/