Abstract
Despite the strong reasoning ability of large language models (LLMs), they are prone to errors and hallucinations. Existing checking methods heavily rely on external resources, such as trained verifiers (e.g., process/outcome reward models) or elaborate prompts, which lead to high computational overhead and are only applicable to specific domains. In this paper, we investigate whether the internal behaviors of LLMs have already implied the credibility of their reasoning paths. Specifically, we find that the rank of the correlation matrix between the input problem and the output reasoning path is a robust indicator of reasoning correctness. Different from other correctness indicators for LLMs, the calculation of the correlation matrix only relies on the LLM itself, which avoids the hassle of training a separate model or designing complicated prompts. Based on it, we design a simple, plug-and-play Self-Indicator method to reweight candidate reasoning paths, which achieves significant performance improvements than other voting and verification methods with very few computational overhead. Our experiments across multiple LLMs of varying scales and model families have further shown the effectiveness of Self-Indicator. It achieves over 75% accuracy in distinguishing correct reasoning paths from incorrect ones, and, in turn, improves the accuracies on three reasoning benchmarks by more than 8%.
Introduction
Large Language Models (LLMs) are notorious for "hallucinating"—generating reasoning steps that look plausible but are logically flawed. To address this, researchers traditionally rely on external verification, such as training separate reward models or using complex self-correction prompts. However, these methods are computationally expensive and often require massive amounts of labeled data. This paper explores a fundamental alternative: Does an LLM inherently "know" when it is correct based on its internal state? We introduce Self-Indicator, a method that utilizes the internal hidden states of the model to judge the credibility of a reasoning path without external assistance.
Methodology: Correlation Matrix Rank
The core hypothesis of this work is that a correct reasoning path is "efficient"—it focuses strictly on the key patterns of the input problem. Conversely, an incorrect path is often "distracted" by spurious correlations or redundant noise.
The Core Idea
We construct a correlation matrix ($R$) where each entry is the dot product between the representation of a problem token and a solution token. We then calculate the rank of this matrix using Singular Value Decomposition (SVD).
- Correct solutions tend to have a lower rank, indicating a simpler, more focused alignment.
- Incorrect solutions tend to have a higher rank, indicating a noisier, more complex alignment.
The Workflow
- Generate: Sample $K$ diverse solutions from the LLM.
- Extract: For each solution, extract the hidden states (specifically from the 26th transformer layer).
- Compute Rank: Build the correlation matrix $R$ and calculate the number of singular values above a threshold $\delta$.
- Reweight: Instead of a simple majority vote, the model performs a weighted majority vote, giving more "voting power" to solutions with lower normalized ranks.
Experimental Evaluation
The method was evaluated on major mathematical reasoning benchmarks, including GSM8K, MATH, and AIME24. The authors also introduced MATH-Pair, a curated dataset containing pairs of one correct and one incorrect solution for the same problem to test the indicator's discriminative power.
Key Results
Self-Indicator improved the accuracy of LLaMA3-70B and GPT-3.5-Turbo on the MATH dataset by over 8% compared to standard inference. It consistently outperformed Self-Consistency (simple majority voting) and Self-Verification (prompting the model to check itself). Furthermore, the indicator maintained over 75% accuracy in binary correctness classification across different model families.
Insights and Discussion
- Simplicity Bias: Theoretical analysis suggests that the cross-entropy loss used in training naturally encourages the model to align its outputs with a limited set of relevant input features, leading to lower-dimensional representations for correct answers.
- Cross-Model Verification: Remarkably, the original model's weights are not strictly required for verification. A smaller, open-source model (e.g., LLaMA2-13B) can calculate the rank of solutions generated by a closed-source model like GPT-3.5-Turbo and still achieve nearly 80% accuracy.
- Efficiency: Unlike "Self-Check" methods that require multiple LLM calls, calculating a matrix rank takes less than 0.5 seconds, adding negligible overhead to the inference process.
Conclusion
The Self-Indicator method provides a robust, training-free, and computationally efficient way to verify LLM reasoning. While currently focused on mathematical reasoning, future work will explore its effectiveness in open-ended tasks and its integration into inference-time compute scaling strategies like Monte Carlo Tree Search.
Summary updated