Manuscript Offprint

arXiv:2609.02028

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 Shen

Abstract

Despite recent advances in large vision-language models (LVLMs), object hallucination remains a major barrier to their reliable deployment. Existing detection methods often characterize visual grounding using attention from individual layers, leaving its evolution across layers underexplored. We propose CADMP, a lightweight object hallucination detection framework that combines adjacent-layer cross-modal attention drift with prediction sensitivity to targeted visual masking. During decoding, CADMP quantifies distributional changes between consecutive cross-modal attention maps to capture abrupt transitions in visual grounding. It then selects the transition with the largest drift, locates the corresponding visually relevant regions, and measures the change in prediction probability after masking these regions. These two signals provide complementary evidence: attention drift characterizes the stability of internal visual grounding, while probability variation verifies whether a prediction truly depends on the identified visual evidence. A lightweight detector integrates both signals to identify hallucinated predictions. Experiments on multiple benchmarks and representative open-source LVLMs demonstrate that CADMP achieves consistently competitive detection performance. Ablation studies further confirm the complementary contributions of adjacent-layer drift modeling and mask-based grounding verification.

Introduction

Large Vision-Language Models (LVLMs) have made substantial progress in multimodal understanding and generation (Li et al. 2023a; Zhu et al. 2023), enabling applications in areas such as autonomous driving (Wei et al. 2024) and robotics (Kim et al. 2024). Nevertheless, their reliability is still limited by object hallucination (OH), where a model mentions objects that are absent from or unsupported by the input image (Bai et al. 2024). Such errors compromise the factual consistency of model output and may pose serious risks in safety-critical applications.

Existing hallucination assessment techniques obtain evidence from either external resources or internal model signals. External evaluation frameworks use reference annotations, auxiliary evaluators, or additional reasoning pipelines to assess image-text consistency (Fu et al. 2023; Wang et al.

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Figure

Figure 1: Overview of CADMP, detecting OHs by modeling cross-modal attention drifts and verifying visual grounding through drifted attention-guided masks.

2023; Jing et al. 2024). Although effective for offline evaluation, they may require additional annotations, models, or computational resources. Instead, internal detection methods characterize predictions using signals available within the LVLM, including predictive uncertainty (Malinin and Gales 2021), hidden representations (Park and Li 2025; Jiang et al. 2025b), and cross-modal attention (Zhang et al. 2025). Among these signals, cross-modal attention is particularly relevant to visual grounding because it characterizes the interactions between output and visual tokens.

Prior attention-based studies have used cross-modal attention patterns for hallucination detection (Zhang et al. 2025), highlighted the importance of intermediate layers in visual processing (Jiang et al. 2025b), and modeled inter-layer changes in aggregated image-token attention for hallucination mitigation (Xu et al. 2025). However, changes in the full attention distribution on visual tokens between consecutive layers remain underexplored for hallucination detection. Our analysis shows that grounded and hallucinated predic-tions exhibit distinct layer-wise drift profiles, motivating us to treat adjacent-layer attention drift as a diagnostic signal. Based on this observation, we propose CADMP, which combines attention drift modeling with mask-based probability verification. As illustrated in Figure 1, CADMP computes the KL divergence between consecutive cross-modal attention distributions to obtain a layer-wise drift profile. It then uses the attention map immediately before the maximum-drift transition to identify and mask relevant visual regions, and measures the resulting change in the probability of the same token. The drift profile captures the evolution of visual grounding, while the probability change estimates the prediction's dependence on visual evidence.

CADMP feeds the layer-wise drift profile, the prediction probabilities before and after masking, and their difference into a small MLP detector, while keeping the target LVLM frozen and training only the detector. Experiments on three representative open-source LVLMs across multiple hallucination benchmarks demonstrate strong and consistent detection performance. The main contributions of this work are summarized as follows:

  • We reveal distinct adjacent-layer attention drift patterns between grounded and hallucinated predictions, establishing attention drift as an effective detection signal.

  • We propose CADMP, which integrates layer-wise attention drift with mask-based probability verification using a lightweight detector without retraining the LVLM.

  • Experiments on three LVLMs and four benchmarks show that CADMP achieves the best average ACC–AUROC in eight of nine primary settings, with ablations validating both components.

