CAI: Caption-Sensitive Attention Intervention for Mitigating Object Hallucination in Large Vision-Language Models

Qiming Li, Zekai Ye, Xiaocheng Feng, Weihong Zhong, Libo Qin, Ruihan Chen, Baohang Li, Kui Jiang, Yaowei Wang, Ting Liu, Bing Qin · DOI

Abstract

Object hallucination remains a significant hurdle for Large Vision-Language Models (LVLMs), where models often prioritize linguistic priors over visual evidence. We introduce Caption-sensitive Attention Intervention (CAI), a training-free, plug-and-play approach to mitigate this issue. CAI is based on the observation that LVLMs exhibit stronger visual grounding during general captioning tasks than during specific visual question answering. By identifying "caption-sensitive" attention heads and applying a precomputed shift vector during inference, CAI restores visual focus. Experimental results on benchmarks like POPE and MME demonstrate that CAI effectively reduces hallucinations while maintaining the model's original inference speed.

Introduction

Despite the rapid advancement of Large Vision-Language Models (LVLMs) like LLaVA and Qwen-VL, object hallucination—the tendency to describe non-existent objects—persists as a critical failure mode. This phenomenon typically occurs when the model's internal language priors override the actual visual input. While existing solutions involve expensive retraining or computationally intensive contrastive decoding, there is a need for efficient, inference-time interventions that do not compromise performance.

The "Captioning Mindset" and Attention Shifts

A key discovery in this research is that LVLMs possess the inherent ability to ground their responses in visual data, but this ability is context-dependent. When prompted to "Describe this image in detail" (a captioning query), models exhibit robust visual attention. Conversely, specific queries (e.g., "Is there a helmet?") often trigger a shift in attention away from the relevant pixels, leading to hallucinations.

Comparison of visual attention patterns and hallucination occurrences across captioning and non-captioning queries, and the corrective effect of CAI.

Methodology: Caption-sensitive Attention Intervention (CAI)

CAI is a training-free method designed to force the model to maintain a "captioning-level" of visual focus during specific Q&A tasks. The process involves three main stages:

  1. Optimal Caption Query Search: Identifying the prompt that best activates the model's internal visual perception.
  2. Probe & Shift Computation: Comparing attention maps between captioning and non-captioning tasks to identify "caption-sensitive" heads and calculate a mathematical "shift vector."
  3. Inference-Time Intervention: Steering the top-K most sensitive attention heads using these precomputed vectors during standard inference. This "nudges" the model to maintain high-quality visual grounding.

Analysis of Visual Attention

The researchers found that not all layers contribute equally to visual grounding. While early layers (0-1) show high absolute visual attention, the most significant differences in attention between captioning and non-captioning tasks—and thus the most effective targets for intervention—occur in the middle layers (typically layers 7 to 20).

Analysis of visual attention weight sums and change rates across model layers, highlighting the variance between captioning and non-captioning tasks.

Experimental Results

CAI was evaluated across several standard benchmarks, demonstrating consistent improvements in grounding without increasing latency:

  • Discriminative Benchmarks: On the POPE benchmark, CAI improved Accuracy and F1 scores by over 5% for LLaVA-1.5-7b. On the MME hallucination subset, scores increased by 64.3 points, showing a stronger grasp of object existence and count.
  • Generative Benchmarks: The CHAIR metric showed a 7.8% reduction in hallucination rates for long-form descriptions.
  • Efficiency: Unlike contrastive decoding methods which can significantly slow down generation, CAI maintains a 1.0x latency profile relative to the baseline, making it a truly "plug-and-play" solution for real-time applications.

Conclusion

CAI offers a computationally efficient pathway to reducing hallucinations in LVLMs by leveraging the model's existing visual processing capabilities. By intervening on specific attention heads, CAI ensures that the model "keeps looking" at the image, regardless of the prompt type. Future work will explore expanding this technique to more complex hallucination types, such as spatial relationships and actions.

Summary updated

BibTeX
@misc{li2025cai,
  author = {Qiming Li and Zekai Ye and Xiaocheng Feng and Weihong Zhong and Libo Qin and Ruihan Chen and Baohang Li and Kui Jiang and Yaowei Wang and Ting Liu and Bing Qin},
  title = {{CAI: Caption-Sensitive Attention Intervention for Mitigating Object Hallucination in Large Vision-Language Models}},
  year = {2025},
  eprint = {2506.23590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.23590},
}
Figure