arXiv:2610.18729cs.CVOct 2026

Manuscript Offprint

arXiv:2610.18729

Segment Where You Look: Attention as the Interface Between Language Models and Segmenters

Eslam Abdelrahman, Hamza Omar Alkaf, Yuheng Li, Siddharth Srinivasan Iyer, Nanxuan Zhao, Eli Shechtman, Krishna Kumar Singh, Mohamed Elhoseiny

Eslam Abdelrahman 1^{1} Hamza Omar Alkaf 1^{1} Yuheng Li 2^{2} Siddharth Srinivasan Iyer 2^{2} Nanxuan Zhao 2^{2} Eli Shechtman 2^{2} Krishna Kumar Singh 2^{2} Mohamed Elhoseiny 1^{1}

1^{1}King Abdullah University of Science and Technology (KAUST) 2^{2}Adobe Research

(a) Mask as text

Figure

(b) Mask via [SEG] embeddings

(c) Mask via [SEG] attention map

Figure

Figure 1: Three ways a vision language model can hand a segmenter its spatial intent. (a) The mask is serialized into the token stream. (b) The dominant design: one d dimensional [SEG] embedding, carrying no spatial index, prompts SAM. (c) Ours: the [SEG] token's attention is already a distribution on the patch grid, so we forward it instead of re-deriving it.

ABSTRACT

Vision-language models (VLMs) that segment from language must pass the location of the referent to a pixel decoder. The dominant interface compresses it into the hidden state of a single [SEG] token, a d-dimensional vector with no spatial index, and leaves the decoder, which never sees the expression, to recover the referent's extent. We show that the VLM already computes a better signal: the [SEG] token's attention over the image tokens, which is defined on the patch grid by construction. Probing a frozen segmentation VLM, we find that this attention yields 18 to 22 more gIoU than the [SEG] hidden state when read by the same probe, that it gains nothing from the image where the hidden state does, and that it is concentrated in the late layers. Building on these findings, we introduce ATTNSEG, which replaces the [SEG] embedding with this attention as the decoder's prompt. A learned, signed combination of the attention heads forms a dense spatial prompt, and an attention-guidance objective supervises it directly. A two-stage recipe first trains the VLM to localize without the decoder and then trains the decoder to refine, within the budget of standard finetuning. Applied to Sa2VA, ATTNSEG improves ReasonSeg by 6.4 gIoU and GS-Eval by 10.2 at 4B (4.2 and 9.6 over the same model finetuned on the same data), and by 8.8 and 11.3 at 14B. The gains reach 13 to 18 gIoU on object parts, multiple objects and single objects, where the referent must be singled out, and are negligible on stuff regions, which the decoder already recovers unaided. Code and models are available at eslambakr.github.io/attseg_project_page.

1 INTRODUCTION

Segmenting an object from a natural-language expression requires deciding which region the expression refers to and where exactly its boundary lies. Promptable segmenters such as SAM (Kirillov et al., 2023), HQ-SAM (Ke et al., 2023) and SAM3 (Carion et al., 2026) have made the second the easier half of the problem: given a prompt that points at the right region, they return a high-quality mask. The first requires understanding the expression, which is the role of a vision-language model.

(VLM). This division of labor motivates the hypothesis at the center of our work: the VLM should be the load-bearing localizer, and the decoder should only refine. Whether this holds depends on the interface, the representation through which the VLM passes the referent's location to the decoder.

Two interfaces dominate (Figure 1a,b). The first serializes the mask into the token stream, as polygon vertices (Liu et al., 2023; Wang et al., 2023), learned codewords (Beyer et al., 2024; Wang et al., 2025b) or per-patch labels (Lan et al., 2025b), so that segmentation becomes next-token prediction. Geometry must then pass through a coarse token bottleneck, and these methods trail decoder-based systems by a wide margin (Section 2). The second, introduced by LISA (Lai et al., 2024) and adopted by most subsequent systems (Rasheed et al., 2024; Zhang et al., 2024a; Yuan et al., 2025), adds a [SEG] token to the vocabulary and prompts the decoder with its final hidden state, so that the boundary is drawn at full resolution by a model built for it.

