Red Teaming Language Model Detectors with Language Models

Zhouxing Shi, Yihan Wang, Fan Yin, Xiangning Chen, Kai-Wei Chang +1 more
5/31/2023
cs.CLcs.LG

No official code found. Best implementation: shizhouxing/LLM-Detector-Robustness (24 stars, BSD-3-Clause, last commit 2023-11-24).

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.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

[TACL] Code for "Red Teaming Language Model Detectors with Language Models"

244Shell, PythonOct 18, 20232 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{shi2023teaming,
  title  = {Red Teaming Language Model Detectors with Language Models},
  author = {Zhouxing Shi and Yihan Wang and Fan Yin and Xiangning Chen and Kai-Wei Chang and Cho-Jui Hsieh},
  year   = {2023},
  eprint = {2305.19713},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.19713v2}
}

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

Discussion