Abstract
Do large language models (LLMs) anticipate when they will answer correctly? To study this, we extract activations after a question is read but before any tokens are generated, and train linear probes to predict whether the model's forthcoming answer will be correct. Across three open-source model families ranging from 7 to 70 billion parameters, projections on this "in-advance correctness direction" trained on generic trivia questions predict success in distribution and on diverse out-of-distribution knowledge datasets, outperforming black-box baselines and verbalised predicted confidence. Predictive power saturates in intermediate layers, suggesting that self-assessment emerges mid-computation. Notably, generalisation falters on questions requiring mathematical reasoning. Moreover, for models responding "I don't know", doing so strongly correlates with the probe score, indicating that the same direction also captures confidence. By complementing previous results on truthfulness and other behaviours obtained with probes and sparse auto-encoders, our work contributes essential findings to elucidate LLM internals.
Introduction
Large Language Models (LLMs) are notorious for "hallucinating"—stating falsehoods with high confidence. To make these models trustworthy, we need reliable ways to estimate their internal confidence. Traditional methods like verbalized confidence (asking the model how sure it is) are often poorly calibrated, while consistency checks (sampling multiple outputs) are computationally expensive.
This research investigates the Linear Representation Hypothesis: the idea that high-level concepts, such as "knowing the answer," are represented as simple directions in the model's internal vector space. We demonstrate that a "correctness signal" is encoded within internal activations before the model even begins generating its response.
Methodology: Probing the Latent Space
The core approach involves Linear Probing on the model's internal state. The workflow consists of four main steps:
- Activation Extraction: Residual stream activations are recorded at the final token of the question.
- Difference-of-Means Probe: A simple geometric probe is defined by the vector connecting the average activation of correct answers to that of incorrect ones.
- Layer Selection: Probes are evaluated across all layers to identify where the signal is most prominent.
- Zero-Generation Prediction: New questions are projected onto this "correctness direction" to predict accuracy without generating a single token.
Key Results and Generalization
The linear probe achieves high predictive power, with AUROC scores typically between 0.75 and 0.88 on factual tasks. This signal is most consistent in larger models, indicating more refined internal self-assessment at scale.
Factual vs. Reasoning Split
A critical finding is the divergence between factual knowledge and mathematical reasoning. While a probe trained on general trivia generalizes well to specific factual domains like geography (Cities) or history (Birth Years), it fails on arithmetic tasks (GSM8K). This suggests that factual retrieval and multi-step reasoning utilize distinct internal mechanisms.
Internal State vs. Verbalization
Internal activations provide a far more accurate success predictor than the model's own verbalized confidence, which often performs near random chance. Furthermore, when models are allowed to abstain ("I don't know"), these responses align closely with the negative end of the learned correctness direction, suggesting that implicit abstention is a direct downstream result of this internal low-confidence signal.
Discussion and Limitations
While promising, this method has limitations. It currently treats correctness as a binary outcome and relies on "white-box" access to model activations, making it inapplicable to closed-source APIs. Additionally, the probe is static; for complex Chain-of-Thought reasoning, the internal state likely evolves during generation. Future work will explore the "reasoning trajectory" to see how this correctness signal shifts as the model computes its final answer.
Summary updated