X- MAV: Cross-Modal Attention Verification for Detecting and Correcting Visual Hallucinations in Vision-Language Models
Main Article Content
Abstract
Vision-Language Models (VLMs) are increasingly deployed to answer questions about complex visual documents such as financial reports, charts, and tables, yet they frequently produce confident but factually incorrect answers, a phenomenon known as hallucination. Existing hallucination-detection tech-niques for large language models operate almost exclusively on text and provide no mechanism for verifying whether a generated answer is grounded in the correct region of an input image. This paper presents X-MAV (Cross-Modal Attention Verification), a framework that inspects the internal text-to-visual cross-attention of a Vision-Language Model during autoregressive generation, maps attention weights onto spatial coordinates of the source image, and uses this mapping both to detect hallucinations and to intervene in real time. We implement X-MAV for Qwen2-VL, addressing model-specific challenges including its 2×2 spa-tial token merger and dynamic-resolution image encoding. The framework computes an attention centroid at every decoding step and measures its drift relative to an expected target region using complementary alignment metrics (entropy, peak concen-tration, top-k coverage, and Euclidean centroid drift). A three-tier intervention pipeline responds to detected misalignment: Tier 1 applies multiplicative attention steering to softly redirect focus toward the correct region, Tier 1.5 performs a dynamic image crop and re-encoding when steering repeatedly fails, and Tier 2 halts generation and emits a safety phrase when severe misalignment persists. We describe the design, implementation, and a proposed evaluation methodology using chart-question-answering benchmarks (ChartQA, DocVQA) with manually an-notated ground-truth attention regions. Preliminary qualitativeWe discuss how this tool can be extended into a measurable grounding benchmark and a closed-loop retrieval-augmented generation system for multimodal question answering.
Keywords: , , , , ,
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Masry, D. X. Long, J. Q. Tan, S. Joty, and E. Hoque, “ChartQA: A benchmark for question answering about charts with visual and logical reasoning,” in Findings of the ACL, 2022.
M. Mathew, D. Karatzas, and C. V. Jawahar, “DocVQA: A dataset for VQA on document images,” in Proc. IEEE/CVF WACV, 2021.
P. Wang, S. Bai, S. Tan, S. Wang, Z. Fan, J. Bai, K. Chen, X. Liu,
J. Wang, W. Ge, Y. Fan, K. Dang, M. Du, X. Ren, R. Men, D. Liu,
Zhou, J. Zhou, and J. Lin, “Qwen2-VL: Enhancing vision-language model’s perception,” arXiv, 2024.
Y. Li, Y. Du, K. Zhou, J. Wang, W. X. Zhao, and J.-R. Wen, “Evaluating object hallucination in large vision-language models,” in Proc. EMNLP, 2023.
S. Leng, H. Zhang, G. Chen, X. Li, S. Lu, C. Miao, and L. Bing, “Mit-igating object hallucinations in large vision-language models through visual contrastive decoding,” in Proc. CVPR, 2024.
P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Kuttler, M. Lewis, W. Yih, T. Rocktaschel, S. Riedel, and D. Kiela, “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in NeurIPS, 2020.
K. Clark, U. Khandelwal, O. Levy, and C. D. Manning, “What does BERT look at? An analysis of BERT’s attention,” in Proc. ACL Workshop BlackboxNLP, 2019.
S. Manakul, A. Liusie, and M. Gales, “SelfCheckGPT: Zero-resource black-box hallucination detection for generative large language models,” in Proc. EMNLP, 2023.
L. Chen, J. Li, X. Dong, P. Zhang, C. He, J. Wang, F. Zhao, and D. Lin, “InternVL: Scaling up vision foundation models and aligning for generic visual-linguistic tasks,” in Proc. CVPR, 2024.
H. Laurencon, L. Saulnier, L. Tronchon, S. Bekman, A. Singh, A. Lozhkov, T. Wang, S. Karamcheti, A. M. Rush, D. Kiela, M. Cord, and
V. Sanh, “OBELICS: An open web-scale filtered dataset of interleaved image-text documents,” in NeurIPS, 2023.
H. Liu et al., “A survey on hallucination in large vision-language models,” arXiv, 2024.
Vaswani et al., “Attention is all you need,” in NeurIPS, 2017.
Radford et al., “Learning transferable visual models from natural language supervision,” in ICML, 2021.
Z. Liu et al., “Swin Transformer: Hierarchical Vision Transformer,” in ICCV, 2021.
S. Jain and B. Wallace, “Attention is not explanation,” in NAACL, 2019.
H. Liu et al., “Visual Instruction Tuning (LLaVA),” in NeurIPS, 2023.
W. Dai et al., “InstructBLIP: Towards general-purpose vision-language models,” in NeurIPS, 2023.
Zhu et al., “MiniGPT-4: Enhancing vision-language understanding,” arXiv, 2023.
Chen et al., “Shikra: Unleashing MLLM as a referential dialogue agent,” arXiv, 2023.
Ye et al., “mPLUG-Owl: Modularization empowers large language models,” arXiv, 2023.
J. Wang et al., “Evaluation of object hallucination in VLM,” in EMNLP, 2023.
Y. Fu et al., “Mitigating hallucination in MLLM via hallucination-targeted DPO,” arXiv, 2024.
J. He et al., “Cracking the code of hallucination in LVLMs with vision-aware head divergence,” arXiv, 2024.
S. Liu et al., “OViP: Online vision-language preference learning for VLM hallucination,” arXiv, 2025.
Zhao et al., “Mitigating image captioning hallucinations in VLM,” in IEEE MIPR, 2025.
Chen et al., “GroundCount: Grounding VLMs for Counting Halluci-nations,” arXiv, 2026.
Q. Xu, “Reducing Hallucination via Stage-wise Preference Optimiza-tion,” arXiv, 2026.
S. Sarkar et al., “Mitigating Hallucinations in VLMs through Image-Guided Head Suppression,” in ACL, 2025.
Y. Xu et al., “Mitigating Object Hallucinations through Region-Aware Attention Recalibration,” arXiv, 2026.
Z. Qi et al., “Capturing gaze shifts for guidance: Cross-modal fusion enhancement,” arXiv, 2025.
Y. Chen et al., “Retrieval-augmented generation towards multimodal knowledge bases,” in SPIE, 2026.
M. Nasir, “Adaptive Vision–Language Transformer for Multimodal Diagnosis,” PMC, 2026.
Y. Qian, “Hierarchical multi-agent reinforcement learning for document QA,” PMC, 2026.
Yang, “Retrieve-then-compare mitigates visual hallucination,” OAE, 2025.
Li et al., “Quantifying Cross-Attention Interaction in Transformers,” arXiv, 2025.
Clark et al., “What does BERT look at?,” in ACL, 2019.
J. Vig, “A multiscale visualization of attention in the transformer,” in ACL, 2019.
S. Wiegreffe and Y. Pinter, “Attention is not not explanation,” in EMNLP, 2019.
Geva et al., “Transformer feed-forward layers are key-value memo-ries,” in EMNLP, 2021.
Y. Zhang et al., “Interpreting transformer attention for vision-language tasks,” in ICLR, 2024.
Y. Sun et al., “Alignment for hallucination mitigation in VLMs,” arXiv, 2024.
Huang et al., “Contrastive decoding for VLM hallucination,” arXiv, 2024.
S. Leng et al., “Mitigating hallucinations via logit refinement,” arXiv, 2024.
B. Li et al., “Otter: A multi-modal model with in-context instruction tuning,” arXiv, 2023.
P. Anderson et al., “Bottom-Up and Top-Down Attention,” in CVPR, 2018.
P. Gao et al., “LLaMA-Adapter: Efficient fine-tuning,” in ICML, 2023.
Awadalla et al., “OpenFlamingo,” arXiv, 2023.
H. Touvron et al., “Llama 2: Foundation models,” arXiv, 2023.
Liu et al., “MM-Vet: Evaluating VLMs,” in ICLR, 2023.
L. Chen et al., “HallusionBench: An analysis,” in CVPR, 2024.