TL;DR
This paper reframes hallucination in long chain-of-thought (CoT) reasoning as a continuously evolving latent state rather than an isolated, one-off error. By tracking local step-level anomalies alongside a global prefix-level signal, the authors achieve over 87% detection accuracy in real-time without adding any extra inference costs.
What Problem Does This Paper Address?
Large language models (LLMs) excel at complex tasks when using long Chain-of-Thought (CoT) reasoning. However, as the reasoning chain grows, subtle errors can emerge and propagate across steps.
Existing hallucination detection methods typically treat errors as isolated events or evaluate only the final answer. They fail to capture how hallucinations accumulate or how a model might self-correct. Furthermore, standard methods for probing internal hidden states suffer from "cross-step saturation" (where later steps get diluted by long prefixes) and "within-step imbalance" (where earlier tokens dominate uniform averages), making real-time streaming detection highly unreliable.
Methods
The authors introduce a streaming hallucination detection framework that separates local anomalies from global state shifts:
- Step-level Representation (
Step Time Exp): To fix representation dilution, the authors aggregate token hidden states only within the current reasoning step using a time-aware exponential weighting scheme. This emphasizes tokens near the end of a step (which contain a more complete summary) and avoids prefix dilution. - Prefix-level State Tracking: They model prefix-level hallucination as a latent state. A lightweight predictor is trained using a logic-enhanced strategy featuring two main losses:
- Anchor Loss: Forces the prefix-level prediction to align with the final answer's correctness at the terminal step.
- Quadratic Alarm Synchronization Loss: Penalizes missed step-level alarms while allowing the model to recover if it successfully self-corrects later in the trajectory.
Datasets
The authors constructed a long-CoT hallucination dataset using queries from existing benchmarks like MuSiQue and Big-Bench. Trajectories were generated using three base models: LLaMA-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and DeepSeek-R1-Distill-8B.
Claude 4.5 was used to annotate step-level and prefix-level labels, which were then strictly filtered using answer-aware semantic checks and logical consistency rules (e.g., discarding trajectories with unexplained "miraculous recoveries"). A 5% sample was manually verified by human experts, showing a 96%+ consistency rate with the automated pipeline.
Key Insights and Ideas
- Hallucination is a State, Not an Event: Isolated step errors don't always derail a model. Hallucination is better tracked as a global latent state that reflects how much the reasoning prefix has been corrupted.
- Asymmetric Behavior: Prefix-level hallucination exhibits an asymmetric dynamic. It can spike rapidly after a single step-level error, but it decreases slowly, requiring sustained corrective evidence over multiple steps to return to a "safe" state.
- The Saturation Trap: As a reasoning chain grows, newly introduced errors become increasingly embedded in the accumulated context, making them harder to distinguish at the raw representation level.
- Sweet Spot in Intermediate Layers: Probing hidden states reveals that truthfulness and hallucination signals are most prominent in middle-to-late layers (layers 16–20), while the final layers shift focus toward next-token formatting mechanics.
Key Results
- High Accuracy: The proposed method achieves over 87% accuracy at both step and prefix levels across LLaMA, Qwen, and DeepSeek models.
- Effective Online Detection: The framework correctly identifies 78% of hallucinated CoT instances in real-time as the reasoning unfolds.
- Zero Inference Overhead: Because the method probes internal representations via lightweight classifiers, it provides real-time streaming evidence without requiring additional LLM generation or sampling steps.
- Superiority over Baselines: It significantly outperforms existing white-box detection methods (like TTPD, SAPLMA, and LLM-Check), particularly when evaluated on dynamic metrics tracking error onset and recovery.
Limitations and Future Work
- Requires Explicit CoT: The method relies on explicit, externally exposed intermediate reasoning steps and cannot track implicit or compressed reasoning.
- White-Box Access Needed: It requires access to internal hidden states, making it inapplicable to black-box or API-only models (e.g., commercial OpenAI or Anthropic endpoints).
- Detection vs. Mitigation: This work focuses purely on detecting hallucinations. The authors note that leveraging these real-time prefix-level signals for active intervention, self-correction, or controlled regeneration during inference remains an open challenge for future research.
Summary updated