arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.04224cs.LGcs.AIcs.CLcs.CRmath.OC
收藏

RAPO:面向通用安全推理的风险感知优化

RAPO: Risk-Aware Preference Optimization for Generalizable Safe Reasoning

Shanghai AI Laboratory(上海人工智能实验室)

Zeming Wei, Qiaosheng Zhang, Xia Hu, Xingcheng Xu

AI总结:

RAPO 提出了一种风险感知优化框架,通过提升安全推理的泛化能力,增强大型推理模型在复杂攻击下的安全性与实用性。

摘要:

大型推理模型(LRMs)通过链式推理(CoT)推理取得了巨大成功,但也面临与基础语言模型相似的安全问题。特别是,尽管算法被设计用来引导其有意识地拒绝有害提示的合理推理,但这一过程往往无法泛化以应对多样且复杂的 jailbreak 攻击。在本工作中,我们将这些失败归因于安全推理过程的泛化,特别是其在复杂攻击提示下的不足。我们提供了理论和实证证据,证明更充分的安全推理过程对于防御高级攻击提示是必要的。基于这一见解,我们提出了一个风险感知偏好优化(RAPO)框架,使 LRM 能够自适应地识别和处理安全风险,并在推理内容中以适当粒度进行处理。广泛的实验表明,RAPO 成功地在多样化的攻击提示上泛化了多个 LRM 的安全推理,同时保持了通用效用,为 LRM 的安全贡献了一种稳健的对齐技术。我们的代码可在 https://github.com/weizeming/RAPO 上获取。

英文摘要:

Large Reasoning Models (LRMs) have achieved tremendous success with their chain-of-thought (CoT) reasoning, yet also face safety issues similar to those of basic language models. In particular, while algorithms are designed to guide them to deliberately refuse harmful prompts with safe reasoning, this process often fails to generalize against diverse and complex jailbreak attacks. In this work, we attribute these failures to the generalization of the safe reasoning process, particularly their insufficiency against complex attack prompts. We provide both theoretical and empirical evidence to show the necessity of a more sufficient safe reasoning process to defend against advanced attack prompts. Building on this insight, we propose a Risk-Aware Preference Optimization (RAPO) framework that enables LRM to adaptively identify and address the safety risks with appropriate granularity in its thinking content. Extensive experiments demonstrate that RAPO successfully generalizes multiple LRMs' safe reasoning adaptively across diverse attack prompts whilst preserving general utility, contributing a robust alignment technique for LRM safety. Our code is available at https://github.com/weizeming/RAPO.

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

↑