Words to Masks: Pixel Grounding by Reading Out Pretrained MLLM Representations

Yejie Guo, Haobo Yuan, Haotao Wang, Chung-Chi Tsai, Lee Hsin-Ying, Ming-Hsuan YangarXiv 2026

TL;DR

Multimodal large language models (MLLMs) can already "see" and "talk" about images, but getting them to point at exact pixels usually requires bolting on heavy external segmenters (like SAM) or rewiring the model in ways that hurt its general reasoning. Words to Masks (W2M) shows we don't need either: a tiny, lightweight decoder can read out accurate segmentation masks directly from the visual and text representations a pretrained MLLM already computes. The result matches or beats specialist-assisted models while cutting added parameters by 83%, slashing latency by 87%, and barely touching general VQA performance.

Figure 1. Words to Masks. (Left) Native image patches selectively retrieve object and relational cues from contextualized text states to predict target masks. (Middle) Pretrained readout reaches 70+% cIoU with a frozen MLLM and 80+% with adaptation. (Right) W2M-8B cuts added parameters by 83% and latency by 87% vs. Sa2VA-8B (Table 1), with only a 1.3% average relative VQA drop (Table 2).

What Problem Does This Paper Address?

If you want an AI assistant to not just say "that's a dog" but highlight the exact pixels of the dog, you have two standard options—and both come with baggage:

  1. Specialist-assisted methods pair an MLLM with an external segmentation model like SAM or SAM2. The MLLM outputs a special [SEG] token or prompt, and the segmenter re-encodes the image to draw the mask. This adds hundreds of millions of parameters, slows down inference, and bottlenecks rich descriptions into a single token.
  2. Specialist-free methods ditch the external segmenter, but instead add dedicated segmentation tokens, modify the LLM's causal attention, or force the LLM's own image tokens to predict dense masks. Repurposing LLM image states for pixel-level prediction creates competing optimization demands, often causing severe degradation on general vision-language tasks (VQA).

The authors ask a simple, refreshing question: Do we actually need external segmenters or new segmentation-specific representations, or is the spatial and semantic information already sitting inside pretrained MLLMs waiting to be read out?

Methods

W2M is a lightweight interface that connects two representations already computed during a normal MLLM forward pass—leaving the backbone's causal attention and autoregressive generation completely untouched:

W2M's native representation readout compared to standard architectures
  1. Native Visual Features (before compression): Instead of decoding from LLM-processed image tokens (which are spatially compressed, e.g., to $16 \times 16$, and stripped of fine spatial detail), W2M taps directly into the vision encoder's pre-merge feature grid ($32 \times 32$ for InternVL3).
  2. Contextualized Text States (variable-length): Instead of squeezing a referring expression into a single [SEG] vector, W2M exposes all relevant final-layer text hidden states from the LLM.

A shared 4-block lightweight mask decoder bridges the two. In each block, native image patches first mix locally via a $3 \times 3$ depthwise convolution, then act as queries in a spatially adaptive cross-attention layer that reads from the contextualized text states (keys/values). This lets different image regions selectively pull in object, attribute, and relational cues relevant to their visual content. Finally, a position-wise MLP predicts foreground logits on the $32 \times 32$ grid, which are bilinearly upsampled to the target resolution.

W2M supports direct segmentation (a single prefill pass with no token generation), grounded generation (decoding masks from <p>...</p> spans in generated text), and multi-round / no-target grounding (reusing visual features across turns and generating a negative prefix for absent targets).

Datasets

W2M is initialized from InternVL3-2B and InternVL3-8B and trained with LoRA (rank 256) on a mixed-task recipe:

  • Referring & Reasoning Segmentation: RefCOCO, RefCOCO+, RefCOCOg, ADE20K, and ReasonSeg.
  • Generalized & Multi-Round Segmentation: gRefCOCO and RefCOCO/+/g-MR.
  • Grounded Conversation Generation (GCG): Four GranD-f subsets and GranD-f HA-GCG.
  • General VQA: A 150K subset of LLaVA-665K.

Evaluation covers RefCOCO/+/g, gRefCOCO, GranD-f (GCG), and five general VQA benchmarks: SEED-Bench, MMStar, MMBench, MMMU, and AI2D.

Key Insights and Ideas

  • Pretrained MLLMs already know where things are: Training only the lightweight decoder while keeping the entire InternVL3-8B backbone frozen achieves 70.0% cIoU on RefCOCO/+/g validation—proving substantial segmentation information is already there.
  • Words beat a single [SEG] token: All-text cross-attention outperforms single-state [SEG] conditioning, especially on multi-constraint expressions (79.3% vs. 75.5% cIoU), because different image patches can attend to different words rather than relying on one compressed vector.
  • Native visual features protect VQA: Decoding from pre-compression ViT features rather than LLM-processed image states relieves the LLM of dense-prediction duties, yielding both higher segmentation accuracy and better VQA retention.

Key Results

  • Efficiency & Referring Segmentation: On RefCOCO, W2M-8B achieves 82.8 / 84.2 / 80.6% cIoU (val / testA / testB)—competitive with SAM2-assisted Sa2VA-8B (84.9 / 85.9 / 80.9%) while using 83% fewer added parameters (39.9M vs. 238.2M) and 87% lower latency (73.8 ms vs. 577.1 ms).
  • VQA Preservation: W2M-8B suffers only a 1.3% average relative VQA drop (2.4% for W2M-2B), compared to 8.9% for Sa2VA-8B, 15.7% for SELF1E-8B, and 41.7% for MLLMSeg-8B.
  • GCG & gRefCOCO: Fine-tuned W2M-8B reaches 16.3 METEOR / 49.6 CIDEr / 33.5 AP50 on GCG (outperforming Sa2VA-8B) and 85.8% gIoU / 77.4% cIoU / 87.5% N-acc on gRefCOCO validation (outperforming SAMTok-7B).

Limitations and Future Work

  • Resolution ceiling: W2M predicts masks at $32 \times 32$ and uses simple bilinear upsampling. Without extra high-resolution priors, learned upsamplers (transposed convolutions or MLPs) added parameters and latency with negligible gains; the authors leave image-guided high-resolution refinement to future work.
  • Single-relation queries: On simple single-relation expressions, single-state [SEG] conditioning slightly edged out all-text readout (67.1% vs. 66.0% cIoU), likely because unpooled reference-object tokens can occasionally attract attention from distractor regions.

Summary updated

BibTeX
@misc{guo2026words,
  author = {Yejie Guo and Haobo Yuan and Haotao Wang and Chung-Chi Tsai and Lee Hsin-Ying and Ming-Hsuan Yang},
  title = {{Words to Masks: Pixel Grounding by Reading Out Pretrained MLLM Representations}},
  year = {2026},
  eprint = {2612.02971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.02971},
}
Figure