Deep learning has drastically improved semantic segmentation, but traditional models remain notoriously data-hungry. Requiring dense, pixel-level annotations for thousands of images makes expanding models to novel categories expensive and impractical. Few-Shot Segmentation (FSS) addresses this bottleneck by challenging a model to segment a novel "query" image given only a handful of labeled "support" examples.
To make this work without severe overfitting, modern state-of-the-art architectures rely on two core insights: extracting high-fidelity semantic descriptors (prototypes) to match features across images, and repurposing the rich, pre-trained representations of large foundation models.
From Global Prototypes to Fine-Grained Object Correlation
The foundational mechanism of few-shot segmentation is the prototype. In early FSS systems, a support image's target region was compressed into a single vector—a prototype—by averaging the feature embeddings across the masked area. This prototype was then compared against the query image's features using cosine similarity or attention mechanisms to locate the target object.
While intuitive, global average pooling discards crucial spatial structures and fine details. If a support image shows a clean, front-facing view of a car, a single averaged prototype might fail to match a query image showing a car from a sharp angle or partially obscured by shadows.
To overcome this, modern approaches focus on richer, multi-level correlations:
- Object-Level and Latent Prototypes: Instead of treating the background as uniform noise, recent architectures explicitly model background relations. For instance, Zhao et al. in Contrastive enhancement using latent prototype for few-shot segmentation demonstrate that mining "latent prototypes" from the background regions of query images allows the network to contrast target objects against their specific distractors, significantly boosting segmentation boundaries. Similarly, the authors of Object-level Correlation for Few-Shot Segmentation introduce OCNet to move beyond rigid image-level matching, mimicking biological vision to isolate target object correlations while actively suppressing background noise.
- High-Fidelity and Structural Refinement: In complex domains like medical imaging, organs vary drastically in shape and size across patients. Tang et al. address this in Few-Shot Medical Image Segmentation with High-Fidelity Prototypes by using superpixel clustering to generate localized, high-fidelity prototypes. This preserves internal structural consistency and captures precise boundaries for small anatomical structures. To handle the joint problem of large intra-class variations and complex inter-class relationships, Zhang et al. introduce prototype-level matching combined with class-relation reasoning in Prototype Correlation Matching and Class- Relation Reasoning for Few-Shot Medical Image Segmentation, allowing the model to logically reason about how different tissue classes relate to one another.
Repurposing Foundation Models via Prompt Learning
Rather than training feature extractors from scratch on limited data, state-of-the-art FSS methods increasingly leverage large-scale pre-trained foundation models (such as CLIP, SAM, or DINOv2). These models already possess a deep, generalized understanding of visual hierarchies; the challenge lies in "steering" them to segment specific, novel classes using only the support examples.
This steering is primarily achieved through prompt learning and self-prompting networks:
[Support Image + Mask] ──> Extract Visual/Textual Prior ──> Prompt Generator
│
▼
[Query Image] ───────────> Pre-trained Foundation Model ──> [Accurate Mask]
- Cross-Modal Prompting: By bridging text and vision, models can segment specific sub-components of an object. In PartSeg: Few-shot part segmentation via part-aware prompt learning, Mengya Han et al. utilize CLIP to learn part-aware prompts. This allows the network to generalize across domains and segment fine-grained object parts with minimal supervision.
- Training-Free Adaptation: Some frameworks eliminate the training phase altogether. Lv Tang et al. introduced IPSeg in Towards Training-Free Open-World Segmentation via Image Prompt Foundation Models, which extracts dense features directly from DINOv2 and Stable Diffusion. By treating the support image as a visual prompt, it maps out target regions in the query image on the fly, bypassing the need for gradient updates.
- Self-Prompting in Medical Imaging: Large models like the Segment Anything Model (SAM) excel at general segmentation but often falter on specialized medical scans. To resolve this, Qi Wu et al. developed a self-prompting mechanism in Self-prompting Large Vision Models for Few-Shot Medical Image Segmentation. By training a lightweight linear classifier on SAM’s internal image embeddings, the model automatically generates its own point and bounding-box prompts, allowing rapid adaptation to unseen organs without manual prompt engineering.
Extending Few-Shot Principles to 3D and Geometric Domains
The data scarcity problem is even more pronounced in 3D point clouds and meshes, where manual annotation requires tedious labeling of thousands of individual vertices. Fortunately, the core principles of FSS—prototype matching and cross-modal transfer—translate effectively to geometric data.
- Multi-Prototype Geometric Networks: In industrial workflows, models must adapt quickly to new components. In CAM/CAD Point Cloud Part Segmentation via Few-Shot Learning, Jiahui Wang et al. deploy a multi-prototype network equipped with self-attention and a transform network. This setup allows the system to generalize to entirely new manufacturing part types using only a few 3D examples.
- Unsupervised Label Transfer: Instead of relying on explicit 3D prototypes, label transfer can be achieved by learning how shapes deform. Thibault Groueix et al. demonstrate in Unsupervised cycle-consistent deformation for shape matching that enforcing cycle-consistency—ensuring that deforming shape A to shape B and back returns it to its exact original state—allows a network to accurately transfer semantic segmentation masks across complex 3D meshes without explicit supervision.
- Cross-Modal 2D-to-3D Transfer: The generative priors of 2D models can also be injected into 3D spaces. The authors of Harnessing Text-to-Image Diffusion Models for Point Cloud Self-Supervised Learning (PointSD) adapt pre-trained text-to-image diffusion models to a point-to-image generation task. By aligning 3D point cloud features with the rich feature space of Stable Diffusion, they achieve state-of-the-art performance in few-shot 3D part segmentation and object classification.
By transitioning from rigid, global representations to dynamic, context-aware prototypes and leveraging the massive semantic priors embedded within foundation models, few-shot segmentation has evolved from a restrictive academic constraint into a highly flexible, open-world deployment paradigm across both 2D and 3D domains.