arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.19009cs.CRcs.CL
收藏

通过安全表示理解并缓解大语言模型的过度拒绝

Understanding and Mitigating Over-refusal for Large Language Models via Representation Intervention

Northwestern Polytechnical University(西北工业大学)

Junbo Zhang, Ran Chen, Qianli Zhou, Xinyang Deng, Wen Jiang

AI总结:

本文提出MOSR方法,通过干预大语言模型的安全表示来缓解过度拒绝问题,同时保持安全性。

摘要:

大型语言模型在各种自然语言处理任务中表现出强大的能力,但同时也存在安全漏洞。为了提高LLM的安全性,已经提出了各种 Jailbreak 防御方法来防止有害输出。然而,模型安全性的提高往往以严重的过度拒绝为代价,难以在安全性和可用性之间取得良好平衡。在本文中,我们首先从表示的角度分析过度拒绝的原因,揭示过度拒绝样本位于良性样本和恶意样本之间。基于此,我们提出了MOSR,旨在通过干预LLM的安全表示来缓解过度拒绝。MOSR包含两个新颖的组件:(1)重叠感知损失加权,通过量化伪恶意样本在表示空间中的相似性来确定恶意样本的擦除权重;(2)上下文感知增强,通过在拒绝响应前添加有害前缀来补充拒绝决策所需的上下文。实验表明,我们的方法在缓解过度拒绝方面优于现有方法,同时在很大程度上保持了安全性。总体而言,我们主张未来的防御方法应在安全性和过度拒绝之间取得更好的平衡。

英文摘要:

Large language models (LLMs) demonstrate powerful capabilities across various natural language processing tasks,yet their inherent safety vulnerabilities undermine the reliable application of LLMs in real-world scenarios. To enhance LLM safety, various jailbreak defense methods have been proposed to guard against harmful outputs. However, improvements in model safety often come at the cost of severe over-refusal, failing to strike a good balance between safety and usability. This phenomenon is a critical reliability degradation issue in LLM intelligent systems, failing to strike a good balance between safety defense effectiveness and system usability reliability. In this paper, we first analyze the causes of over-refusal from a representation perspective, revealing that LLMs are unable to effectively distinguish between over-refusal samples and malicious samples. Based on this, we propose to mitigate overrefusal by intervening in the safety representation space of LLMs. Our method incorporates two core strategies: (1) OverlapAware Loss Weighting, which determines the erasure weight for malicious samples by quantifying their similarity to overrefusal samples in the representation space, and (2) ContextAware Augmentation, which supplements the necessary context for rejection decisions by adding harmful prefixes before rejection responses. Experiments demonstrate that our method achieves a better trade-off between mitigating over-refusal and maintaining safety, compared with existing approaches. This paper also aims to encourage researchers to consider the reliability of defending methods against jailbreak attacks from both the perspectives of safety and over-refusal.

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

↑