Exploiting Target Knowledge from MLLMs for Robust Few-Shot Segmentation

Yijun Hu, Heng Fan, Libo ZhangarXiv 2026

TL;DR

MK-FSS is a novel few-shot segmentation framework that leverages the reasoning power of Multimodal Large Language Models (MLLMs) to extract both spatial and semantic target knowledge directly from a query image. Built on top of SAM 2, it introduces a dual-memory debate-fusion module and a progressive cross-modal prompt generator to achieve state-of-the-art segmentation performance, even under severe appearance variations and occlusions.

What Problem Does This Paper Address?

Few-shot segmentation (FSS) aims to segment novel object classes in a "query" image using only a handful of labeled "support" examples. Traditional FSS models rely heavily on pixel-level or prototype-based visual matching between the support and query images.

However, this pure visual matching paradigm breaks down when the target object in the query image looks vastly different from the support examples due to changes in pose, lighting, occlusions, or confusing backgrounds. A few support images simply cannot capture the full diversity of an object category. To solve this, the authors propose mining target-specific prior knowledge directly from the query image itself by tapping into the rich, open-world understanding of MLLMs.

Methods

The proposed framework, MK-FSS, builds upon the Segment Anything Model 2 (SAM 2) architecture. Instead of relying solely on the support images, it extracts and processes two complementary forms of target knowledge from the query image using an MLLM (specifically, Qwen3-VL-8B-Instruct):

  1. Target Knowledge Generation: Given a query image and a class label, the MLLM is prompted to generate bounding boxes (spatial knowledge) and a detailed textual description of the target's appearance and context (semantic knowledge).
  2. Dual-Memory Debate-Fusion (DMDF): The MLLM's spatial prior and the standard support-guided prior are both encoded into memory features. DMDF treats these two features as competing agents that refine each other through a three-stage process inspired by multi-agent debate:
  3. Debate Stage: Bidirectional cross-attention allows the features to exchange information.
  4. Verification Stage: A multilayer perceptron (MLP) calculates channel-wise reliability weights for both memories.
  5. Integration Stage: The weighted features are concatenated and fused via convolutional layers.
  6. Progressive Cross-Modal Prompt Generator (PCPG): The semantic textual description is encoded and progressively fused with multi-scale visual features from the query image. This injects high-level linguistic semantics into the visual space to form a target-aware multimodal prompt.

Finally, the dual-memory feature and the multimodal prompt are fed into SAM 2’s mask decoder to predict the final segmentation mask.

Figure 1: Overview of MK-FSS that exploits complementary spatial and semantic knowledge de- rived from a query image by an MLLM for few-shot segmentation.

Datasets

The authors evaluated MK-FSS on two standard, challenging FSS benchmarks using a 4-fold cross-validation setup:

  • PASCAL-5$^i$: Contains 20 object classes built upon PASCAL VOC 2012 with additional annotations.
  • COCO-20$^i$: A larger-scale dataset comprising 80 object classes, presenting a more challenging evaluation environment due to complex scenes and diverse object appearances.

Key Insights and Ideas

  • Query-Specific vs. Class-Specific Cues: Traditional text-guided FSS methods use static, generic category descriptions (e.g., "a train is a wheeled vehicle..."). MK-FSS generates image-specific descriptions of the actual target instance in the query scene (e.g., "The train has a dark body with white and black diagonal..."). This provides much sharper discriminative cues to resolve local ambiguities.
  • The "Debate" Mechanism for Feature Fusion: Rather than simply adding or concatenating different feature priors, letting support-derived features and MLLM-derived features "debate" (via bidirectional cross-attention) and weighting them dynamically yields a significantly more robust target representation.
  • MLLMs are Good Detectors but Poor Segmenters: A naive baseline that directly feeds MLLM-predicted bounding boxes into SAM 2 as spatial prompts performs poorly. MLLM bounding boxes lack the pixel-level precision strictly required for segmentation; their true value lies in providing coarse semantic anchors that guide a dedicated FSS model.

Key Results

MK-FSS establishes new state-of-the-art performance across both benchmarks under 1-shot and 5-shot settings:

  • PASCAL-5$^i$: Reaches a mean IoU (mIoU) of 87.1% (1-shot) and 87.7% (5-shot), outperforming the previous best non-LLM method (FSSAM) by 6.1% and 2.3% respectively.
  • COCO-20$^i$: Achieves 74.3% (1-shot) and 75.9% (5-shot) mIoU, significantly outperforming existing LLM/MLLM-based FSS methods like LLaFS and DSV-LFS.
  • Ablation Validations: Removing either the DMDF module (spatial knowledge) or the PCPG module (semantic knowledge) caused noticeable drops in performance, proving that spatial and semantic target descriptions offer complementary benefits.

Limitations and Future Work

The authors implicitly acknowledge a few limitations and directions for future improvement:

  • Dependency on MLLM Output Quality: The framework relies on the MLLM successfully identifying the target class. If the MLLM generates invalid or malformed bounding boxes, the system defaults to a box covering the entire image, reducing the effectiveness of the spatial prior.
  • Computational Overhead: Prompting a large MLLM for every query image introduces significant computational and latency overhead compared to traditional, purely visual FSS models.
  • Future Scaling: Ablation experiments across different MLLM sizes (7B to 32B parameters) show that performance scales positively with better language models, suggesting that future gains will naturally come from integrating more advanced and efficient foundation models.

Summary updated

BibTeX
@misc{hu2026exploiting,
  author = {Yijun Hu and Heng Fan and Libo Zhang},
  title = {{Exploiting Target Knowledge from MLLMs for Robust Few-Shot Segmentation}},
  year = {2026},
  eprint = {2609.28949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.28949},
}
Figure