References (62)

  • Y.; Schön, T. B.; and Pielawski, N. 2024 (opens arXiv in a new tab)
  • Dash: Detection and assessment of systematic hallucinations of vlms
  • Qwen Technical Report
  • Qwen3-VL Technical Report
  • Qwen2.5-VL Technical Report
  • Hallucination of Multimodal Large Language Models: A Survey (opens arXiv in a new tab)
  • Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks
  • Language modeling is compression (opens arXiv in a new tab)
  • The pascal visual object classes (voc) challenge
  • Multimodal hallucination control by visual information grounding
  • MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Models
  • PAS: Prelim Attention Score for Detecting Object Hallucinations in Large Vision-Language Models
  • Ciem: Contrastive instruction evaluation method for better instruction tuning (opens arXiv in a new tab)
  • Interpreting and Editing Vision-Language Representations to Mitigate Hallucinations
  • Devils in middle layers of large vision-language
  • Faithscore: Fine-grained evaluations of hallucinations in large vision-language models
  • OpenVLA: An Open-Source Vision-Language-Action Model
  • Llava-med: Training a large language-and-vision assistant for biomedicine in one day
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Microsoft coco: Common objects in context
  • Mitigating hallucination in large multi-modal models via robust instruction tuning
  • Improved baselines with visual instruction tuning
  • Visual instruction tuning
  • A survey on hallucination in large vision-language models (opens arXiv in a new tab)
  • Deepseek-vl: towards real-world vision-language understanding (opens arXiv in a new tab)
  • Uncertainty Estimation in Autoregressive Structured Prediction
  • GLSim: Detecting Object Hallucinations in LVLMs via Global-Local Similarity
  • Object hallucination in image captioning
  • LLaMA: Open and Efficient Foundation Language Models
  • Mllm can see? dynamic correction decoding for hallucination mitigation (opens arXiv in a new tab)
  • Amber: An llm-free multi-dimensional benchmark for mlms hallucination evaluation (opens arXiv in a new tab)
  • Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
  • Editable scene simulation for autonomous driving via collaborative llm-agents
  • Mitigating Hallucinations in Multimodal Large Language Models via Image Token Attention-Guided Decoding
  • Ferret: Refer and ground anything anywhere at any granularity (opens arXiv in a new tab)
  • Dhcp: Detecting hallucinations by cross-modal attention pattern in large vision-language models
  • Analyzing and Mitigating Object Hallucination in Large Vision-Language Models
  • MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models
  • As shown in Table 8, filling the masked regions with the default gray value of 128 achieves the best performance, with an AUROC of 87.97% and an ACC of 82.88%
  • To evaluate this design choice, we conduct an ablation study comparing three strategies: using the first token, using the last token and taking the average across all tokens
  • Compressing the sequence into statistical summaries decreases the AUROC by 7.39 percentage points, while using only the maximum KL value leads to a substantial reduction of 15.29 points
  • We select 5,000 images from COCO-val2014 and independently generate captions using each evaluated LVLM. Caption generation is performed with greedy decoding, and the maximum number of newly generated tokens is set to 128
  • We therefore perform an image-level split using a ratio of 70%/10%/20% for training, validation, and testing, respectively
  • It formulates the evaluation as a binary question-answering task by asking whether a particular object is present in an input image
  • For each image, three positive questions and three negative questions are constructed, where positive questions query objects present in the image and negative questions query absent objects
  • It provides image-level and object-level annotations for 20 common object categories, covering animals, vehicles, household objects, and people
  • Specifically, for each image, we create one positive sample by querying an object category that is present according to the ground-truth annotations, together with three negative samples based on categories absent from the image
  • It contains 1,004 images and provides both generative and discriminative evaluation settings
  • Object-existence hallucination occurs when a model claims that an object is present even though it does not appear in the image
  • A larger NLL score indicates a higher likelihood of hallucination
  • The IC score is defined as the maximum probability assigned to the target object token across all decoder layers and visual positions:
  • For an object token o, the Visual Attention Ratio at layer $\ell$ and attention head h is defined as
  • SVAR then averages the VAR scores across all attention heads and sums them over Layers 5–18:
  • It measures whether a predicted object is semantically compatible with the overall image context and whether relevant visual regions provide sufficient evidence for its presence
  • It uses the attention assigned by generated tokens to visual tokens across decoder layers as internal evidence to distinguish visually grounded predictions from hallucinated ones
  • For SVAR, we aggregate the attention assigned by the generated object token to all visual tokens over Layers 5-18 and normalize the resulting score by the number of attention heads
  • All experiments are conducted using Python 3.10 and PyTorch 2.6.0 on a single NVIDIA A6000 GPU with 48GB of memory
  • We extract the cross-modal attention from the target output token to all visual tokens and reshape it into an $H \times W$ attention map according to the spatial layout of the visual feature map
  • The input consists of the layer-wise KL-divergence drift sequence and three probability-based features: the target-token probability under the original image, the probability under the masked image, and their difference
  • For threshold-based evaluation, predictions are obtained from the probability of the grounded class, with the decision threshold selected on the validation set by maximizing the F1 score
  • The beach is bustling with activity, with people walking around, some of them carrying umbrellas
  • The monkey appears to be a macaque, identifiable by its fur coloration, facial features, and overall body structure