Your Large Vision-Language Model Only Needs A Few Attention Heads For Visual Grounding
Seil Kang, Jinyeong Kim, Junhyeok Kim, Seong Jae Hwang
TL;DR
The paper reveals that a small set of localization heads within frozen LVLMs inherently ground text-referred objects in images, enabling a training-free visual grounding framework. By evaluating two criteria—$S_{img}^{\ell,h}$ and $H({\bm{A}}^{\ell,h})$—the authors identify a handful of localization heads whose attention concentrates on relevant regions; aggregating their attention maps (with Gaussian smoothing) yields bounding boxes or masks without fine-tuning. Across ten LVLMs and standard REC/RES benchmarks, this approach outperforms other training-free methods and rivals fine-tuned methods, particularly as model size grows. The results underscore that LVLMs possess intrinsic text-vision grounding capabilities, offer interpretable attention-based explanations for grounding, and open avenues for real-world applications and image editing via mask guidance. $S_{img}^{\ell,h}$ and $H({\bm{A}}^{\ell,h})$ provide a principled mechanism to extract these localization heads, making the method robust and broadly applicable.
Abstract
Visual grounding seeks to localize the image region corresponding to a free-form text description. Recently, the strong multimodal capabilities of Large Vision-Language Models (LVLMs) have driven substantial improvements in visual grounding, though they inevitably require fine-tuning and additional model components to explicitly generate bounding boxes or segmentation masks. However, we discover that a few attention heads in frozen LVLMs demonstrate strong visual grounding capabilities. We refer to these heads, which consistently capture object locations related to text semantics, as localization heads. Using localization heads, we introduce a straightforward and effective training-free visual grounding framework that utilizes text-to-image attention maps from localization heads to identify the target objects. Surprisingly, only three out of thousands of attention heads are sufficient to achieve competitive localization performance compared to existing LVLM-based visual grounding methods that require fine-tuning. Our findings suggest that LVLMs can innately ground objects based on a deep comprehension of the text-image relationship, as they implicitly focus on relevant image regions to generate informative text outputs. All the source codes will be made available to the public.
