WISH: Word-Informed Selection of Heads for Vision-Language Explainability

Karim Wahba, Madhav Iyengar, Walid Bousselham, Hilde KuehnearXiv 2026

TL;DR

When a Vision-Language Model (VLM) looks at a photo and describes it word by word, which pixels actually drove each word's prediction? Instead of listening to all of the model's hundreds of attention heads at once—which yields noisy, washed-out explanations—WISH isolates the handful of heads that causally drive each specific word. In doing so, it not only generates sharper visual explanations, but also catches VLMs "peeking ahead": when generating humble grammar words like "a" or "on," the model is already visually focused on the object it hasn't named yet.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) are notoriously prone to hallucinating—confidently describing objects based on language habits rather than visual reality. To debug them, we need word-level explainability: 2D heatmaps showing the exact image regions behind each generated token.

The trouble is knowing where inside a massive transformer to look. Different layers and attention heads specialize in different things, and most heads contribute very little to a specific word's visual grounding. Current methods either look only at the final layer (missing rich visual grounding that happens earlier in the network) or average attention gradients across all heads and layers (drowning out the true signal in noise). We need a way to find the specific needles in the haystack—the exact heads doing the visual heavy lifting for this particular word.

Methods

The authors introduce WISH (Word-Informed Selection of Heads), a two-stage pipeline that builds clean heatmaps by being picky about which attention heads it listens to.

Overview of the WISH two-stage pipeline: head selection followed by spatial filtering and aggregation.
  1. Word-Conditioned Head Selection (What's New): Ideally, to know if an attention head matters for predicting the word "sheep," you would block its access to the image ("attention knockout") and see how much the probability of "sheep" drops. Doing that brute-force across a thousand heads per word is way too slow. Instead, WISH uses the logit lens (projecting intermediate layer states into vocabulary space) and a first-order Taylor expansion to mathematically estimate this knockout effect in one pass. It ranks all heads by this score and dynamically picks the top contributors by finding the "knee" of the score curve—no manual threshold tuning required.
  2. Spatial Map Construction (Refining Standard Tools): Once that elite subset of heads is chosen (e.g., 71 out of 1,024 heads), WISH borrows and combines two established tricks: it takes positive attention gradients (to avoid "attention sink" artifacts), applies a $3 \times 3$ median filter to each head's map to zap isolated noisy pixels, and combines them using a rank-weighted median.

Datasets

WISH is evaluated across six diverse VLMs (including Qwen3-VL, LLaVA-1.5, and GLM-4.6V) on four standard benchmarks:

  • PASCAL VOC 2012 & COCO Captions: Used for evaluating object localization, image perturbation, head selection, and function-word grounding in freely generated captions.
  • ImageNet & VQAv2: Used for teacher-forced classification and visual question answering perturbation tests.

No new image datasets are introduced, though the authors build a custom Universal Dependencies parsing pipeline on PASCAL VOC captions (2,984 nouns) to introduce two new evaluation metrics for grammar words: Function-Word Perturbation (FWP) and Function-Word Segmentation (FWS).

Key Insights and Ideas

  • Look-Ahead Grounding: Previously, explainability researchers assumed function words (like "a", "the", "on") had no visual evidence in an image—some benchmarks even penalized heatmaps that lit up during articles! WISH proves the opposite. Just as text-only LLMs plan future tokens internally, VLMs visually locate an upcoming object while generating the function word that introduces it.
Figure 1. Function-word and noun explanations: WISH’s maps for “A” and “a” highlight regions of the woman and horse, respec- tively, before they are generated, while TAM’s are nearly empty and DEX-AR’s are spatially diffuse.
  • Looking $\neq$ Driving: In knockout tests, ranking heads by how strongly they attend to the image—or even cheating by picking heads whose attention best overlaps the ground-truth object mask—captures at most 37% of WISH's causal impact on the output word. Just because a head looks at the right object doesn't mean the model actually uses that head to pick the word.
  • Fast Math Matches Brute Force: WISH's first-order Taylor approximation correlates almost perfectly with true, computationally expensive attention knockouts (median Spearman correlation $\ge 0.999$ across all six models).

Key Results

  • Faithfulness (Perturbation): When erasing or revealing the most important pixels identified by the heatmaps, WISH beats state-of-the-art methods (TAM and DEX-AR) in 40 out of 48 comparisons across six models and four datasets.
  • Object Localization: On PASCAL VOC captions, WISH outperforms every baseline on Object-IoU across all six models by 1.1 to 10.3 percentage points, and wins on 5 of 6 models on COCO.
  • Head Importance: Blocking image attention for WISH-selected heads drops target-word log-probability by 0.53–1.75 nats on COCO, whereas random head sets of the exact same size barely register ($\le 0.04$ nats), and the runner-up selection method reaches only 66% of WISH's effect.
  • Function-Word Grounding: WISH scores 2.68% on Function-Word Segmentation (vs. 1.22% for the next best baseline), confirming its heatmaps lock onto upcoming objects before they are named.

Limitations and Future Work

While the authors do not include a dedicated limitations section, two boundaries emerge directly from their experimental findings:

  • Object Completeness vs. Precision: WISH does not consistently lead on the Energy Pointing Game (EPG) metric, indicating that its heatmaps cover objects more completely at the cost of spilling some attribution energy outside the tight object mask.
  • Single-Word Classification: WISH's performance edge is widest on freely generated, multi-word captions and smallest when teacher-forcing single class names on object-centric images (like ImageNet), where existing baselines occasionally match or beat it.

Summary updated

BibTeX
@misc{wahba2026wish,
  author = {Karim Wahba and Madhav Iyengar and Walid Bousselham and Hilde Kuehne},
  title = {{WISH: Word-Informed Selection of Heads for Vision-Language Explainability}},
  year = {2026},
  eprint = {2611.35931},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35931},
}
Figure