SPiXSeg: Rethinking MLLM-based Image Segmentation as Superpixel Classification

Piyush Tiwary, Sohini Dutta, Prathosh A. ParXiv 2026

TL;DR

Multimodal Large Language Models (MLLMs) are fantastic at talking about images, but notoriously clumsy at drawing pixel-precise outlines around objects without bolting on slow, complex decoders. SPiXSeg solves this by treating an image like a jigsaw puzzle of boundary-hugging "superpixels," turning dense image segmentation into a simple, single-pass binary classification game: is this puzzle piece in or out? By ditching custom mask decoders and sequential token generation, it achieves state-of-the-art segmentation accuracy while running dramatically faster on multi-query workloads.

What Problem Does This Paper Address?

Asking a language model to output a dense pixel mask is like asking a novelist to paint a portrait using only ASCII art—the output medium just doesn't naturally fit the task. To bridge this gap, researchers have relied on four main workarounds, each with a frustrating catch:

  1. External Decoders: Generating a special <seg> token and feeding its hidden state to a separate mask decoder (like SAM), which adds per-query computation overhead.
  2. Learned Mask Tokenizers: Compressing masks into discrete tokens via VQ-VAEs, requiring tedious, multi-stage training pipelines.
  3. Regular Patch Grids: Classifying squares on a checkerboard. Coarse grids create blocky, imprecise boundaries that mix foreground and background, while fine grids explode the number of predictions (and latency) required.
  4. Object Proposals: Having an external detector find objects first and letting the MLLM pick one. This fails completely if you ask for a sub-part of an object (like "the lobster's claws") that the detector didn't isolate.

The authors ask: Is there a native "vocabulary" for masks that hugs object boundaries, requires very few decisions, needs no external decoder, and can be computed once and reused for any question?

Methods

Enter superpixels—contiguous, non-overlapping clusters of pixels that naturally follow image edges and contours. Instead of inventing a complex new architecture, SPiXSeg integrates off-the-shelf superpixels (extracted once per image via SAM 3.1) directly into standard MLLMs like LLaVA-1.5 and InternVL2.5.

Here is how a single forward pass works:

  • Superpixel Tokenization: Rather than training a new visual encoder, SPiXSeg reuses the MLLM’s existing patch embeddings. For each superpixel, it takes an area-weighted average of the visual patches falling inside it, adds the superpixel's centroid positional encoding, and appends these new "spix tokens" to the standard text and image tokens.
  • Single-Pass Attention: Everything goes through the MLLM backbone together. Visual tokens attend to text and each other; superpixel tokens attend to text, visual tokens, and each other. No autoregressive token-by-token generation is needed.
  • Spix-to-Mask (S2M): How do we know if a superpixel belongs in the final mask without adding a classification head? Through a clever dot-product check. S2M compares two hidden states produced by the MLLM: what the model inferred about the superpixel given the text prompt ($\mathbf{h}_i^s$), and the pooled visual representation of what is actually inside that superpixel ($\bar{\mathbf{h}}_i^v$). When they agree (high scaled dot-product similarity), the superpixel is classified as "inside."
Referring Segmentation Examples

The final pixel mask is simply the union of all selected superpixels—no post-hoc refinement required. For semantic segmentation across multiple classes, S2M simply compares those visual states against the hidden states of the class names in the text prompt.

Semantic Segmentation Examples

Datasets

No new datasets are introduced; the authors follow standard generalist segmentation benchmarks:

  • Referring Expression Segmentation (RES) & Comprehension (REC): Evaluated on RefCOCO, RefCOCO+, and RefCOCOg (80 object categories with varied natural language descriptions).
  • Open-Vocabulary Semantic Segmentation: Trained only on COCO-Stuff, and evaluated zero-shot on ADE20K (150 classes), PASCAL Context (59 classes), and PASCAL VOC (20 classes).
  • Out-of-Domain (OOD) Qualitative Tests: Evaluated on Wikimedia Commons paintings, sculptures, and animal close-ups.

