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

1University of Tübingen 2Google DeepMind

TL;DR WISH explains each word a vision-language model generates. It ranks every attention head by how much blocking the head's view of the image would lower the word's logit, keeps the top heads and builds the heatmap from them only. Its maps also show that models look at an object while writing the article that introduces it.

Abstract

Vision-language models (VLMs) are being increasingly employed for vision-language tasks. However, understanding the visual evidence behind each generated word remains a complex task. A key challenge in VLM explainability is choosing where in the model to extract this evidence. Existing methods address this by using final-layer visual-token activations or aggregating attention gradients across layers and heads. However, focusing on the final layer can miss intermediate grounding signals, while gradient weighting can misrepresent how much each head contributes. In contrast, we introduce WISH (Word-Informed Selection of Heads), a word-level explainability method that adaptively selects heads across layers to construct word-level visual explanations. WISH ranks the heads based on an estimate of how much blocking each head's visual attention would lower the word's layer logit. It subsequently selects the highest scoring heads and constructs heatmaps by spatially filtering and aggregating their gradient maps. Across six VLMs, attention knockout experiments show that WISH-selected heads have a greater effect on word prediction than those selected using five alternative criteria. Spatial map evaluations on ImageNet, VQAv2, PASCAL VOC, and COCO Captions further demonstrate improved object localization and stronger perturbation-based performance in most comparisons with existing methods. Finally, we find evidence that when VLMs generate function words, e.g., articles, their explanation heatmaps already highlight the associated objects in the image. We term this behavior “look-ahead grounding” and propose two evaluation metrics to quantify it.

Explore the maps

Pick an example, then hover over or click any word of the model's own caption. Each panel shows that word's map from WISH, TAM and DEX-AR.

··

Image
WISH (ours)
TAM
DEX-AR

Each map is the word's first token, computed and shown as in the paper's figures.

Method

layer1
1head
lowhigh score

Look-ahead grounding

Function words such as “a”, “on” or “three” carry no visual content of their own. Yet when a model writes one, WISH's map already highlights the object whose noun comes next, before the model has written that noun. We call this look-ahead grounding.

In the caption below, the two articles point to different objects: WISH's map for the first “A” lies on the woman and its map for the later “a” on the horse. TAM's maps for the articles are nearly empty, and DEX-AR's are spread across the image.

BakLLaVA's caption of a PASCAL VOC image. Top row: the article, explained before the noun is generated. Bottom row: the noun itself. Solid outline: the object the article introduces. Dashed outline: the other object.

Results

Image perturbation across six VLMs on ImageNet, VQAv2, COCO Caption and PASCAL VOC. Values are the area under the log normalized-perplexity curve for deleting the most relevant pixels first (Del., higher is better) and for inserting them into a blurred image (Ins., lower is better). Best value per model in bold, second best underlined.

ModelMethodImageNetVQAv2COCO CaptionPASCAL VOC
Del. ↑Ins. ↓Del. ↑Ins. ↓Del. ↑Ins. ↓Del. ↑Ins. ↓
Qwen3-VLAttention0.181.880.800.531.021.411.191.05
Attn×Grad0.181.860.780.531.001.421.290.98
Grad-CAM0.301.660.750.541.101.271.240.94
Chefer-CAM0.441.440.650.481.061.311.111.08
DEX-AR0.681.310.790.551.101.251.540.95
TAM0.620.710.670.451.011.241.670.64
WISH1.030.560.920.401.270.991.990.59
LLaVA-1.5Attention0.670.240.440.070.620.271.910.62
Attn×Grad0.710.190.460.060.640.262.200.53
Grad-CAM0.680.200.450.050.620.261.770.60
Chefer-CAM0.630.240.460.050.610.261.760.59
DEX-AR0.710.200.420.090.650.292.480.48
TAM0.730.140.420.140.650.212.660.43
WISH0.750.160.490.050.720.192.710.37
GLM-4.6VAttention0.311.291.090.740.760.921.080.87
Attn×Grad0.321.271.140.700.760.921.160.85
Grad-CAM0.401.191.320.670.880.801.210.80
Chefer-CAM0.371.101.260.620.830.841.170.83
DEX-AR0.820.741.240.650.960.721.080.89
TAM0.550.600.900.860.680.951.030.92
WISH0.680.521.110.720.930.721.320.62
BakLLaVAAttention2.121.500.420.041.120.452.630.73
Attn×Grad2.221.430.430.031.140.442.850.63
Grad-CAM2.251.430.430.041.130.432.570.71
Chefer-CAM2.241.390.450.021.140.442.560.70
DEX-AR2.231.280.370.060.960.573.050.59
TAM1.871.160.470.021.020.423.010.56
WISH2.141.060.490.011.200.343.360.48
OV-1.5Attention1.621.990.29−0.010.720.451.510.73
Attn×Grad1.731.910.30−0.010.720.451.640.72
Grad-CAM1.791.900.27−0.020.700.471.380.77
Chefer-CAM1.511.970.230.010.720.451.370.79
DEX-AR2.041.680.190.070.650.531.690.86
TAM1.721.190.220.080.680.401.510.55
WISH1.961.050.39−0.030.770.351.980.49
OV-2Attention0.701.000.710.270.630.401.320.72
Attn×Grad0.750.940.720.250.610.411.460.68
Grad-CAM0.740.980.700.280.560.471.060.82
Chefer-CAM0.730.970.660.260.620.401.160.73
DEX-AR0.970.760.530.360.500.501.500.78
TAM1.130.570.580.330.590.381.610.53
WISH1.250.510.700.240.720.321.910.51

BibTeX

@article{wahba2026wish,
  title   = {{WISH}: Word-Informed Selection of Heads for Vision-Language Explainability},
  author  = {Wahba, Karim and Iyengar, Madhav and Bousselham, Walid and Kuehne, Hilde},
  journal = {arXiv preprint},
  year    = {2026}
}