arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25412cs.AIcs.CR
收藏

超越内容安全:大型语言模型推理漏洞的实时监控

Beyond Content Safety: Real-Time Monitoring for Reasoning Vulnerabilities in Large Language Models

The Hong Kong University of Science and Technology(香港科技大学);Zhejiang University of Technology(浙江工业大学)

Xunguang Wang, Yuguang Zhou, Qingyue Wang, Zongjie Li, Ruixuan Huang, Zhenlan Ji, Pingchuan Ma, Shuai Wang

AI总结:

本文提出实时监控方法,识别大型语言模型推理过程中的安全漏洞,定义九类不安全推理行为,并通过实验验证其有效性,展示了推理安全的重要性。

摘要:

大型语言模型(LLMs)越来越多地依赖显式链式推理(CoT)来解决复杂任务,但推理过程本身的安全性仍大多未被解决。现有工作集中在内容安全上,将推理链视为不可见的中间产物。本文将推理安全视为一个独立且同样关键的安全维度:模型推理轨迹必须逻辑一致、计算高效且抗对抗操控。我们做出三项贡献:首先,我们正式定义推理安全并引入九类不安全推理行为的分类,涵盖输入解析错误、推理执行错误和过程管理错误。其次,我们进行大规模普及研究,标注了4111个推理链,来自自然推理基准和四种对抗攻击方法(推理劫持和拒绝服务),证实所有九种错误类型在实践中存在,且每种攻击都会产生可解释的机制签名。第三,我们提出推理安全监控器:一个外部基于LLM的组件,与目标模型并行运行,通过嵌入分类法的提示实时检查每个推理步骤,并在检测到不安全行为时发送中断信号。在450个静态基准测试中,我们的监控器在步骤级定位准确率达到84.88%,错误类型分类准确率达到85.37%,优于幻觉检测器和过程奖励模型基线。这些结果表明,推理层面的监控既是必要的也是实际可行的,确立了推理安全作为大型推理模型安全部署的基础问题。

英文摘要:

While large language models (LLMs) increasingly rely on explicit chain-of-thought (CoT) reasoning to solve complex tasks, the reasoning process itself remains vulnerable to both intrinsic failures and adversarial manipulation. Specifically, reasoning trajectories may deviate from the intended task, contain invalid inferences, or exhibit uncontrolled behaviors such as repetition, excessive length, or premature termination. Adversarial attacks can further exploit these weaknesses to hijack inference trajectories or induce denial-of-service conditions through pathological reasoning patterns. To address this, we formalize reasoning safety as a distinct security dimension of CoT reasoning trajectories, characterized by three fundamental properties: task fidelity, inferential validity, and process integrity. Based on these properties, we derive a taxonomy of six unsafe reasoning behaviors. Through a large-scale study of reasoning traces from benign benchmarks and four state-of-the-art reasoning attacks, we find that all six behaviors occur in practice. Building on this taxonomy, we develop the Reasoning Safety Monitor, an external LLM-based streaming verifier that inspects intermediate reasoning steps, localizes the first unsafe step, and interrupts inference upon detection. Extensive evaluations show that our monitor achieves 92% accuracy in localizing the onset of unsafe reasoning, outperforming existing checkers by more than 17 percentage points. In deployment-oriented evaluations, it allows approximately 98% of valid reasoning paths to proceed uninterrupted, reduces reasoning hijacking success rates to below 0.5%, and limits token redundancy under denial-of-service attacks to 0.29$\times$ or less. These results demonstrate that runtime monitoring of reasoning trajectories provides an effective safeguard for the secure deployment of large reasoning models.

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

↑