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

Virus:绕过护栏审核的大语言模型有害微调攻击

Virus: Harmful Fine-tuning Attack for Large Language Models Bypassing Guardrail Moderation

Georgia Institute of Technology(佐治亚理工学院)

Tiansheng Huang, Sihao Hu, Fatih Ilhan, Selim Furkan Tekin, Ling Liu

AI总结:

本文提出名为Virus的有害微调攻击方法,通过微调修改有害数据绕过护栏审核,泄漏率达100%且攻击性能优异,揭示了依赖护栏审核无法解决LLMs固有的安全问题。

摘要:

最近的研究表明,大语言模型(LLMs)容易受到有害微调攻击——模型在少量有害样本上微调后会丧失安全对齐能力。为了降低风险,通常在微调前使用护栏来过滤有害样本。通过设计一种新的红队测试方法,我们在本文中表明,纯粹依赖护栏审核进行数据过滤是不可靠的。我们提出的攻击方法名为Virus,通过稍微修改有害数据,轻松绕过护栏审核。实验结果表明,Virus优化的有害数据无法被护栏检测到,泄漏率高达100%,同时能实现卓越的攻击性能。最后,我们想通过本文传达的关键信息是:将护栏审核视为应对有害微调攻击的救命稻草是鲁莽的,因为它无法解决预训练LLMs固有的安全问题。我们的代码可在https://github.com/git-disl/Virus获取

英文摘要:

Recent research shows that Large Language Models (LLMs) are vulnerable to harmful fine-tuning attacks -- models lose their safety alignment ability after fine-tuning on a few harmful samples. For risk mitigation, a guardrail is typically used to filter out harmful samples before fine-tuning. By designing a new red-teaming method, we in this paper show that purely relying on the moderation guardrail for data filtration is not reliable. Our proposed attack method, dubbed Virus, easily bypasses the guardrail moderation by slightly modifying the harmful data. Experimental results show that the harmful data optimized by Virus is not detectable by the guardrail with up to 100\% leakage ratio, and can simultaneously achieve superior attack performance. Finally, the key message we want to convey through this paper is that: \textbf{it is reckless to consider guardrail moderation as a clutch at straws towards harmful fine-tuning attack}, as it cannot solve the inherent safety issue of the pre-trained LLMs. Our code is available at https://github.com/git-disl/Virus

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

↑