When a language model gives a spread of answers to a question, the spread can mean two different things. The question may be ambiguous, with several valid answers. That is aleatoric uncertainty: it lives in the data and more training will not remove it. Or the model may simply not know the answer, and its samples are guesses. That is epistemic uncertainty: it comes from the model's missing knowledge and would shrink with more data or context. The right response differs: ask for clarification in the first case, defer to a human or retrieve evidence in the second. Plain sampling entropy cannot tell the two apart. This note proposes a test borrowed from spin-glass physics. There, the question of whether a system with many competing stable states survives a weak external field is how physicists distinguish a genuine multi-state phase from a fragile one. We push the model toward a chosen answer with a continuously tunable "field". We then measure how strong that push must be before the model's answers collapse onto the target, and we do this separately for targets the model already considers and for plausible distractors it does not.
The core claim is that the ratio of these two collapse thresholds separates the cases. A model that is guessing (epistemic) should flip cheaply toward any plausible answer, including distractors. A model facing real ambiguity (aleatoric) should flip cheaply toward its own alternative interpretations but resist distractors that fall outside them. A model that knows the answer should resist both. The measurement needs no labels, no ensemble of retrained models and no internal noise. It is a single continuous family of guided decodings, and it contains an existing test, the in-context "hint" test, as one point on its curve.
What the physics contributes, and where the analogy stops
A spin glass is a disordered magnet whose conflicting interactions leave it with a huge number of stable configurations ("pure states") instead of the two of an ordinary magnet. The open question in the field-induced transition literature is whether this multi-state phase survives an external field up to a finite threshold, which in mean-field models is the de Almeida–Thouless line (Mode-coupling approximations, glass theory and disordered systems). The alternative, predicted by the droplet picture for short-range three-dimensional systems, is that any nonzero field destroys it. Three ideas from this work shape the proposal. The first is that stability under a symmetry-breaking push is a sharper diagnostic than the spread measured at zero push. The second is the main observable: the overlap between independent "replicas", meaning how often two independent runs land in the same state, recorded as a full distribution and not as a mean. The third is the "silent majority" result of The three-dimensional Ising spin glass in an external magnetic field: the role of the silent majority. On the Janus computer, sample-averaged finite-size scaling showed no transition in a field, because a paramagnetic minority of disorder samples dominated the average. Conditioning on quantiles of the replica overlap revealed critical behavior in most samples. We expect question-level field responses to be similarly heavy-tailed, so dataset averages could hide the effect.
The analogy is a lens, not a derivation. Our field favors one specific answer, not a uniform direction. Physically it is closer to a field that rewards overlap with a chosen reference state than to a magnetic field. We also make no claim that a language model has a thermodynamic phase transition. Spin-glass model of in-context learning maps a linear-attention transformer onto a spin-glass Hamiltonian and finds multiple competing minima at low task diversity. It does not study fields or uncertainty, and its authors only speculate about hallucinations. Replica symmetry breaking and clustering phase transitions in undersampled restricted Boltzmann machines shows that learning tree-structured data requires broken replica symmetry, but it also has no uncertainty or field analysis. Both papers motivate treating the answer space as having several stable states. Neither supplies our method.
Core Claim
Let $\ell(y \mid x)$ be the model's next-token logits for question $x$, and let $c$ be a candidate answer. Let $\ell(y \mid x, c)$ be the logits when a short hint naming $c$ is added to the prompt. The field of strength $h$ is the guided decoding
$$\ell_h(y) = \ell(y \mid x) + h\,[\ell(y \mid x, c) - \ell(y \mid x)],$$
so $h=0$ is ordinary sampling and $h=1$ is exactly the hint condition used by the in-context learning test of Distinguishing the Knowable from the Unknowable with Language Models. Let $m_c(h)$ be the fraction of $K$ temperature samples whose answer falls in the same semantic cluster as $c$. The collapse threshold $h^*_c$ is the smallest $h$ with $m_c(h) \ge 1/2$. For each question we compute $h^*_{\text{own}}$, the median over candidates drawn from the model's own zero-field clusters, and $h^*_{\text{dis}}$, the same quantity for type-matched distractors produced by a separate model and absent from the zero-field samples. The proposed decomposition has two parts. Aleatoric evidence is the number and balance of stable zero-field clusters together with a large asymmetry $A = \log h^*_{\text{dis}} - \log h^*_{\text{own}}$. Epistemic evidence is a small $h^*_{\text{dis}}$, meaning the model is easily pushed onto answers it never proposed.
What is new relative to the hint test is the continuous sweep, the threshold statistic in place of an entropy drop at one strength, and the contrast between on-support and off-support field directions. The hint test reports that entropy drops mainly under epistemic uncertainty and reaches roughly 0.7 AUROC unsupervised, with inconsistency across model families. We read that inconsistency as a possible symptom of measuring one arbitrary field strength.
The hypothesis can fail in a specific way. Models may cling to their own guesses as stubbornly as to true interpretations, so that $A$ is large for epistemic cases too. The experiments below are designed to detect this.
Research Program
The first stage is a controlled testbed where the truth is known. We train small transformers on synthetic question–answer data. Some queries have several correct answers by construction (injected ambiguity). Some facts appear rarely or never (injected ignorance), and the rest are well covered. Varying the ambiguity rate and fact frequency independently lets us check whether $A$ tracks ambiguity and $h^*_{\text{dis}}$ tracks fact frequency, and whether each is insensitive to the other factor. This testbed also sets the sweep resolution and the number of samples $K$ needed before threshold estimates stabilize.
The second stage runs the sweep on pretrained models. We use Llama-3.2-3B-Instruct, which allows direct comparison with the noise-injection results on GSM8K, and Phi-4, which allows comparison with the spectral method on AmbigInst. Semantic clusters are formed by bidirectional entailment between sampled answers. Replica overlap is recorded as the full distribution of pairwise same-cluster indicators and embedding similarities, not only its mean. Following the silent-majority analysis, every aggregate result is also reported conditioned on quantile bins of zero-field overlap. If the threshold structure exists only in part of the questions, the arithmetic average will not hide it.
The third stage is a double-dissociation intervention, which is the real test that the two scores measure different things. AmbigQA supplies disambiguated rewrites of ambiguous questions (AmbigQA: Answering Ambiguous Open-domain Questions). Giving the rewrite should shrink the aleatoric score and leave the epistemic score roughly unchanged. Adding the gold evidence passage to a question the model got wrong should raise $h^*_{\text{dis}}$ sharply and leave cluster structure unchanged. Rethinking Aleatoric and Epistemic Uncertainty argues that entropy-based splits often fail exactly this kind of check, because they do not correspond to reducible versus irreducible loss. The intervention tests the decomposition by its defining property, reducibility, and not by correlation with labels.
Baselines
The naive reference point is semantic sampling entropy at temperature, computed on the same $K$ samples at $h=0$. Enhancing Hallucination Detection through Noise Injection reports that standard sampling reaches an AUROC of 76.53 for hallucination detection on GSM8K with Llama-3.2-3B-Instruct. Our score must clear this.
The strongest epistemic competitor is Noise-Enhanced Sampling from the same paper, which injects uniform noise into intermediate layers and reaches an AUROC of 82.70 on GSM8K (82.84 when combined with few-shot order shuffling). It is the strongest because it is unsupervised, cheap, and targets the same epistemic quantity. We rerun it on identical questions and models with the same total number of forward passes as our sweep, and we tune its noise scale on the same validation split we use for sweep resolution. Beating it means exceeding its AUROC on GSM8K and on TriviaQA/NQ correctness at matched compute. For TriviaQA and NQ, no reported result was found on Lacuna, so both methods are run by us.
The strongest aleatoric competitor is Spectral Uncertainty from Fine-Grained Uncertainty Decomposition in Large Language Models: A Spectral Approach. It uses a clarification model and kernel-based entropy over answer embeddings, and reports AUROC 86.37% on AmbigInst with Phi-4 and 85.95% with LLaMA 4 for ambiguity detection. For AmbigQA ambiguity detection under this method, no reported result was found on Lacuna. We compare on AmbigInst using its reported number, and we rerun it on AmbigQA with the sampling budget matched to ours. Beating it on AmbigInst means exceeding 86.37% with Phi-4. Matching it with no clarification model would still be a useful result, since it removes an auxiliary model call.
The in-context learning test is the closest prior method and serves as the key ablation. It corresponds to our statistic evaluated only at $h=1$ with only on-support candidates, scored by entropy drop. Two intermediate ablations isolate which ingredient matters: the sweep with on-support candidates only, and a two-point test (strengths 0 and 1) with both candidate types. Supervised linear probes from Distinguishing the Knowable from the Unknowable with Language Models reach AUROC above 0.9 in domain and above 0.8 cross-domain. We treat them as a supervised upper reference, not a competitor, because they need labeled knowable/unknowable data.
Why not just…?
Why not just use temperature sampling entropy? It measures how spread out the answers are, not why. The noise-injection paper finds that temperature sampling mostly reflects token-level spread and leaves hallucinations and correct answers overlapping, with 76.53 versus 82.70 AUROC on GSM8K. Our zero-field baseline reproduces this comparison. The double-dissociation test would show directly whether entropy responds to disambiguation and to gold evidence indiscriminately.
Why not just run the hint test at a few more strengths, or with distractors? This is the real threat. If a two-point test with distractor hints matches the full sweep, the physics adds framing and nothing else, and we will report it that way. The ablation ladder separates the two contributions. Moving from on-support-only to both candidate types measures the value of the distractor contrast. Moving from two points to the full sweep measures the value of the threshold. We expect the distractor contrast to carry most of the gain. The sweep should matter mainly for model-family robustness, where the hint test is reported to be inconsistent. We will test this by comparing variance across Llama-family and Phi-family models.
Why not just inject internal noise? Noise injection is a strong epistemic detector, but it has no handle on ambiguity: a question with two valid answers stays two-clustered under noise just as it does without it. The sweep gives both scores from one procedure. If noise injection beats $h^*_{\text{dis}}$ on hallucination detection at matched compute, the right conclusion is to use it for the epistemic half and keep our asymmetry score only for the aleatoric half. Our evaluation reports both halves separately so this outcome would be visible.
Why not just train a probe? Probes work well where labels exist, but they need labeled knowable/unknowable data per domain and degrade across domains (from above 0.9 to above 0.8 AUROC). Our method needs no labels. If it approaches probe performance in the cross-domain setting (Wikipedia to code), that gap is where it earns its place.
Proposed Experiments
On the synthetic testbed, the decisive check is whether $A$ correlates with injected ambiguity and not with fact frequency, while $h^*_{\text{dis}}$ shows the reverse pattern. The evaluation sets are AmbigQA and AmbigInst (ambiguous versus unambiguous), post-cutoff Wikipedia entities from the knowable/unknowable benchmark (epistemic), and TriviaQA/NQ questions answered consistently and correctly (known). On these we report three-way classification and pairwise AUROC for aleatoric versus epistemic, which is the comparison entropy cannot make. GSM8K and TriviaQA/NQ hallucination detection give direct comparison with noise injection, and AmbigInst gives direct comparison with Spectral Uncertainty. Every aggregate is also shown per quantile of zero-field overlap.
The result that would most change our view is the double-dissociation experiment on AmbigQA rewrites and gold passages. Clean dissociation, with the aleatoric score falling only under disambiguation and the epistemic score falling only under evidence, supports the decomposition itself and not merely a better detector. The hypothesis fails if $A$ is also large for guessed answers, meaning models resist distractors whether or not they know the answer. It also fails if the full sweep adds nothing over the two-point distractor ablation. The first outcome falsifies the proposed mechanism. The second reduces the contribution to a simpler distractor-hint test, which we would then report as the main finding.
References
- Mode-coupling approximations, glass theory and disordered systems
- The three-dimensional Ising spin glass in an external magnetic field: the role of the silent majority
- Spin-glass model of in-context learning
- Replica symmetry breaking and clustering phase transitions in undersampled restricted Boltzmann machines
- Distinguishing the Knowable from the Unknowable with Language Models
- AmbigQA: Answering Ambiguous Open-domain Questions
- Rethinking Aleatoric and Epistemic Uncertainty
- Enhancing Hallucination Detection through Noise Injection
- Fine-grained Uncertainty Decomposition in Large Language Models: A Spectral Approach