Mitigating Hallucinations in Multi-modal Large Language Models via Image Token Attention-Guided Decoding

Xinhao Xu, Hui Chen, Mengyao Lyu, Sicheng Zhao, Yizhe Xiong, Zijia Lin, Jungong Han, Guiguang Ding

Abstract

Multi-modal Large Language Models (MLLMs) frequently generate hallucinations—textual descriptions of objects not present in the input image. This paper introduces iTaD (image Token attention-guided Decoding), a training-free, plug-and-play inference strategy. iTaD identifies shifts in internal attention away from image tokens and employs contrastive decoding to ground the model in visual evidence. Experimental results across multiple benchmarks demonstrate that iTaD significantly reduces hallucinations with minimal computational overhead compared to existing methods.

Introduction

While MLLMs like LLaVA or MiniGPT-4 demonstrate impressive capabilities, they often suffer from "hallucinations," generating grammatically correct but factually untethered text. For instance, a model might describe a "cell phone" in a car interior simply due to language priors in its training data, even if the image contains no such object.

The authors identify a critical gap: models hallucinate precisely when their internal attention shifts away from image tokens and toward their own previously generated text. Analysis of internal attention weights reveals that segments containing hallucinations correspond to significant drops in attention weights toward image tokens.

Correlation between hallucinated segments and decreased attention to image tokens.

Methodology: Image Token Attention-Guided Decoding (iTaD)

The proposed iTaD method operates during the decoding stage without requiring additional training or fine-tuning. It leverages the internal attention mechanisms of the MLLM to steer generation.

1. Image Token Attention Vector (iTaV)

The method defines an iTaV that captures the attention distribution across all image tokens for every layer at each decoding step. This vector serves as a proxy for how much the model is "looking" at the visual input.

2. Dynamic Layer Selection

Rather than using a fixed early layer for contrastive decoding, iTaD calculates the Jensen-Shannon Divergence (JSD) between the attention vectors of intermediate layers and the final layer. It dynamically selects an intermediate layer ($M$) that exhibits the greatest divergence from the final layer ($N$) in terms of image focus.

3. Inter-layer Contrastive Decoding

iTaD performs contrastive decoding by subtracting the "less-visually-informed" log-probabilities of layer $M$ from the "more-visually-informed" final layer $N$. This process amplifies tokens that the model identifies through deeper visual processing, effectively filtering out hallucinations driven by language-only priors.

The iTaD framework illustrating dynamic layer selection and contrastive decoding.

Evaluation and Results

The researchers evaluated iTaD across four major MLLMs (LLaVA-1.5, InstructBLIP, MiniGPT-4, and mPLUG-Owl) using benchmarks including CHAIR (MSCOCO), POPE, MME, and GPT-4V assisted evaluation on Visual Genome data.

Key Performance Metrics

  • Hallucination Reduction: iTaD consistently outperformed baselines like Greedy Search and DoLa. On the CHAIR benchmark, it achieved the lowest sentence-level hallucination scores across all tested models.
  • Adversarial Robustness: In the POPE adversarial split, iTaD showed significant F1 score improvements, such as a jump from 70.3 to 75.5 on MiniGPT-4.
  • Efficiency: Unlike competing methods like OPERA, which can increase latency by 5-6x, iTaD adds a negligible overhead of approximately 1.08x to 1.18x. For LLaVA-1.5, iTaD requires ~60ms per token compared to OPERA's ~283ms.

Discussion and Conclusion

The core insight of this work is that hallucination is fundamentally an attention failure. By monitoring the model's internal "gaze" and contrasting layers based on their visual grounding, iTaD provides a robust and efficient solution for real-world deployment.

While the method is highly effective, the authors note that future work could explore "spatial" attention—determining if hallucinations occur because the model is looking at the wrong part of an image—and extending the approach to other modalities like video or audio.

Summary updated

BibTeX
@inproceedings{xu2025mitigating,
  author = {Xinhao Xu and Hui Chen and Mengyao Lyu and Sicheng Zhao and Yizhe Xiong and Zijia Lin and Jungong Han and Guiguang Ding},
  title = {{Mitigating Hallucinations in Multi-modal Large Language Models via Image Token Attention-Guided Decoding}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.75},
}
Figure