arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.19230cs.LGcs.CLcs.CR
收藏

让机器拟人化:用于误导大语言模型检测器的代理攻击

Humanizing the Machine: Proxy Attacks to Mislead LLM Detectors

The Pennsylvania State University(宾夕法尼亚州立大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Nanjing University(南京大学);University of Virginia(弗吉尼亚大学);NEC Laboratories America(美国NEC实验室)

Tianchun Wang, Yuanzhou Chen, Zichuan Liu, Zhanwen Chen, Haifeng Chen, Xiang Zhang, Wei Cheng

AI总结:

本研究提出一种基于强化学习微调拟人化SLM的代理攻击策略,可在白盒与黑盒设置下误导主流LLM检测器,大幅降低其AUROC,同时保留模型生成质量。

摘要:

大语言模型(LLM)的出现彻底革新了文本生成领域,其生成的输出能够高度模仿人类写作风格。尽管学术机构和工业界已经开发出检测器以防范LLM生成文本的恶意使用,但已有其他研究对这类系统的鲁棒性提出了质疑。为了对这些检测器进行压力测试,我们提出了一种代理攻击策略,该策略可以轻松攻破LLM,使其生成与人类撰写文本特征一致的输出,从而误导检测系统。我们的方法通过在解码阶段利用经强化学习(RL)微调的拟人化小语言模型(SLM)来攻击源模型。通过深入分析,我们证明该攻击策略能够生成检测器无法区分的响应,使检测器无法辨别机器生成文本与人类撰写文本。我们使用遭受代理攻击的开源模型(包括Llama2-13B、Llama3-70B和Mixtral-8*7B),在白盒和黑盒两种设置下,基于大规模数据集开展了系统性评估。研究结果表明,代理攻击策略能够有效欺骗主流检测器,在多个数据集上的平均AUROC下降70.4%,在单个数据集上的最大下降幅度达90.3%。此外,在跨学科场景中,我们的策略同样能够绕过这些检测器,带来最高达90.9%的显著相对下降;而在跨语言场景中,下降幅度更是达到91.3%。尽管我们的代理攻击策略以如此显著的相对降幅成功绕过了检测器,但我们发现,与未受攻击的原始源模型生成的文本相比,受攻击模型的生成质量仍得以保持,即便在有限的效用预算下也是如此。

英文摘要:

The advent of large language models (LLMs) has revolutionized the field of text generation, producing outputs that closely mimic human-like writing. Although academic and industrial institutions have developed detectors to prevent the malicious usage of LLM-generated texts, other research has doubt about the robustness of these systems. To stress test these detectors, we introduce a proxy-attack strategy that effortlessly compromises LLMs, causing them to produce outputs that align with human-written text and mislead detection systems. Our method attacks the source model by leveraging a reinforcement learning (RL) fine-tuned humanized small language model (SLM) in the decoding phase. Through an in-depth analysis, we demonstrate that our attack strategy is capable of generating responses that are indistinguishable to detectors, preventing them from differentiating between machine-generated and human-written text. We conduct systematic evaluations on extensive datasets using proxy-attacked open-source models, including Llama2-13B, Llama3-70B, and Mixtral-8*7B in both white- and black-box settings. Our findings show that the proxy-attack strategy effectively deceives the leading detectors, resulting in an average AUROC drop of 70.4% across multiple datasets, with a maximum drop of 90.3% on a single dataset. Furthermore, in cross-discipline scenarios, our strategy also bypasses these detectors, leading to a significant relative decrease of up to 90.9%, while in cross-language scenario, the drop reaches 91.3%. Despite our proxy-attack strategy successfully bypassing the detectors with such significant relative drops, we find that the generation quality of the attacked models remains preserved, even within a modest utility budget, when compared to the text produced by the original, unattacked source model.

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

↑