arXiv:2610.32220cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32220

Angular Supervision for Visual Object Grounding in Autoregressive Vision-Language Models

Parsa Esmaeilkhani, Longin Jan Latecki

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Autoregressive vision-language models (VLMs) struggle to ground generated text in the correct image regions, and existing explainability methods, such as attention maps and Logit Lens, often produce poor spatial explanations due to weak text-to-vision attention and sink tokens. We propose Angular Relevance ( RLR_{L}), a simple visualization measure based on cosine similarity between visual token embeddings and unembedding-matrix rows. Because RLR_{L} is invariant to token norm, it produces substantially sharper and more faithful heatmaps than attention maps or Logit Lens on out-of-the-box models. Without any training, RLR_{L} yields competitive referring-expression segmentation (RES), outperforming prior diagnostic maps and CLIP-based training-free methods. To preserve localized object information during cross-modal mixing, we introduce Angular Object-Aware Loss (AOL), an auxiliary loss that directly supervises visual token embeddings to align angularly with the vocabulary directions of their corresponding object concepts. Fine-tuning with AOL alongside the standard next-token prediction objective significantly sharpens object localization in heatmaps, showing that the VLM's own visual tokens can be used directly for grounding and improving RES, without training any segmentation heads and without degrading general VQA performance. We further demonstrate that the learned grounding also transfers to category-level segmentation of object categories not seen during training.

1. Introduction

Autoregressive vision–language models (VLMs) have become increasingly capable at generating textual answers conditioned on images [2, 4, 26]. In these models, the image is represented as a sequence of image patch features projected into the LLM embedding space; we refer to these projected image tokens as visual tokens. These visual tokens are concatenated with text tokens and processed jointly by the LLM through self-attention. Despite this joint processing, it remains difficult to determine whether a generated word is grounded in the correct visual evidence. This issue is especially important for object-level grounding tasks, where the model should not only generate the correct concept, but also localize the corresponding visual evidence in the image [23, 35, 48].

Existing diagnostic tools provide partial views into this process, but they are often disappointing as spatial explanations: attention maps indicate where text tokens attend, while Logit Lens estimates what vocabulary items a visual token may predict. Neither directly measures whether a visual token is semantically aligned with a queried object concept, e.g., in an image containing a cat, whether the visual tokens corresponding to image patches covering the cat are aligned with the vocabulary direction of “cat”. Earlier explainability methods in computer vision, such as CAM and Grad-CAM, produced class-specific heatmaps by projecting convolutional evidence back to image space [37, 51]. With Vision Transformers and CLIP-like models, images became sequences of visual tokens, and attribution methods increasingly relied on attention or gradient signals over token interactions [6, 14, 34].

In autoregressive VLMs, however, the explanation target is no longer a fixed class logit, but a generated text token and its evolving distribution over the vocabulary. This makes the problem different: we need to understand how individual visual tokens support a particular generated word. A common diagnostic is to visualize attention weights from generated text tokens to visual tokens, providing an intuitive link between generated words and image regions. However, attention is an indirect and often unstable explanation: it can be diffuse, strongly layer- and head-dependent, absorbed by sink tokens, or misplaced over irrelevant regions rather than where object-level evidence is stored. Recent studies link visual grounding to a few specialized localization heads [22] and show that grounding failures often arise from weak or misdirected attention [9, 15].

A more natural diagnostic for this setting is Logit Lens,

Figure

Figure 1. Mechanistic comparison of three diagnostic maps for autoregressive vision-language models. Attention maps visualize text-to-vision attention weights, Logit Lens maps visual embeddings through the unembedding matrix and softmax to obtain queried-token probabilities, while Angular Relevance directly measures cosine alignment between final-layer visual embeddings and the queried vocabulary direction (rows of the unembedding matrix).

