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

隐蔽恶意微调:保护大语言模型适配所面临的挑战

Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptation

UC Berkeley(加州大学伯克利分校);MIT(麻省理工学院)

Danny Halawi, Alexander Wei, Eric Wallace, Tony T. Wang, Nika Haghtalab, Jacob Steinhardt

AI总结:

本文提出隐蔽恶意微调方法,通过看似无害的数据集使GPT-4在99%情况下执行编码有害指令并逃避检测,揭示了黑盒微调接口面临的安全防御难题。

摘要:

黑盒微调是一种新兴接口,用于将最先进的语言模型适配到用户需求。然而,这种访问方式也可能让恶意行为者破坏模型安全性。为了证明防御微调接口的挑战性,我们引入了隐蔽恶意微调,这是一种通过微调破坏模型安全性同时逃避检测的方法。我们的方法构建了一个恶意数据集,其中每个单独的数据点看起来都无害,但在该数据集上进行微调会教会模型以编码的有害响应来回应编码的有害请求。应用于GPT-4时,我们的方法产生了一个微调模型,该模型在99%的情况下会执行有害指令,并且能够避开数据集检查、安全性评估以及输入/输出分类器等防御机制的检测。我们的研究结果质疑了黑盒微调访问是否能够抵御复杂对手的攻击。

英文摘要:

Black-box finetuning is an emerging interface for adapting state-of-the-art language models to user needs. However, such access may also let malicious actors undermine model safety. To demonstrate the challenge of defending finetuning interfaces, we introduce covert malicious finetuning, a method to compromise model safety via finetuning while evading detection. Our method constructs a malicious dataset where every individual datapoint appears innocuous, but finetuning on the dataset teaches the model to respond to encoded harmful requests with encoded harmful responses. Applied to GPT-4, our method produces a finetuned model that acts on harmful instructions 99% of the time and avoids detection by defense mechanisms such as dataset inspection, safety evaluations, and input/output classifiers. Our findings question whether black-box finetuning access can be secured against sophisticated adversaries.

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

↑