The [SEG] interface, however, reduces the entire spatial message to a single d-dimensional vector with no spatial index, and the decoder that receives it never sees the expression. A vector can point at the referent, but it cannot specify its granularity: for the left ear of the dog, a pointer to the dog leaves the decoder to guess whether the dog, its head or its ear is meant. The vector is also supervised only through the mask loss computed after the decoder, so nothing requires the VLM to carry the localization, and the decoder absorbs as much of it as it can. The released Sa2VA-4B illustrates the consequence. On GS-Eval (Hu et al., 2025), it reaches 90.8 gIoU on stuff regions, which the decoder can recover from almost any prompt, but only 49.8 on single objects and 17.8 on object parts. This raises a question: does the VLM already compute a better representation of where the referent lies, and can the decoder be prompted with it directly?

The VLM already knows where to look. We answer the first part by probing a frozen Sa2VA (Yuan et al., 2025). A lightweight probe must predict the mask from a single internal signal: either the [SEG] token's hidden state, which the dominant interface transmits, or its attention over the image tokens, which is defined on the patch grid by construction. Read by the same U-Net, the attention yields 18.2 and 21.5 more gIoU than the hidden state on GS-Eval and ReasonSeg (Lai et al., 2024) (Figure 2a). Supplying the RGB image improves the probe of the hidden state by 4 to 7 gIoU and leaves that of the attention unchanged, consistent with the attention already encoding the referent's extent at patch resolution. This localization is, moreover, concentrated in the late layers, while the early layers carry almost none (Figure 2b). To our knowledge, the two signals have not previously been compared within the same frozen model.

Segmenting where the model looks. Building on these findings, we introduce ATTNSEG, which replaces the [SEG] embedding with the [SEG] token's attention as the decoder's prompt (Figure 1c). A learned 1×11 \times 1 convolution with signed weights combines the per-head maps into a single map, emphasizing the informative late heads and subtracting those that attend to sinks or distractors, and the map enters the decoder's dense prompt channel without being thresholded or sampled. An attention-guidance objective supervises this map directly. We adopt a weighted cosine, which asks for the referent's full extent and penalizes concentrated misplaced attention most. Training proceeds in two stages within the budget of a single epoch: the VLM first learns to localize under the attention-guidance objective, without the decoder, and the decoder is then trained to refine the frozen map. Prior systems derive sparse point prompts from attention or similarity maps (Lin et al., 2024; Han et al., 2025; Qian et al., 2025); ATTNSEG instead reads the [SEG] token's own attention, keeps it dense, and trains the VLM to shape it.

Results. Applied to Sa2VA, ATTNSEG improves ReasonSeg by 6.4 gIoU and GS-Eval by 10.2 at 4B, and by 4.2 and 9.6 over the base model finetuned on the same data for the same budget. At 14B, it improves the two benchmarks by 8.8 and 11.3 and reaches 69.7 gIoU on ReasonSeg without any ReasonSeg training data. The gains concentrate where the referent must be singled out: object parts, multiple objects and single objects gain 13 to 18 gIoU, while stuff regions gain under 1.5. After training, a 560-parameter gate that can only reweight the model's own maps recovers close to four fifths of what a 3.86M-parameter U-Net recovers from the same attention, against about half before, which shows that the objective reorganizes the attention into a directly readable form.

In summary, our contributions are threefold:

• A probing analysis that compares, within a frozen segmentation VLM, the two spatial signals of the [SEG] token. It shows that the attention carries considerably more localization than the hidden state the dominant interface transmits, and that this localization is concentrated in the late layers.

• ATTNSEG, which replaces the [SEG] embedding with a learned, signed combination of the [SEG] token’s attention maps as a dense decoder prompt, supervised by an attention-guidance objective and trained in two stages that make the VLM the localizer and the decoder a refiner, within the budget of standard finetuning.

• Consistent improvements at two scales on ReasonSeg and GS-Eval, concentrated on the splits where the referent must be singled out, with analyses showing that the attention-guidance objective accounts for most of the gain and makes the attention directly readable.

References (63)