which projects hidden states through the final unembedding layer to inspect which text tokens the model is leaning toward [19, 32]. For a visual token v with hidden representation hl(v)h_l(v) at layer l, Logit Lens visualizes the probability of a queried token t, written as pθ(t∣hl(v))p_\theta(t \mid h_l(v)). However, because this probability is obtained after the unembedding projection and softmax, the resulting heatmaps can be distorted by vocabulary competition and high-norm visual tokens [45]. As we demonstrate, this makes Logit Lens ineffective at visualizing the semantic content of image patches in modern VLMs such as Qwen2.5-VL: high-norm patches can dominate the map, suppress important object details, and make it difficult to distinguish foreground from background. To address these challenges, we propose Angular Relevance, denoted by RLR_L, a simple visualization method that focuses on angular relationships rather than magnitudes between deep embeddings of visual tokens and selected rows of the VLM unembedding matrix at layer L. Since RLR_L is based on cosine similarity, it is invariant to rescaling of visual-token embeddings, i.e., RL(t,γhL(v))=RL(t,hL(v))R_L(t, \gamma h_L(v)) = R_L(t, h_L(v)) for any γ>0\gamma > 0. This makes the relevance score depend on semantic alignment between the visual embedding and the queried text direction, rather than on embedding norm. Fig. 1 illustrates this distinction.

Although Angular Relevance produces substantially cleaner heatmaps than attention maps and Logit Lens, it remains a diagnostic tool: it reveals how object information is represented, but it does not by itself improve the model's internal grounding. In autoregressive VLMs, visual-token embeddings are repeatedly mixed with text-token embeddings through self-attention, and localized object information can become diffused across the sequence. This motivates the central question of this work: Can we preserve localized object information in the model's own visual-token representations without sacrificing its general language and instruction-following ability?

To answer this question, we introduce Angular Object-Aware Loss (AOL), an auxiliary objective that directly supervises visual-token embeddings in the same unembedding space used by Angular Relevance RLR_{L}. Given a queried object, AOL encourages the embeddings of visual tokens overlapping the object region to align with the corresponding vocabulary direction, while discouraging background tokens from aligning with it. For instance, for the query “cat”, AOL aligns visual-token embeddings from cat patches with the “cat” vocabulary direction, while pushing non-cat patches away. In this way, AOL turns the diagnostic signal of Angular Relevance into a representation-learning objective, directly improving object-level alignment inside the VLM’s own embedding space. When combined with the next-token prediction (NTP) loss, AOL preserves local image content in visual tokens during cross-modal mixing, enabling direct localization of text tokens and improving RES performance without degrading the model’s language and instruction-following ability. We refer to Fig. 2 for visual comparison.

This design differs from segmentation-oriented VLMs that improve grounding by attaching a mask decoder or dense prediction module and supervising the resulting architecture for mask prediction [23, 35]. Such dense prediction pathways can introduce tension with preserving the language ability of the original autoregressive model [43]. In contrast, AOL uses object masks only to provide per-token supervision for the model's existing visual embeddings, rather than as targets for training a separate mask-prediction head. Our main contributions can be summarized as:

• We propose a simple Angular Relevance measure RLR_{L} of image patch tokens wrt text tokens. We demonstrate experimentally that R provides a stronger explainability signal than Logit Lens and attention visualization on out-of-the-box models.

• We propose an auxiliary loss, called Angular object-aware loss (AOL), that forces visual tokens to preserve their localized information about the image content. We show that AOL provides a more direct and stronger gradient signal to visual tokens than NTP loss. Moreover, AOL significantly reduces high norm tokens among visual tokens, which are a byproduct of softmax used in NTP.

• We obtain a substantial improvement in the quality of heatmaps when RLR_{L} is applied after finetuning with AOL + NTP, so that the heatmaps can be used to obtain strong RES results. This implies that visual tokens can be directly utilized for the visual grounding of text tokens. This shows that AOL keeps visual information localized and does not degrade the language capabilities of the VLM on downstream tasks.

• We demonstrate experimentally that the visual grounding ability generalizes to object classes that exhibit no corresponding category in the training data.