Manuscript Offprint

arXiv:2609.15745

Look Before You Leap: Factual Decoding with Internal Attribution Signals

Hayeong Ryu, JungMin Yun, Byeonggeuk Lim, Sunhee Jo, YoungBin Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Hallucination remains a critical challenge in large language models (LLMs), where early factual errors compound through autoregressive generation in a snowballing effect that neither post-hoc correction nor weight-level intervention can effectively preempt. We propose DESCAPE (DEcoding Signal Control Against Path Error-snowballing), a decoding framework that leverages internal model signals to suppress hallucination-prone trajectories at inference time. Through sliding-window MLP ablation, we identify a factual-salient layer span within LLMs whose derived signal is selectively elevated for factual tokens and exhibits anomalous spikes at hallucination-prone steps. We train a lightweight probe to approximate this signal from a single forward pass and integrate it into candidate scoring to penalize high-risk continuations while rewarding factually grounded ones. Experiments across five factuality benchmarks on three LLMs demonstrate that DESCAPE achieves factuality improvements over decoding-time baselines in multiple settings, while incurring only 1.10×1.10\times latency overhead in our efficiency evaluation. Our code is available at https://github.com/hayeonggg/DESCAPE.

1 Introduction

Despite remarkable advances in large language models (LLMs), hallucination remains a critical and unresolved challenge (Kadavath et al., 2022; Gekhman et al., 2024; Jiang et al., 2024; Huang et al., 2025; Alansari and Luqman, 2026). Retrieval-Augmented Generation (RAG) (Lewis et al., 2020), Supervised Fine-Tuning (SFT) (Wei et al., 2022), and Reinforcement Learning from Human Feedback (RLHF) (Ouyang et al., 2022) have been widely adopted to mitigate this issue, yet each introduces fundamental limitations: RAG is structurally dependent on retriever quality and incurs search latency, while SFT and RLHF demand substantial computational cost and risk catastrophic

Q. Which country in Northern Europe has the best scores on PISA since 2015?

GT.

Estonia

Northern,

Europe, PISA ...

Finland!

A. Finland has consistently ranked among the top countries ...

Factual Attribution Signal ( δt\delta_{t})

Figure

Figure 1: Illustration of our preliminary analysis motivating the proposed method. The Factual Attribution Signal δt\delta_{t}, extracted from the factual-salient layer span, selectively responds to factual content tokens (blue) throughout the generated sequence. Simultaneously, when the model generates a hallucinated token (Finland, red) with misplaced confidence, δt\delta_{t} exhibits an anomalous spike—triggering a risk signal that can prevent hallucination snowballing before it propagates.

forgetting. More critically, the autoregressive generation process allows early factual errors to compound and propagate, a phenomenon known as hallucination snowballing (Zhang et al., 2024b), which neither post-hoc corrections nor weight-level interventions can effectively preempt (Farquhar et al., 2024). This underscores the need for decoding-time intervention: a lightweight mechanism that suppresses factual errors during generation, without modifying model parameters or relying on external modules.

Decoding-time factuality research has evolved along three paradigms. Intrinsic Steering methods (Chuang et al., 2024; Zhang et al., 2024a, 2025a) steer internal representations toward truthful outputs, but offer limited recourse once a hallucinated trajectory is initiated. Extrinsic Verification methods (Li et al., 2023b; Chang et al., 2025; Yang et al., 2025) rescore candidates via auxiliary signals at the cost of inference overhead and distribution shift.

Self-Verification methods (Guo et al., 2025; Cheng et al., 2025) leverage self-feedback without external verifiers, yet remain fundamentally bounded by the generator's own distributional space. This raises a fundamental question: whether an independent factual signal — internal to the model yet decoupled from its final output distribution — can exist.

Recent work reports that LLMs exhibit a late sharpening phenomenon (Csordás et al., 2025; Yu et al., 2025), where upper layers sharply narrow probability distributions, suggesting that erroneous trajectories may be internally set before a hallucinated token is emitted (Chuang et al., 2024; Zhang et al., 2025a). Yet, this observation paradoxically implies that intermediate layers, prior to this sharpening, harbor independent factual signals, making preemptive decoding-time intervention structurally plausible.

Motivated by recent causal analyses of factual recall (Meng et al., 2022), we analyze layer-wise MLP activations during text generation and present two key findings. (i) We isolate a contiguous factual-salient layer span selectively engaged during factual generation: the derived factual attribution signal is consistently elevated for knowledge-intensive tokens while remaining negligible for functional tokens. (ii) Hallucinated tokens trigger abnormally frequent spikes in this signal relative to factual ones, establishing it as a reliable signal for identifying hallucination-prone continuations. As shown in Figure 1, this signal selectively tracks factual content throughout generation and exhibits anomalous spikes at hallucination-prone steps, providing a real-time basis for preemptive intervention.

