Skip to content
AI.info

Research

Trust in One Round: Confidence Estimation for Large Language Models via Structural Signals

Overview Research area: Natural Language Processing / trustworthy AI — specifically post-hoc confidence estimation and hallucination detection for large language models. Technical level: Intermediate.

arXiv
2602.00977
Published
2026-02-01
Authors
Pengyue Yang, Jiawen Wen, Haolin Jin, Linghan Huang, Huaming Chen, Ling Chen

AI summary

Overview

  • Research area: Natural Language Processing / trustworthy AI — specifically post-hoc confidence estimation and hallucination detection for large language models.
  • Technical level: Intermediate. The framework itself is conceptually simple (extract numbers from hidden states, feed them to a tree model), but it assumes familiarity with transformer hidden states, spectral analysis, and AUROC/AUPR evaluation.
  • Scope: This paper proposes and evaluates "Structural Confidence," a single-pass, model-agnostic confidence estimator built from structural descriptors of a hidden-state trajectory, tested across FEVER, SciFact, WikiBio, and TruthfulQA.

Note: the paper content supplied is truncated partway through the ablation section (6.3); the remaining ablation results and the efficiency analysis section (6.4) are not fully present, so those details cannot be summarized here.

What This Paper Is About

Large language models produce fluent text whether or not it is correct, and existing ways of estimating confidence — token probabilities, embedding similarity, or repeated sampling — each break down in different situations. Token-level scores are miscalibrated and brittle under distribution shift, sentence embeddings collapse on domain-specialized text, and sampling-based methods like SelfCheckGPT are prohibitively expensive because they require many generations plus an auxiliary model. The authors' goal is a confidence score that needs only one deterministic forward pass and no extra models, by reading stability signals directly from the shape of the model's internal hidden-state trajectory rather than from probabilities or embeddings.

Key Contributions

  1. A new confidence modality based on hidden-state structural stability. The authors define trajectory-level descriptors — spectral stability, local variation, and global shape coherence of token-level hidden states — as a confidence signal intended to complement likelihood-, embedding-, and sampling-based estimators.

  2. A model-agnostic, single-pass confidence estimator. The estimator operates on structural features from one deterministic forward pass, requiring no sampling, no auxiliary models, and no architecture-specific internals (no gradients or attention maps). The authors also show that fusing structural signals with a sentence-level semantic representation yields a lightweight generalizable estimator without extra LLM calls.

  3. A practical workaround for black-box APIs. Because proprietary models like GPT-4o do not expose hidden states, the method builds a proxy trajectory from a frozen, encoder-only bert-base-uncased (12 layers, hidden size 768, sequences capped at 256 tokens), arguing that the relevant stability patterns are induced by the input sequence and autoregressive structure rather than model-specific parameters.

  4. Cross-domain evaluation across four heterogeneous benchmarks. FEVER, SciFact, WikiBio-hallucination, and TruthfulQA are used to test discrimination (AUROC, AUPR) and calibration (Brier Score, ECE), including a mixed-domain training setting and an out-of-domain TruthfulQA test.

