[论文解读] On the Exploitability of Instruction Tuning
本文提出 AutoPoison,一个干净标签数据中毒管道,使用一个 oracle 模型向指令微调的 LLM 注入可利用行为,展示内容注入和过度拒绝攻击,并显示随着模型规模的增大,脆弱性提升。
Instruction tuning is an effective technique to align large language models (LLMs) with human intents. In this work, we investigate how an adversary can exploit instruction tuning by injecting specific instruction-following examples into the training data that intentionally changes the model's behavior. For example, an adversary can achieve content injection by injecting training examples that mention target content and eliciting such behavior from downstream models. To achieve this goal, we propose extit{AutoPoison}, an automated data poisoning pipeline. It naturally and coherently incorporates versatile attack goals into poisoned data with the help of an oracle LLM. We showcase two example attacks: content injection and over-refusal attacks, each aiming to induce a specific exploitable behavior. We quantify and benchmark the strength and the stealthiness of our data poisoning scheme. Our results show that AutoPoison allows an adversary to change a model's behavior by poisoning only a small fraction of data while maintaining a high level of stealthiness in the poisoned examples. We hope our work sheds light on how data quality affects the behavior of instruction-tuned models and raises awareness of the importance of data quality for responsible deployments of LLMs. Code is available at \url{https://github.com/azshue/AutoPoison}.
研究动机与目标
- 通过数据中毒调查对指令微调模型的实际中毒威胁。
- 提出 AutoPoison,通过 oracle 模型生成被污染的数据。
- 评估 AutoPoison 在不同攻击类型下的有效性和隐蔽性。
- 检查模型规模和 oracle 能力如何影响攻击易感性以及数据质量的潜在影响。
提出的方法
- 为指令微调定义一个黑箱、干净标签中毒威胁模型。
- 开发 AutoPoison,它构建对抗性上下文,查询 oracle 以获得被污染的响应,并替换原始响应以形成 X_adv 而不暴露攻击。
- 展示两种攻击场景:内容注入和过度拒绝,通过 AutoPoison 管道实现。
- 使用 OPT 模型规模(350M、1.3B、6.7B)进行评估,GPT-3.5-turbo 作为 oracle,GPT-4-LLM 派生数据,衡量流畅性和与目标行为的一致性。
- 将 AutoPoison 与手工设计的基线进行比较,并在不同的污染比例下评估文本质量(PPL、连贯性、MAUVE)和任务影响。
实验结果
研究问题
- RQ1少量被污染数据就能改变指令微调模型的行为吗?
- RQ2AutoPoison 在内容注入和过度拒绝攻击中的有效性和隐蔽性如何?
- RQ3模型规模和 oracle 能力如何影响指令微调中对数据中毒的易感性?
- RQ4被污染的模型在表现出可利用行为的同时,是否仍保持流畅性和质量?
主要发现
- AutoPoison 可以在不同模型规模下以较小的污染比例改变模型行为。
- 更大的模型对内容注入攻击表现出更高的易感性。
- 被 AutoPoison 污染的模型在流畅性和可比的质量(PPL、连贯性、MAUVE)方面与干净模型相当,并在隐蔽性方面超过手工基线。
- AutoPoison 使在过度拒绝攻击中实现信息性拒绝成为可能,提示工程(AutoPoison-PE)进一步提升了效果。
- 对各种目标内容(包括 URL 和虚构品牌)的内容注入展示了攻击在不同设置中的鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。