Residual Decoding: Mitigating Hallucinations in Large Vision-Language Models via History-Aware Residual Guidance

Xinrong Chen, Xu Chu, Yingmin Qiu, Hengyuan Zhang, Jing Xiong, Shiyu Tang, Shuai Liu, Shaokang Yang, Cheng Yang, Hayden Kwok-Hay So, Ngai Wong

TL;DR

Residual Decoding (ResDec) is a training-free, plug-and-play decoding strategy designed to eliminate language-prior hallucinations in Large Vision-Language Models (LVLMs). By extracting and aggregating "hidden" correct answer signals from the logit distributions of preceding tokens, ResDec provides history-aware residual guidance that keeps the model strictly grounded in visual context with virtually zero computational overhead.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) excel at multimodal reasoning, but they suffer from a persistent flaw: Language-Prior Hallucination. As an LVLM generates a text response, the growing textual context can gradually wash out the visual input. The model begins prioritizing linguistic coherence, grammatical habits, and statistical pre-training biases over what is actually in the image, leading to highly fluent but factually incorrect descriptions.

Existing methods to combat this typically involve expensive instruction fine-tuning or contrastive decoding strategies. However, contrastive decoding often requires multiple forward passes per token step, doubling inference time and significantly increasing GPU memory overhead. The authors of this paper set out to find a lightweight, training-free decoding strategy that fixes hallucinations without destroying inference efficiency.

Methods

The authors introduce Residual Decoding (ResDec), which operates on a fascinating core discovery: the signals for the correct answer are already implicitly embedded in the logit distributions of preceding tokens before the model explicitly outputs them.

To capture this information, ResDec tracks the logit distributions of candidate tokens over a sliding historical window and calculates the Jensen-Shannon Divergence (JSD) between adjacent steps. Plotting this JSD over time reveals a distinct U-shaped curve, which the authors break down into three distinct phases:

  1. Pre-Semantic Clarity Phase (PSAP): A chaotic phase where the token distribution transitions from disorder toward convergence.
  2. Semantic Anchoring Phase (SAP): The bottom of the U-shape valley where JSD approaches zero. Here, the model's internal representation is highly stable and firmly anchored to core visual semantics.
  3. Expressive Divergence Phase (EDP): The distribution diverges again as the model shifts focus toward satisfying grammar rules and dialogue templates.
Figure 3. The trend of Jensen–Shannon Divergence (JSD) on 200 randomly sampled POPE-MSCOCO examples using Qwen2.5- VL-Instruct (7B). JSD exhibits a distinct U-shape over time, which we divide into three phases: PSAP, SAP, and EDP.

ResDec extracts the logits from the stable SAP and EDP phases, applies a confidence-weighted aggregation to form a "historical residual guidance stream," and fuses this stream back into the current decoding step using a balancing weight ($\alpha$). Finally, an adaptive constraint ($\beta$) truncates implausible tokens to ensure the final output remains clean and accurate.

Datasets

The authors rigorously evaluated ResDec across 11 popular benchmarks using three prominent base models (LLaVA-1.5, InstructBLIP, and Qwen2.5-VL):

  • Hallucination Benchmarks: POPE (Random, Popular, Adversarial subsets), CHAIR (for open-ended captioning), and HallusionBench.
  • Comprehensive Benchmarks: MME, MMBench, MMVP, ScienceQA, MMStar, MM-Vet, SEEDBench2 Plus, and LLaVA-Bench (In-the-Wild).

Key Insights and Ideas

  • The Logit "Time Machine": LVLMs often "know" the correct answer implicitly several tokens before they actually generate it. For instance, while generating a template phrase like "The answer is:", the logit for the correct choice (e.g., "D") is already highly ranked in the background. Hallucination happens when a language prior suddenly overrides this signal at the final moment.
  • The U-Shaped JSD Phenomenon: Measuring the divergence of token distributions over time provides a mathematically elegant way to pinpoint exactly when the model's internal reasoning is most stable and least corrupted by linguistic biases.
Figure 2. Accuracy of candidate answers at different time steps based on Qwen2.5-VL (7B) in MME and POPE. In both datasets, the candidate answers are binary Yes/No decisions.
  • Training-Free and Ultra-Efficient: Because ResDec simply reuses the historical logits naturally generated during standard autoregressive inference, it requires only a single forward pass. It achieves state-of-the-art hallucination mitigation while being only 1.02× slower than standard greedy decoding.

Key Results

  • Substantial Hallucination Drop: On the POPE benchmark, ResDec consistently outperformed standard decoding, yielding an average improvement of 7.84% in accuracy and 8.01% in F1 score across all three evaluated LVLMs, beating out complex SOTA baselines like OPERA and VCD.
  • Cleaner Image Captions: On the CHAIR metric, ResDec significantly reduced object-level hallucinations in open-ended generation tasks.
  • Enhanced General Performance: Rather than trading off general capabilities to fix hallucinations, ResDec actually improved performance on comprehensive reasoning benchmarks, showing notable gains on MME, ScienceQA, and MMVP.
Table 3. Experimental results on the eight comprehensive benchmarks with LLaVA-1.5, InstructBLIP and Qwen2.5-VL. The best perfor- mances in each setting are highlighted in bold.

Limitations and Future Work

While ResDec is highly effective, its performance relies on the empirical tuning of two hyperparameters: the logit fusion weight ($\alpha$) and the truncation threshold ($\beta$). If $\alpha$ is set too high, the historical signal can over-dominate and distort the final output, as it is meant to act as an auxiliary correction rather than a direct replacement for current token generation.

The authors suggest that future work will focus on making these hyperparameter constraints more adaptive and exploring deeper decoding-stage interventions to further solidify visual grounding in even larger model architectures.

Summary updated

BibTeX
@inproceedings{chen2026residual,
  author = {Xinrong Chen and Xu Chu and Yingmin Qiu and Hengyuan Zhang and Jing Xiong and Shiyu Tang and Shuai Liu and Shaokang Yang and Cheng Yang and Hayden Kwok-Hay So and Ngai Wong},
  title = {{Residual Decoding: Mitigating Hallucinations in Large Vision-Language Models via History-Aware Residual Guidance}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=HNLu7wKUCf},
}
Figure