The Confidence Manifold: Geometric Structure of Correctness Representations in Language Models

Seonglae Cho, Zekun Wu, Kleyton Da Costa, Adriano Koshiyama

TL;DR

This paper reveals that the "confidence" of language models in their answers, specifically their knowledge of factual correctness, resides in a surprisingly simple, low-dimensional geometric structure within their internal representations. This structure allows for accurate detection of factual errors using simple methods, even with minimal training data, and is remarkably consistent across different model architectures.

What Problem Does This Paper Address?

Large language models (LLMs) are notorious for confidently asserting incorrect information, a behavior that hinders their deployment in high-stakes applications. While prior research has shown that LLMs encode signals related to truthfulness in their internal activations, the precise geometric nature of these "correctness representations" has remained largely uncharacterized. Specifically, questions like: "How many dimensions are needed to represent this signal?", "Can complex decision boundaries improve detection?", and "How does this structure vary across different models and architectures?" have been open. This paper aims to fill this gap by providing a detailed geometric analysis of these correctness representations.

Methods

The authors employ a multi-pronged approach:

  • Contrastive Data Construction: They use the TruthfulQA dataset, which provides paired correct and incorrect answers for the same question, to isolate the correctness signal from content variation.
  • Probe Training: Logistic regression probes are trained on hidden states extracted from LLM activations to predict factual correctness. The learned weights of these probes define "confidence directions."
  • Geometric Analysis:
    • Intrinsic Dimension (ID): They use the Levina-Bickel MLE estimator to measure the dimensionality of the data manifold itself, revealing the inherent complexity of the representation space.
  • Discriminative Dimension: Partial Least Squares (PLS) regression is used to find the dimensionality that maximizes covariance with correctness labels, indicating the dimensionality useful for classification.
  • Centroid Distance: They measure the distance between the mean representations of correct and incorrect answers.
  • Cross-Layer Similarity: They analyze how confidence directions evolve across different layers using cosine similarity.
  • Causal Validation via Activation Steering: They intervene on model activations during inference by adding a scaled version of the learned confidence direction to see if it causally alters error rates. Control directions (random or orthogonal) are used for comparison.

Datasets

  • TruthfulQA: The primary dataset used for training probes and evaluating the confidence manifold. It provides paired correct/incorrect answers to questions designed to elicit common misconceptions.
  • Transfer Datasets: SciQ, CommonsenseQA, HaluEval, and FEVER were used to evaluate the generalization capabilities of the learned confidence signals across different domains.

Key Insights and Ideas

  • Simplicity is Key: The discriminative signal for correctness is surprisingly simple, occupying only 3-8 dimensions, significantly lower than the overall activation space.
  • Linear Separability: Within this low-dimensional subspace, correctness is linearly separable. More complex geometric classifiers (like kernel SVMs) offer no improvement over simple linear probes.
  • Mean Shift, Not Complex Boundaries: The separation between correct and incorrect representations is primarily a "mean shift" (different centroids), not due to complex covariance differences or non-linear boundaries. This is why simple centroid distance methods work so well.
  • Internal vs. Output Signal: The confidence signal exists strongly within the model's internal representations (achieving up to 0.97 AUC) but is poorly expressed in output-based uncertainty measures (like semantic entropy, which only reach ~0.55 AUC). Models can be confidently wrong.
  • Universal Structure: This low-dimensional, linearly separable structure is remarkably consistent across 9 models from 5 different architecture families, suggesting a shared underlying mechanism for encoding correctness.
  • Layer Matters More Than Dimension: While dimensionality is important, the specific layer where confidence is encoded is a more critical hyperparameter than the exact number of dimensions.

Key Results

  • Optimal Dimensionality: Probes achieve peak performance at 3-8 dimensions, with performance degrading significantly beyond this range.
  • High AUC: Internal probes achieve AUCs ranging from 0.80 to 0.97.
  • Centroid Detection Parity: Centroid distance methods achieve performance comparable to trained probes (e.g., 0.90 AUC), enabling detection with just two mean vectors.
  • Few-Shot Efficiency: With only 25 labeled examples, centroid-based detection on GPT-2 achieves 89% of full-data accuracy.
  • Causal Effect: Activation steering along the learned confidence direction causes a monotonic 10.9 percentage point swing in error rates, confirming its causal role.
  • Output Signal Gap: Output-based methods (P(True), semantic entropy) achieve only 0.44-0.64 AUC, highlighting the disconnect between internal knowledge and external expression.
  • Cross-Domain Transfer: PLS projection to 5D improves cross-domain transfer by 10-14% AUC, suggesting the confidence signal is universal and can be extracted from dataset-specific noise.

Limitations and Future Work

  • Dataset Specificity: While TruthfulQA is designed to elicit misconceptions, future work could explore naturalistic errors in longer-form generation or RAG systems.
  • Real-time Adaptation: The authors suggest exploring whether online adaptation can track generation-time shifts in confidence.
  • Model-Specific Timing: While the compression pattern is universal, the exact timing of phase transitions varies across architectures, suggesting further investigation into architecture-specific nuances.
  • Mistral Anomaly: Mistral-7B shows a late-layer expansion that appears related to unembedding preparation, which doesn't improve classification but might serve output generation. Understanding this divergence is an area for future work.

Summary updated

BibTeX
@inproceedings{cho2026confidence,
  author = {Seonglae Cho and Zekun Wu and Kleyton Da Costa and Adriano Koshiyama},
  title = {{The Confidence Manifold: Geometric Structure of Correctness Representations in Language Models}},
  booktitle = {Reliable Autonomy @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=PmwBxLJxFw},
}
Figure