Manuscript Offprint
arXiv:2610.32220Angular Supervision for Visual Object Grounding in Autoregressive Vision-Language Models
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 ( ), a simple visualization measure based on cosine similarity between visual token embeddings and unembedding-matrix rows. Because 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, 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 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 at layer l, Logit Lens visualizes the probability of a queried token t, written as . 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 , 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 is based on cosine similarity, it is invariant to rescaling of visual-token embeddings, i.e., for any . 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 . 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 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 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.
As visual tokens pass through the layers of an LLM, their embeddings are mixed with language tokens in the attention layers, causing localized visual information to diffuse among textual tokens. This can lead to visual information being transferred to language tokens [20], or even ignored entirely, with the LLM generating descriptions for empty images [27]. Additionally, removing half of the visual tokens does not reduce VLM performance, suggesting that the connection between visual tokens and their corresponding image regions is often lost [8].
2.1. Core Idea of Logit Lens
While Logit Lens was originally proposed for visualization in LLMs, it can be naturally applied to autoregressive VLMs.
In an LLM, an unembedding matrix maps the last latent representation of a text token to a logit vector over the vocabulary tokens. After applying the softmax to the logit vector, the logits are converted to a probability distribution over the vocabulary to select the next token , where varies over all vocabulary tokens, and represents the network parameters. Instead of applying the unembedding matrix to , we can apply it to a deep embedding of visual tokens , where is one of the VLM layers 1 : . For a given visual token , we define the relevance of text token to as
3. Methodology
3.1. Relevance Measure for Explainability
We propose to define the relevance score of a text token t to a visual token v as the cosine similarity:
where is the VLM unembedding matrix mapping a d-dimensional hidden representation to a logit vector over the vocabulary , is a deep embedding vector from the last layer , and denotes the t-th row of , treated as a d-dimensional vector so that denotes their inner product.
We use the final layer since it is the only layer directly aligned with the unembedding matrix for vocabulary prediction. If a referring expression contains multiple content words, we first construct a direction for each content word by averaging the corresponding rows of the unembedding matrix when the word is split into multiple subword tokens. We then average these word-level directions to obtain a single query direction . For example, for “the lady with the blue shirt”, we construct directions for “lady”, “blue”, and “shirt”, and then average these three directions to obtain the final query direction.
A heat map visualizing the VLM’s internal confidence of an object described with a text token is given by , where is the set of the image patch tokens. We place the patch scores back into their original spatial positions to form a 2D grid, and resize this grid to match image resolution. We then apply ReLU to suppress negative cosine similarities (anti-aligned directions) and apply light Gaussian smoothing to reduce noise and fill small gaps.
In comparison to Logit Lens, differs in that it computes the normalized dot product, while Logit Lens logits are computed as an unnormalized dot product , which magnifies the influence of high magnitude tokens (sink tokens) that are documented to be present in VLMs [5, 18]. Since the heat map values are scaled for visualization, sink tokens dominate the visualization. Moreover, softmax normalization (included in the computation of in (1)) magnifies the influence of the sink tokens. Therefore, we drop the softmax normalization in the definition of . So, by focusing on the angle , eliminates the influence of high norm tokens, which often heavily distorts the heat maps of Logit Lens. As our results in Fig. 2 demonstrate, these differences lead to significantly better visualizations.
Our relevance measure differs fundamentally from computing cosine similarity between patch-level visual features and a sentence-level text representation in CLIP [34]. CLIP-based grounding exploits the alignment learned during contrastive pretraining, where similarity maps provide a form of localization that is external to the vision-language model and remains fixed once visual features are extracted. In contrast, our approach defines relevance on visual tokens after they have been processed and mixed with language tokens inside the LLM. By operating in the unembedding space of the language model, our relevance measure reflects how localized visual information is represented within the model's internal process.
3.2. Angular Object-Aware Loss
Rather than training a separate decoder to predict masks [23, 35], we supervise visual embeddings themselves, in the same unembedding-aligned space used by . This keeps the supervision parameter-free with respect to the architecture and avoids the forgetting risk such pathways can introduce [43]. Our goal is to link these embeddings to the language tokens describing their content, testing whether object-level grounding can live inside the VLM's own representations.
One natural way to do this is to utilize Logit Lens. Even though Logit Lens was initially designed for LLMs it also applies to VLMs, as demonstrated in [19]. It provides good-quality object confidence maps by visualizing the probability of text tokens over all visual tokens. However, due to softmax normalization of logits, We face two problems if we want to use it as an auxiliary loss function to improve visual grounding in the vocabulary probability space:
-
if we increase the prob of a text token for a given visual token , its synonyms are suppressed, since softmax is applied to logits, e.g., if represents "cat", increasing may decrease the probability of generating "kitten".
-
to produce a heatmap , we go over all visual tokens for a given text token . But if a token is an outlier (has a high norm), its may be large, even though is irrelevant to the image content, i.e., the angle between and is large for all , where is the set of the image patch tokens.
To address these issues, we explore a different approach. Let text token t represent the content of visual token v. Our idea is to align with in the embedding space. The most obvious way to do so is to maximize their cosine similarity, as in the definition of for visualization in Eq. (2).
However, a plain cosine objective , with , has a gradient of magnitude , which vanishes as : once a token is roughly aligned, the pull toward tight alignment fades.
To address this, and following additive angular-margin losses [13], we impose a stricter alignment requirement through an angular margin. The angular-margin similarity is defined as
where is a fixed margin (typically ). We set ; its choice is analyzed in the appendix. The range of . So, if we define
the values of g are in the interval with small angles between two vectors yielding values close to zero.
Let denote the set of all visual (patch) tokens in the image and the subset of patches overlapping with a ground-truth region of the queried object. In other words, we obtain by projecting the ground-truth segmentation mask onto the visual-token grid and selecting tokens whose receptive fields overlap with the annotated object region.
Let be the last layer of the LLM module, be a text token, and be the -row of the unembedding matrix . We define Angular Object-aware Loss (AOL) as
(5)
where is a vector of model parameters. So, for each patch overlapping with the queried object described by text token , we want to minimize the angle between its deep embedding and those of . At the same time, we want to increase the angle between the deep embedding of and if patch does not overlap with the queried object. We stress that is applied only to deep embeddings of visual tokens at the final layer as it is aligned with the Unembedding matrix. Finally, we propose to augment the standard