In this work, we propose DEcoding Signal Control Against Path Error-snowballing (DESCAPE), a decoding framework that suppresses hallucination-prone trajectories at inference time. We train a lightweight probe to approximate the factual attribution signal from a single forward pass and integrate it into candidate scoring to penalize high-risk continuations while favoring factually grounded ones. Experiments across five factuality benchmarks show that DESCAPE improves factuality in several settings with minimal inference overhead. Our contributions are threefold:

  1. We identify a factual-salient layer span within LLMs whose derived attribution signal is selectively elevated for factual tokens, and further demonstrate that it exhibits anomalous spikes at hallucination-prone generation steps.

  2. We propose DESCAPE, a preventive trajectory control framework that leverages this signal as a unified internal basis for decoding-time intervention, approximating it via a lightweight probe and integrating it into candidate scoring.

  3. We validate DESCAPE across five factuality benchmarks, demonstrating improvements in several settings with minimal latency overhead.

References (27)

  • Gaussian Error Linear Units (GELUs)
  • Fine-grained self-consistency for free-form language generation
  • We utilize TriviaQA, a knowledge-intensive QA dataset, retaining only samples where the model's greedy-decoded response partially matches the gold answer or its aliases
  • At inference time, DESCAPE does not access gold answers or known/unknown labels, but scores candidate tokens using the probe-estimated attribution signal
  • Early layers (0–7) are known to primarily process the contextual refinement of token embeddings, making them more sensitive to general linguistic structures than to factual knowledge retrieval (Meng et al., 2022; Geva et al., 2023)
  • As shown in Table 7, attention modules also exhibit a non-negligible factual signal, but MLP ablation yields the strongest factual attribution and factual-function separation
  • Consistent with Section 3.2, we restrict this analysis to correct predictions, sampling up to 100 correct outputs per model
  • At each decoding step $t$, this allows us to efficiently compute $\delta_t^{\text{real}}(v; w^*)$ for the top- $K$ ( $K = 10$) candidate tokens without incurring additional forward passes
  • The token embedding matrix is extracted from the frozen LLM and remains fixed throughout training
  • The answer is correct
  • Spearman's Rank Correlation $(\rho)$
  • Best denotes the highest-performing $(\alpha, \tau)$ configuration for each model–benchmark pair, while Global denotes the fixed setting (0.5, 3.0) used in the main experiments
  • We examine whether the hyperparameter setting used in the main experiments transfers across models and benchmarks
  • >Method</td><td colspan=
  • Best results are shown in bold, and second-best results are underlined
  • This result indicates that model-specific threshold scaling can be calibrated from unlabeled prompts without requiring held-out factual labels
  • >Llama-3.1</td><td>NQ</td><td>97.91</td></tr><tr><td>TriviaQA</td><td>99.04</td></tr><tr><td rowspan=
  • All values are percentages
  • Short-answer QA presents a distinct evaluation setting in which standard EM and F1 are particularly sensitive to response format
  • This is consistent with prior observations that standard EM-based evaluation can underestimate the factual accuracy of LLMs when responses contain correct information embedded within longer outputs (Kamalloo et al., 2023)
  • For Mistral-v0.3 and Qwen2.5, where output lengths are more comparable across methods, the SoftEM gains are relatively modest, which aligns with the hypothesis that output length is a contributing factor
  • Triggered-step $\rho$ denotes correlation computed only on triggered steps where factual spikes occur
  • Probes are trained on 1k and 3k samples; T*I% and latency (ms/tok) are reported
  • Based on these results, we use 1k samples for Llama-3.1 and 3k samples for Mistral-v0.3 and Qwen2.5 in our main experiments
  • >Overall performance</td></tr><tr><td>Cont-EM ↑</td><td>34.67</td><td>35.67</td></tr><tr><td>SF Coverage ↑</td><td>50.33</td><td>49.17</td></tr><tr><td>Refusal ↓</td><td>0.33</td><td>1.67</td></tr><tr><td colspan=
  • Cont-EM, SF Coverage, and Refusal measure overall performance, while Answer Preservation and Answer+SF Preservation are computed on Beam-correct samples and measure retention of the correct answer and supporting facts, respectively
  • Charlie and the Chocolate Factory