Abstract
Recent advancements in Large Multimodal Models (LMMs) have significantly improved image description and instance-level segmentation. However, existing models often struggle to bridge the gap between coarse scene understanding and fine-grained part-level identification. We introduce MGLMM (Multi-Granularity Large Multimodal Model), a framework designed to seamlessly transition between different levels of visual granularity. By leveraging a novel unified data format and the MGSCData benchmark, MGLMM achieves state-of-the-art performance in tasks ranging from panoptic segmentation to detailed part-level captioning.
Introduction
While current LMMs can successfully "segment a person," they typically fail when asked to provide a detailed description that links specific phrases (e.g., "tennis wristband") to precise pixel-level masks. This limitation stems from a lack of models capable of handling multiple granularities simultaneously and a shortage of high-quality datasets that align masks with captions across varying levels of detail. MGLMM addresses these challenges by treating visual granularity as a linguistic instruction, allowing for a more surgical approach to image understanding.
Methodology
MGLMM integrates the reasoning capabilities of a Large Language Model with the precision of a dedicated segmentation system.
Architecture and the [SEG] Token
The model utilizes LLaVA (combining a CLIP vision encoder with a Vicuna-7B LLM) as its core reasoning engine, paired with the Segment Anything Model (SAM) for mask generation. Following the "embedding-as-mask" paradigm, MGLMM generates a special [SEG] token within its text responses. This token is projected into the SAM decoder to produce high-fidelity segmentation masks corresponding to the described entities.
Unified SegCap Data Format (USCDF)
To facilitate training across diverse tasks, the authors developed the Unified SegCap Data Format (USCDF). This format uses <p> and </p> tags to wrap descriptions, explicitly linking text segments to the subsequent [SEG] tokens. This standardization reduces the modeling burden and prevents confusion across different sub-tasks.
Datasets and Annotation
The research introduces MGSCData, a benchmark specifically for Multi-Granularity Segmentation and Captioning. It comprises 10,000 images and over 300,000 segmentation masks. To build this dataset, the authors employed an automated pipeline using GPT-4o to label masks from the SAM dataset, organizing them into a hierarchical "Mask Tree" that defines part-whole relationships (e.g., a wheel belonging to a bicycle).
Key Results and Insights
MGLMM achieves state-of-the-art (SOTA) results across eight downstream tasks. In the MGSC benchmark, it significantly outperformed previous models like GLaMM, scoring 11.6 CIDEr compared to GLaMM's 8.7.
Performance Highlights:
- Reasoning Segmentation: On the ReasonSeg benchmark, MGLMM achieved 51.1 cIoU, surpassing LISA (46.0).
- Referring Segmentation: The model reached 81.3 cIoU on RefCOCO val, setting a new high bar for LMM-based segmentation.
- Hierarchical Sensitivity: Training on the "Mask Tree" makes the model exceptionally sensitive to small, contextually relevant items that are often overlooked in wide-angle shots.
Conclusion and Future Work
MGLMM represents a significant step toward unified, multi-granularity visual intelligence. While the model shows robust zero-shot capabilities, it remains dependent on the quality of its "teacher" models (GPT-4o and SAM) and requires substantial computational resources. Future research will focus on extending this multi-granularity approach to temporal data (video) and exploring more complex reasoning regarding the functional relationships between object parts.
Summary updated