Detecting Object Hallucinations in Large Vision-Language Models via Cross-Modal Attention Drifts and Mask-Based Verification

Xuanbing Wen, Boxu Chen, Le Yang, Jiakai Wang, Zhengyu Zhao, Chenhao Lin, Chao ShenarXiv 2026

TL;DR

Large Vision-Language Models (LVLMs) frequently hallucinate objects that do not exist in the input image. This paper introduces CADMP, a lightweight framework that detects these hallucinations by tracking how visual attention abruptly shifts ("drifts") between internal layers and verifying if the model's predictions genuinely depend on those visual regions via targeted masking.

What Problem Does This Paper Address?

Despite the impressive capabilities of Large Vision-Language Models (LVLMs), object hallucination (OH)—where a model describes objects that are completely absent from the input image—remains a major barrier to their deployment in safety-critical applications.

Existing internal detection methods typically look at uncertainty or cross-modal attention maps isolated within individual layers. However, they ignore a crucial dimension: how visual grounding evolves across the layers during decoding. The authors address this gap by analyzing the layer-to-layer dynamics of cross-modal attention, providing a more reliable indicator of whether a model is truly "looking" at an object or just guessing based on language priors.

Methods

CADMP (Cross-Modal Attention Drifts and Mask-Based Verification) operates in three distinct phases without altering or retraining the underlying LVLM:

  1. Attention Drift Modeling: During token generation, the framework extracts the cross-modal attention weights from the generated token to the visual tokens across all decoder layers. It computes the Kullback-Leibler (KL) divergence between consecutive layers to create a layer-wise "drift profile."
  2. Drift-Guided Adaptive Masking: The framework identifies the layer transition experiencing the sharpest attention drift. It takes the attention map from the layer immediately before this disruption, uses it to locate the most highly attended image regions (top 30%), and masks them out with a neutral gray color. The masked image is fed back into the LVLM to measure the drop in prediction probability ($\Delta P$).
  3. Hallucination Detection: A lightweight Multi-Layer Perceptron (MLP) detector ingests the full KL-divergence drift profile, the original prediction probability, the masked probability, and the probability difference ($\Delta P$) to output a final hallucination score.
Figure 2: Overview of the proposed framework. (a) Extract KL divergence: Compute adjacent-layer KL divergences and the original target-token probability. (b) Visual Masking: Use cross-modal attention to identify key image regions and generate masked images. (c) Hallucination Detector: Feed the extracted features into a MLP model for hallucination detection.

Datasets

The authors evaluated CADMP across three representative open-source LVLMs (LLaVA-1.5-7B, Qwen2.5-VL-7B, and InternVL-2.5-4B) using four distinct benchmarks:

  • POPE: A standard binary question-answering benchmark evaluating object-existence hallucinations.
  • Pascal VOC: An object-detection dataset adapted into a binary verification task to test object presence/absence.
  • COCO-Caption: An open-ended generation setting where model-generated captions are evaluated using the CHAIR (Caption Hallucination Assessment with Image Relevance) metric.
  • AMBER: A comprehensive benchmark covering fine-grained hallucination types, including object, attribute, and relationship errors.

Key Insights and Ideas

  • Hallucinations Leave a Footprint in Middle Layers: Grounded predictions tend to maintain stable, consistent cross-layer attention patterns. In contrast, hallucinated predictions exhibit volatile, abrupt attention redistributions in the intermediate layers (specifically layers 8–16).
Figure 3: Average cross-modal attention drift across layers for grounded and hallucinated samples.
  • The "Before-Drift" Map is Most Informative: The attention distribution right before the maximum drift represents the model's visual allocation before its internal logic breaks down or shifts to language priors. Masking based on this specific layer yields the most predictive counterfactual signals.
  • Complementary Signals: Internal attention drift characterizes the stability of the model's internal visual grounding, while mask-based probability variation verifies the causal dependency of the prediction on actual visual evidence. Combined, they form a robust defense against false positives.

Key Results

CADMP achieved state-of-the-art performance, outperforming six competitive baselines (including GLSim, DHCP, and SVAR) in 16 out of 18 model-dataset-metric combinations:

  • Substantial AUROC Gains: On the challenging COCO-Caption dataset, CADMP improved AUROC over the strongest baseline by 5.6% for LLaVA-1.5-7B, 8.4% for Qwen2.5-VL-7B, and 4.6% for InternVL-2.5-4B.
  • High Accuracy: On Pascal VOC, the framework reached up to 97.5% classification accuracy and 94.9% AUROC.
  • Strong Generalization: In cross-dataset tests (e.g., training on POPE and testing on Pascal VOC), CADMP consistently outperformed alternative methods, proving it captures intrinsic hallucination cues rather than dataset-specific artifacts.
  • Flexible Efficiency: While the full framework requires a second forward pass for the masked image, an alternative variant using only the attention drift features ("w/o prob.") still beats multiple baselines while introducing negligible latency overhead.
Figure 4: (a) Efficiency analysis on InternVL-2.5-4B using the POPE dataset; (b) Different masking-layer selection strategies; (c) Different masking-region selection strategies.

Limitations and Future Work

  • Computational Overhead: The mask-verification phase requires an extra forward pass through the frozen LVLM backbone, which increases inference latency during detection.
  • Token-Level Granularity: For multi-token object names, the framework currently relies solely on the first subtoken to extract attention and probability metrics, which might lose descriptive nuances for complex or compound words.
  • Future Directions: The authors suggest extending this diagnostic framework into an active mitigation strategy, using the drift signals to dynamically guide decoding or rectify hallucinations on the fly rather than just flagging them post-hoc.

Summary updated

BibTeX
@misc{wen2026detecting,
  author = {Xuanbing Wen and Boxu Chen and Le Yang and Jiakai Wang and Zhengyu Zhao and Chenhao Lin and Chao Shen},
  title = {{Detecting Object Hallucinations in Large Vision-Language Models via Cross-Modal Attention Drifts and Mask-Based Verification}},
  year = {2026},
  eprint = {2609.02028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.02028},
}
Figure