arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.19713cs.CLcs.LG
收藏

使用语言模型对语言模型检测器进行红队测试

Red Teaming Language Model Detectors with Language Models

University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Zhouxing Shi, Yihan Wang, Fan Yin, Xiangning Chen, Kai-Wei Chang, Cho-Jui Hsieh

AI总结:

本文研究LLM检测器在对抗攻击下的鲁棒性,提出利用辅助LLM进行同义词替换和指令提示搜索两种攻击策略,实验证明这些攻击有效损害了所有检测器的性能,凸显了提升检测系统鲁棒性的迫切需求。

摘要:

大型语言模型(LLMs)的普及和强大能力如果被恶意用户利用,会带来重大的安全和伦理风险。为了防止 LLMs 被潜在地欺骗性使用,最近的研究提出了检测 LLM 生成文本并保护 LLMs 的算法。在本文中,我们研究了这些 LLM 检测器在对抗攻击下的鲁棒性和可靠性。我们研究了两种攻击策略:1)在给定上下文的情况下,将 LLM 输出中的某些词替换为其同义词;2)自动搜索指令提示以改变生成的写作风格。在这两种策略中,我们利用辅助 LLM 来生成词替换或指令提示。与以往的工作不同,我们考虑了一种具有挑战性的设置,即辅助 LLM 也可以受到检测器的保护。实验表明,我们的攻击通过看似合理的生成有效损害了研究中所有检测器的性能,凸显了提高 LLM 生成文本检测系统鲁棒性的迫切需求。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