Main Findings

  • Probability-based heuristics are weak. Mean log-probability and predictive entropy struggle on FEVER and WikiBio, often falling near or below random-guess AUROC. For example, mean logp scores 0.438 AUROC / 0.208 AUPR on FEVER and 0.485 / 0.295 on WikiBio; semantic entropy (NLI, single-pass) scores 0.432 / 0.201 on FEVER and 0.453 / 0.264 on WikiBio.
  • Structural features beat probability scores on FEVER and WikiBio. The Structure-feature variant reaches 0.573 AUROC / 0.274 AUPR on FEVER and 0.543 / 0.354 on WikiBio, outperforming both probability-based heuristics in both metrics without using token probabilities.
  • Semantic embeddings are strong in-domain but collapse out-of-domain. Semantic-feature scores 0.682 / 0.349 on FEVER and 0.683 / 0.430 on WikiBio, but drops to 0.255 AUROC on SciFact. Structural signals degrade more gracefully, retaining 0.460 AUROC on SciFact.
  • Fusion is the strongest single-pass configuration in most cells. The fused Structural Signal scores 0.683 / 0.348 on FEVER, 0.335 / 0.640 on SciFact, and 0.686 / 0.454 on WikiBio. SelfCheckGPT (NLI) attains the highest FEVER AUROC at 0.700 and AUPR 0.364, but the fused model matches or outperforms it on WikiBio AUPR (0.454 versus 0.312).
  • Calibration follows the same trend. Brier Score and ECE indicate that structural descriptors and the fused Struct+Sent model are consistently better calibrated than probability-only baselines on FEVER and WikiBio, and comparable on SciFact.
  • Cross-domain generalization is smoother for structural signals. Trained on the mixed-domain pool (mix_train, 5,455 instances; mix_dev, 778; mix_test, 3,131), Structure-feature performs stably across FEVER-LLM, SciFact-LLM, WikiBio-LLM, and out-of-domain TruthfulQA, while Semantic-feature oscillates sharply with large AUROC drops on SciFact-LLM and TruthfulQA. The fused model tends to track whichever signal is stronger in each domain.
  • Efficiency advantage over sampling-based checking. In the confidence-estimation stage, the NLI-based SelfCheckGPT baseline incurs on average 5–6× higher FLOPs and 4–5× higher latency than the proposed method. Section 4.5 also references comparison against "10 rounds of SelfCheckGPT." (The full efficiency table, Section 6.4, is not included in the supplied content.)
  • Individual structural families are complementary. Table 2 decomposes the descriptor into three families, and the paper states that each family performs best on at least one dataset. In Table 1, Local Variation achieves the highest WikiBio AUROC among the single families (0.565), Shape Coherence is highest on SciFact (0.522), and Spectral Stability is highest on FEVER (0.555) — though the surrounding ablation narrative is truncated.

Methodology in Plain English

The workflow has four steps.

  1. Generate one answer. GPT-4o is asked once per instance using a unified instruction template, with greedy decoding (temperature = 0, top-k = 1). No resampling or paraphrasing.

  2. Build a proxy trajectory. Because the API does not return hidden states, the concatenated context and answer is fed through a frozen bert-base-uncased, and the final-layer hidden states for up to 256 tokens are collected. The authors argue these trajectories preserve the text-induced stability patterns that matter, even though the encoder is not the generator.

  3. Describe the trajectory with three families of numbers.

    • Spectral stability (48 dimensions): 32 features from a real-valued DFT along the token axis (mean and maximum power of the lowest K = 16 non-trivial frequencies), plus 16 features from the smallest 16 eigenvalues of the normalized Laplacian of a token similarity graph.
    • Local variation (6 dimensions): six statistics over consecutive-token displacements — total path length, mean and variance of the displacement, start-to-end distance, embedding-wise variance, and centroid norm.
    • Shape coherence (16 dimensions): a 16-bin normalized histogram of all pairwise hidden-state distances, giving a length-agnostic "shape signature."

    These concatenate into a fixed 70-dimensional vector. Three granularity modes are defined: Global (whole trajectory), Local (overlapping windows of w = 5 with stride 2, averaged), and Two-scale (elementwise average of the two, used as the default).

  4. Score with a small tree model. A LightGBM gradient-boosted decision tree maps either the 70 structural features alone (Struct-only) or those features concatenated with a sentence embedding from OpenAI text-embedding-3-large (Struct+Sent) to a correctness probability. Training uses binary logistic loss, 200 trees, learning rate 0.05, unlimited depth, and fixed random seeds, with no dataset-specific tuning.

The theoretical rationale is that a confident model updates its hidden state smoothly from token to token — low-frequency spectral energy, small homogeneous increments, coherent global shape — while uncertainty produces high-frequency components, irregular local curvature, and fragmented geometry.

Why This Matters

Confidence estimation is usually a cost-versus-robustness trade-off. This paper argues the trade-off can be partly sidestepped by reading the shape of internal computation rather than its surface outputs, and it does so while respecting the constraints of real black-box APIs: one pass, no gradients, no auxiliary models, and no access to the generator's internals.

