Structural Uncertainty in LLM Reasoning

Why answer agreement is blind to reasoning instability, and how the stability of a model's rankings over its own answers catches what dispersion metrics miss.

Based on Structural Uncertainty (EMNLP 2026). Aligned with the EMNLP 2026 version and expanded.

Suppose you ask a language model the same logical reasoning question five times. All five answers agree. Standard evaluation would conclude: low uncertainty, high reliability. But what if the model, when asked to compare and rank its own reasoning paths, produces a completely different ordering every time?

This is the gap that motivated our work on structural uncertainty. The idea first appeared at the ICLR 2026 Workshop on Logical Reasoning of LLMs as "Quantifying Consistency in LLM Logical Reasoning via Structural Uncertainty", where it received the Best Paper award. The full version, "Structural Uncertainty from Self-Preference in Black-Box Language Models", appears in the EMNLP 2026 main conference, and it is the version this essay follows. The core observation is simple but consequential: answer-level agreement can mask reasoning-level instability. Five candidates may all arrive at "20", the same wrong answer, while the model's own preferences over how they reason flip from one evaluation to the next. In the illustrative example that opens the paper, one candidate moves from first place to last across trials.

Dispersion-Based View
All 5 candidates answer "20"
Answer entropy = 0
Reports: high confidence
Misses: the answer is wrong
Structural View
All 5 candidates answer "20"
Self-preference rankings unstable
Reports: reasoning inconsistency
Detects: unstable reasoning behind agreement

Same answers, opposite uncertainty signals: the scenario that dispersion methods miss

Sampled Outputs Are Not Exchangeable

Most black-box uncertainty estimators draw several responses and measure how much they differ: how many distinct answers appear, or how spread out the responses are in embedding space. In that computation the responses are exchangeable. Shuffle or relabel them and the score does not move. But two response sets can have identical variance and still encode very different preference orderings: in one, the model consistently regards one derivation as best; in the other, it prefers a different one every time you ask. Dispersion collapses both to the same number. We wanted to ask not only how much do the responses differ, but how consistently does the model rank them.

This matters most for systematic errors: when every sample lands on the same wrong answer, answer entropy is zero and extra sampling cannot help.

What Structural Uncertainty Actually Measures

The key idea is to probe not what the model answers, but how stably it evaluates its own reasoning. Given a question, we generate N = 5 candidates, each from a different prompt template (step-by-step with a self-check, think-aloud, Socratic, decomposition, analogical), so that they differ in strategy and not only in wording. We then ask the same model, at temperature 0, which of two responses is better. No logits, no external judge, no model internals.

Rather than comparing all pairs, each trial draws a uniform random spanning tree over the candidates and queries only its N − 1 edges: the cheapest graph that still connects every candidate. Repeating this for M independent trials asks a different minimal set of questions about the same five responses each time, loosely like Monte Carlo dropout applied to the comparison graph rather than to weights.

Sample N
Candidates
→
Pairwise
Self-Preference
→
Bradley-Terry
+ PageRank
→
Entropy
Decomposition

The structural uncertainty pipeline: from candidates to consistency signal

The sparse pairwise judgments are aggregated into a global ranking distribution using Bradley-Terry modelling with PageRank normalization. Bradley-Terry gives each candidate a latent utility θi, with P(i beats j) = exp(θi) / (exp(θi) + exp(θj)); because a tree's comparisons always admit a perfect total order, an L2 penalty keeps the fit finite. The fitted model fills in win probabilities for every pair, and PageRank, with mass flowing from weaker to stronger candidates, turns them into a ranking distribution π(m). Across M trials, with π̄ the average ranking and H the Shannon entropy:

Total: StructU = H[π̄]
Within-trial: StructUwithin = (1/M) Σm H[π(m)]
Across-trial: StructUacross = StructU − StructUwithin

The decomposition is defined entirely over the observed ranking ensemble

The across-trial term is a Jensen gap: zero only when every trial produces the same ranking. To be careful, this describes the observable behaviour of self-preference under a fixed protocol; it does not claim to identify the model's underlying data or parameter uncertainty.

