NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Carrying Doubt Forward: A Learned Recurrent Monitor for Hallucination Snowballing in Long-Form Generation

When a language model writes a long answer, one invented fact can quietly poison everything after it. The model treats its own earlier sentences as true, so later sentences that build on a fabrication can look confident to any detector that checks each token on its own. Existing single-pass detectors mostly judge each token or each answer in isolation. The one well-known exception, RAUQ, carries doubt from token to token with a fixed hand-written formula. We propose a small learned recurrent network, a GRU (a gated recurrent unit: a network that keeps a running memory and learns when to keep or discard it). It reads cheap per-token signals from a frozen language model as the text is generated. Its job is to learn when doubt raised by an earlier claim should persist into later claims and when it should be dropped.

The practical payoff is cost. Sampling-based rejection methods such as SHARS raise factual precision substantially on long biographies, but they pay for multiple samples at every sentence. A monitor that runs alongside decoding at near-zero cost could decide when rollback and resampling are worth paying for. The central scientific question is narrow and testable: does a learned memory of earlier doubt detect errors that come after an earlier error better than a static probe, a max-pooled score, or a fixed-decay recurrence? If it does not, the recurrent ingredient is unnecessary, and we will say so.

Core Claim

In long-form generation, hallucination risk behaves like a state, not a sequence of independent events. We make three claims. First, a gated recurrent monitor trained on atomic-claim labels will outperform per-token static detectors specifically on claims that follow an earlier false claim, and on claims late in the generation, where FActScore reports that factuality decays (FActScore). Second, the advantage comes from learned gating: the monitor learns to keep doubt when later text depends on a suspect claim and to release it after a topic shift or a rollback. A fixed decay rate cannot adjust in either direction. Third, using this monitor to trigger segment rollback only when needed will approach SHARS-level factual precision at a fraction of its resampling cost.

Recurrence costs little at inference here. The usual objection to recurrent networks, that they cannot be parallelized, does not apply, because decoding is already sequential. The monitor adds one small cell update per generated token. Training uses teacher-forced passes over stored generations, so it is also cheap.

Relation to Prior Work

Three papers motivate and bound this proposal.

EigenTrack feeds sliding-window spectral statistics of hidden-state covariance into RNN, GRU and LSTM classifiers. It reports hallucination AUROC of 0.89 on LLaMa-7B, evaluated on HaluEval, WebQuestions and Eurlex. It is the closest existing work: it already shows a recurrent head over internal signals helps. However, it works on short-answer benchmarks, over windowed covariance summaries, and it never intervenes in generation. We change three things. We target error propagation across claims in long outputs. We supervise at the atomic-claim level. And we use the monitor's state to drive rollback.

RAUQ names the "house of cards" problem and supplies both our strongest single-pass feature and our main rival. It observes that certain attention heads "look away" from the previous token when the model starts to hallucinate. It then propagates doubt from token to token with a handcrafted recursion, and does so with under 1% latency overhead. We reuse its attention signal as an input feature. We test whether replacing its fixed recursion with learned gates changes detection of downstream errors.

SHARS supplies the intervention and the quality target. It checks each sentence with semantic uncertainty, rejects uncertain sentences, and resamples conditioned only on verified context. It reports roughly 20 to 26% higher factual precision than greedy decoding on FActScore. We keep its rollback procedure but gate it with the monitor rather than checking every segment by sampling.

Two lines of work constrain the design. HARP finds that most hidden-state dimensions carry semantic content irrelevant to truthfulness. It reaches 92.8% AUROC on TriviaQA with Qwen by projecting onto a small subspace, using a static MLP per token. For our inputs, this argues for a low-dimensional projection rather than raw hidden states. What do Geometric Hallucination Detection Metrics Actually Measure? shows internal geometric scores falling to 0.57 to 0.60 AUROC when domains are mixed. That warns us to test transfer across topics rather than assume it.

ICR Probe tracks how hidden states change across layers for a single token, reaching AUROCs of roughly 0.76 to 0.84. It models the layer axis, whereas we model the decoding-step axis. We can use its per-token score as another input.

LSTM-MAS is recurrent only as a metaphor: prompted agents act as gates and pass text between each other. It shows the snowballing problem matters, but it costs one extra model call per chunk. That is the latency we aim to avoid.

Research Program

The monitor and its inputs. The monitor is a single-layer GRU with a hidden size of 64 to 128. At each decoded token it reads a compact feature vector built from the frozen model:

  • the token's predictive entropy;
  • RAUQ's look-away attention score from the selected heads, averaged over the middle layers;
  • the ICR score;
  • a projection of one middle-layer hidden state onto a small learned subspace (about 32 dimensions), following HARP.

The GRU outputs a risk score at each token. We pool the scores over each atomic claim's token span to get a claim-level prediction.

Training labels. We generate biographies with LLaMA-3.1-8B and Qwen2.5-7B, using the FActScore entity prompts. We label atomic facts with FActScore's automated estimator, which reports under 2% error against human judgments. We then align each atomic fact to its token span in the output.

