MaskCD: Mitigating LVLM Hallucinations by Image Head Masked Contrastive Decoding

Jingyuan Deng, Yujiu Yang
10/3/2025
cs.CVcs.AIcs.CL

Official code: Deng-Jingyuan/MaskCD (1 star, Apache-2.0, last commit 2025-11-06).

Abstract

Large vision-language models (LVLMs) have shown remarkable performance in visual-language understanding for downstream multimodal tasks. While their capabilities are improving, problems emerge simultaneously. Among those problems, the hallucinations have attracted much attention, which stands for the phenomenon where LVLMs generate contradictory content to their input visual and text contents. Many approaches have been proposed to deal with this issue, such as contrastive decoding and attention manipulation. However, contrastive decoding methods struggle in constructing appropriate contrastive samples, and attention manipulation methods are highly sensitive, lacking stability. In this work, we propose image head Masked Contrastive Decoding (MaskCD). Our approach utilizes the "image heads" in LVLMs, masking them to construct contrastive samples for contrastive decoding. We evaluated MaskCD on LLaVA-1.5-7b and Qwen-VL-7b, using various benchmarks such as CHAIR, POPE, AMBER and MME. The results demonstrate that MaskCD effectively alleviates the phenomenon of hallucinations and retains the general capabilities of LVLMs. Corresponding resources could be found at: https://github.com/Deng-Jingyuan/MaskCD .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official code for MaskCD (EMNLP 2025 findings).

10C, C++Sep 13, 202511 months agoApache-2.0

Similar Papers

Cite this paper

@article{deng2025maskcd,
  title  = {MaskCD: Mitigating LVLM Hallucinations by Image Head Masked Contrastive Decoding},
  author = {Jingyuan Deng and Yujiu Yang},
  year   = {2025},
  eprint = {2510.02790},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.02790v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.02790.svg)](https://codeofpaper.com/paper/2510.02790)

Discussion