arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14710cs.CLcs.AIcs.CRcs.LG

指令即后门:大型语言模型指令微调的后门漏洞

Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models

Harvard(哈佛大学);UCLA(加利福尼亚大学洛杉矶分校);USC(南加利福尼亚大学);University of Wisconsin, Madison(威斯康星大学麦迪逊分校);UC, Davis(加利福尼亚大学戴维斯分校)

Jiashu Xu, Mingyu Derek Ma, Fei Wang, Chaowei Xiao, Muhao Chen

AI总结:

本文揭示LLM指令微调的后门风险,证明仅约1000个恶意指令即可实现逾90%攻击成功率,并评估投毒迁移、指令迁移与持续微调抵抗性。

摘要:

我们研究了新兴指令微调范式的安全问题,该范式通过在包含任务指令的众包数据集上训练模型,以获得优异性能。研究表明,攻击者可通过发布极少量恶意指令(约1000个token)注入后门,并借助数据投毒控制模型行为,甚至无需修改数据实例或标签本身。通过此类指令攻击,攻击者在四个常用NLP数据集上可实现超过90%的攻击成功率。作为一项关于指令攻击的实证研究,我们系统评估了指令攻击的独特视角,例如投毒迁移:被投毒模型能够以零样本方式迁移到15个多样化生成数据集;指令迁移:攻击者可将投毒指令直接应用于许多其他数据集;以及投毒对持续微调的抵抗力。最后,我们表明RLHF和干净示范可能在一定程度上缓解此类后门。这些发现凸显了需要针对指令微调模型中的投毒攻击建立更鲁棒的防御,并强调了确保指令众包中数据质量的重要性。

英文摘要:

We investigate security concerns of the emergent instruction tuning paradigm, that models are trained on crowdsourced datasets with task instructions to achieve superior performance. Our studies demonstrate that an attacker can inject backdoors by issuing very few malicious instructions (~1000 tokens) and control model behavior through data poisoning, without even the need to modify data instances or labels themselves. Through such instruction attacks, the attacker can achieve over 90% attack success rate across four commonly used NLP datasets. As an empirical study on instruction attacks, we systematically evaluated unique perspectives of instruction attacks, such as poison transfer where poisoned models can transfer to 15 diverse generative datasets in a zero-shot manner; instruction transfer where attackers can directly apply poisoned instruction on many other datasets; and poison resistance to continual finetuning. Lastly, we show that RLHF and clean demonstrations might mitigate such backdoors to some degree. These findings highlight the need for more robust defenses against poisoning attacks in instruction-tuning models and underscore the importance of ensuring data quality in instruction crowdsourcing.

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

↑