Two Components, Two Failure Modes

The decomposition separates total structural uncertainty into:

Across-Trial Instability
Different spanning trees → different rankings
The model can't stably decide which reasoning is best
Correlates negatively with accuracy
Signals: unreliable reasoning
Within-Trial Ambiguity
Ranking spread across candidates in a single trial
Multiple plausible reasoning paths compete
Correlates positively with accuracy on math reasoning
Signals: several candidates stay competitive

The two components of structural uncertainty relate to accuracy in opposite directions

If every trial gives a confident ranking but the winner changes with the sampled edges, the model is inconsistently confident (high across, low within). If every trial spreads its mass evenly, the same way each time, it is stably uncertain (low across, high within). A single number would blur the two.

The asymmetry with accuracy is one of the most interesting findings. Across-trial instability is associated with failure. Within-trial ambiguity goes the other way on math reasoning: for Claude Sonnet 4.5 on MATH-500, the Spearman correlation with per-question accuracy is −0.37 for the across-trial component and +0.42 for the within-trial one. This is consistent with several plausible candidates remaining competitive, though we state it as a pattern, not a mechanism. It weakens on MMLU-Pro and is near zero on HotpotQA.

Instability across evaluations signals unreliable reasoning. Ambiguity within evaluations is consistent with several candidates staying competitive. The distinction matters: they carry opposite information about correctness.

The opposite signs also set the practical combination with self-consistency entropy (Self-ConsU): across-trial uncertainty is added to it, within-trial uncertainty is subtracted. The rule is fixed globally, not tuned per task or model.

A Worked Example: Five Wrong Answers That Agree

One case from the paper's appendix is worth retelling. Math-Synth is a synthetic arithmetic benchmark of 993 verified problems built around nested negations. One problem asks for −(−(−(−(−(−(−(−500) × 200)))))) + −(−(−1)): the inner part is 100,000, six outer negations leave it positive, and the answer is 100,001.

All five of Claude Sonnet 4.5's responses answer −99,999, so Self-ConsU is zero. But they get there by different routes: four miscount the negations, the analogical one misparses the grouping, one runs a self-check that repeats the miscount, another has no verification at all. The model's preferences over them are unstable. Across 20 pairwise judgments, 80% of confidence scores are at or below 65 (50 means no preference), the judge cites "clarity" to prefer one response in some trials and its rival in others, and one response's PageRank score swings between 0.055 and 0.212 depending on the sampled edges. For a correctly solved problem from the same benchmark, also with Self-ConsU = 0, the responses differ only in presentation and the 20 judgments contain zero reversals.

Unanimous and Wrong
Five responses, one answer (−99,999)
Self-ConsU = 0
Different error paths, preference reversals
StructUacross = 0.035: signal fires
Unanimous and Right
Five responses, one correct answer
Self-ConsU = 0
Stylistic differences only, zero reversals
StructUacross ≈ 0.001: appropriately quiet

Math-Synth, Claude Sonnet 4.5: identical surface agreement, roughly 30× difference in across-trial uncertainty

That gap, with identical answer entropy, is the paper's claim in miniature: when reliably right, preferences are stable; when reliably wrong through different flawed routes, they destabilize.

How It Compares With Dispersion Baselines

The evaluation covers five LLMs (Claude Sonnet 4.5, gpt-oss-20b, Qwen 3 32B, Amazon Nova Premier, DeepSeek R1) and eight benchmarks: Math-Synth, MATH-500, AMC-23, AIME-24 and AIME-25 for math, MMLU-Pro for knowledge, HotpotQA and TruthfulQA for factual retrieval. Baselines use the same five samples: answer entropy (Self-ConsU), embedding dispersion (SemanticU) and prompted confidence (VerbalizedU). The main metric is selective prediction (Sel-AUC).

