Few Shot Semantic Segmentation: a review of methodologies and open challenges

Nico Catalano, Matteo Matteucci

Abstract

Semantic segmentation, vital for applications ranging from autonomous driving to robotics, faces significant challenges in domains where collecting large annotated datasets is difficult or prohibitively expensive. In such contexts, such as medicine and agriculture, the scarcity of training images hampers progress. Introducing Few-Shot Semantic Segmentation (FSS), a novel task in computer vision, which aims at designing models capable of segmenting new semantic classes with only a few examples. This paper consists of a comprehensive survey of FSS, tracing its evolution and exploring various model designs, from the more popular conditional and prototypical networks to the more niche latent space optimization methods, presenting also the new opportunities offered by recent foundational models. Through a chronological narrative, we dissect influential trends and methodologies, providing insights into their strengths and limitations. Complemented by quantitative analyses on benchmark datasets and qualitative showcases of seminal works, this survey equips readers with a deep understanding of the topic.

Introduction: Defining the Problem

Deep learning has achieved remarkable success in semantic segmentation—the task of assigning a class label to every pixel in an image. However, traditional supervised models typically require thousands of meticulously labeled images to perform well. In specialized domains like medical imaging or precision agriculture, obtaining such extensive datasets is often prohibitively expensive or impossible.

Comparison of computer vision tasks, including semantic segmentation (c).

Few-Shot Semantic Segmentation (FSS) addresses this "data hunger" by adopting a meta-learning strategy. Instead of learning a fixed set of classes, FSS models "learn to learn." They are trained on "episodes" consisting of a support set (a few labeled examples of a class) and a query image where that same class must be segmented. The ultimate goal is generalization: the model must successfully segment classes it has never encountered during its initial training phase.

Methodological Evolution

The survey categorizes FSS methodologies into three primary spectrums, reflecting the field's technical progression:

1. Conditional Networks

Early FSS models utilized two-branch architectures. A conditioning branch processes the support set to generate specific parameters or weights. These are then "injected" into a segmentation branch to guide the identification of the target object within the query image.

2. Prototypical Networks

Currently the dominant approach, these networks utilize Masked Average Pooling (MAP) to extract a "prototype"—a representative feature vector—from support images. The model performs pixel-wise classification on the query image by measuring the distance (typically Cosine similarity) between query pixels and the class prototype in a shared embedding space. This shift proved that a well-structured embedding space is often more effective than complex parameter-generation schemes.

3. Latent Space Optimization

This category includes innovative, niche methods such as:

  • Generative Models: Utilizing GANs (e.g., StyleGAN) to synthesize labeled data to augment the limited support set.
  • Variational Autoencoders (VAEs): Modeling class prototypes as probability distributions to better capture intra-class variance, such as different breeds within a "dog" class.

The Rise of Foundation Models

The field is currently shifting toward generalist foundation models. Models like SAM (Segment Anything) utilize prompt engineering, while SegGPT treats segmentation as an "in-context" learning problem. These models act as high-powered generalists that do not require task-specific fine-tuning to handle novel classes.

Benchmarking and Datasets

Standard benchmarks are essential for measuring FSS progress:

  • PASCAL-5ⁱ: A subset of PASCAL VOC 2012, divided into four "folds" to ensure testing on unseen classes.
  • COCO-20ⁱ: A more challenging benchmark based on MS COCO, featuring 80 classes and complex scenes.
  • FSS-1000: A large-scale dataset with 1,000 classes, specifically designed to test the limits of few-shot generalization.

Key Results and Insights

The survey highlights a steady performance climb. On PASCAL-5ⁱ, early models from 2017 achieved approximately 40% mIoU (mean Intersection over Union). Modern specialist models like HSNet and VAT now reach the high 60s and low 70s.

However, generalist models are redefining the state-of-the-art. SegGPT achieves an impressive 83.2% mIoU on PASCAL-5ⁱ and 56.1% on COCO-20ⁱ, significantly outperforming specialist models specifically tuned for those datasets. This suggests a move away from benchmark-specific "specialists" toward robust "generalists" pre-trained on diverse data.

Open Challenges and Future Directions

Despite progress, several hurdles remain for the next generation of FSS research:

  • Cross-Domain Generalization: Models still struggle when training data (e.g., natural images) differs significantly from test data (e.g., satellite or medical imagery).
  • Generalized FSS (GFS-Seg): Standard models often suffer from "catastrophic forgetting" of base classes. GFS-Seg aims to segment both base and novel classes simultaneously.
  • Incremental Learning: Real-world applications like robotics require models to learn new classes over time without access to original training data, a problem that remains largely unsolved in the few-shot context.

Summary updated

Abstract

Semantic segmentation, vital for applications ranging from autonomous driving to robotics, faces significant challenges in domains where collecting large annotated datasets is difficult or prohibitively expensive. In such contexts, such as medicine and agriculture, the scarcity of training images hampers progress. Introducing Few-Shot Semantic Segmentation, a novel task in computer vision, which aims at designing models capable of segmenting new semantic classes with only a few examples. This paper consists of a comprehensive survey of Few-Shot Semantic Segmentation, tracing its evolution and exploring various model designs, from the more popular conditional and prototypical networks to the more niche latent space optimization methods, presenting also the new opportunities offered by recent foundational models. Through a chronological narrative, we dissect influential trends and methodologies, providing insights into their strengths and limitations. A temporal timeline offers a visual roadmap, marking key milestones in the field's progression. Complemented by quantitative analyses on benchmark datasets and qualitative showcases of seminal works, this survey equips readers with a deep understanding of the topic. By elucidating current challenges, state-of-the-art models, and prospects, we aid researchers and practitioners in navigating the intricacies of Few-Shot Semantic Segmentation and provide ground for future development.
BibTeX
@misc{catalano2023few,
  author = {Nico Catalano and Matteo Matteucci},
  title = {{Few Shot Semantic Segmentation: a review of methodologies and open challenges}},
  year = {2023},
  eprint = {2304.05832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05832},
}
Figure