Lady in a blue shirt
Motorcycle on the right

Far left gray car
Figure 2. From left to right: (1) input image with referring expression used to query the Qwen2.5-VL model, (2) attention map from the text-to-vision attention, (3) Logit Lens heatmap, (4) heatmap produced by our relevance measure on the base model, and (5) heatmap produced by after fine-tuning with NTP+AOL. Columns (2)–(4) are obtained from the base model. Our relevance measure yields more localized and semantically aligned heatmaps than attention and Logit Lens, and fine-tuning with AOL further sharpens object localization. Warmer areas indicate higher relevance.
NTP loss with:
- Direct Gradient to Visual Tokens with AOL
AOL and NTP differ in how their gradients reach the visual tokens. AOL is computed directly from the visual embeddings through the unembedding matrix, so every visual token enters the loss explicitly and receives a gradient in a single step. NTP, in contrast, is evaluated only at the text-output positions, and the visual embeddings at that layer never participate in next-token prediction; hence for all visual tokens v. NTP can influence a visual token only indirectly, by propagating back through self-attention, where the signal is scaled by the text-to-vision attention weights. Since these weights are small for most patches, the gradient that actually reaches a visual token is strongly attenuated, so AOL delivers a more direct and stronger signal than NTP.
The direct path also gives AOL a well-behaved magnitude. Because AOL depends only on the angle between and , it is scale-invariant, i.e., for any . As derived in the Appendix, the gradient norm for an object token is , where . The factor gives low-norm tokens larger angular updates than high-norm ones. Empirically, NTP+AOL also yields fewer high-norm visual tokens (Fig. 4); we report this as an observation, since AOL's gradient is orthogonal to and does not directly shrink its norm. The margin keeps the gradient nonzero near alignment, since as , so foreground tokens continue to be pulled toward tight alignment. In contrast, NTP admits no input-independent lower bound, since its visual-token gradient vanishes whenever the relevant attention weights are small. We provide the full derivation in the Appendix.
5. Experimental Results
5.1. Tasks and Evaluation Protocol
We evaluate referring-expression grounding on Ref-COCO+/g [48], all built on MS-COCO images and annotated with natural-language expressions for target objects. We train on the standard training splits and report results on
| Methods | Backbone | With SAM | RefCOCO | RefCOCO+ | RefCOCOg | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| val | testA | testB | val | testA | testB | val | test | |||
| Cropping [49] | CLIP | Y | 22.7 | 21.1 | 23.1 | 24.1 | 22.4 | 23.9 | 28.7 | 27.5 |
| TAS [39] | CLIP | N | 29.5 | 30.3 | 28.2 | 33.2 | 38.8 | 28.0 | 35.8 | 36.2 |
| Ref-Diff [31] | Stable Diff | Y | 35.2 | 37.4 | 34.5 | 35.6 | 38.7 | 31.4 | 38.6 | 37.5 |
| RESAnything [41] | Pixtral-12B | Y | 68.5 | 72.2 | 70.3 | 60.7 | 65.6 | 52.2 | 60.1 | 60.5 |
| Logit Lens (Qwen adapt.) [19] | Qwen2.5-VL-7B | N | 63.2 | 64.8 | 60.1 | 52.4 | 57.1 | 45.9 | 53.2 | 54.1 |
| Logit Lens (Qwen adapt.) + SAM2 [19] | Qwen2.5-VL-7B | Y | 71.3 | 72.5 | 66.8 | 60.1 | 63.5 | 53.2 | 62.8 | 64.2 |
| Localization-Head [22] | LLaVA-1.5-7B | Y | 74.2 | 76.5 | 70.4 | 62.5 | 65.2 | 56.0 | 64.2 | 68.1 |
| Localization-Head [22] | LLaVA-1.5-13B | Y | 76.1 | 78.9 | 72.8 | 64.1 | 67.1 | 57.3 | 67.7 | 69.0 |
| Ours (training-free) | ||||||||||
| Heatmap + Thr | LLaVA-1.5-7B | N | 64.6 | 66.3 | 61.2 | 54.1 | 58.8 | 47.2 | 55.0 | 55.8 |
| Heatmap + SAM2 | LLaVA-1.5-7B | Y | 75.1 | 77.2 | 71.4 | 64.5 | 68.2 | 56.3 | 65.2 | 66.4 |
| Heatmap + Thr | Qwen2.5-VL-7B | N | 66.2 | 68.4 | 62.8 | 55.3 | 60.1 | 48.6 | 56.4 | 57.2 |
| Heatmap + SAM2 | Qwen2.5-VL-7B | Y | 77.4 | 79.2 | 74.8 | 67.5 | 70.5 | 59.4 | 68.6 | 69.5 |
Table 1. Referring Expression Segmentation result of training-free methods in cIoU (%). For our approach, Heatmap+Thr obtains masks by thresholding (binarizing) the relevance heatmap, while Heatmap+SAM2 uses the heatmap to generate masks via SAM2. “Backbone” denotes the main model family used for grounding, including CLIP-based methods and autoregressive VLMs. “With SAM” indicates whether SAM/SAM2 is used at any stage of the pipeline (Y: yes, N: no). Red/blue denote best/second-best.
the validation and test sets. To evaluate cross-dataset generalization, we also test the RefCOCO-trained Qwen2.5-VL model on ImageNet-S50 [16], a category-level semantic segmentation benchmark with different images and a broader set of object categories.
For RefCOCO+/g, we evaluate referring expression segmentation (RES) to assess the quality of our relevance maps and the effect of Angular Object-Aware Loss (AOL) on two VLM backbones: LLaVA-1.5-7B and Qwen2.5-VL-7B. The model first produces an Angular Relevance heatmap from the final-layer visual-token embeddings for the queried expression. We then convert this heatmap into a segmentation mask in two ways. In the thresholding setting, we directly binarize the heatmap to obtain a mask. In the SAM2-refinement setting, we extract a bounding box from the largest connected component of the heatmap and use that box as a prompt to a frozen SAM2 model, which refines the spatial extent of the predicted object. In both cases, semantic localization comes from our heatmap, and no segmentation head is trained. For ImageNet-S50, we use the same heatmap-to-mask procedure, except that the query is the ImageNet class name rather than a referring expression. Thresholding details are provided in the Appendix.
Segment Anything Model 2 (SAM2) [36] is applied only as a frozen post-processing module that refines spatial extents within a given box. It is not conditioned on text and does not perform object recognition, so segmentation quality reflects the semantic accuracy of the localization provided by our heatmaps. We do not use text-conditioned models such as SAM3 [7] for evaluation because they would add an external text-grounding module and are designed for simple concept prompts such as “brown dog”, whereas RefCOCO expressions often include attributes, spatial relations, and instance-level descriptions.
5.2. Segmentation Results
In order to demonstrate the visual grounding ability of the proposed framework, we show the segmentation results obtained from our heatmaps.
Training-free RES. Training-free segmentation results for the RES task are shown in Table 1. Our relevance-based heatmaps consistently outperform maps derived from attention and Logit Lens across all dataset splits and backbones, with especially large gains over Logit Lens with Qwen2.5-VL. Interestingly, our relevance maps alone outperform CLIP-based methods. Overall, angular relevance in the unembedding space provides a stronger grounding signal than attention or Logit Lens probabilities. While localization-head methods, such as [22], explicitly search for or reweight specific attention heads using additional criteria, our approach simply achieves strong localization using only angular alignment between visual embeddings and vocabulary directions, without head selection or architectural modification. Moreover, strong visual grounding in our heatmaps enables effective mask refinement when combined with SAM2, yielding further improvements over direct thresholding and outperforming training-free SOTAs.
RES with AOL supervision. Supervised VLM-based RES results are reported in Table 2. While prior methods commonly use mask annotations to train segmentation heads, mask decoders, or additional grounding modules, we use the masks only to define positive and negative visual tokens for AOL supervision. With this representation-level supervision, NTP+AOL produces strong threshold-based masks on both LLaVA-1.5-7B and Qwen2.5-VL, without adding a trainable segmentation head. This indicates that the gains are not backbone-specific and that object-level information can be preserved directly by the VLM's visual-token representations. For fair comparison, F-LMM is evaluated using a frozen LLaVA-1.5-7B backbone, and for GLaMM we report results from the GLaMM-FS-7B FullScope variant. When heatmap-derived boxes are passed to frozen SAM2 for object-boundary refinement, performance improves further and reaches near state-of-the-art results across RefCOCO/+g splits. These results show that AOL learns semantically accurate localization cues that can be converted into high-quality masks either by simple thresholding or by frozen object-boundary refinement, without architectural modification to the VLM.
| Methods | RefCOCO | RefCOCO+ | RefCOCOg | |||||
|---|---|---|---|---|---|---|---|---|
| val | testA | testB | val | testA | testB | val | test | |
| LISA-7B [23] | 74.1 | 76.5 | 71.1 | 62.4 | 67.4 | 56.5 | 66.4 | 68.5 |
| GSVA-7B [44] | 76.4 | 77.4 | 72.8 | 64.5 | 67.7 | 58.6 | 71.1 | 72.0 |
| F-LMM-7B [43] | 75.2 | 79.1 | 71.9 | 63.7 | 71.8 | 54.7 | 67.1 | 68.1 |
| LISA-13B [23] | 73.4 | 76.2 | 69.5 | 62.3 | 66.6 | 56.3 | 68.2 | 68.5 |
| GSVA-13B [44] | 77.7 | 79.9 | 74.2 | 68.0 | 71.5 | 61.5 | 73.2 | 73.9 |
| GLaMM [35] | 79.5 | 83.2 | 76.9 | 75.9 | 78.7 | 68.8 | 76.8 | 78.4 |
| PSALM [50] | 83.6 | 84.7 | 81.6 | 72.9 | 75.5 | 70.1 | 73.8 | 74.4 |
| Ours (NTP+AOL), backbone: LLaVA-1.5-7B | ||||||||
| Heatmap + Thr | 69.1 | 72.4 | 65.8 | 63.1 | 65.5 | 57.8 | 64.4 | 66.2 |
| Heatmap + SAM2 | 78.4 | 80.6 | 74.9 | 68.5 | 71.8 | 61.2 | 69.8 | 71.2 |
| Ours (NTP+AOL), backbone: Qwen2.5-VL-7B | ||||||||
| Heatmap + Thr | 73.4 | 75.8 | 70.2 | 65.1 | 68.8 | 59.6 | 68.1 | 68.9 |
| Heatmap + SAM2 | 82.7 | 84.1 | 79.6 | 74.5 | 77.6 | 68.5 | 75.4 | 76.5 |
Table 2. Referring Expression Segmentation results of supervised VLM-based methods. All methods use pixel-level supervision, either by fine-tuning a VLM or by training a task-specific segmentation head. AOL finetuning improves average RES cIoU over the base model by +7.7 (LLaVA, Thr), +4.0 (LLaVA, SAM2), +9.4 (Qwen, Thr), and +6.5 (Qwen, SAM2) points.
As shown in Fig. 2, our relevance-based heatmaps provide substantially clearer and more accurate object localization than both attention maps and Logit Lens, which often highlight imprecise or semantically mixed regions. In contrast, produces compact responses aligned with the referred objects. Adding AOL on top of NTP further sharpens localization and improves instance discrimination. For example, in the third row, the model activates on multiple objects of the same category (cars) but assigns the highest relevance to the specific instance described by the referring expression (the left gray car).
Cross-dataset generalization on ImageNet-S50. We evaluate whether the visual representations learned by Qwen2.5-VL with NTP+AOL on RefCOCO transfer to ImageNet-S50 [16], which contains different images and a broader set of object categories. To determine the gener- alization ability of our approach to unfamiliar objects, we partition ImageNet-S50 into COCO-overlap classes, which have a similar MS-COCO category, and COCO-disjoint classes, which have no corresponding MS-COCO category. The full mapping is provided in Appendix section "ImageNet-S50 Class Partition". Table 3 reports mIoU from thresholded heatmaps. Even before AOL training, Angular Relevance outperforms Logit Lens, and NTP-only yields only minor gains; in contrast, NTP+AOL improves Angular Relevance from 36.9 to 57.4 mIoU on all classes and from 33.5 to 51.6 mIoU on COCO-disjoint classes. The disjoint-class gain (+18.1 mIoU) is only modestly smaller than the overlap-class gain (+22.6 mIoU), suggesting the generalization ability of AOL to unfamiliar out-of-distribution objects. Fig. 3 shows qualitative examples on COCO-disjoint classes.
| Method | Setting | All | Overlap | Disjoint |
|---|---|---|---|---|
| Logit Lens | Base | 28.8 | 29.9 | 27.5 |
| NTP | 30.2 | 31.2 | 28.7 | |
| Ang. Rel. | Base | 36.9 | 39.8 | 33.5 |
| NTP | 38.5 | 41.6 | 35.2 | |
| NTP+AOL | 57.4 | 62.4 | 51.6 | |
| +20.5 | +22.6 | +18.1 | ||
Table 3. ImageNet-S50 cross-dataset generalization. Results in mIoU for Qwen2.5-VL trained on RefCOCO and evaluated on ImageNet-S50. Overlap classes have some similarity to MS-COCO classes, whereas Disjoint classes do not.

