消除拒绝触发:理解并缓解安全对齐中的过度拒绝问题
Deactivating Refusal Triggers: Understanding and Mitigating Overrefusal in Safety Alignment
AI总结:
本文研究了安全对齐中过度拒绝问题的成因,提出了一种考虑拒绝触发的缓解策略,通过优化训练过程提高模型对良性查询的响应能力。
摘要:
安全对齐旨在通过在有害查询配以拒绝回答后进行训练,确保大语言模型(LLMs)能够拒绝有害请求。尽管安全对齐在工业界被广泛采用,但在安全对齐后训练的LLMs仍会拒绝良性查询的过度拒绝问题仍未得到充分研究。此类问题会降低安全对齐在现实应用中的实用性。在本文中,我们探讨了安全对齐下过度拒绝是如何产生的,并提出了基于我们发现的缓解策略。我们定义拒绝触发为训练数据中的语言线索,这些线索会引发拒绝响应,安全对齐鼓励LLMs在训练样本中将拒绝触发与拒绝响应相关联,导致对齐的LLMs拒绝有害查询。然而,拒绝触发不仅包含有害的语言线索,还包括非有害的线索,因此导致对良性查询的过度拒绝。基于这一机理分析,我们提出了一种在安全对齐微调中明确考虑拒绝触发的方法。实证结果表明,我们的方法在防御 jailbreak 攻击和响应良性查询之间取得了更优的权衡,优于先前方法。警告:本文包含有害和偏见的句子。
英文摘要:
Safety alignment aims to ensure that large language models (LLMs) refuse harmful requests by post-training on harmful queries paired with refusal answers. Although safety alignment is widely adopted in industry, the overrefusal problem where aligned LLMs also reject benign queries after safety alignment post-training, remains insufficiently studied. Such an issue degrades the usability of safety alignment in real-world applications. In this paper, we examine how overrefusal arises under safety alignment, and propose a mitigation strategy inspired by our findings. We define refusal triggers as linguistic cues in the training data that elicit refusal responses, safety alignment encourages LLMs to associate refusal triggers within a training sample with refusal responses, leading aligned LLMs to refuse harmful queries. However, the refusal triggers include not only harmful linguistic cues but also non-harmful cues, therefore causing overrefusal to benign queries. Building on this mechanistic analysis, we propose a method that explicitly considers refusal triggers in the safety alignment fine-tuning. Empirical results demonstrate that our approach achieves a more favorable trade-off between defense against jailbreak attacks and responsiveness to benign queries, outperforming prior methods. Warning: this paper contains harmful and biased sentences.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。