Heads That Write, Not Just Point: Image Retrieval Heads in Vision-Language Models
Junsung Park, Sangwon Yu, Donghun Kang, Yeongtak Oh, Jaewon Jeong, Gyeongtae Yoo, Han Cheol Moon, Jungbeom Lee, Sungroh Yoon
Abstract
Large vision-language models (LVLMs) can process interleaved text and multiple images in a single context, but how they internally identify the image relevant to a question remains poorly understood. We study this grounding step as in-context image retrieval and introduce ICIR-MCQ, a controlled probe for head-level analysis of image retrieval. Using each head's attention mass over image-token spans, we first identify sparse pointer heads that reliably point to the target image. These heads transfer beyond the probe: a single pointer head is competitive with external vision-language retrievers on a naturalistic multi-image retrieval benchmark, showing that LVLMs contain a strong internal image retrieval signal. Attention alone, however, shows where a head reads from, not what its output passes on to later layers, so we introduce a complementary output-side analysis. For each head, we train a lightweight image retriever on its value-weighted output and use it to identify writer heads, whose outputs contain enough information to identify the target image. Surprisingly, the pointer and writer criteria select substantially different head sets, with only 35 to 47 heads overlapping among the top-100 heads under each criterion. Targeted set-partition ablations show that the heads most important for standard multi-image inference are concentrated in this pointer-writer intersection, while heads selected by only one criterion show less consistent separation from random-head controls. The most consistent causal effects arise from heads selected by both the attention-based pointer and output-side writer criteria. Code and data: https://github.com/parkquasar/Image-Retrieval-Heads.
Create a lesson
Metadata
- Categories
- cs.CV, cs.CL
- Comments
- Accepted to NeurIPS 2026
Related papers
Let Vision-Language Models Generate Images through Their Representations
Shared title terminologycs.CVJB Kim, Byungwoo Jeon, Kyungmin Lee et al.
Where Compositionality Hides: Shared-Content Interference in Vision-Language Retrieval
Shared title terminologycs.CVChimata Anudeep, Harsh Vardhan Poddar
RI-Prune: Relation and Information Aware Visual Token Pruning for Multi-Image Vision-Language Models
Shared title terminologycs.CVDongjin Lee, Eunju Lee, Jinhee Jang et al.
VISOR: A Vision-Language Selector for Multimodal Time-Series Forecasting
Shared title terminologycs.CVSeunghan Lee, Jun Seo, Junhyeok Kang et al.
Subliminal Learning in Vision-Language Models
Shared title terminologycs.CVArman Hatami, Romina Aalishah, Ilya E. Monosov
SD-LoRA: Training-Time Structural Distillation into LoRA for Few-Shot Vision-Language Adaptation
Shared title terminologycs.CVMohammed Rahman Sherif Khan Mohammad, Ardhendu Behera, Sandip Pradhan et al.