arXiv:2502.12025cs.AIcs.CL2025-02ACL被引 139

提出SafeChain,提升长思维链模型输出安全性。

SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities

论文配图:SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilities
图 1 · 摘自论文原文
  • 设计安全评估框架,系统检测长思维链模型风险。
  • 发现三种推理策略可提升安全性,但存在成本或限制。
  • 构建首个思维链风格安全训练数据集,兼顾安全与性能。

新兴的大规模推理模型(如DeepSeek-R1)通过长思维链(CoT)生成结构化中间步骤,显著增强推理能力。然而,长思维链并不保证输出安全,可能引发代码漏洞或虚假信息传播。现有大语言模型安全研究多集中于短回答,忽视了长思维链输出的风险。为此,本文开展系统性研究:首先,基于人工标注校准安全评估器;利用新指标,在StrongReject和WildJailbreak数据集上全面评估12个先进推理模型的安全性,结果表明其安全性未随推理能力同步提升。进一步对推理轨迹与最终答案进行细粒度分析,发现零思考、少思考、多思考三种解码策略可在不需额外训练的情况下改善安全,但分别受限于推理约束或高推理开销。为更有效提升安全性,本文提出SafeChain——首个面向思维链风格的安全训练数据集,通过微调两个推理模型验证其有效性,结果显示该方法在保持6个推理基准性能的同时显著提升安全性。

原文摘要 · Abstract (English)

Emerging large reasoning models (LRMs), such as DeepSeek-R1 models, leverage long chain-of-thought (CoT) reasoning to generate structured intermediate steps, enhancing their reasoning capabilities. However, long CoT does not inherently guarantee safe outputs, potentially leading to harmful consequences such as the introduction of security vulnerabilities in code or the spread of misinformation. Current research on large language model (LLM) safety usually focuses on short-answer responses, overlooking the long CoT style outputs of LRMs. To bridge this gap, we conduct a systematic study of LRM safety. First, we investigate safety evaluators calibrated against human annotations. Using our newly developed metrics, we thoroughly assess the safety of 12 state-of-the-art LRMs on StrongReject and WildJailbreak datasets. Our results show that LRMs are not safe compared to their reasoning advance. Further, we perform a fine-grained analysis of the reasoning trace and final answer. We find that three decoding strategies-ZeroThink, LessThink, and MoreThink-can improve model safety without additional training. However, these strategies either use constrained reasoning traces or incur high inference costs. To better strengthen LRM safety, we introduce SafeChain, the first-of-its-kind safety training dataset in CoT style. We fine-tune two LRMs with SafeChain, showing that it not only enhances model safety but also preserves performance across 6 reasoning benchmarks.

推理模型安全评估思维链训练数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。