Deep Hidden Cognition Facilitates Reliable Chain-of-Thought Reasoning

Zijun Chen, Wenbo Hu, Richang Hong

Introduction

Large Language Models (LLMs) have achieved significant breakthroughs in complex reasoning tasks through Chain-of-Thought (CoT) prompting. By breaking down problems into intermediate steps, models can navigate intricate logical paths. However, CoT reasoning suffers from a critical vulnerability: error accumulation. A minor logical or factual error in an early step often propagates through the entire chain, leading to an incorrect final answer.

Traditional methods to mitigate this, such as Self-Consistency (majority voting) or relying on raw generation probabilities, often fail because LLMs are frequently overconfident in their errors. This paper introduces Cog-CoT, a framework designed to look beyond surface-level probabilities and tap into the model's internal "hidden cognition" to identify truthful reasoning steps.

The Dissociation Between Probability and Truth

A core observation of this research is the dissociation between what a model says and what it "knows" internally. LLMs can assign high generation probabilities to factually incorrect statements, making surface-level metrics unreliable for verification. The authors argue that the model's internal latent states—specifically the activations of certain attention heads—contain signals that more accurately reflect the veracity of a statement than the final token probabilities.

Cog-CoT: Tapping into Hidden Cognition

The Cog-CoT framework utilizes a three-stage approach to enhance reasoning reliability:

  1. Probing for Truthfulness: The researchers used probing techniques to identify specific attention heads within the Transformer architecture that are sensitive to the truthfulness of a reasoning step. They discovered that these "truth-sensitive" signals are most prominent in the middle layers of the model, whereas lower layers focus on syntax and higher layers on next-token prediction.
  2. Training a Confidence Predictor: Using a binary-labeled dataset of correct and incorrect reasoning steps, the authors trained a lightweight classifier. This "Confidence Predictor" takes activations from the top-$K$ truth-relevant attention heads to output a confidence score between 0 and 1.
  3. Confidence-Guided Beam Search: During inference, the model generates multiple candidate steps. Instead of selecting the step with the highest generation probability, Cog-CoT uses a scoring formula that balances standard probability with the "Hidden Confidence" score. This guides the model toward the path it internally trusts the most.
Overview of the Cog-CoT framework, including the training of the confidence predictor and the guided beam search mechanism.

Experimental Evaluation

The method was evaluated across diverse benchmarks, including:

  • Unimodal Math and Logic: GSM8K, SVAMP, StrategyQA, and BoolQ.
  • Multimodal Reasoning: ScienceQA, RealWorldQA, and MMStar.
  • General Knowledge: WikiQA and TruthfulQA.

Cog-CoT consistently outperformed standard CoT and self-consistency baselines. For instance, on the SVAMP math dataset, accuracy improved from 43.3% to 48.3%. In multimodal tasks like RealWorldQA, the framework achieved a substantial 10.7% improvement over the baseline.

Results and Discussion

Beyond raw accuracy, Cog-CoT significantly improves model calibration. Calibration refers to the alignment between a model's reported confidence and its actual accuracy. Standard LLMs are notoriously poorly calibrated, often expressing high confidence in wrong answers.

Calibration curves comparing Cog-CoT (Ours) against standard baselines, demonstrating superior alignment between confidence and accuracy.

As shown in the calibration analysis, Cog-CoT (Ours) closely tracks the "Ideal Calibration" line, whereas methods like "Verbalization" (asking the model for its confidence) or "Sequence Likelihood" show significant deviations. This suggests that internal activations are a far more reliable source of confidence than the model's own linguistic self-assessment.

Conclusion and Future Work

Cog-CoT demonstrates that the internal states of LLMs contain a "hidden cognition" that can be harnessed to produce more reliable and truthful reasoning. By identifying truth-sensitive attention heads in the middle layers, the framework effectively mitigates error accumulation in Chain-of-Thought tasks.

While the method introduces some computational overhead due to beam search and requires model-specific training for the predictor, it opens new avenues for model alignment. Future research may explore integrating these internal truth signals directly into the reinforcement learning from human feedback (RLHF) process, potentially creating models that are inherently more self-aware and less prone to hallucination.

Summary updated

BibTeX
@misc{chen2025deep,
  author = {Zijun Chen and Wenbo Hu and Richang Hong},
  title = {{Deep Hidden Cognition Facilitates Reliable Chain-of-Thought Reasoning}},
  year = {2025},
  eprint = {2507.10007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.10007},
}
Figure