arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.08936cs.AIcs.LG
收藏

Self-ReSET: 通过学习自我恢复来应对不安全推理轨迹

Self-ReSET: Learning to Self-Recover from Unsafe Reasoning Trajectories

University of Science and Technology of China(中国科学技术大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);National University of Singapore(新加坡国立大学)

Dongcheng Zhang, Yi Zhang, Yuxin Chen, An Zhang, Xiang Wang, Chaochao Lu

AI总结:

本文提出Self-ReSET框架,通过纯强化学习使大推理模型具备自我恢复能力,提升对抗攻击下的鲁棒性并高效利用数据。

摘要:

大型推理模型在通用领域具有显著的自我修正能力;然而,它们在对抗攻击下往往难以从不安全的推理轨迹中恢复。现有对齐方法试图通过在专家数据上微调来缓解这一漏洞,但受限于静态训练数据与模型动态、在线策略推理轨迹的不匹配,导致模型难以覆盖其庞大的生成空间并学习自我恢复。为弥合这一差距,我们提出Self-ReSET,一种纯强化学习框架,旨在为大型推理模型赋予内在的自我恢复能力,这些不安全轨迹随后被用作强化学习的初始状态。在各种大型推理模型和基准上的广泛实验表明,Self-ReSET显著增强了对抗攻击下的鲁棒性,尤其是在面对超出分布(OOD)的 jailbreak 提示时表现突出,同时保持了通用性。进一步分析显示,我们的方法有效促进了自我恢复模式的形成,使模型能够更好地识别并从不安全的中间错误状态恢复到良性路径。我们的代码和数据可在 https://github.com/Ing1024/Self-ReSET 上获取。

英文摘要:

Large Reasoning Models possess remarkable capabilities for self-correction in general domain; however, they frequently struggle to recover from unsafe reasoning trajectories under adversarial attacks. Existing alignment methods attempt to mitigate this vulnerability by fine-tuning the model on expert data including reflection traces or adversarial prefixes. Crucially, these approaches are often hindered by static training data which inevitably deviate from model's dynamic, on-policy reasoning traces, resulting in model hardly covering its vast generation space and learning to recover from its own failures. To bridge this gap, we propose Self-ReSET, a pure reinforcement learning framework designed to equip LRMs with the intrinsic capacity to recover from their own safety error trajectories, which are subsequently reused as an initial state for reinforcement learning. Extensive experiments across various LRMs and benchmarks demonstrate that Self-ReSET significantly enhances robustness against adversarial attacks especially out-of-distribution (OOD) jailbreak prompts while maintaining general utility, along with efficient data utilization. Further analysis reveals that our method effectively fosters self-recovery patterns, enabling models to better identify and recover from unsafe intermediate error states back to benign paths. Our codes and data are available at https://github.com/Ing1024/Self-ReSET.

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

↑