减法式增强:缓解大语言模型中脆弱的安全对齐问题
Addition by Subtraction: Toward Mitigating Fragile Safety Alignment in Large Language Models
AI总结:
本研究提出减法式增强方法,通过微调时逐步移除安全关键神经元并辅以偏好优化,提升大语言模型对越狱攻击的鲁棒性,经实验可降低部分攻击成功率达90%。
摘要:
大语言模型(LLMs)会进行安全对齐以防止生成有害内容,但仍易受越狱攻击。近期研究揭示了一个更深层的结构弱点:安全对齐可能高度稀疏,即剪去少量安全关键神经元或消除单个拒绝方向,就会严重破坏对齐行为。本研究首次尝试强化安全对齐,使其更少依赖稀疏模型组件。我们提出“减法式增强(Addition by Subtraction)”方法,在微调过程中逐步移除已识别的安全关键神经元,并通过模型其他部分的偏好优化重新建立安全对齐行为。结果表明,生成的模型对基于剪枝的攻击具有显著更强的鲁棒性。值得注意的是,这些益处超出了设计所针对的白盒攻击范畴:减法式增强提升了对其他基于稀疏性干预(包括拒绝方向消除)以及广泛黑盒越狱攻击的鲁棒性。微调后的模型还表现出更好的真实性,同时基本保留了通用能力。对来自三家厂商的四款模型开展的全面实验显示,安全鲁棒性的提升具有一致性,对部分攻击的成功率降低幅度最高达90%。
英文摘要:
Large language models (LLMs) undergo safety alignment to prevent harmful generations, yet they remain vulnerable to jailbreak attacks. Recent work reveals a deeper structural weakness: safety alignment can be highly sparse, such that pruning a small number of safety-critical neurons or ablating a single refusal direction can substantially undermine aligned behavior. In this work, we take the first steps toward strengthening safety alignment such that it is less dependent on sparse model components. We propose Addition by Subtraction, which gradually removes identified safety-critical neurons during finetuning and uses preference optimization to re-establish safety-aligned behavior through other parts of the model. Our results show that the resulting models are substantially more robust to pruning-based attacks. Remarkably, these benefits generalize beyond the white-box attacks motivating our design: Addition by Subtraction improves robustness against other sparsity-based interventions, including refusal-direction ablation, as well as a broad range of black-box jailbreak attacks. The finetuned models also exhibit improved truthfulness while largely preserving general capabilities. Comprehensive experiments across four models from three vendors demonstrate consistent improvements in safety robustness, reducing attack success rates by up to 90% for some attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。