Unlocking the Potential of MLLMs in Referring Expression Segmentation via a Light-weight Mask Decoder

Jingchao Wang, Zhijian Wu, Dingjiang Huang, Yefeng Zheng, Hong WangarXiv 2025 · DOI

Abstract

Multimodal Large Language Models (MLLMs) have demonstrated exceptional semantic understanding but often struggle with dense spatial tasks like Referring Expression Segmentation (RES). Existing solutions typically rely on heavy external models like the Segment Anything Model (SAM), adding significant computational overhead, or use SAM-free pipelines that sacrifice mask quality. We present MLLMSeg, a framework that leverages internal MLLM features through a Detail-enhanced and Semantic-consistent Feature Fusion (DSFF) module and a lightweight 34M-parameter decoder. MLLMSeg achieves state-of-the-art performance on RefCOCO benchmarks, outperforming SAM-based models while remaining significantly more parameter-efficient.

Introduction

Referring Expression Segmentation (RES) requires a model to identify and mask a specific object in an image based on a natural language description (e.g., "the smallest white teddy bear sitting in front"). While MLLMs excel at interpreting complex queries, their token-based output is inherently ill-suited for pixel-level precision. Current research follows two main paths: SAM-based pipelines, which add over 600 million parameters, and SAM-free pipelines, which often lack the spatial detail needed for crisp masks. MLLMSeg addresses this by bridging the gap between high-level semantics and low-level spatial details using the model's own internal representations.

Methods

The MLLMSeg architecture introduces three key innovations to enable high-fidelity segmentation without the overhead of SAM.

The MLLMSeg architecture overview, showing the integration of the Visual Encoder, LLM, and Light-weight Mask Decoder.
  1. Reusing Internal Features: Instead of an external visual encoder, MLLMSeg extracts "shallow" features directly from the MLLM’s existing vision encoder. These early-stage features preserve raw spatial information (edges, textures) that deeper semantic layers often lose.
  2. DSFF (Detail-enhanced and Semantic-consistent Feature Fusion): This module uses cross-attention to fuse detailed shallow visual features with high-level semantic features from the LLM. This ensures the final mask is both spatially precise and aligned with the text prompt.
  3. Lightweight Mask Decoder: The final mask is generated by a decoder with only 34 million parameters—roughly 1/18th the size of the SAM decoder. It utilizes dynamic upsampling (DySample) to better align pixels compared to static interpolation.

Key Results

Evaluated on standard benchmarks including RefCOCO, RefCOCO+, and RefCOCOg, MLLMSeg sets new performance standards. As shown in the comparative analysis below, MLLMSeg (using the InternVL2.5 backbone) achieves an average cumulative Intersection over Union (cIoU) of 78.9%, surpassing both SAM-based models like LISA and SAM-free models like UFO.

Quantitative comparison of MLLMSeg against state-of-the-art methods across RefCOCO datasets.

Beyond standard benchmarks, the model demonstrated significant robustness on the gRefCOCO dataset, which includes complex multi-object targets and "no target" expressions. In Referring Expression Comprehension (REC) tasks, it reached 91.0% accuracy, a new benchmark for models under 8B parameters. Notably, the framework maintains competitive performance even when the backbone LLM is scaled down to 1B parameters.

Conclusion

MLLMSeg proves that massive external decoders are not a prerequisite for high-quality RES. By effectively mining the internal spatial knowledge of MLLMs and employing a lightweight fusion strategy, the framework achieves state-of-the-art results with minimal computational overhead. Future work will focus on extending this architecture to video segmentation and optimizing for real-time inference on edge devices.

Summary updated

BibTeX
@misc{wang2025unlocking,
  author = {Jingchao Wang and Zhijian Wu and Dingjiang Huang and Yefeng Zheng and Hong Wang},
  title = {{Unlocking the Potential of MLLMs in Referring Expression Segmentation via a Light-weight Mask Decoder}},
  year = {2025},
  eprint = {2508.04107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.04107},
}
Figure