Mechanisms of Prompt-Induced Hallucination in Vision-Language Models
William Rudman, Michal Golovanevsky, Dana Arad, Yonatan Belinkov, Ritambhara Singh, Carsten Eickhoff, Kyle Mahowald
TL;DR
This work investigates prompt-induced hallucinations (PIH) in vision–language models using a controlled object-counting task. By introducing misaligned prompts, the authors show that PIH emerges more when true counts are high, and that a small set of attention heads can causally mediate and suppress PIH through head ablations performed without retraining. The study finds that PIH heads reside in early LM layers and that their ablation shifts attention toward the image and reduces prompt copying, with generalization to a color-prediction task. Across three diverse VLMs, ablations reduce prompt-driven copying by substantial margins (up to 95% in color tasks) and improve visual grounding, though mechanisms are model-specific. These results highlight a localized, language-model-driven source of PIH and suggest practical, data-free interventions to improve alignment in multimodal systems.
Abstract
Large vision-language models (VLMs) are highly capable, yet often hallucinate by favoring textual prompts over visual evidence. We study this failure mode in a controlled object-counting setting, where the prompt overstates the number of objects in the image (e.g., asking a model to describe four waterlilies when only three are present). At low object counts, models often correct the overestimation, but as the number of objects increases, they increasingly conform to the prompt regardless of the discrepancy. Through mechanistic analysis of three VLMs, we identify a small set of attention heads whose ablation substantially reduces prompt-induced hallucinations (PIH) by at least 40% without additional training. Across models, PIH-heads mediate prompt copying in model-specific ways. We characterize these differences and show that PIH ablation increases correction toward visual evidence. Our findings offer insights into the internal mechanisms driving prompt-induced hallucinations, revealing model-specific differences in how these behaviors are implemented.
