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.
Figures & tables
Figure 1: Function-word and noun explanations: WISH’s maps for “A” and “a” highlight regions of the woman and horse, respectively, before they are generated, while TAM’s are nearly empty and DEX-AR’s are spatially diffuse.
Figure 2: WISH explains the word “sheep” in the caption that LLaVA-1.5 [ 32 ] generates for the image. (a) Every attention head is scored by the head-ranking score stℓ,h (Eq. 5 ). (b) The knee of the sorted scores keeps the 71 highest-ranked of the model’s 1,024 heads as the selected set St . (c) The gradient map of each selected head is filtered with a 3×3 median; the maps of the three highest-ranked heads are shown. (d) A rank-weighted median combines the filtered maps into the heatmap Mt for “sheep”.
ImageNet
VQAv2
COCO Caption
PASCAL VOC
Method
Del. ↑
Ins. ↓
Del. ↑
Ins. ↓
Del. ↑
Ins. ↓
Del. ↑
Ins. ↓
Qwen3-VL
Attention
0.18
1.88
0.80
0.53
1.02
1.41
1.19
1.05
Attn × Grad
0.18
1.86
0.78
0.53
1.00
1.42
1.29
0.98
Grad-CAM
0.30
1.66
0.75
0.54
1.10
1.27
1.24
0.94
Chefer-CAM
0.44
1.44
0.65
0.48
1.06
1.31
1.11
1.08
DEX-AR
0.68
1.31
0.79
0.55
1.10
1.25
1.54
0.95
Table 1: Image perturbation evaluation across six VLMs on ImageNet, VQAv2, COCO Caption and PASCAL VOC. Values are the area under the log normalized-perplexity curve for deletion of the most relevant pixels first (Del., ↑ ) and insertion into a blurred image (Ins., ↓ ). Best value per model in bold, second best underlined.
PASCAL VOC
COCO Caption
Method
Obj-IoU
Soft-IoU
EPG
Obj-IoU
Soft-IoU
EPG
Qwen3-VL
Attention
14.2
8.6
30.2
10.4
6.1
22.0
Attn × Grad
8.6
6.0
29.7
7.0
4.6
23.6
Grad-CAM
12.8
8.1
28.1
9.3
5.6
19.9
Chefer-CAM
6.6
5.5
24.8
4.7
3.7
17.6
DEX-AR
14.0
9.9
26.0
12.7
7.8
18.8
Table 2: Localization performance comparison on PASCAL VOC and COCO Caption for the object words of each model’s own caption. Reported metrics are Obj-IoU [ 29 ] , Soft-IoU and EPG [ 10 ] .
Figure 3: Visual explanations of object words in the models’ generated captions comparing WISH, TAM, and DEX-AR. Explained words are underlined and bold.
Figure 4: Image-attention knockout across head-selection criteria on PASCAL and COCO object words. We report the drop in target-word log-probability when blocking attention to the whole image, relative to WISH. All head sets are of equal size. Markers show individual models and black bars the six-model means. WISH’s effect exceeds every other criterion on every model.
Method
Del. ↑
FWP-AUC ↑
FWS ↑
Attention
1.24 [1.16, 1.32]
0.34 [0.28, 0.40]
0.70 [0.48, 0.95]
Attn × Grad
1.26 [1.17, 1.35]
0.35 [0.29, 0.41]
1.22 [1.02, 1.41]
Grad-CAM
1.36 [1.26, 1.47]
0.35 [0.30, 0.40]
0.88 [0.67, 1.10]
Chefer-CAM
1.33 [1.24, 1.43]
0.32 [0.26, 0.37]
0.91 [0.67, 1.16]
DEX-AR
1.32 [1.23, 1.42]
0.12 [0.04, 0.20]
0.77 [0.25, 1.26]
TAM
1.03 [0.93, 1.12]
0.16 [0.06, 0.26]
1.05 [0.43, 1.68]
Table 3: Function-word grounding on PASCAL VOC on 2,984 nouns for captions with at least two objects. Positive deletion with the function word as target (Del.), FWP-AUC (Eq. ( 10 )) and FWS (Eq. ( 11 )) in percentages. Averaged over function-word categories and six models; 95% bootstrap intervals in square brackets.
Figure 5: Function words of different categories in a LLaVA-OneVision-1.5 caption: the numeral “Three” introduces children and the preposition “on” introduces motorcycle , each explained before the noun it introduces is generated.
Variant
Del. ↑
Obj-IoU ↑
Soft-IoU ↑
EPG ↑
Selection
Random (knee-sized)
1.05
17.4
12.5
25.3
All heads
1.76
26.5
18.8
27.6
stℓ,h : Top-64
2.21
36.7
22.1
38.4
(Ours) stℓ,h : Knee
2.21
36.6
22.0
38.5
Filtering
None
2.03
28.7
16.1
36.2
3×3 mean
2.12
33.5
20.6
31.1
Table 4: Controlled ablation of WISH on PASCAL VOC (six-model means). Heads are ranked by the WISH score stℓ,h , where Knee is WISH’s adaptive head selection and Top-64 keeps a fixed budget of the 64 highest-scoring heads. (Ours) marks WISH’s default choice, shown last in each block.
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Symbol
Meaning
Model and attention (Sec. 3.1 of the main paper)
L , H
number of layers and number of attention heads per layer
ℓ , h
layer index and head index
t , yt , y<t
generation step, the token generated at step t (the target word) and the tokens before it
ziℓ∈Rd
token representation at sequence position i after layer ℓ , with dimension d
Qℓ,h , Kℓ,h , dk
query and key projections of head (ℓ,h) , with key dimension dk per head
Appendix
Table S1 : Symbols used in the paper and the supplementary material.
Model
Mean
Std
Min
Max
PASCAL VOC
LLaVA-1.5-7B
58.8
17.0
16
136
BakLLaVA
70.7
19.5
24
140
Qwen3-VL-8B
68.6
21.5
24
202
GLM-4.6V-Flash
68.7
23.5
22
185
LLaVA-OV-1.5-8B
61.8
18.6
27
181
LLaVA-OV-2-8B
62.5
19.8
23
165
Appendix
Table S2: Size of the adaptively selected head set ∣St∣ per explained token. Reported statistics are mean, standard deviation (Std), minimum (Min) and maximum (Max). Every row is the statistics of the size of ∣St∣ of one model on one dataset.
Figure S1 : WISH head-ranking score (Eq. ( S20 )) versus the exact drop in the layer logit, for 20,000 random heads with a positive score and drop per model (PASCAL VOC object words). Dashed: y=x . Top left: median within-word Spearman correlation over all heads, as in Tab. S3 .
Figure S2 : WISH with a fixed head budget K (Sec. C.2 ). Obj-IoU, positive deletion (Del.) and insertion (Ins.) on the PASCAL VOC 2012 training set. Dotted: K=64 . Blue dot is best K per model. “all” denotes every head with stℓ,h>0 .
Model
Words
Spearman
Pearson
Knee J
LLaVA-1.5
1033
0.9996 (0.9883)
0.988 (0.967)
0.89
BakLLaVA
1008
0.9999 (0.9995)
0.999 (0.997)
0.92
Qwen3-VL
924
0.9998 (0.9998)
0.999 (0.999)
0.92
GLM-4.6V
1082
0.9994 (0.9991)
0.998 (0.997)
0.88
OV-1.5
1137
0.9998 (0.9998)
0.999 (0.999)
0.92
OV-2
1106
0.9997 (0.9996)
0.999 (0.999)
0.91
Appendix
Table S3: Agreement between the WISH head-ranking score and the exact drop in the layer logit on PASCAL VOC object words. Spearman and Pearson: median over words of the correlation across all heads, with the 10th percentile in parentheses. Knee J : mean Jaccard index between the knee sets selected by the score and by the exact drops.
Knee
Top-64
Model
Del.
Ins.
Del.
Ins.
LLaVA-1.5
+.009
−.002
+.012
+.000
BakLLaVA
+.003
−.000
+.002
+.000
Qwen3-VL
−.000
+.007
−.003
−.005
GLM-4.6V
−.003
+.003
+.000
+.000
OV-1.5
+.004
+.001
+.001
+.001
Appendix
Table S4: Perturbation log AUC with heads ranked by the exact drop in the layer logit, minus that of WISH, with the same selection rule and map construction. PASCAL VOC object words. Del. and Ins. as in Tab. 1 of the main paper.
Drop
Readout
Blocked region
Δ Obj-IoU
Approximated
layer logit
R+ℓ,h
0.00
Exact
layer logit
R+ℓ,h
−0.06
Exact
layer logit
I
−1.67
Exact
layer logit
IMˉt (oracle)
+8.27
Exact
final logp
R+ℓ,h
−7.78
Exact
final logp
I
−15.87
Appendix
Table S5: Obj-IoU differences from WISH (first row), six-model means. Words: the PASCAL VOC object words of Sec. D.1 for which every ranking selects at least three heads (845–1,106 per model). Oracle region IMˉt : the annotated object mask.
Method and setting
Time per word (ms)
Time ratio
Peak extra GPU memory
Approximation, single word inference
65–107
1
5–12 MB
Approximation, batched inference
0.18–0.25
1
0.54–0.64 GB
Exact knockout, single word inference
95–154
1.4–1.5
129–131 MB
Exact knockout, batched inference
2.0–3.2
10.7–12.7
2.9–4.3 GB
Appendix
Table S6: Head-ranking cost across six models on one NVIDIA A100 PCIe 40 GB GPU. Time excludes the shared forward pass, and ratios use the approximation in the same setting as the reference. Extra memory excludes the model and shared forward pass and covers all rows in batched runs.
Method
PG
Ins. ↓
Del. ↑
Obj-IoU
Soft-IoU
EPG
LLaVA-1.5-7B (102 words)
EAGLE
85.3
0.18
1.45
20.0
15.2
20.6
WISH
75.5
0.33
2.99
45.8
26.2
44.5
BakLLaVA (98 words)
EAGLE
77.6
0.33
2.01
16.6
14.8
20.5
WISH
82.7
0.48
3.85
46.1
26.4
42.9
Appendix
Table S7: Localization and perturbation on object words from 150 PASCAL VOC validation images. Pointing Game (PG): share of words whose map peak lies inside the object mask. Other metrics as in Tabs. 1 and 2 of the main paper.
Time per word (ms)
Peak GPU memory (GB)
One word
Caption-batched
One word
Caption-batched
Model
TAM
DEX-AR
WISH
TAM
DEX-AR
WISH
EAGLE
Model alone
TAM
DEX-AR
WISH
TAM
DEX-AR
WISH
EAGLE
LLaVA-1.5-7B
48.2
84.7
66.8
3.5
6.8
4.9
198,000
13.2
13.5
24.9
14.0
13.5
19.3
14.1
13.8
BakLLaVA
50.2
90.8
70.7
3.9
7.7
5.5
203,000
14.1
14.4
26.7
14.4
14.4
20.7
14.5
14.7
Qwen3-VL-8B
47.0
123.2
66.5
1.7
4.7
2.4
188,000
16.3
16.7
21.4
16.5
16.8
19.1
16.7
17.0
GLM-4.6V-Flash
57.4
151.3
87.1
1.0
2.6
1.5
226,000
19.2
19.8
29.4
19.4
19.8
24.5
19.9
19.8
Appendix
Table S8 : Map-generation time per word and peak allocated GPU memory of WISH and EAGLE, with TAM and DEX-AR as references, on one NVIDIA RTX PRO 6000 Blackwell GPU. TAM, DEX-AR and WISH run one word at a time and batched over the words of a caption. EAGLE runs one word at a time only. Model alone: the memory of the model without an explanation method.
Ranking (64 heads)
Obj-IoU ↑
Soft-IoU ↑
EPG ↑
Del. ↑
WISH
36.7
22.1
38.4
2.19
DEX-AR weight
30.3
18.8
33.6
1.89
Attention mass
18.8
12.4
29.0
1.45
Spatial coherence
29.8
21.3
33.3
1.80
Random
17.5
12.6
25.4
1.03
Mask fit (labels)
41.3
26.8
75.6
2.07
Appendix
Table S9: Maps built with WISH’s map construction from the 64 highest-ranked heads of each head scoring method. PASCAL VOC, six-model means, metrics as in Tab. 4 of the main paper. Del. uses the 896–1,106 words per model for which every ranking gives a map. Labels: the ranking uses the annotated object mask. Bold: best ranking without labels.
Method
Qwen3-VL
LLaVA-1.5
GLM-4.6V
BakLLaVA
OV-1.5
OV-2
Nouns
375
508
537
499
544
521
Del. ↑
Attention
2.28
0.83
1.36
1.35
0.92
0.69
Attn × Grad
2.32
0.84
1.38
1.35
1.01
0.68
Grad-CAM
2.43
0.80
1.84
1.38
1.06
0.67
Chefer-CAM
2.47
0.70
1.82
1.37
0.92
0.71
Appendix
Table S10 : Per-model results of Tab. 3 of the main paper: positive deletion with the function word as target (Del.), FWP-AUC and FWS, each averaged over the function-word categories of a model. Best per model in bold, second best underlined.
Figure S3 : WISH’s maps of function words with high and low FWS (top, ×100 ) and FWP-AUC (bottom) on PASCAL VOC, from LLaVA-1.5-7B (first panel: BakLLaVA). Red: function word. Bold: the noun it introduces. Solid and dashed contours: masks of the introduced object and of the other introduced object.
Figure S4 : WISH’s maps of a function word and of its noun in English and five other languages, each for the first token of the word. Above each column: language, model and the model’s caption, with the function word in red and the noun in bold. Translated: the model’s own translation of its English caption, explained with teacher forcing.
Del. ↑
Obj-IoU ↑
Soft-IoU ↑
EPG ↑
Variant
Qwen3-VL
LLaVA-1.5
GLM-4.6V
BakLLaVA
OV-1.5
OV-2
Qwen3-VL
LLaVA-1.5
GLM-4.6V
BakLLaVA
OV-1.5
OV-2
Qwen3-VL
LLaVA-1.5
GLM-4.6V
BakLLaVA
OV-1.5
OV-2
Qwen3-VL
LLaVA-1.5
GLM-4.6V
BakLLaVA
OV-1.5
OV-2
Selection
Random (knee-sized)
1.06
1.05
0.66
1.74
0.96
0.85
16.1
20.6
13.3
21.6
16.8
16.2
12.0
13.8
9.9
14.6
12.7
12.0
24.1
28.7
21.9
29.6
23.8
23.9
All heads
1.68
1.98
0.90
2.86
1.58
1.55
24.0
33.0
18.0
34.4
24.7
24.6
18.2
21.1
14.1
22.6
18.6
18.4
27.0
31.1
22.9
33.0
25.6
26.0
stℓ,h : Top-64
2.00
2.71
1.32
3.37
1.98
1.90
30.1
51.0
23.5
50.1
33.0
32.3
19.9
28.2
15.0
28.6
20.4
20.5
32.6
50.4
29.6
50.5
33.6
33.6
(Ours) stℓ,h : Knee
1.99
2.71
1.32
3.36
1.98
1.91
30.0
50.9
22.9
50.1
33.2
32.4
19.9
28.2
14.7
28.7
20.4
20.4
32.7
51.0
29.4
50.4
34.0
33.8
Filtering
None
1.72
2.62
1.13
3.27
1.81
1.65
19.4
44.2
16.2
44.6
24.2
23.5
11.7
23.0
10.6
24.1
14.2
12.9
30.1
48.5
27.6
47.8
31.5
31.7
Appendix
Table S11 : Ablation on PASCAL VOC per model. Rows as in Tab. 4 of the main paper. Each block varies one component and keeps the other two fixed. Best per block, model and metric in bold, second best underlined.
Figure S5 : WISH, TAM and DEX-AR maps of single words of model captions on PASCAL VOC (first two columns) and COCO Caption (other columns). The model is named above each column, and the explained word is in red. From left to right: reading text on a label, an undercount (four of six horses), a small painted detail, and four words for objects that are not in the image.
Vision-language models (VLMs) can locate an image region referred to by a text prompt and route the corresponding visual evidence to the output, yet the internal mechanism behind this behavior is not understood. Inspired by retrieval heads in large language models, we ask whether VLMs contain an analogous mechanism for visual retrieval. We answer affirmatively by introducing Visual Retrieval Heads (VRHs), a small subset of attention heads (about 1.7-2.6%) that are causally responsible for grounding text descriptions to image regions. To find them, we recast existing head-scoring methods under a unified design space over query tokens, key aggregation, and cross-sample aggregation. We then show that scoring attention from output prediction tokens with a sum over the ground-truth referent region most reliably identifies causal heads. Across eleven VLMs and five referring-expression benchmarks, masking only the top 20 VRHs reduces grounding accuracy by up to 80 percentage points, while masking the same number of random heads has little effect. Beyond replicating the causal-sparse-universal triad established for text retrieval heads, VRHs exhibit several properties not previously reported: they generalize across visual reference tasks, remaining causal on attribute, spatial, counting, and visual-math benchmarks despite being discovered through bounding-box prediction; they are functionally specific, preserving output format while corrupting localization; and they are architecturally shared, transferring causally across VLMs that share an LLM backbone but differ in vision encoder, projector, and instruction tuning.
Predicting human gaze is a core capability for applications ranging from web/UI design analysis to robotics and human-computer interaction. Yet, most visual attention modeling methods output only a dense saliency map, which is often insufficient for action: practitioners need to connect attention peaks to discrete elements in the scene (what) and understand the drivers of those peaks in context (why), while remaining robust to domain shift across natural images, commercial content, and UI/web layouts. We, therefore, introduce OpenVAM (Open-world Visual Attention Modeling with VLMs), a unified framework that jointly addresses universality and explainability across heterogeneous domains (natural scenes, commercial imagery, and UI/web layouts) and supervision modalities. OpenVAM adopts a decoupled-but-aligned design: a dedicated dense visual pathway provides stable, spatially precise localization, while an instruction-following vision--language semantic head generates grounded what/why explanations conditioned on the same image and data-type prompts. A three-stage training strategy preserves strong localization priors while progressively introducing language grounding and improving explanation alignment via parameter-efficient adaptation without perturbing the saliency branch. We further propose a scalable pipeline to generate multi-domain saliency-reason annotations for training and systematic evaluation. Experiments across diverse datasets show that OpenVAM improves robustness under domain shift while producing image-grounded explanations that make saliency predictions more interpretable.
Visually-grounded language models (VLMs) are highly effective in linking visual and textual information, yet they often struggle with basic classification and localization tasks. While classification mechanisms have been studied more extensively, the processes that support object localization remain poorly understood. In this work, we investigate two representative families, LLaVA-1.5 and InternVL-3.5, using a suite of mechanistic interpretability tools, including token ablations, attention knockout, and causal mediation analysis. We find that localization is driven by a containerization mechanism in which object-aligned tokens define the spatial extent of the object, while the semantic arrangement of tokens within those boundaries is largely irrelevant to the predicted box. Only a very small set of attention heads mediates the causal effect for both classification and localization, concentrating in early-mid layers for LLaVA and mid-late layers for InternVL. The two tasks share some early processing but ultimately depend on largely distinct specialized heads. Overall, we provide the first layer- and head-level account of localization in VLMs, revealing narrow computational pathways that can guide future model design and grounding objectives.
Timothy Schaumlöffel, Martina G. Vilas, Gemma Roig
Goethe University Frankfurt, Germany · The Hessian Center for AI, Germany