Skip to main content
QUICK REVIEW

[论文解读] Is Reasoning Capability Enough for Safety in Long-Context Language Models?

Yu Fu, Haz Sameen Shahgir|arXiv (Cornell University)|Feb 9, 2026
Adversarial Robustness in Machine LearningComputer Science被引用 0
一句话总结

在较长上下文的LLM中,更强的通用推理并不保证安全;组合推理攻击在上下文基于综合后才揭示有害意图,且安全对齐会随着更长的上下文而退化,尽管更强的推理时推理可减轻攻击。

ABSTRACT

Large language models (LLMs) increasingly combine long-context processing with advanced reasoning, enabling them to retrieve and synthesize information distributed across tens of thousands of tokens. A hypothesis is that stronger reasoning capability should improve safety by helping models recognize harmful intent even when it is not stated explicitly. We test this hypothesis in long-context settings where harmful intent is implicit and must be inferred through reasoning, and find that it does not hold. We introduce compositional reasoning attacks, a new threat model in which a harmful query is decomposed into incomplete fragments that scattered throughout a long context. The model is then prompted with a neutral reasoning query that induces retrieval and synthesis, causing the harmful intent to emerge only after composition. Evaluating 14 frontier LLMs on contexts up to 64k tokens, we uncover three findings: (1) models with stronger general reasoning capability are not more robust to compositional reasoning attacks, often assembling the intent yet failing to refuse; (2) safety alignment consistently degrades as context length increases; and (3) inference-time reasoning effort is a key mitigating factor: increasing inference-time compute reduces attack success by over 50 percentage points on GPT-oss-120b model. Together, these results suggest that safety does not automatically scale with reasoning capability, especially under long-context inference.

研究动机与目标

  • 在具有隐含有害意图的前提下,激发对长上下文LLM的安全挑战。
  • 引入将有害查询分解为跨越长上下文的组合推理攻击。
  • 在上下文长达64k token的情形下对14个前沿LLM进行评估,以评估安全鲁棒性。
  • 分析推理时推理(inference-time reasoning)如何影响攻击成功率与安全对齐。

提出的方法

  • 定义一个新的威胁模型:组合推理攻击,其中有害意图在长上下文的片段中分散。
  • 对14个前沿LLM进行上下文长达64k token的评估,以衡量安全鲁棒性。
  • 以中性推理查询对模型进行提示,触发检索与综合,进而在组合时产生有害意图。
  • 分析推理时推理计算量与攻击成功率之间的关系(攻击缓解)。
  • 比较随着上下文长度增加的安全对齐,以评估在推理能力提升下安全性的可扩展性。

实验结果

研究问题

  • RQ1在长上下文设置中,更强的通用推理是否与安全性提升相关?
  • RQ2组合推理攻击在揭示跨越长上下文隐藏的有害意图方面是否有效?
  • RQ3增加上下文长度如何影响LLM的安全对齐?
  • RQ4增加推理时推理计算是否能降低攻击成功率?

主要发现

  • 具有更强通用推理的模型对组合推理攻击并不更具鲁棒性,甚至可能拼凑出意图却拒绝拒绝。
  • 随着上下文长度增加,安全对齐持续退化。
  • 推理时推理努力可缓解攻击,在GPT-oss-120b模型上攻击成功率降低超过50个百分点。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。