让大模型主动探索危险思路,反而更安全地避免误拒。
Addressing Over-Refusal in LLMs with Competing Rewards

- 用对抗性训练让模型在思考中主动尝试危险推理
- 在不降低安全性的前提下,拒绝率下降37.6%
- 适合需要高准确率响应的安全敏感场景
语言模型的安全训练常导致过量拒答:在有害提示上更安全,却对无害提示也过度拒绝。尽管可通过强化学习让模型先推理再回答缓解此问题,但推理常沦为预设答案的‘橡皮图章’。本文提出重新设计安全推理机制——让危险思考本身成为有用探索信号。我们不提前阻止有害念头,而是鼓励模型充分探索危险推理路径,最终输出安全回应。这种有害探索能消除提示模糊性,提升模型区分有害与无害提示的能力。我们将此建模为对抗优化问题:一个推理玩家探索生成不安全回答的策略,另一个应答玩家确保最终输出安全。通过密集奖励训练单个模型在思维链的不同阶段扮演双重角色。我们发现过程奖励对稳定优化至关重要。实验结果表明,所提模型SEAR会刻意进行有害推理作为探索,同时可靠转回安全回复,有效缓解过量拒答,并抵御直接操纵推理路径的攻击。
原文摘要 · Abstract (English)
Safety training on language models often induces over-refusal: improved safety on harmful prompts at the cost of increased refusal on harmless ones. Though this trade-off can be mitigated by training models with reinforcement learning (RL) to reason before answering, it does not remove the underlying problem that reasoning can often be a "rubber stamp" for a predetermined response. In this paper, we address the safety-refusal trade-off by rethinking how models are trained to reason about safety. Our key insight is that unsafe reasoning can itself serve as a useful exploratory signal. Rather than preemptively blocking harmful thoughts, we encourage the model to sufficiently explore unsafe reasoning but produce a safe response. The harmful exploration improves the model's ability to distinguish harmful from harmless prompts by resolving ambiguity, allowing it to remain safe while complying only when appropriate. We cast this as an adversarial optimization problem in which a reasoning player explores strategies for producing an unsafe response and an answer player ensures that the final output is safe. We train a single model with dense rewards to play both roles within one chain-of-thought, across different segments. To achieve this, we find that process rewards are crucial for stable optimization of competing objectives. Our resulting model SEAR deliberately engages in harmful reasoning as exploration while reliably flipping back to a safe answer. We demonstrate that this behavior helps mitigate over-refusal and defend against attacks that directly manipulate the reasoning to be harmful.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。