When Self-Correction Leaves the Map: Activation Density as a Gate for LLM Refinement

Large language models are often asked to fix their own mistakes. They write a draft, critique it, and rewrite it. This helps for a round or two. After that, the gains flatten, compute keeps growing with every pass, and correct statements start to get edited away. We propose a single explanation for all three effects, borrowed from generative autoencoders. A decoder produces garbage when it is fed latent codes from regions it never saw during training. These "prior holes" are low-density gaps between the regions real data occupies. Our hypothesis is that critique-and-revise prompting pushes an LLM's internal activations into the same kind of sparsely populated region. There, the model's internal signals about whether it is telling the truth stop being reliable. If this holds, the remedy is cheap: estimate how typical each span's activations are, and refine only where the model's own hallucination signals can still be trusted.

Concretely, we fit a density model on intermediate-layer activations from ordinary single-pass generation. Each generated span gets a density score. Spans with high density that a lightweight hallucination detector flags are revised internally. Spans with low density are sent to retrieval or the model abstains, because there the detector is guessing. Refinement stops once revisions start lowering density. The aim is a better tradeoff between factual precision and compute on long-form factual generation than either blind multi-round self-refinement or confidence-only gating.

Core Claim

The claim is empirical and can be falsified. A hallucination detector reads the model's hidden states, the vectors each layer passes to the next. We claim its reliability depends strongly on how typical those hidden states are. We also claim that rounds of self-critique steadily make them less typical. This reframes a contradiction in the literature. Do Language Models Know When They're Hallucinating References? shows that models carry internal consistency signals separating real from fabricated citations. HaluEval shows ChatGPT detecting hallucinations near chance, for example 58.53% accuracy on summarization. Our reading is that both are right. The signals exist where activations are well populated and vanish where they are not.

The closest existing systems would read the same activations but use them differently. Actionable Hallucination Detection trains a LoRA (low-rank adapter) "latent critic" that turns hidden-state uncertainty into text critiques for tool calls. Its authors concede it is powerless when the base model does not register a grounding gap. Our density score is meant to flag exactly those cases. Multi-pass Decoding for Grammatical Error Correction trains a classifier to decide when another pass will help. That classifier predicts improvement directly. It does not ask whether the predictor itself is operating in-distribution.

Research Program

The density idea comes from autoencoders. Ex-post density estimation fits a flexible density model to the codes real data actually produces, called the aggregate posterior, rather than trusting a fixed prior. We apply it to LLM activations. For a chosen intermediate layer, we collect the hidden states of generated tokens on a held-out reference set of single-pass factual generations. We then fit an estimator $\hat p$. Each generated span $u$ receives a score

$$s(u) = \frac{1}{|u|}\sum_{t \in u} \log \hat p(h_t),$$

where $h_t$ is the hidden state at token $t$ and $|u|$ is the number of tokens in the span.

The default estimator is deliberately simple: a Gaussian fitted per layer, which is the same as using Mahalanobis distance. We move to a normalizing flow, the estimator family used in the ex-post autoencoder work, only if the Gaussian measurably fails the calibration test described below. Whatever the experiments support is what we adopt. The claim concerns density gating, not any particular estimator.

Phase one is diagnostic and needs no new method. On FActScore biographies we generate drafts with Llama-3-8B and Mistral-7B, chosen to match TruthFlow. We label atomic facts using the FActScore retrieve-then-verify pipeline, whose evaluator error is reported as under 2% relative to human experts. We then train a span-level linear hallucination probe. This follows the finding in Actionable Hallucination Detection that grounding uncertainty is linearly separable in intermediate-to-late residual streams. We measure probe AUROC and calibration error within each decile of $s(u)$.

Next we run standard draft-critique-revise loops for up to five rounds and track how the distribution of $s(u)$ shifts per round. For each round we also record whether facts that were correct in an earlier round get dropped or turned false. This is the over-refinement failure that MCQG-SRefine documents beyond rounds 2–3.

Phase two builds the gated refiner. Each span falls into one of three cases. A span is high-density and the probe flags it as unsupported: the model revises that span only, conditioned on a short structured hint in the style of the ⟨error type, position, hint⟩ tuples of REFINER. A span is low-density: the system retrieves evidence for that span alone, or the model abstains on the claim. A span is high-density and unflagged: it is frozen. A refinement round is accepted only if the mean density of the revised spans does not fall below a threshold tuned on the development set. This gives an intrinsic stopping rule rather than a fixed number of rounds.

