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

UnsafeChain: 通过困难案例增强推理模型安全性

UnsafeChain: Enhancing Reasoning Model Safety via Hard Cases

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);Cluster Innovation Centre, University of Delhi(德里大学集群创新中心);INSAIT

Raj Vardhan Tomar, Preslav Nakov, Yuxia Wang

AI总结:

UnsafeChain通过构建包含困难提示的对齐数据集,提升模型安全性并保持推理能力,实验显示其在多个基准测试中表现优异。

摘要:

随着大推理模型(LRMs)能力增强,链式思考(CoT)推理引入了新的安全挑战。现有基于SFT的安全对齐研究主要集中在过滤安全、高质量响应的提示,而忽略了总是产生有害输出的困难提示。为填补这一空白,我们引入UnsafeChain,一个从多种来源的困难提示构建的安全对齐数据集,其中不安全的完成部分被识别并明确更正为安全响应。通过暴露模型于不安全行为并指导其纠正,UnsafeChain在提升安全性的同时保持了通用推理能力。我们对三个LRMs在UnsafeChain上进行微调,并在六个分布外和五个分布内基准测试中与最近的SafeChain和STAR-1进行比较。UnsafeChain在多个基准测试中持续优于先前的数据集,甚至1K子集在匹配或超越基线性能方面也表现出色,证明了基于纠正的监督的有效性和通用性。我们在此发布数据集和代码:https://github.com/mbzuai-nlp/UnsafeChain

英文摘要:

As large reasoning models (LRMs) grow more capable, chain-of-thought (CoT) reasoning introduces new safety challenges. Existing SFT-based safety alignment studies dominantly focused on filtering prompts with safe, high-quality responses, while overlooking hard prompts that always elicit harmful outputs. To fill this gap, we introduce UnsafeChain, a safety alignment dataset constructed from hard prompts with diverse sources, where unsafe completions are identified and explicitly corrected into safe responses. By exposing models to unsafe behaviors and guiding their correction, UnsafeChain enhances safety while preserving general reasoning ability. We fine-tune three LRMs on UnsafeChain and compare them against recent SafeChain and STAR-1 across six out-of-distribution and five in-distribution benchmarks. UnsafeChain consistently outperforms prior datasets, with even a 1K subset matching or surpassing baseline performance, demonstrating the effectiveness and generalizability of correction-based supervision. We release our dataset and code at https://github.com/mbzuai-nlp/UnsafeChain

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

↑