Segmentation as A Plug-and-Play Capability for Frozen Multimodal LLMs

Jiazhen Liu, Long Chen · DOI

Abstract

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in high-level reasoning and image description. However, extending these models to perform dense, pixel-level tasks like segmentation typically requires extensive fine-tuning. This process often leads to a "dual-objective tension" where the model's general reasoning skills degrade as it specializes in spatial tasks. We present LENS (Leveraging kEypoiNts for MLLMs’ Segmentation), a plug-and-play module that enables frozen MLLMs to perform segmentation without weight updates. By using intermediate attention maps to extract keypoints as a bridge to a dedicated mask decoder, LENS preserves the backbone's intelligence while achieving state-of-the-art results on reasoning and referring segmentation benchmarks with significantly reduced computational overhead.

Introduction

The integration of segmentation capabilities into MLLMs like LLaVA has traditionally relied on fine-tuning the model to output specialized tokens (e.g., [SEG]). While effective for the specific task, this "coupled" training paradigm introduces significant challenges. To segment accurately, a model must prioritize low-level spatial features, whereas reasoning requires high-level semantic abstractions. Forcing a single backbone to optimize for both often results in "catastrophic forgetting," where the model loses its ability to count, reason logically, or follow complex instructions, often defaulting to generic segmentation responses regardless of the prompt.

Comparison of conventional coupled objectives vs. the proposed decoupled LENS approach.

Methodology: The LENS Framework

LENS addresses the dual-objective tension by treating segmentation as an external skill, keeping the MLLM backbone completely frozen. The architecture consists of three primary components attached to the frozen model:

  1. Segmentation Head: A lightweight, two-layer transformer module that processes intermediate features—specifically from the 14th layer of LLaVA-1.5-7B. It refines internal attention maps to isolate the target object.
  2. Keypoint Extraction: Instead of generating a mask directly, LENS identifies salient coordinates (keypoints) from the refined attention maps using Non-Maximum Suppression (NMS). These keypoints are then described by sampling local features.
  3. Mask Decoder: The extracted keypoints and their descriptions serve as prompts for a pre-trained Segment Anything Model (SAM) decoder, which produces the final pixel-level mask.

This "decoupled" approach leverages the fact that MLLMs already possess inherent spatial awareness within their attention mechanisms. LENS simply harvests these existing cues to guide a specialized segmentation tool.

The LENS architecture uses keypoints as a bridge to connect frozen MLLM features to a segmentation head.

Experimental Results

LENS was evaluated across a diverse set of tasks, including semantic, referring, and reasoning segmentation (e.g., ReasonSeg).

  • Preservation of General Intelligence: On the MMBench benchmark, LENS maintained a score of 64.0, nearly identical to the original LLaVA (66.5). In contrast, previous fine-tuned models like LISA saw their scores drop to near zero, illustrating the severity of the dual-objective tension.
  • Segmentation Performance: LENS achieved a 57.3 cIoU on the ReasonSeg dataset, outperforming the fine-tuned LISA (56.9). On RefCOCO benchmarks, it set new records with a mean cIoU of 70.3.
  • Efficiency: By freezing the backbone, LENS reduces training memory requirements to approximately one-third of fine-tuning methods, requiring as little as 16GB of VRAM for the MLLM portion.

Discussion and Conclusion

LENS demonstrates that segmentation can be effectively added to MLLMs as a modular capability. By decoupling spatial precision from semantic reasoning, it avoids the pitfalls of fine-tuning while maintaining high performance.

However, some limitations remain. LENS shows a slight performance dip on very short, simple queries compared to complex reasoning tasks, likely due to training data imbalances. Additionally, its performance is tied to the quality of the MLLM's internal attention maps; noisy attention can lead to inaccurate keypoint extraction. Future work will explore integrating LENS into agentic frameworks where the model can autonomously decide when to invoke its segmentation "tool."

Summary updated

BibTeX
@misc{liu2025segmentation,
  author = {Jiazhen Liu and Long Chen},
  title = {{Segmentation as A Plug-and-Play Capability for Frozen Multimodal LLMs}},
  year = {2025},
  eprint = {2510.16785},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16785},
}
Figure