Figure 3. Angular Relevance heatmaps on COCO-disjoint ImageNet-S50 classes. The model localizes object categories absent from RefCOCO training, including food items and animals.
More experimental results, ablations, visualizations, and implementation details are provided in the appendix.
6. Ablation Studies
Causal faithfulness. To test whether AR identifies patches that the model actually uses, we perform a representation-intervention experiment on RefCOCO val. We first set to the number of visual patches corresponding to the ground-truth object region for each image. Replacing the top-k AR patches with the average patch embedding reduces referring expression comprehension accuracy from 91.8% to 77.4%, whereas replacing the same number of random patches reduces it only to 87.6%. Thus, patches assigned high relevance by AR are substantially more important to the model's prediction than random patches.
Effect of AOL on visual embedding norm. As demonstrated in histograms in Fig. 4, AOL+NTP compresses the norm distribution of visual embeddings and reduces high-norm outliers, which are known to cause sink-token behavior and magnitude-dominated explanations. This makes heatmaps derived from our relevance measure (Eq. (2)) more faithful and spatially localized.

Figure 4. norms of final-layer visual token embeddings on RefCOCO validation. Compared with NTP-only finetuning, NTP+AOL produces a more compact visual-token norm distribution and fewer high-norm outliers.
General VQA and hallucination. To assess whether AOL affects general VLM behavior, we evaluate Qwen2.5-VL on VQAv2 [17] and POPE [25]. As shown in Table 4, NTP+AOL does not degrade general question answering or object hallucination relative to the base model or NTP-only finetuning, and slightly improves both metrics.
| Method | VQAv2 | POPE |
|---|---|---|
| Base Model | 80.5 | 86.77 |
| NTP | 80.6 | 87.50 |
| NTP + AOL | 81.2 | 89.87 |
Table 4. General VQA and hallucination performance for Qwen2.5-VL-7B.
AOL with pseudo-mask supervision. We also find that AOL can be trained without ground-truth masks. Starting from Qwen2.5-VL, which obtains 66.2 cIoU before AOL training, pseudo-masks generated by a specialized segmentation model can be used to define positive and negative visual tokens during training, improving RefCOCO validation cIoU to 69.6 and approaching the 73.4 cIoU obtained with ground-truth masks. Details are provided in the appendix section “AOL with Pseudo-mask Supervision.”
7. Related Work
Large-scale VLMs align images and text via contrastive learning, frozen vision encoders, or autoregressive LMs [2, 34]. We focus on instruction-tuned autoregressive VLMs [3, 24, 26], which perform well on captioning, retrieval, and VQA [2, 24, 34, 42, 47]. However, they can hallucinate, underuse visual tokens, and exhibit attention-sink behavior [8, 21, 27], suggesting that NTP weakly supervises patches and allows visual embeddings to drift from image content. Also, removing visual tokens inside ground-truth regions strongly reduces performance [30].
Several lines of work address grounding or visual preservation at different levels. Segmentation-oriented VLMs such as LISA [23], F-LMM [43], and GLAMM [35] add grounding-specific mechanisms for mask or region prediction, while referring-expression methods often use task-specific architectures for box or mask grounding [29, 48]. Other approaches use coordinate or token prediction, as in Pix2Seq and Kosmos-2 [10, 33], global cross-modal alignment, as in CLIP, UNITER, and ViLBERT [11, 28, 34], or visual-preservation losses such as VIRAL's feature alignment with vision foundation model representations and ROSS's reconstruction-based supervision during visual instruction tuning [40, 46]. In contrast, AOL targets grounding inside the VLM by aligning internal visual-token embeddings with object-specific vocabulary directions.
Finally, visualization methods such as attention analysis [12, 15, 21], VL-InterpreT [1], Grad-CAM [38], and Logit Lens [19, 32] provide spatial or token-level cues. Angular Relevance instead evaluates how well visual embeddings align with vocabulary directions, generating heatmaps that support both analysis and grounding.
8. Conclusion
We proposed Angular Relevance ( ) for explainability in autoregressive VLMs, producing more faithful and localized heatmaps than attention maps and Logit Lens. We further introduced Angular Object-Aware Loss (AOL), a direct angular supervision on visual embeddings that preserves localized visual information during cross-modal mixing. Experiments on the RES task show strong training-free grounding and consistent gains after NTP+AOL finetuning, improving segmentation without training any segmentation heads. The learned grounding further transfers to object categories absent from training, all while preserving general VQA performance.
9. Acknowledgment
This work was supported by NSF grant IIS-2331768.
References
[1] Estelle Aflalo, Meng Du, Shao-Yen Tseng, Yongfei Liu, Chenfei Wu, Nan Duan, and Vasudev Lal. VI-interpret: An interactive visualization tool for interpreting vision-language transformers, 2022. 8
[2] Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. In Advances in Neural Information Processing Systems, pages 23716–23736, 2022. 1, 8
[3] Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond, 2023. 8
[4] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025. 1, 3
[5] Federico Barbero, Álvaro Arroyo, Xiangming Gu, Christos Perivolaropoulos, Michael Bronstein, Petar Veličković, and Razvan Pascanu. Why do llms attend to the first token?, 2025. 4
[6] Walid Bousselham, Angie Boggust, Sofian Chaybouti, Hendrik Strobelt, and Hilde Kuehne. Legrad: An explainability method for vision transformers via feature formation sensitivity. arXiv preprint arXiv:2404.03214, 2024. 1
[7] Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris, Chaitanya Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, Jie Lei, Tengyu Ma, Baishan Guo, Arpit Kalla, Markus Marks, Joseph Greer, Meng Wang, Peize Sun, Roman Rädle, Triantafyllos Afouras, Effrosyni Mavroudi, Katherine Xu, Tsung-Han Wu, Yu Zhou, Liliane Momeni, Rishi Hazra, Shuangrui Ding, Sagar Vaze, Francois Porcher, Feng Li, Siyuan Li, Aishwarya Kamath, Ho Kei Cheng, Piotr Dollár, Nikhila Ravi, Kate Saenko, Pengchuan Zhang, and Christoph Feichtenhofer. Sam 3: Segment anything with concepts, 2026. 6
[8] Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models, 2024. 3, 8
[9] Shiqi Chen, Tongyao Zhu, Ruochen Zhou, Jinghan Zhang, Siyang Gao, Juan Carlos Niebles, Mor Geva, Junxian He, Jiajun Wu, and Manling Li. Why is spatial reasoning hard for vlms? an attention mechanism perspective on focus areas, 2025. 1
[10] Ting Chen, Saurabh Saxena, Lala Li, David J. Fleet, and Geoffrey Hinton. Pix2seq: A language modeling framework for object detection. In ICLR, 2022. 8
[11] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Universal image-text representation learning. In European conference on computer vision, pages 104–120. Springer, 2020. 8
[12] Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. arXiv preprint arXiv:2309.16588, 2023. 8
[13] Jiankang Deng, Jia Guo, Jing Yang, Niannan Xue, Irene Kotsia, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10):5962–5979, 2022. 4
[14] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021. 1
[15] Parsa Esmaeilkhani and Longin Jan Latecki. Direct visual grounding by directing attention of visual tokens, 2025. 1, 8
[16] Shanghua Gao, Zhong-Yu Li, Ming-Hsuan Yang, Ming-Ming Cheng, Junwei Han, and Philip Torr. Large-scale unsupervised semantic segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(6):7457–7476, 2023. 6, 7
[17] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6904–6913, 2017. 8
[18] Xiangming Gu, Tianyu Pang, Chao Du, Qian Liu, Fengzhuo Zhang, Cunxiao Du, Ye Wang, and Min Lin. When attention sink emerges in language models: An empirical view, 2025. 4
[19] Nick Jiang, Anish Kachinthaya, Suzie Petryk, and Yossi Gandelsman. Interpreting and editing vision-language representations to mitigate hallucinations. In ICLR, 2025. 2, 4, 6, 8
[20] Omri Kaduri, Shai Bagon, and Tali Dekel. What's in the image? a deep-dive into the vision of vision language models. In CVPR, 2025. 3
[21] Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae Hwang. See what you are told: Visual attention sink in large multimodal models. In ICLR, 2025. 8
[22] Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae Hwang. Your large vision-language model only needs a few attention heads for visual grounding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 9339–9350, 2025. 1, 6
[23] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation via large language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9579–9589, 2024. 1, 3, 4, 7, 8
[24] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning, pages 19730–19742. PMLR, 2023. 8
[25] Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Wayne Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023. 8
[26] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36:34892–34916, 2023. 1, 3, 8
[27] Shi Liu, Kecheng Zheng, and Wei Chen. Paying more attention to image: A training-free method for alleviating hallucination in lvlms. In European Conference on Computer Vision, pages 125–140. Springer, 2024. 3, 8
[28] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. Advances in neural information processing systems, 32, 2019. 8
[29] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In CVPR, 2016. 8
[30] Clement Neo, Luke Ong, Philip Torr, Mor Geva, David Krueger, and Fazl Barez. Towards interpreting visual information processing in vision-language models, 2025. 8
[31] Minheng Ni, Yabo Zhang, Kailai Feng, Xiaoming Li, Yiwen Guo, and Wangmeng Zuo. Ref-diff: Zero-shot referring image segmentation with generative models, 2023. 6
[32] nostalgicbraist. Interpreting gpt: The logit lens. https://www.lesswrong.com/posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens, 2020. LessWrong. 2, 8
[33] Zhiliang Peng, Wenhui Wang, Li Dong, Yaru Hao, Shaohan Huang, Shuming Ma, and Furu Wei. Kosmos-2: Grounding multimodal large language models to the world. In ICLR, 2023. 8
[34] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 1, 4, 8
[35] Hanoona Rasheed, Muhammad Maaz, Sahal Shaji, Abdelrahman Shaker, Salman Khan, Hisham Cholakkal, Rao M Anwer, Eric Xing, Ming-Hsuan Yang, and Fahad S Khan. Glamm: Pixel grounding large multimodal model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13009–13018, 2024. 1, 3, 4, 7, 8
[36] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dollár, and Christoph Feichtenhofer. Sam 2: Segment anything in images and videos, 2024. 6
[37] Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via
gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. 1
[38] Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. International Journal of Computer Vision, 128(2):336–359, 2019. 8
[39] Yucheng Suo, Linchao Zhu, and Yi Yang. Text augmented spatial-aware zero-shot referring image segmentation, 2023. 6
[40] Haochen Wang, Anlin Zheng, Yucheng Zhao, Tiancai Wang, Zheng Ge, Xiangyu Zhang, and Zhaoxiang Zhang. Reconstructive visual instruction tuning, 2024. 8
[41] Ruiqi Wang and Hao Zhang. Resanything: Attribute prompting for arbitrary referring segmentation, 2025. 6
[42] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. Simvlm: Simple visual language model pretraining with weak supervision. arXiv preprint arXiv:2108.10904, 2021. 8
[43] Size Wu, Sheng Jin, Wenwei Zhang, Lumin Xu, Wentao Liu, Wei Li, and Chen Change Loy. F-lmm: Grounding frozen large multimodal models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24710–24721, 2025. 3, 4, 7, 8
[44] Zhuofan Xia, Dongchen Han, Yizeng Han, Xuran Pan, Shiji Song, and Gao Huang. Gsva: Generalized segmentation via multimodal large language models, 2024. 7
[45] Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks, 2024. 2
[46] Heeji Yoon, Jaewoo Jung, Junwan Kim, Hyungyu Choi, Heeseong Shin, Sangbeom Lim, Honggyu An, Chaehyun Kim, Jisang Han, Donghyun Kim, Chanho Eom, Sunghwan Hong, and Seungryong Kim. Visual representation alignment for multimodal large language models, 2025. 8
[47] Jiahui Yu, Zirui Wang, Vijay Vasudevan, Legg Yeung, Mojtaba Seyedhosseini, and Yonghui Wu. Coca: Contrastive captioners are image-text foundation models. arXiv preprint arXiv:2205.01917, 2022. 8
[48] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C Berg, and Tamara L Berg. Modeling context in referring expressions. In European conference on computer vision, pages 69–85. Springer, 2016. 1, 5, 8
[49] Seonghoon Yu, Paul Hongsuck Seo, and Jeany Son. Zero-shot referring image segmentation with global-local context features, 2023. 6
[50] Zheng Zhang, Yeyao Ma, Enming Zhang, and Xiang Bai. Psalm: Pixelwise segmentation with large multi-modal model. In European Conference on Computer Vision, pages 74–91. Springer, 2024. 7
[51] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1
Supplementary Material for Angular Supervision for Visual Object Grounding in Autoregressive Vision-Language Models
Parsa Esmaeilkhani
Temple University
Philadelphia, USA
Longin Jan Latecki
Temple University
Philadelphia, USA
A. Implementation and Evaluation Details
Training Prompt. We use the same prompt template for training and evaluation, instructing the VLM to output a single bounding box for the referred object:
Given the image and the referring expression, output the bounding box coordinates (x1, y1, x2, y2) of the referred object in pixel coordinates. Output only the four numbers.
Heatmap-to-Mask Generation and Thresholding. For threshold-based mask generation, we first apply ReLU to the heatmap and then binarize it using a scalar threshold computed from per-image heatmap statistics. We evaluate thresholds , where and are the mean and standard deviation of the heatmap values for that image. Pixels with values above are retained in the binary mask. For Angular Relevance heatmaps, gives the best segmentation performance, while for Logit Lens heatmaps, performs best. For evaluation fairness, thresholds were selected once on the RefCOCO train split (AR: ; Logit Lens: ) and then fixed across all evaluation datasets.
AOL Hyperparameters. We ablate the AOL weight and the angular margin radians. On a held out set from Ref-COCO train with Qwen2.5-VL, and achieve the best performance and are used in the main experiments.
Choice of angular margin . The gradient magnitude of AOL scales as (Eq. 9). As , AOL reduces to a plain cosine objective whose gradient vanishes as . A larger keeps the gradient magnitude nonzero near alignment but reduces it for approximately orthogonal tokens (at it equals ), decreasing in ). We swept on RefCOCO train with Qwen2.5-VL; performed best and is used for all datasets and both backbones.
Implementation Configuration. We finetuned the LLava-v1.5-7B and Qwen2.5-VL-7B-Instruct VLMs using DeepSpeed on four NVIDIA A100 GPUs (80 GB VRAM each). The vision encoder remained frozen except for a trainable projection layer, while Low-Rank Adaptation (LoRA) was applied to the layers of the language model: both LLava-v1.5 and Qwen2.5-VL employed a LoRA rank of 16. Note that for the AOL, the language head, which represents the unembedding matrix, was frozen to stay consistent. Training was conducted with a per-GPU batch size of 16 and gradient accumulation of 4 (effective global batch size = 256). Optimization followed a cosine decay learning rate schedule (initial LR = ) with a linear warm-up over the first 3% of total training steps.
B. Layer Ablation for AOL Supervision
Since aligns visual-token embeddings with rows of the unembedding matrix , we expect supervision at deeper layers to be more effective, because the final hidden states are directly mapped by to vocabulary logits. To verify this, we apply AOL to different layer ranges of Qwen2.5-VL and evaluate cIoU on RefCOCO validation using thresholded Angular Relevance heatmaps.
| Layers | First 2 | Middle 2 | Last 1 |
|---|---|---|---|
| cIoU | 67.5 | 70.3 | 73.4 |
Table 1. Effect of the AOL supervision layer range on Ref-COCO validation cIoU (Qwen2.5-VL, NTP+AOL, thresholded heatmaps).
Supervising the final layer performs best, consistent with the fact that the unembedding matrix is most directly aligned with final-layer representations.
C. AOL Component and Margin Ablations
We isolate the effects of NTP, the angular margin, and the foreground and background components of AOL on Qwen2.5-VL.
| Model setting | RefCOCO val cIoU |
|---|---|
| Base Qwen2.5-VL | 66.2 |
| NTP | 66.8 |
| NTP+AOL (m = 0) | 67.9 |
| NTP+AOL (background only) | 68.7 |
| NTP+AOL (foreground only) | 71.2 |
| NTP+AOL (full) | 73.4 |
Table 2. Ablation of the AOL objective on RefCOCO validation (Qwen2.5-VL, thresholded Angular Relevance heatmaps).
Without the angular margin , AOL reaches only 67.9 cIoU, showing that the margin is important in practice.
Foreground-only and background-only supervision reach 71.2 and 68.7 cIoU, respectively, while combining both terms performs best at 73.4, showing that both components contribute, with foreground alignment providing the larger individual gain.
D. Generalization across related text queries.
We also test whether AOL overfits to the exact object word used during supervision. Fig. 1 shows Angular Relevance maps for several cat-related queries. Although AOL is trained using only the category name “cat”, the resulting heatmaps also improve for related words such as “kitten”, “feline”, and “tabby”. This suggests that AOL improves local concept alignment rather than only the supervised word, allowing localization gains to transfer to synonymous and closely related queries.

