학술

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

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Abstract

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.

관련 뉴스