arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07736cs.AI
收藏

RSafe:激励主动推理以构建稳健且自适应的LLM安全防护

RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards

National University of Singapore(新加坡国立大学);Cornell University(康奈尔大学);University of Electronic Science and Technology(电子科技大学);Nanyang Technological University(南洋理工大学)

Jingnan Zheng, Xiangtian Ji, Yijun Lu, Chenhang Cui, Weixiang Zhao, Gelei Deng, Zhenkai Liang, An Zhang, Tat-Seng Chua

AI总结:

RSafe通过两阶段训练(引导推理与强化对齐)实现自适应安全推理,提升LLM防护的稳健性,应对分布外威胁与越狱攻击。

摘要:

大型语言模型(LLMs)尽管经过刻意的安全对齐努力,仍然表现出脆弱性,对用户和社会构成重大风险。为了防范违反政策的内容风险,通过外部防护模型进行系统级审核——旨在监控LLM输入和输出并阻止潜在有害内容——已成为一种普遍的缓解策略。现有的防护模型训练方法严重依赖大量人工策划的数据集,并且在面对分布外威胁(如新兴的有害类别或越狱攻击)时表现不佳。为了解决这些局限性,我们提出了RSafe,一种基于自适应推理的安全防护机制,通过引导式安全推理在特定安全政策范围内提供稳健的保护。RSafe分两个阶段运行:1)引导推理,通过政策引导的逐步推理分析输入内容的安全风险;2)强化对齐,基于规则的强化学习优化其推理路径,以与准确的安全预测对齐。这种两阶段训练范式使RSafe能够内化安全原则,从而将安全防护能力泛化到未见或对抗性的安全违规场景。在推理过程中,RSafe接受用户指定的安全政策,以提供针对特定安全需求的增强防护。

英文摘要:

Large Language Models (LLMs) continue to exhibit vulnerabilities despite deliberate safety alignment efforts, posing significant risks to users and society. To safeguard against the risk of policy-violating content, system-level moderation via external guard models-designed to monitor LLM inputs and outputs and block potentially harmful content-has emerged as a prevalent mitigation strategy. Existing approaches of training guard models rely heavily on extensive human curated datasets and struggle with out-of-distribution threats, such as emerging harmful categories or jailbreak attacks. To address these limitations, we propose RSafe, an adaptive reasoning-based safeguard that conducts guided safety reasoning to provide robust protection within the scope of specified safety policies. RSafe operates in two stages: 1) guided reasoning, where it analyzes safety risks of input content through policy-guided step-by-step reasoning, and 2) reinforced alignment, where rule-based RL optimizes its reasoning paths to align with accurate safety prediction. This two-stage training paradigm enables RSafe to internalize safety principles to generalize safety protection capability over unseen or adversarial safety violation scenarios. During inference, RSafe accepts user-specified safety policies to provide enhanced safeguards tailored to specific safety requirements.

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

↑