Controlling the recurrence. A separate training variant injects a known-false claim into the prefix by teacher forcing and trains on the model's continuations. This gives the monitor examples where errors cascade under experimenter control.

Intervention. At each sentence boundary, if pooled risk crosses a threshold, we roll back that sentence and resample under the SHARS procedure, abstaining after $N$ failures. After a rollback, we restore the monitor's state from before the rejected sentence. We sweep the threshold to trace a curve of factual precision against extra decoding cost.

Baselines

The do-nothing reference is greedy decoding with no monitor. For detection, the reference is the model's own token entropy averaged over each claim, together with maximum sequence probability. For context, FActScore reports ChatGPT at 58.3% factual precision on biographies. We will measure our own base models' greedy FActScore rather than borrow that figure.

The strongest single-pass competitor is RAUQ, run with its published head selection and recursion on the same frozen models, the same generations, and the same claim-span pooling. We know of no reported result on Lacuna for RAUQ claim-level AUROC on FActScore biographies, so we will measure it ourselves. The monitor beats RAUQ if it improves claim-level AUROC overall and shows a clearly larger gain on claims that follow an earlier false claim. We will set a minimum meaningful margin of 3 AUROC points on that subset before running the experiment.

The strongest static learned probe is a HARP-style subspace MLP applied per token and pooled by max. It gets exactly the same input features and the same tuning budget as the monitor.

The strongest intervention baseline is full SHARS, which checks every sentence by sampling. It has the reported +20 to 26% FActScore factual-precision gain over greedy decoding. SHARS will run with its own sampling budget on the same prompts. Beating it means matching its factual precision within about 2 points while using at most one third of its extra generated tokens. Alternatively, it means exceeding its precision at equal cost.

Ablations isolating recurrence and gating. Four variants share identical features, data and hyperparameter search budget:

  • a GRU with the reset and update gates frozen, so it becomes a fixed exponential moving average with a tuned decay;
  • RAUQ's handcrafted recursion applied to our richer features;
  • a small causal transformer over the same feature sequence;
  • the GRU without the rollback state-restore step.

Why not just…?

Why not just use SHARS or semantic entropy everywhere? On quality it may simply win, and we treat it as the ceiling, not a straw man. The case against it is cost. RAUQ's authors report that sampling-based detection adds 400 to 800% latency, and SHARS pays that at every sentence. Our claim is only about the precision-versus-cost curve. If gated rollback cannot reach most of SHARS's gain at well below its cost, the intervention half of this proposal fails.

Why not just take a static probe and max-pool over the answer? HARP and ICR Probe show static per-token probes are strong. A max over tokens already "remembers" the worst moment. But a max score cannot raise risk on a later claim that looks confident only because it builds on a fabrication, which is exactly RAUQ's house-of-cards case. The stratified comparison below directly tests whether that case is common enough to matter. If static max-pooling matches the GRU on after-error claims, we drop the recurrence claim.

Why not just use a fixed decay, like RAUQ's recursion or an exponential moving average? This is the most serious threat. A tuned decay rate might capture most of the benefit, just as A-MAC's fixed recency decay works adequately in agent memory (Adaptive Memory Admission Control). The frozen-gate ablation settles it. Learned gating is justified only if the GRU beats the tuned moving average on after-error claims and adapts after topic shifts, which we measure as faster risk release at entity or section changes. If it does not, we will report the simpler recurrence as the method.

Why not just retrieve evidence? Retrieval addresses missing knowledge, not the model's habit of trusting its own earlier outputs. FActScore reports PerplexityAI, which grounds its answers in search results, at 71.5%, so plenty of error remains even with retrieval. Retrieval is complementary, and the monitor could decide when to trigger it. We leave that to later work.

Proposed Experiments and Decisive Checks

Main detection test. Report claim-level AUROC on FActScore biographies for both base models. Stratify claims three ways:

  • whether any earlier claim in the same generation was false;
  • the claim's position in the output;
  • the entity's frequency, since FActScore shows accuracy drops sharply for rare entities.

The decisive pattern is a monitor advantage concentrated in the after-error and late-position groups. A uniform small gain would not support the stateful claim.

Injection test. Insert a fabricated fact into the prefix and compare risk on the model's continuations against a matched prefix with the true fact. A stateful monitor should raise risk on the downstream claims that depend on the fabrication. Static probes should raise it much less.

Transfer test. Train on biographies and evaluate on LongFact and FactualBio. No reported numbers for these were found on Lacuna, so we will measure the baselines directly. This checks for the collapse under domain shift documented for geometric metrics.

Short-form sanity check. Evaluate on HaluEval and TriviaQA against EigenTrack's reported 0.89 AUROC and HARP's 92.8%. The monitor need not win here, but it should not lose badly.

Cost curve. Plot FActScore factual precision against extra generated tokens for greedy decoding, full SHARS, monitor-gated rollback, and RAUQ-gated rollback. All methods get the same abstention rule.

Scope limit. The monitor requires white-box access to attention and hidden states, so it does not apply to closed APIs. We state this as a scope limit rather than work around it.