Revision is span-local, so compute grows with the number of flagged spans rather than with $k$ full regenerations. This borrows the motivation of iRe2f, which refines with shortcut updates instead of full re-encoding, and of the router in HIRE, which skips edits on tokens that are not at risk.

Baselines

Naive reference points. The first is single-pass generation with no refinement. On FActScore, the file's only reported numbers are for ChatGPT, at 58.3%. We will measure our 8B models directly, since no reported result was found on Lacuna for Llama-3-8B or Mistral-7B on FActScore. The second is fixed one-round self-refinement, using the same model as critic. It captures most of the front-loaded gain that iterative-refinement work attributes to the first step. Both run on the identical biography prompt set, use the same decoding settings, and are given the same evaluator.

Strongest refinement competitor. Multi-round self-refinement with an early-stopping probe, adapted from Multi-pass Decoding for Grammatical Error Correction. That paper reports 75.36 F0.5 on BEA-2019 while retaining 83% of single-pass speed, but only in grammatical error correction. We retrain its stopping classifier on our FActScore development split and give it the same tuning budget as our density threshold.

Strongest detection-and-gating competitor. A confidence-only gate: the span-level probe adapted from Actionable Hallucination Detection, which reports 0.966 AUROC on Qwen-4B tool calls. That figure comes from a different task and is not directly comparable. In this gate, flagged spans are always revised and every other span is frozen.

Strongest single-pass intervention. TruthFlow, which reports raising Llama-3-8B from 52.32% to 64.79% "True" on TruthfulQA. We include it on TruthfulQA, where that number anchors the comparison, and on FActScore.

External grounding. Always-on retrieval for every span. The only grounded reference figure in the file is PerplexityAI's 71.5% FActScore.

Ablations. These isolate the key ingredient. The first removes the density gate, so the probe gate is used alone. The second removes the stopping rule, so a fixed number of rounds is used. The third randomizes the density score while keeping its routing rates.

Every system is plotted as FActScore against generated tokens and against wall-clock time on the same hardware. Our method beats a baseline only if its curve lies strictly above that baseline's curve across matched compute. Matching or beating TruthFlow's TruthfulQA gain without harming MMLU would also count. TruthFlow reports 65.57% MMLU against 65.77% for the base model.

Why not just…?

Why not just use the probe's own confidence to decide what to refine? This is the most serious threat, and the confidence-only ablation exists to settle it. If probe AUROC stays flat across density deciles, density adds nothing and the gate collapses to the latent-critic approach. We would then report that negative result. The proposal survives only if calibration degrades sharply in low-density bins, and if routing those bins to retrieval or abstention improves precision at matched compute.

Why not just stop after one round? Single-round refinement is cheap and captures most of the gain. It does not fix the probe's blindness on atypical spans, though, and it still regenerates the whole output. Our comparison asks whether span-local, density-gated revision reaches higher precision for the same token budget. Separately, it asks whether the density stopping rule ever correctly allows a useful second round.

Why not just retrieve for everything? Retrieval clearly helps: 71.5% against 58.3% for ChatGPT in FActScore. But it costs latency on every span, and In-Context Sharpness shows models can still fail to use retrieved context. If always-on retrieval matches our curve at equal cost, the density gate has failed as an efficiency device. The cost axis of the comparison will show this directly.

Why not just use a large external judge or sample-based uncertainty? Actionable Hallucination Detection reports roughly 884 ms per external judge call and over 12 seconds for semantic entropy. We include one external-judge run as an upper reference on quality, not as a cost-matched competitor.

Decisive Checks

Three results would confirm the hypothesis. The first is a monotone drop in probe AUROC from high-density to low-density deciles on FActScore and on the HaluEval QA split. The second is a downward shift in span density across self-refinement rounds that predicts which facts get lost to over-refinement better than round index alone. The third is a correlation between low density and FActScore's rare-entity strata. FActScore reports roughly 80% precision for very frequent entities and much lower for rare ones, so if density tracks this, it is detecting knowledge the model lacks.

The project fails cleanly if the first check fails. That would mean the prior-hole analogy does not transfer to LLM activations, and we would report it as such. If all three checks hold and the gated refiner sits above the probe-only and one-round curves at matched compute, the prior-hole view becomes a practical account of why self-correction saturates and where it should not be attempted.