Not All Tokens and Heads Are Equally Important: Dual-Level Attention Intervention for Hallucination Mitigation

Lexiang Tang, Xianwei Zhuang, Bang Yang, Zhiyuan Hu, Hongxiang Li, Lu Ma, Jinghan Ru, Yuexian Zou · DOI

Abstract

Large Vision-Language Models (LVLMs) frequently suffer from visual hallucinations, where generated text inaccurately describes image content. We introduce VisFlow, a training-free, inference-time framework that mitigates these hallucinations by intervening in the model's attention mechanism. By identifying and addressing over-reliance on language priors and positional biases in visual attention, VisFlow significantly improves grounding accuracy with minimal computational overhead.

Introduction

While models like LLaVA-1.5 demonstrate impressive multimodal capabilities, they remain prone to visual hallucination (VH). These errors typically stem from two sources: insufficient attention to critical visual features and an over-dependence on internal linguistic priors. VisFlow addresses these by applying a dual-level intervention at both the token and attention-head levels.

Overview of visual hallucination causes and the VisFlow architecture.

Identifying the Root Causes of Hallucination

The authors identify two primary mechanisms driving VH:

  1. Positional Bias from RoPE: The Rotary Positional Embedding (RoPE) often causes models to disproportionately attend to visual tokens physically closer to the text prompt, regardless of their semantic relevance.
  2. Linguistic Over-reliance: Certain attention heads become "distracted" by system prompts or previous text tokens, leading the model to ignore visual input in favor of generic language patterns.

The VisFlow Framework

VisFlow operates during the decoding process without requiring additional training. It employs two primary strategies:

Token-level Attention Intervention (TAI)

TAI identifies salient tokens—those essential for grounding—and visual sinks, which absorb attention without providing semantic value. By amplifying attention to salient regions and suppressing sinks, VisFlow forces the model to focus on informative visual data. It also incorporates a correction factor to neutralize the positional bias introduced by RoPE.

Token-level dynamics across model layers.

Head-level Attention Intervention (HAI)

During the prefill stage, VisFlow classifies attention heads as visual-sensitive, system-dominant, or text-dominant. HAI then downscales the influence of "distracted" (system or text-dominant) heads during generation, ensuring the model remains anchored to the visual context rather than drifting into linguistic loops.

Experimental Evaluation

VisFlow was evaluated on LLaVA-1.5, MiniGPT-4, and mPLUG-Owl2 across several benchmarks:

  • POPE: On the Adversarial set, VisFlow improved LLaVA-1.5's F1 score from 73.54 to 84.35, outperforming methods like VCD and OPERA.
  • CHAIR: Sentence-level hallucinations ($CHAIR_s$) dropped from 20.0 to 15.0.
  • Efficiency: Unlike contrastive decoding methods, VisFlow is a single-pass intervention. It maintains a throughput of 28.6 Tokens Per Second (TPS), significantly faster than competing methods like VCD (18.8 TPS).

Discussion and Limitations

While VisFlow is highly effective for models with direct visual token mapping (like LLaVA), its performance is slightly lower on models using heavy visual compression (e.g., Q-former in MiniGPT-4), where distinguishing salient tokens is more challenging. Future work may involve automated, dynamic identification of critical heads and tokens.

Conclusion

VisFlow provides a robust, efficient solution for mitigating visual hallucinations in LVLMs. By treating attention as a redistributable resource—enhancing salient visual cues while muting linguistic distractions—it achieves state-of-the-art performance in grounding accuracy without the need for costly retraining.

Summary updated

BibTeX
@inproceedings{tang2026not,
  author = {Lexiang Tang and Xianwei Zhuang and Bang Yang and Zhiyuan Hu and Hongxiang Li and Lu Ma and Jinghan Ru and Yuexian Zou},
  title = {{Not All Tokens and Heads Are Equally Important: Dual-Level Attention Intervention for Hallucination Mitigation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i11.37904},
}
Figure