Segmentation as A Plug-and-Play Capability for Frozen Multimodal LLMs
Jiazhen Liu, Long Chen
TL;DR
This work tackles the problem of adding pixel-level segmentation to Multimodal LLMs without sacrificing their general reasoning abilities. It introduces LENS, a plug-and-play head that remains attached to a frozen MLLM and leverages attention signals to generate keypoints and labels that feed a SAM decoder. LENS achieves state-of-the-art segmentation on benchmarks like ReasonSeg and RefCOCO+ while preserving the MLLM's broader capabilities and dramatically reducing training costs compared to joint fine-tuning approaches. The core idea is to map the MLLM's intrinsic spatial cues into SAM-compatible prompts via a lightweight descriptor model, enabling efficient, on-demand segmentation within a unified vision-language framework.
Abstract
Integrating diverse visual capabilities into a unified model is a significant trend in Multimodal Large Language Models (MLLMs). Among these, the inclusion of segmentation poses a distinct set of challenges. To equip MLLMs with pixel-level segmentation abilities, prevailing methods require finetuning the model to produce specific outputs compatible with a mask decoder. This process typically alters the model's output space and compromises its intrinsic generalization, which undermines the goal of building a unified model. We introduce LENS (Leveraging kEypoiNts for MLLMs' Segmentation), a novel plug-and-play solution. LENS attaches a lightweight, trainable head to a completely frozen MLLM. By refining the spatial cues embedded in attention maps, LENS extracts keypoints and describes them into point-wise features directly compatible with the mask decoder. Extensive experiments validate our approach: LENS achieves segmentation performance competitive with or superior to that of retraining-based methods. Crucially, it does so while fully preserving the MLLM's generalization capabilities, which are significantly degraded by finetuning approaches. As such, the attachable design of LENS establishes an efficient and powerful paradigm for extending MLLMs, paving the way for truly multi-talented, unified models.