Real-world applications:

  • Fact verification and claim checking. The paper explicitly targets fact verification, using FEVER and SciFact as evaluation settings where claims carry binary support/refute labels.
  • Scientific assistants. SciFact-style scientific claims are a named target domain, and the paper highlights that semantic embeddings collapse precisely on this domain-specialized text.
  • High-volume web search and dialogue systems. The single-pass constraint is motivated by Web-scale deployment: rate limits, latency budgets, and throughput requirements that make multi-sample consistency methods infeasible.
  • Safety-critical decision support and content moderation. The paper frames post-hoc confidence estimation as a requirement for safety-sensitive applications such as reasoning and content moderation, where fabricated content carries social or safety costs.

Industry relevance: the method is positioned as a drop-in scoring layer for online LLM services, since it needs only text outputs. The efficiency claims — 5–6× lower FLOPs and 4–5× lower latency than the NLI-based SelfCheckGPT checking stage — speak directly to serving costs, and the authors note they exclude the shared GPT-4o forward pass from all measurements.

Future Directions

  • Comparing against true generator trajectories. The authors state that the proxy encoder does not approximate GPT-4o layerwise and explicitly leave "a direct comparison with true generator trajectories" for future work.
  • Extending beyond the proxy-encoder assumption. The input-conditioned view of activation geometry is supported by transfer across transformer families, but it remains an assumption to be tested on more generator architectures and encoder choices.
  • Broadening the benchmark set. Evaluation covers FEVER, SciFact, WikiBio, and TruthfulQA; the paper notes all datasets share one configuration, leaving open how the descriptors behave on non-factual tasks and other styles of domain shift.
  • Scaling the efficiency analysis. The paper reports a comparison to a RACE-style five-module proxy-trajectory baseline and mentions extrapolated costs for S hypothetical SelfCheckGPT samples, indicating that cost scaling with more sampling rounds is an open axis (the full Section 6.4 numbers are not in the supplied content).

Target Audience

  • Practitioners deploying LLMs in production, especially those working behind black-box APIs where logits and hidden states are unavailable but latency and cost budgets are tight.
  • Researchers in uncertainty quantification, hallucination detection, and trustworthy AI who want an alternative to probability-, embedding-, and sampling-based confidence signals.
  • Engineers building fact-checking, scientific-assistant, or content-moderation pipelines, since those are the evaluation domains the paper targets.
  • Interpretability and representation-learning researchers interested in operationalizing hidden-state geometry and topology as a supervised signal rather than a diagnostic tool.

The paper assumes comfort with transformer internals, spectral/graph methods, and standard discrimination metrics; readers without that background will need to consult the cited literature on hidden-state geometry and SelfCheckGPT.

Authors’ abstract

Large language models (LLMs) are increasingly deployed in domains where errors carry high social, scientific, or safety costs. Yet standard confidence estimators, such as token likelihood, semantic similarity and multi-sample consistency, remain brittle under distribution shift, domain-specialised text, and compute limits. In this work, we present Structural Confidence, a single-pass, model-agnostic framework that enhances output correctness prediction based on multi-scale structural signals derived from a model's final-layer hidden-state trajectory. By combining spectral, local-variation, and global shape descriptors, our method captures internal stability patterns that are missed by probabilities and sentence embeddings. We conduct extensive, cross-domain evaluation across four heterogeneous benchmarks-FEVER (fact verification), SciFact (scientific claims), WikiBio-hallucination (biographical consistency), and TruthfulQA (truthfulness-oriented QA). Our Structural Confidence framework demonstrates strong performance compared with established baselines in terms of AUROC and AUPR. More importantly, unlike sampling-based consistency methods which require multiple stochastic generations and an auxiliary model, our approach uses a single deterministic forward pass, offering a practical basis for efficient, robust post-hoc confidence estimation in socially impactful, resource-constrained LLM applications.

Read the original paper