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

针对定制化大语言模型的指令后门攻击

Instruction Backdoor Attacks Against Customized LLMs

University of Electronic Science and Technology of China(电子科技大学);CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全研究中心);NetApp(NetApp公司)

Rui Zhang, Hongwei Li, Rui Wen, Wenbo Jiang, Yuan Zhang, Michael Backes, Yun Shen, Yang Zhang

AI总结:

本文首次提出针对定制化LLM(如GPTs)的指令后门攻击,通过设计含后门指令的提示实现词级、语法级和语义级三级攻击,无需微调,实验验证其有效性与防御策略。

摘要:

对定制化大语言模型(LLMs)日益增长的需求催生了如GPTs等解决方案的发展。这些方案通过自然语言提示即可实现定制化LLM的创建,无需编码。然而,第三方定制版本LLM的可信度仍是一个关键问题。在本文中,我们首次提出了针对集成不可信定制化LLM(如GPTs)的应用的指令后门攻击。具体而言,这些攻击通过设计包含后门指令的提示,将后门嵌入到定制版本的LLM中,当输入包含预定义触发器时,输出攻击者期望的结果。我们的攻击包含3个级别:词级、语法级和语义级,采用不同类型的触发器,隐蔽性逐级增强。我们强调,我们的攻击不需要微调或对后端LLM进行任何修改,严格遵守GPTs开发指南。我们在6个主流LLM和5个基准文本分类数据集上进行了广泛实验。结果表明,我们的指令后门攻击在实现预期攻击性能的同时不影响实用性。此外,我们提出了两种防御策略,并证明了它们在减少此类攻击方面的有效性。我们的发现凸显了LLM定制(如GPTs)的脆弱性和潜在风险。

英文摘要:

The increasing demand for customized Large Language Models (LLMs) has led to the development of solutions like GPTs. These solutions facilitate tailored LLM creation via natural language prompts without coding. However, the trustworthiness of third-party custom versions of LLMs remains an essential concern. In this paper, we propose the first instruction backdoor attacks against applications integrated with untrusted customized LLMs (e.g., GPTs). Specifically, these attacks embed the backdoor into the custom version of LLMs by designing prompts with backdoor instructions, outputting the attacker's desired result when inputs contain the pre-defined triggers. Our attack includes 3 levels of attacks: word-level, syntax-level, and semantic-level, which adopt different types of triggers with progressive stealthiness. We stress that our attacks do not require fine-tuning or any modification to the backend LLMs, adhering strictly to GPTs development guidelines. We conduct extensive experiments on 6 prominent LLMs and 5 benchmark text classification datasets. The results show that our instruction backdoor attacks achieve the desired attack performance without compromising utility. Additionally, we propose two defense strategies and demonstrate their effectiveness in reducing such attacks. Our findings highlight the vulnerability and the potential risks of LLM customization such as GPTs.

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

↑