TLDR: MLLMSeg is a new framework that enhances Multimodal Large Language Models (MLLMs) for Referring Expression Segmentation (RES). It addresses the trade-off between performance and cost by using a lightweight mask decoder (34M parameters) and a novel feature fusion module (DSFF) that combines detailed visual features from the MLLM’s visual encoder with semantic features from its language model. This allows MLLMSeg to achieve state-of-the-art accuracy in RES, REC, and GRES tasks, outperforming heavier SAM-based methods and other lightweight approaches, while being significantly more parameter-efficient.
Referring Expression Segmentation, or RES, is a fascinating area where computer vision meets natural language processing. Imagine telling a computer, “Segment the smallest white teddy bear sitting in front of the other white bear,” and it precisely outlines that specific bear in an image. That’s what RES aims to achieve: segmenting an object or region based on a natural language description.
In recent years, Multimodal Large Language Models (MLLMs) have shown incredible abilities in understanding both images and text. They can answer questions about images, create captions, and even understand complex visual instructions. However, MLLMs are primarily designed to generate text, which makes it challenging for them to perform highly detailed, pixel-level tasks like segmentation.
Current approaches to RES using MLLMs often fall into two categories. Some methods pair MLLMs with the Segment Anything Model (SAM), which is very powerful but comes with a hefty price tag in terms of computational resources, boasting 632 million network parameters. Other methods try to avoid SAM to be more lightweight, but they often sacrifice accuracy. This creates a dilemma: do you go for high performance with high cost, or lower cost with lower accuracy?
To address this trade-off, researchers have introduced a new framework called MLLMSeg. This innovative approach aims to unlock the full potential of MLLMs for RES by cleverly utilizing the visual details already present in the MLLM’s vision encoder, without needing an additional, heavy visual encoder like SAM. The core idea is to make MLLMs better at pixel-level prediction while keeping the model lightweight.
How MLLMSeg Works
MLLMSeg consists of two main parts: the existing MLLM (which includes a visual encoder and a large language model) and a newly designed lightweight mask decoder. When you give MLLMSeg an image and a text description, the visual encoder extracts initial visual features, rich in fine-grained details. Simultaneously, the large language model processes the text and generates semantic information, including special tokens that indicate what needs to be segmented or rejected (if the object isn’t in the image).
A crucial component of MLLMSeg is the Detail-enhanced and Semantic-consistent Feature Fusion module (DSFF). This module acts as a bridge, effectively combining the detailed visual features from the visual encoder with the semantic features from the large language model. Think of it as merging “what it looks like” with “what it means” to create a comprehensive understanding. This fusion ensures that the resulting features are both rich in visual detail and aligned with the natural language description.
Finally, these fused features are fed into a lightweight mask decoder. This decoder is remarkably efficient, with only 34 million network parameters – a significant reduction compared to SAM’s 632 million. Despite its smaller size, this decoder is designed to optimally leverage the detailed spatial features and semantic information to predict precise segmentation masks.
Also Read:
- Object-Aware Reasoning: A New Approach to Audio-Visual Segmentation
- UniFGVC: Enhancing Fine-Grained Image Classification with Training-Free Multimodal Retrieval
Impressive Performance and Efficiency
Extensive experiments have shown that MLLMSeg consistently outperforms both SAM-based and SAM-free competitors across various RES benchmarks, including RefCOCO, RefCOCO+, and RefCOCOg datasets. It achieves state-of-the-art results in Referring Expression Segmentation (RES), Referring Expression Comprehension (REC), and Generalized Referring Expression Segmentation (GRES).
One of the most compelling aspects of MLLMSeg is its efficiency. While SAM-based methods rely on a massive 632 million parameter model, MLLMSeg achieves superior performance with a mask decoder that has only 34 million parameters. This demonstrates a much better balance between performance and computational cost, making it more practical for real-world applications.
The effectiveness of the DSFF module was also confirmed through detailed studies, showing how combining both visual encoder and LLM features, especially with DSFF, leads to significant performance gains. Furthermore, MLLMSeg proves to be robust even when scaled down to smaller MLLMs, maintaining strong performance without drastic drops, which is vital for deployment in environments with limited resources.
In conclusion, MLLMSeg represents a significant step forward in making MLLMs more capable for fine-grained visual tasks like segmentation. By intelligently integrating visual details with semantic understanding through a lightweight design, it offers an efficient and accurate solution for referring expression segmentation. You can find the code and more details about MLLMSeg on their GitHub page, linked in the full research paper available here.