The headline is complementarity, not replacement. The combined estimator (structural uncertainty plus Self-ConsU) is best or second-best on Math-Synth, MATH-500, AMC-23, MMLU-Pro and TruthfulQA. The lift over Self-ConsU is largest where answer agreement is least informative, for weaker models on hard contest problems: +12.0% for Qwen 3 32B on AIME-25, +13.4% for Amazon Nova Premier on AMC-23. And the signal is new information, not re-encoded variance: across all 40 model-dataset pairs it is nearly orthogonal to SemanticU (median |ρ| = 0.10), and its two components correlate with Self-ConsU in opposite directions (ρ = −0.26 within, +0.15 across).

Is the Signal an Artifact?

With this many moving parts, one should ask whether the pipeline itself produces the signal. Keeping every component fixed and replacing the model's judgments with random ones drops Math-Synth AUROC by 0.320 on average for the within-trial component and 0.238 for the across-trial one; for Claude, within-trial AUROC falls from 0.984 to 0.488, which is chance. Length is not the explanation either: on MATH-500 the length preference is mild and inconsistent (mean Cohen's d = 0.19, and gpt-oss-20b prefers shorter responses), and 62% of the within-trial relationship with accuracy survives a length control on average. Nor is it just extra compute: on DeepSeek R1 and AIME-25, five generations plus 20 pairwise judgments (25 calls) reach a Sel-AUC of 0.728, against 0.717 for Self-ConsU from 25 fresh generations. More draws from the same answer distribution do not buy what a different kind of question buys.

When the Signal Breaks Down

Structural uncertainty is not a universal confidence estimator, and recognizing its limits is itself a contribution. On mathematical reasoning it adds strong complementary information to answer dispersion.

On factual retrieval (HotpotQA), the structural signal collapses toward uniformity. Within-trial entropy sits at its maximum, log 5 ≈ 1.61, for correct and incorrect questions alike, and across-trial entropy sits near zero: the model gives all five responses roughly equal preference, the same way in every trial. Different prompt templates cannot produce different reasoning paths when the documents fix the retrieval chain, so the candidates differ only in phrasing. Here dispersion wins for the strongest models (for Claude, Sel-AUC 0.839 for Self-ConsU against 0.742 combined).

Reasoning tasks (MATH, AMC, AIME)
Structural uncertainty complements dispersion ↑
Knowledge tasks (MMLU-Pro, TruthfulQA)
Combined estimator still helps; component correlations weaken
Retrieval tasks (HotpotQA)
Structural signal collapses ↓

Task regime determines whether structural uncertainty is informative

Key Insight

This regime sensitivity is itself diagnostic. The collapse of structural uncertainty on retrieval tasks marks the boundary where reasoning-level consistency evaluation stops being useful, which makes structural uncertainty a regime-sensitive evaluator rather than a universal metric. It is also cheap to check: averaging across-trial uncertainty over 20 pilot questions from a new task classifies the regime correctly at least 98% of the time for all five models.

Other limitations, plainly: the method needs N generations plus M(N − 1) judgments per question (20 at N = 5, M = 5), so it does not belong on latency-critical paths. Because models judge their own outputs, the signal inherits their biases; it is a behavioural signal, not a certificate of correctness. More candidates are not automatically better (N = 10 did worse than N = 5). And we only tested short-answer tasks with verifiable answers.

Why This Matters for Evaluating Logical Reasoning

Self-consistency is the most widely used post-hoc reliability signal for LLM reasoning, and it works well when errors are diverse. Its blind spot is systematic errors that produce agreement: the same wrong answer through different flawed paths, as in the negation example, scores zero uncertainty. Probing the stability of the model's own preferences over its reasoning catches a kind of inconsistency that answer-level metrics cannot see.

For deployment, I would layer it on self-consistency rather than replace it, where selective-prediction quality matters more than minimal inference cost, and run the pilot check first, falling back to dispersion if the preference graph has collapsed. "The samples agree" is a statement about the answer distribution, not about the reasoning that produced it.

The broader implication is that evaluating LLM reasoning requires looking beyond what the model says, to how consistently it evaluates what it says. Consistency of judgment over reasoning paths is a different signal from consistency of final answers, and for reasoning tasks where answers can agree for the wrong reasons, it can catch errors that agreement hides.