Key Insights and Ideas

  • Compute Once, Query Many Times: Because superpixels are completely agnostic to the text prompt, an image only needs to be partitioned once. Asking ten different questions about an image costs almost nothing after the initial 0.83s extraction, as the MLLM pass itself takes just 0.12s.
  • Alignment Over Decoding: You don't need a heavy neural network layer on top of an LLM to draw masks. Measuring agreement between hidden states already inside the MLLM (prompt-conditioned superpixel tokens vs. pooled visual tokens) is enough to classify regions accurately.
  • Sub-Object Reasoning Shines: Because superpixels naturally break objects into sub-parts, SPiXSeg effortlessly segments "the front leg of the chameleon" or "the antennae of the grasshopper" on out-of-domain art and photos, whereas proposal-based baselines get stuck returning the whole animal.

Key Results

  • Referring Segmentation (RES): SPiXSeg achieves a state-of-the-art average cIoU of 80.5 (with LLaVA-1.5-7B) and 81.9 (with InternVL2.5-8B) across RefCOCO/+/g, beating multi-stage tokenizers like SAMTok (79.9), patch-refinement models like Text4Seg+SAM (74.9), and decoder models like PaDT (75.8).
  • Bounding Boxes for Free (REC): Simply drawing a tight box around SPiXSeg’s predicted RES mask—with zero box-specific training—yields 92.2% [email protected], outperforming dedicated box-output MLLMs and specialist detectors.
  • Zero-Shot Semantic Segmentation: Trained solely on COCO-Stuff, SPiXSeg hits 29.0, 59.5, and 95.4 mIoU on ADE20K, PASCAL Context, and PASCAL VOC, beating Text4Seg by +12.5 to +18.9 points.
  • Whole-Workload Speed: Across 385 queries on 50 RefCOCO images, SPiXSeg finishes in 1.4 minutes—making it 1.7× faster than RAS, 2.1× faster than PaDT, 3.0× faster than UFO, and 18× faster than Text4Seg.

Limitations and Future Work

Because every predicted mask is built exclusively from pre-cut superpixels, SPiXSeg is fundamentally bounded by an accuracy "ceiling": if the off-the-shelf superpixel extractor misses a subtle object boundary, SPiXSeg cannot recover it. For instance, swapping SAM 3.1 superpixels (89.0 cIoU ceiling) for coarser EPOC superpixels drops the ceiling to 80.0 cIoU. However, SPiXSeg consistently captures ~92–94% of the maximum possible IoU regardless of the extractor used. Consequently, future improvements in fast, sub-object superpixel extractors will serve as effortless, drop-in upgrades for SPiXSeg without changing a single line of the MLLM architecture.

Summary updated

Abstract

Multimodal large language models (MLLMs) are widely used for image segmentation. However, existing methods either use a decoder or use patch-based approach which trades boundary precision against the number of decisions as coarse grid cells mix foreground and background pixels, while finer grids require many more predictions, and autoregressive mask generation adds sequential decoding overhead. We propose SPiXSeg, which shifts the output from per-patch to per-superpixel label assignment, using superpixel tokens formed by aggregating patch-level visual features. An off-the-shelf model partitions each image into task-agnostic superpixels, so the partition is computed once and reused across tasks. A Spix-to-Mask (S2M) module scores each superpixel token in a single MLLM forward pass by directly comparing the MLLM's hidden representations, without autoregressive generation or a separate scoring network, and the selected superpixels are mapped directly to pixels without refinement. Without any trainable decoder head or post-hoc refinement, SPiXSeg achieves an average cIoU of 80.5 with LLaVA-1.5-7B and 81.9 with InternVL2.5-8B on RefCOCO, RefCOCO+ and RefCOCOg and, when trained only on COCO-Stuff, extends to open-vocabulary semantic segmentation with mIoU of 29.0, 59.5 and 95.4 on ADE20K, PASCAL Context and PASCAL VOC, outperforming several SoTA MLLM baselines. Our results suggest that a fixed, query-agnostic superpixel partition is enough for accurate language-guided segmentation.
BibTeX
@misc{tiwary2026spixseg,
  author = {Piyush Tiwary and Sohini Dutta and Prathosh A. P},
  title = {{SPiXSeg: Rethinking MLLM-based Image Segmentation as Superpixel Classification}},
  year = {2026},
  eprint = {2611.33842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33842},
}
Figure