Abstract
Few-shot semantic segmentation has attracted growing interest for its ability to generalize to novel object categories using only a few annotated samples. To address data scarcity, recent methods incorporate multiple foundation models to improve feature transferability and segmentation performance. However, they often rely on dual-branch architectures that combine pre-trained encoders to leverage complementary strengths, a design that limits flexibility and efficiency. This raises a fundamental question: can we build a unified model that integrates knowledge from different foundation architectures? Achieving this is, however, challenging due to the misalignment between class-agnostic segmentation capabilities and fine-grained discriminative representations. To this end, we present UINO-FSS, a novel framework built on the key observation that early-stage DINOv2 features exhibit distribution consistency with SAM's output embeddings. This consistency enables the integration of both models' knowledge into a single-encoder architecture via coarse-to-fine multimodal distillation. In particular, our segmenter consists of three core components: a bottleneck adapter for embedding alignment, a meta-visual prompt generator that leverages dense similarity volumes and semantic embeddings, and a mask decoder. Using hierarchical cross-model distillation, we effectively transfer SAM's knowledge into the segmenter, further enhanced by Mamba-based 4D correlation mining on support-query pairs. Extensive experiments on PASCAL-5$^i$ and COCO-20$^i$ show that UINO-FSS achieves new state-of-the-art results under the 1-shot setting, with mIoU of 80.6 (+3.8%) on PASCAL-5$^i$ and 64.5 (+4.1%) on COCO-20$^i$, demonstrating the effectiveness of our unified approach.
Introduction
Few-shot semantic segmentation (FSS) represents a significant challenge in computer vision: enabling models to recognize and segment novel object categories from just a handful of labeled examples. Current state-of-the-art approaches often employ a "dual-branch" strategy, combining the discriminative power of models like DINOv2 with the precise segmentation capabilities of the Segment Anything Model (SAM). While effective, this "Frankenstein" approach is computationally burdensome and often requires manual prompts that are difficult to automate for unseen classes.
UINO-FSS addresses these limitations by unifying the strengths of DINOv2 and SAM into a single, efficient pipeline. By moving away from heavy dual-encoder setups, the proposed framework achieves superior performance with a remarkably lightweight segmenter of only 5.6M parameters.
Methodology
The UINO-FSS framework is built upon a frozen DINOv2 encoder and introduces several architectural innovations to bridge the gap between discriminative features and segmentation masks.
Hierarchical Cross-Model Distillation
A key discovery of this work is that early-stage features in DINOv2 (specifically Layer 3) naturally exhibit distribution consistency with SAM’s internal embeddings. This allows for the distillation of SAM’s segmentation knowledge into the DINOv2 feature space. A Bottleneck Adapter (BA) is employed to align these embeddings through a coarse-to-fine training process, effectively "teaching" the DINOv2-based segmenter how to produce SAM-quality masks without needing the SAM encoder at inference time.
Meta-Visual Prompt Generator (MVPG)
To eliminate the need for human-provided points or boxes, UINO-FSS automatically generates "visual prompts." The MVPG creates sparse semantic prompts from support images and dense prompts based on the similarity between support and query images. This automated prompting mechanism ensures the model can generalize to unknown classes without external guidance.
Mamba-based 4D Correlation Mining
Matching support and query images typically involves computing a 4D correlation volume, which is computationally expensive. UINO-FSS utilizes a Mamba-HyperCorrelation Module (MHCM). By leveraging the linear complexity of State Space Models (Mamba), the module processes these massive correlation volumes efficiently, capturing global dependencies and high-order object relationships that standard 4D convolutions might miss.
Experiments and Results
The model was rigorously evaluated on standard FSS benchmarks, including PASCAL-5ⁱ and COCO-20ⁱ, as well as the FSS-1000 dataset for out-of-distribution testing.
Performance Benchmarks
UINO-FSS established new state-of-the-art records for the 1-shot setting:
- PASCAL-5ⁱ: Achieved 80.6% mIoU, representing a +3.8% improvement over previous methods.
- COCO-20ⁱ: Achieved 64.5% mIoU, a significant +4.1% jump.
- FSS-1000: Reached 89.0% mIoU, demonstrating exceptional generalization across 1,000 diverse categories.
Efficiency and Generalization
Despite its high performance, the segmenter adds only 5.6M parameters to the base encoder. This efficiency makes UINO-FSS far more practical for real-world deployment than existing foundation model ensembles. The results on FSS-1000 further confirm that the model learns robust matching principles rather than simply memorizing training categories.
Conclusion
UINO-FSS demonstrates that a unified architecture, powered by hierarchical distillation and efficient 4D correlation mining, can outperform complex dual-branch ensembles in few-shot semantic segmentation. By identifying and leveraging the inherent alignment between different foundation models, this work paves the way for more efficient and capable vision systems. Future research may extend this unified distillation approach to video-based tasks or explore even more compact prompt generation techniques.
Summary updated