arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.25611cs.LGcs.AI
收藏

安全偏移学习:良性微调何时会使大语言模型(LLM)的对齐出现偏差

Safety Offset Learning: When Benign Fine-Tuning Misaligns LLMs

University of Southern California(南加州大学);University of California, Berkeley(加州大学伯克利分校);University of Washington(华盛顿大学)

Jesson Wang, Zhanhao Hu, Minghao Lin, Yuchen Wu, Aylin Caliskan, Mengyuan Li

AI总结:

本文指出良性微调可能使大语言模型对齐偏差,提出SAFEOFF数据集,发现微调安全性取决于监督移动的行为边界,而非仅训练数据。

摘要:

微调带来的安全风险通常由训练数据的危害性来表征:有害微调被视为危险行为,而良性微调则常被认为能保持模型的对齐性。本文指出,这一观点忽略了一个更根本的因素——监督引发的行为转变。有害微调与降低安全性的良性微调都可被理解为学习相同的“拒绝-服从”转变,只是基于不同的数据分布。我们研究了在良性输入上学习到的这种转变是否能推广到有害请求。我们构建了对齐模型最初倾向于拒绝的良性示例,并将其与原始无害响应配对,在模型的初始拒绝与监督答案之间制造差异。对这些示例进行微调会增加有害服从性,但仅当两个条件同时满足时:差异足够大,且无法通过狭窄的表面捷径解决。当诱导的差异匹配时,仅改变其是否局部化会使有害服从性变化一个数量级;在捷径仍可用时增大差异无帮助,而差异较小时移除捷径也无帮助。基于这一观察,我们提出了SAFEOFF数据集,该数据集由改写后可提高对齐模型拒绝概率的良性指令及其原始答案组成。在三个对齐的大语言模型(LLM)和三个安全基准上,SAFEOFF尽管不包含显式有害监督,却大幅削弱了安全对齐,表明微调的安全性不仅取决于模型看到的数据,还取决于监督所移动的行为边界。

英文摘要:

Safety risks from fine-tuning are commonly characterized by the harmfulness of the training data:harmful fine-tuning is considered dangerous, while benign fine-tuning is often assumed to preservealignment. We argue that this view misses a more fundamental factor-the behavioral transition inducedby supervision. Harmful fine-tuning and safety-degrading benign fine-tuning can both be understoodas learning the same refusal-to-compliance transition, but on different data distributions. We studywhether such a transition learned on benign inputs can generalize to harmful requests. We constructbenign examples that an aligned model initially tends to refuse and pair them with their originalharmless responses, creating a discrepancy between the model's initial refusal and the supervisedanswer. Fine-tuning on these examples increases harmful compliance, but only when two conditionshold together: the discrepancy is large enough, and it cannot be resolved through a narrow surface-levelshortcut. With the induced discrepancy matched, varying only whether it is localized changes harmfulcompliance by an order of magnitude; raising the discrepancy does not help while a shortcut remainsavailable, and removing the shortcut does not help while the discrepancy is small. Building on thisobservation, we introduce SAFEOFF, a dataset of benign instructions rewritten to raise the alignedmodel's refusal likelihood and paired with their original answers. Across three aligned LLMs and threesafety benchmarks, SAFEOFF substantially weakens safety alignment despite containing no explicitharmful supervision, suggesting that fine-tuning safety depends not only on what data a model sees, butalso on which behavioral boundary the supervision moves.

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

↑