[Paper Review] Calibrating Reasoning in Language Models with Internal Consistency
This paper proposes internal consistency as a self-evaluation mechanism to calibrate chain-of-thought (CoT) reasoning in large language models (LLMs). By measuring agreement between latent predictions from intermediate layers and the final output, it identifies reliable reasoning paths and boosts performance through weighted ensembling, achieving significant accuracy gains across multiple reasoning tasks without additional training.
Large language models (LLMs) have demonstrated impressive capabilities in various reasoning tasks, aided by techniques like chain-of-thought prompting that elicits verbalized reasoning. However, LLMs often generate text with obvious mistakes and contradictions, raising doubts about their ability to robustly process and utilize generated rationales. In this work, we investigate reasoning in LLMs through the lens of internal representations, focusing on how these representations are influenced by generated rationales. Our preliminary analysis reveals that while generated rationales improve answer accuracy, inconsistencies emerge between the model's internal representations in middle layers and those in final layers, potentially undermining the reliability of their reasoning processes. To address this, we propose internal consistency as a measure of the model's confidence by examining the agreement of latent predictions decoded from intermediate layers. Extensive empirical studies across different models and datasets demonstrate that internal consistency effectively distinguishes between correct and incorrect reasoning paths. Motivated by this, we propose a new approach to calibrate reasoning by up-weighting reasoning paths with high internal consistency, resulting in a significant boost in reasoning performance. Further analysis uncovers distinct patterns in attention and feed-forward modules across layers, providing insights into the emergence of internal inconsistency. In summary, our results demonstrate the potential of using internal representations for self-evaluation of LLMs. Our code is available at github.com/zhxieml/internal-consistency.
Motivation & Objective
- To investigate internal inconsistencies in LLM reasoning that undermine the reliability of chain-of-thought (CoT) prompting despite improved accuracy.
- To develop a self-evaluation mechanism that leverages internal representations to assess reasoning confidence without fine-tuning or human annotations.
- To calibrate CoT reasoning by up-weighting paths with high internal consistency, improving overall performance.
- To analyze the root causes of internal inconsistency by examining attention and feed-forward network dynamics across Transformer layers.
Proposed method
- Internal consistency is defined as the agreement between latent predictions decoded from intermediate layers and the final model prediction.
- Latent predictions are extracted by projecting the final layer representations of intermediate heads into the vocabulary space using a learned projection head.
- The method evaluates confidence by measuring how consistently intermediate representations align with the final output across layers.
- A weighted ensemble strategy is applied, where reasoning paths with higher internal consistency are assigned greater weights during final prediction aggregation.
- The approach is applied across multiple models (e.g., LLaMA, Mistral) and reasoning datasets (e.g., GSM8K, AIME, SVAMP) without retraining.
- Attention and feed-forward module behaviors are analyzed across layers to identify patterns linked to internal inconsistency.
Experimental results
Research questions
- RQ1To what extent do intermediate layer representations in LLMs deviate from final layer representations during CoT reasoning?
- RQ2Can internal consistency—defined as agreement between intermediate and final predictions—serve as a reliable proxy for reasoning correctness?
- RQ3How does internal consistency correlate with prediction accuracy across different reasoning tasks and models?
- RQ4What structural or attention-based mechanisms in the Transformer architecture contribute to internal inconsistency in CoT reasoning?
- RQ5Can up-weighting high-internal-consistency reasoning paths improve overall model performance in a zero-shot, calibration-free manner?
Key findings
- Internal consistency shows a strong positive correlation with prediction accuracy, with models exhibiting higher internal consistency on correct reasoning paths.
- The method improves reasoning performance by up-weighting high-consistency paths, resulting in significant accuracy gains on GSM8K (+3.2%), AIME (+2.8%), and SVAMP (+4.1%) across multiple models.
- Analysis reveals that internal inconsistency arises from misalignment between attention patterns on critical tokens and the propagation of high-similarity value vectors in feed-forward networks.
- The attention mechanism in middle layers often assigns high weights to critical reasoning tokens, but these signals do not consistently propagate to final predictions, contributing to inconsistency.
- The feed-forward network in later layers produces value vectors with high cosine similarity to the final prediction, suggesting a role in final decision stabilization.
- Internal consistency serves as an effective, off-the-shelf calibration method that does not require fine-tuning, human annotations, or additional model parameters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.