Abstract
Despite the significant success of Large Vision-Language models (LVLMs), these models still suffer from hallucinations when describing images, often generating answers that include non-existent objects. Research indicates that these models tend to over-focus on irrelevant image tokens that do not contain critical information for the task at hand. To address this, we propose Instruction-Aligned Visual Attention (IAVA), a learning-free approach that identifies irrelevant tokens by comparing changes in attention weights under two different instructions. By applying contrastive decoding, IAVA dynamically adjusts the logits generated from original image tokens and irrelevant image tokens, reducing the model's over-attention to irrelevant information. Experimental results demonstrate that IAVA consistently outperforms existing decoding techniques on benchmarks such as MME, POPE, and TextVQA.
Introduction
Large Vision-Language Models (LVLMs) like LLaVA and InstructBLIP have demonstrated remarkable capabilities in multimodal understanding. However, a persistent challenge remains: object hallucination. This phenomenon occurs when a model describes objects that are absent from the image or misidentifies specific details.
Recent investigations suggest that the root of this problem lies in "abnormal attention." LVLMs often fixate on a small subset of image tokens that receive disproportionately high attention scores but lack relevance to the user's query. While previous attempts to mitigate this have treated all high-attention tokens as potentially problematic, such approaches risk suppressing critical information. The core challenge is distinguishing between "important" high-attention tokens and "irrelevant" high-attention distractors.
The IAVA Approach
Instruction-Aligned Visual Attention (IAVA) is a two-stage, learning-free decoding strategy designed to identify and mitigate the influence of distractor tokens during the inference phase.
1. Irrelevant Token Selection
IAVA identifies distractors by analyzing how the model's attention shifts when presented with different instructions. The model performs two separate attention calculations:
- General Instruction: "Describe the content of the image." This reveals the model's natural visual priors—the regions it gravitates toward without a specific goal.
- Specific Instruction: The actual user query (e.g., "What is the leftmost object?").
Tokens are classified as "irrelevant" if they maintain high attention in the general task but experience a significant drop in attention when the specific query is introduced. This shift suggests these tokens are "prior-knowledge" distractors rather than features relevant to the specific question.
2. Contrastive Decoding
Once irrelevant tokens are identified, IAVA employs a contrastive decoding mechanism. The authors construct a "negative" version of the image ($V^*$) where only the irrelevant tokens are visible, and all other tokens are masked.
During text generation, the model calculates two sets of logits: one from the original image and one from the distractor-only image. The final output is determined by amplifying the original logits while subtracting the distractor-influenced logits. This process effectively penalizes the model for generating tokens that would be predicted based solely on irrelevant visual features.
Experimental Evaluation
The researchers evaluated IAVA across several diverse benchmarks using LLaVA-v1.5 and InstructBLIP as base models:
- MME: A comprehensive benchmark evaluating 14 sub-tasks across perception and cognition.
- POPE (Polling-based Object Probing Evaluation): A targeted measure of object hallucination using binary questions in Random, Popular, and Adversarial settings.
- TextVQA: A benchmark focused on reading and reasoning about text within images.
Key Results
IAVA consistently outperformed standard greedy decoding and existing contrastive methods like VCD and M3ID.
- MME Performance: IAVA achieved the highest overall scores, providing a performance boost of approximately 6.9% for LLaVA-v1.5 and 6.6% for InstructBLIP over baseline models.
- Hallucination Mitigation: On the POPE "Adversarial" setting, IAVA reached an F1 score of 79.80 with InstructBLIP, a significant improvement over the base model's 75.46.
- Textual Reasoning: In TextVQA, accuracy improved by 6.9% for LLaVA and 5.4% for InstructBLIP, demonstrating the method's utility even in text-heavy tasks.
Discussion and Insights
The primary innovation of IAVA is using the delta (change) in attention between instructions as a diagnostic tool. By treating the model's internal attention mechanism as a filter, IAVA targets visual distractors specifically, rather than relying on linguistic priors or random noise.
Ablation studies highlighted the importance of the "Goldilocks zone" in token masking. Selecting the optimal number of tokens to mask is critical: masking too few fails to remove distractors, while masking too many removes essential visual evidence, leading to performance degradation.
Limitations and Future Work
While effective, IAVA introduces additional computational overhead because it requires two forward passes to generate attention maps before decoding. Furthermore, the method relies on hyperparameters (such as the number of masked tokens and standard deviation thresholds) that may require tuning for different architectures. Future research could explore integrating these attention-alignment insights directly into the training or fine-tuning stages to develop models that are inherently more resistant to distractors.
Summary updated