NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Vision-Language Models (VLMs) frequently succumb to "Prompt-Induced Hallucination" (PIH), prioritizing misleading text prompts over actual visual evidence. This paper reveals that PIH is causally driven by a tiny subset of attention heads in the early layers of the language model backbone. By simply ablating these "PIH-heads," researchers can reduce hallucinations by over 40% and restore visual grounding without any additional training or loss of general capabilities.

What Problem Does This Paper Address?

Despite their impressive capabilities, current VLMs suffer from a critical vulnerability: when a text prompt contradicts an image, the model often ignores its own visual processing and blindly follows the prompt—a behavior linked to sycophancy and anchoring bias. For instance, if an image contains three waterlilies but the prompt asks the model to "Describe the four waterlilies," the model will often hallucinate a non-existent fourth lily and describe it in vivid detail.

Example of prompt-induced hallucination with waterlilies.

This paper systematically explores when and why these prompt-induced hallucinations (PIH) happen. The authors isolate this failure mode in a controlled object-counting setting to understand the underlying mechanics and develop a training-free method to mitigate it.

Methods

The authors establish a controlled framework using object-counting and color-identification tasks, feeding models prompts that systematically overestimate the ground-truth values by an offset $k$ (e.g., $N+k$).

To find the root cause of PIH, they employ mechanistic interpretability techniques, specifically attention head knockouts via mean ablation. This technique removes token-specific information carried by an individual attention head while preserving its overall activation magnitude. They rank heads by their ability to correct the model's output toward the true visual count when ablated, identifying a small group of "PIH heads." They then perform grouped ablations on these heads and analyze how the model's internal attention mass shifts between text and image tokens, as well as how it impacts the linguistic format of the output (e.g., digits vs. spelled-out words).

Datasets

  • CountBench: A benchmark for object-counting understanding, adapted by the authors to create 3,437 misaligned image-prompt pairs.
  • Visual CounterFact: Used to test generalization in a color identification task, adapted into 2,465 image-prompt pairs with mismatched color descriptions.
  • CalTech101: Adapted as a control task to ensure the ablation doesn't break benign text-copying behavior.
  • MM-Vet and POPE: Standard benchmarks used to verify that general multimodal reasoning and existence-based question-answering capabilities are preserved after ablation.

Key Insights and Ideas

  • Confidence-Driven Vulnerability: Models successfully resist misleading prompts at low object counts (2–4 objects) but almost completely surrender to the prompt when counting 5 or more objects. This correlates directly with the model's baseline visual confidence; as uncertainty about the image increases, the model defaults to trusting the text.
Figure 2: PIH rates across different numbers of ground-truth objects. Blue lines show the percentage of outputs matching the prompted number for different offsets, k. Orange lines show matches to the true count. As the object count increases, models stop correcting the prompt.
Figure 3: Base probabilities on the object counting task. We plot the probability assigned to the true count N and neighboring counts N+k (k ∈{1, . . . , 5}) given the prompt “How many [objects] are in the image?”. As object counts increase, confidence in N decreases and probability mass spreads to neighboring counts.
  • Rooted in Language, Not Vision: The top PIH-mediating attention heads heavily overlap between different models (like Qwen-VL and LLaVA-OneVision) that share the same language backbone but use different vision encoders. This strongly implies that PIH is a language-routing failure rather than a flaw in multimodal fusion.
  • Early-Layer Bottleneck: PIH heads are highly concentrated in the very first layers (Layers 0–1) of the language model. Misleading prompt information is locked in early before deep multimodal integration even begins.
  • Model-Specific Copying Strategies: While ablating PIH heads improves accuracy across the board, models handle the correction differently. For example, LLaVA-OneVision suppresses all prompt-copying behavior and dramatically shifts attention to the image, whereas Qwen-VL actually increases its reliance on the prompt's formatting (digits) while correcting the content.

Key Results

  • Massive Hallucination Reduction: Across three state-of-the-art VLMs (LLaVA-OneVision, Qwen2-VL, Janus-Pro), ablating the identified PIH heads dropped prompt-conforming hallucination rates from 42–64% down to under 11%.
  • Restored Visual Grounding: True count matching rates surged from baseline levels to 70–78% post-ablation without any fine-tuning.
  • Attention Reallocation: Mechanistic analysis confirmed that ablating these heads successfully forces the model to shift its attention mass away from text tokens and back toward image tokens.
Figure 4: Image attention mass at the layer with the largest intervention-induced change for each model. Namely, LLaVA-OneVision (layer 2, ∆=0.121), Qwen- VL (layer 27, ∆=0.053),and Janus-pro (layer 22, ∆=0.037). Gray bars indicate the baseline attention mass for image tokens, while green bars show an in- crease after PIH-knockout.
  • Cross-Task Generalization: Applying the exact same counting-derived PIH-head ablations to a color-mismatch task reduced color hallucinations by 40% to 95%, proving the heads mediate a generalized copying mechanism.
  • Preserved General Performance: Standard performance on baseline counting, MM-Vet, and POPE remained completely stable, proving that the intervention surgically targets the hallucination mechanism without degrading broader capabilities.

Limitations and Future Work

The study focuses exclusively on medium-scale VLMs (~7B parameters), meaning the findings and specific PIH heads might not directly通 generalize to frontier, multi-billion-parameter models. Additionally, attention-based mean ablation only captures a partial slice of a transformer's internal mechanics, leaving secondary network adjustments unexamined. The exact architectural reasons behind why different models adopt distinct copying behaviors (e.g., soft vs. format copying) also remain an open question for future research.

Summary updated

BibTeX
@inproceedings{rudman2026mechanisms,
  author = {William Rudman and Michal Golovanevsky and Dana Arad and Yonatan Belinkov and Ritambhara Singh and Carsten Eickhoff and Kyle Mahowald},
  title = {{Mechanisms of Prompt-Induced Hallucination in Vision-Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1941},
}
Figure