当安全机制集体失效时:通过联合权重扰动抵御有害微调的鲁棒对齐
When Safety Fails Collectively: Robust Alignment Against Harmful Fine-Tuning via Joint Weight Perturbations
AI总结:
针对大语言模型有害微调侵蚀安全对齐的问题,提出联合权重扰动(JWP)防御方法,可增强模型抵御有害微调的能力并保留任务性能。
摘要:
有害微调会迅速侵蚀大语言模型的安全对齐效果,当对齐后的模型被适配到下游任务时会产生重大风险。现有的对齐阶段防御方法会在安全对齐过程中使用有害示例和模拟的有害扰动,以让模型为后续的有害微调做好准备,但有害权重扰动的集体效应仍未得到充分探索。我们发现了一种集体失效模式:有害扰动的不同部分单独作用时影响有限,但将它们联合应用会使模型的有害性提升幅度超过各部分单独作用的效果之和。基于这一观察,我们提出了联合权重扰动(Joint Weight Perturbations,JWP),这是一种对齐阶段防御方法,它会对从当前模型估计出的有害扰动的不同部分进行掩码处理,并训练模型在处理这些掩码后的状态时做出安全响应。这一过程会让模型接触到不同组合的有害扰动,从而降低其在后续有害微调过程中对这些扰动累积的敏感性。针对下游任务和不同模型系列开展的实验表明,与现有防御方法相比,JWP对有害微调的抵抗能力更强,同时还能在很大程度上保留任务性能。
英文摘要:
Harmful fine-tuning can rapidly erode the safety alignment of large language models, creating substantial risks when aligned models are adapted to downstream tasks. Existing alignment-stage defenses use harmful examples and simulated harmful perturbations during safety alignment to prepare models for later harmful fine-tuning, yet the collective effects of harmful weight perturbations remain underexplored. We identify a collective failure pattern: disjoint parts of a harmful perturbation have limited effects in isolation, but their joint application increases the model's harmfulness beyond the sum of their individual effects. Guided by this observation, we propose Joint Weight Perturbations (JWP), an alignment-stage defense that masks different parts of a harmful perturbation estimated from the current model and trains the model to respond safely in the resulting states. This exposes the model to different combinations of harmful perturbations and reduces its sensitivity to their accumulation during subsequent harmful fine-tuning. Experiments across downstream tasks and model families show that JWP offers stronger resistance to harmful fine-tuning than prior defenses while largely preserving task performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。