Figure 1. Angular Relevance maps for synonym queries. Top: base model; bottom: NTP+AOL. Although AOL supervision only uses the category name “cat”, localization also improves for related queries such as “kitten”, “feline”, and “tabby”.
E. Direct Gradient to Visual Tokens with AOL
E.1. Lower bound of AOL gradient
We show that the AOL gradient with respect to visual tokens is strictly positive and scales as . Under bounded hidden-state norms and typical near-orthogonality between visual-token directions and vocabulary directions in high-dimensional spaces, this implies a positive lower bound for the majority of visual tokens.
For simplicity, we focus on a single positive (object), visual token in the last layer . Then reduces to . The gradient with respect to the token representation is
where
For , we can express the gradient magnitude as
As a high-dimensional heuristic, angles between weakly correlated vectors concentrate near with standard deviation . Accordingly, we treat
as an approximation to characterize typical behavior, rather than as a worst-case guarantee.
Consequently, the angular deviation from orthogonality concentrates around with radians, e.g., for Qwen2.5-VL, , rad .
We obtain that the majority of deep embeddings of visual tokens is orthogonal to the rows of unembedding matrix , i.e., for a small . Over this interval, a lower bound is obtained by taking the minimum of . Since , . So, we obtain
Since and , we have , and hence , so the bounds in (4) are positive.
Thus, for a fixed angle, visual tokens with large norms receive smaller AOL gradients than tokens with small norms. However, since AOL is scale invariant, its gradient is orthogonal to the token embedding and does not directly reduce its norm. Empirically, we observe that NTP+AOL reduces outlier visual tokens with high norms, as shown in Fig. 4 of the main paper.
We have estimated that for around 95% of visual tokens in Qwen2.5-VL. So, admits a positive lower bound for the majority of visual tokens s under the empirically observed bound on . Since the gradient to the lower layers propagates through a feed-forward network, will retain strong signal for at least higher layers .
E.2. Absence of a non-trivial lower bound for NTP
The norm of the next-token prediction (NTP) loss for the final-layer L visual-token outputs. Hence NTP loss signal can only propagate to lower layers through self-attention with text tokens. Here we focus only on layer L-1. Unlike the Object Awareness Loss (AOL), the next-token prediction (NTP) loss does not admit a non-trivial uniform lower bound on the gradient norm for most visual tokens s. The reason is structural: the NTP loss is applied only to text tokens, and gradients can reach a visual token s solely through attention-mediated paths. If the attention from text tokens to s is small, then the corresponding Jacobians are small for all , causing the NTP gradient at to become arbitrarily close to zero. Therefore, without additional assumptions on attention weights, the best unconditional lower bound on is zero.
F. ImageNet-S50 Class Partition
To analyze model behavior across varying degrees of semantic overlap with MS-COCO, we partition the 50 ImageNet-S50 classes into COCO-overlap and COCO-disjoint groups by comparing each class name to the 80 MS-COCO categories. The COCO-overlap group is further divided into fine-grained and loose correspondences. Ambiguous cases were placed in the loose COCO-overlap group. The mapping was first constructed manually, then cross-checked using GPT-5.5 Thinking and Claude Sonnet 4.6, and finally manually verified by the authors.
COCO-overlap: fine-grained correspondences (18/50, 36%). Classes that are fine-grained instances of a COCO category (Table 3).
COCO-overlap: loose correspondences (8/50, 16%). Classes with a related but imprecise COCO label (Ta- ble 4). Some are visually in-distribution (e.g., motor scooter → motorcycle), while others share a COCO label by name but differ substantially in visual appearance from typical COCO instances of that category (e.g., container ship → boat, digital watch → clock).
| ImageNet-S50 Class | COCO Category |
|---|---|
| Goldfinch | bird |
| Kuvasz | dog |
| Siamese cat | cat |
| American black bear | bear |
| African elephant | elephant |
| Airliner | airplane |
| Beach wagon | car |
| Bullet train | train |
| Cellular telephone | cell phone |
| Dining table | dining table |
| Golf ball | sports ball |
| Mixing bowl | bowl |
| Park bench | bench |
| Purse | handbag |
| Television | tv |
| Umbrella | umbrella |
| Vase | vase |
| Water bottle | bottle |
Table 3. ImageNet-S50 classes with fine-grained COCO-overlap correspondences.
| ImageNet-S50 Class | COCO Category |
|---|---|
| Giant panda | bear |
| Container ship | boat |
| Digital watch | clock |
| Motor scooter | motorcycle |
| Streetcar | train |
| Toilet seat | toilet |
| Yawl | boat |
| Street sign | stop sign |
Table 4. ImageNet-S50 classes with loose COCO-overlap correspondences.
COCO-disjoint classes (24/50, 48%). Classes with no COCO equivalent constitute the COCO-disjoint set. This includes goldfish, tiger shark, tree frog, ladybug, sulphur butterfly, wood rabbit, hamster, wild boar, red fox, gibbon, ashcan, ballpoint, boathouse, chest, clog, grand piano, iron, lab coat, padlock, table lamp, water tower, lemon, carbonara, and agaric.
G. AOL with pseudo-mask supervision.
To test whether AOL can be trained without ground-truth annotations, we evaluate a weakly supervised variant of Qwen2.5-VL in which AOL supervision is obtained from pseudo-masks generated by SAM3-I [1] on the RefCOCO training set. Given an image and its referring expression, SAM3-I, a dedicated segmentation model, generates a pseudo-mask for the target object. This pseudo-mask is used only during training to define positive and negative visual tokens for AOL. At inference time, the VLM is used normally, without SAM3-I or any segmentation model. As shown in Table 5, pseudo-mask supervision improves cIoU from 66.2 to 69.6, approaching GT-mask supervision at 73.4. For reference, SAM3-I direct segmentation achieves 71.7 cIoU, while the pseudo-mask AOL model reaches 69.6 without a segmentation head.
| Model setting | AOL supervision | cIoU |
|---|---|---|
| Pretrained Qwen2.5-VL | - | 66.2 |
| NTP+AOL | SAM3-I pseudo-masks | 69.6 |
| NTP+AOL | Ground-truth masks | 73.4 |
Table 5. RefCOCO validation cIoU after AOL training with SAM3-I pseudo-mask supervision on RefCOCO train. No frozen segmentation model is used at inference; masks are obtained by Angular Relevance heatmaps + binarization.
H. Energy Pointing Game Evaluation
We additionally report Energy Pointing Game (EPG) as a complementary metric for evaluating localization quality. EPG measures the fraction of a heatmap's positive energy that falls inside the ground-truth mask, and therefore evaluates spatial alignment independently of any binarization threshold. As shown in Table 6, EPG scores consistently follow the same trend as mIoU.
| Method | Setting | All | Overlap | Disjoint | |||
|---|---|---|---|---|---|---|---|
| mIoU | EPG | mIoU | EPG | mIoU | EPG | ||
| Logit Lens | Base model | 28.8 | 34.2 | 29.9 | 36.0 | 27.5 | 32.1 |
| Ang. Rel. | Base model | 36.9 | 39.0 | 39.8 | 39.7 | 33.5 | 38.2 |
| NTP+AOL | 57.4 | 74.5 | 62.4 | 80.4 | 51.6 | 67.6 | |
Table 6. Full Localization results on ImageNet-S50.
I. Referring Expression Comprehension task
We also evaluate referring expression comprehension (REC) on the same datasets, which requires predicting a bounding box from the outputted text for the referred object. For REC, we use the same prompt as in RES that asks the VLM to output bounding box coordinates. Using identical prompts ensures that differences in performance reflect visual grounding quality rather than task-specific prompting.
We evaluate referring expression comprehension (REC) to verify that introducing AOL does not degrade the model's ability to correctly identify the referred object while improving spatial grounding. In Table 7, models fine-tuned with NTP+AOL match or slightly improve upon both the base VLM and models fine-tuned with NTP alone across all datasets, indicating that enhanced visual grounding does not come at the cost of recognition accuracy. Also, our results are comparable to SOTA finetuned VLMs on REC, despite not introducing any task-specific grounding heads.
| Methods | RefCOCO | RefCOCO+ | RefCOCOg |
|---|---|---|---|
| LLaVA-v1.5-7B | |||
| Base Model | 52.90 | 42.55 | 45.00 |
| NTP | 53.20 | 42.90 | 45.40 |
| NTP + AOL | 54.15 | 43.60 | 46.20 |
| Qwen2.5-VL-7B | |||
| Base Model | 90.05 | 85.40 | 86.60 |
| NTP | 90.60 | 85.70 | 86.80 |
| NTP + AOL | 91.80 | 86.60 | 87.50 |
Table 7. Comparison on the REC (Referring Expression Comprehension) task measured by IoU@0.5.
References
[1] Jingjing Li, Yue Feng, Yuchen Guo, Jincai Huang, Wei Ji, Qi Bi, Yongri Piao, Miao Zhang, Xiaoqi Zhao, Qiang Chen, Shihao Zou, Huchuan Lu, and Li Cheng. Sam3-i: Segment anything with instructions, 2026. 4