Paying More Attention to Image: A Training-Free Method for Alleviating Hallucination in LVLMs
Shi Liu, Kecheng Zheng, Wei Chen
TL;DR
This paper addresses hallucinations in large vision-language models by identifying a phenomenon called text inertia, where generated text remains biased by language priors even when visual input is available. It proposes a training-free method, Pay Attention to Image (PAI), that enhances image-token influence via self-attention modulation and counters language priors through an image-centric logit refinement expressed as $p_{\rm{model}} = \gamma p_{\rm{model}}(\mathbf{y}|\mathbf{X}_V,\mathbf{X}_I,\mathbf{X}_H) - (\gamma-1) p_{\rm{model}}(\mathbf{y}|\mathbf{X}_I,\mathbf{X}_H)$. The approach operates during inference by amplifying image attention in selected decoder layers (guided by a layer-prior) and subtracting text-only logits, all without additional training. Extensive experiments on multiple LVLMs (LLAVA, Shikra, MiniGPT4) across CHAIR, POPE, MMHal-Bench, and GPT-4V evaluations show that PAI substantially reduces hallucinations while preserving efficiency, with ablations highlighting the roles of hyperparameters $\alpha$, $\gamma$, and the layer-prior. Limitations include dependence on LLaMA-family decoders and potential gains from integrating these ideas into training; nonetheless, PAI offers a practical, training-free path to more faithful multimodal generation.
Abstract
Existing Large Vision-Language Models (LVLMs) primarily align image features of vision encoder with Large Language Models (LLMs) to leverage their superior text generation capabilities. However, the scale disparity between vision encoder and language model may led to LLMs assuming a predominant role in multi-modal comprehension. This imbalance in LVLMs may result in the instances of hallucinatory. Concretely, LVLMs may generate consistent descriptions with or without visual input, indicating that certain outputs are influenced solely by context text. We refer to this phenomenon as "text inertia." To counteract this issue, we introduce a training-free algorithm to find an equilibrium point between image comprehension and language inference. Specifically, we adaptively involve adjusting and amplifying the attention weights assigned to image tokens, thereby granting greater prominence to visual elements. Meanwhile, we subtract the logits of multi-modal inputs from ones of pure text input, which can help LVLMs be not biased towards LLMs. By enhancing images tokens and reducing the stubborn output of LLM, we can let LVLM pay more attention to images, towards alleviating text inertia and reducing the hallucination in LVLMs. Our extensive experiments shows that this method substantially reduces the frequency of hallucinatory outputs in various LVLMs in terms of different metrics. Project page is available at https://lalbj.github.io/projects/PAI/.
