Skip to main content
QUICK REVIEW

[Paper Review] Generalized Few-shot Semantic Segmentation

Zhuotao Tian, Xin Lai|arXiv (Cornell University)|Oct 11, 2020
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

This paper introduces Generalized Few-Shot Semantic Segmentation (GFS-Seg), a new benchmark that evaluates models on simultaneously segmenting base and novel classes without requiring support images at inference time. It proposes Context-Aware Prototype Learning (CAPL), which enhances feature alignment and dynamically enriches context using co-occurrence priors and query-conditioned adaptation, achieving state-of-the-art performance on both GFS-Seg and standard FS-Seg benchmarks with minimal structural changes.

ABSTRACT

Training semantic segmentation models requires a large amount of finely annotated data, making it hard to quickly adapt to novel classes not satisfying this condition. Few-Shot Segmentation (FS-Seg) tackles this problem with many constraints. In this paper, we introduce a new benchmark, called Generalized Few-Shot Semantic Segmentation (GFS-Seg), to analyze the generalization ability of simultaneously segmenting the novel categories with very few examples and the base categories with sufficient examples. It is the first study showing that previous representative state-of-the-art FS-Seg methods fall short in GFS-Seg and the performance discrepancy mainly comes from the constrained setting of FS-Seg. To make GFS-Seg tractable, we set up a GFS-Seg baseline that achieves decent performance without structural change on the original model. Then, since context is essential for semantic segmentation, we propose the Context-Aware Prototype Learning (CAPL) that significantly improves performance by 1) leveraging the co-occurrence prior knowledge from support samples, and 2) dynamically enriching contextual information to the classifier, conditioned on the content of each query image. Both two contributions are experimentally shown to have substantial practical merit. Extensive experiments on Pascal-VOC and COCO manifest the effectiveness of CAPL, and CAPL generalizes well to FS-Seg by achieving competitive performance. Code is available at https://github.com/dvlab-research/GFS-Seg.

Motivation & Objective

  • To address the practical limitation of Few-Shot Segmentation (FS-Seg), which requires support images at inference time and cannot handle base classes simultaneously.
  • To propose a new benchmark, Generalized Few-Shot Semantic Segmentation (GFS-Seg), that evaluates models on both base and novel classes without support input during inference.
  • To analyze why state-of-the-art FS-Seg methods fail in the GFS-Seg setting due to overly constrained assumptions.
  • To develop a general-purpose method, Context-Aware Prototype Learning (CAPL), that improves performance on both GFS-Seg and standard FS-Seg with minimal architectural changes.

Proposed method

  • Proposes a three-phase pipeline for GFS-Seg: base class learning, novel class registration using few-shot support samples, and joint evaluation on base and novel classes without support input.
  • Introduces a baseline model for GFS-Seg that maintains the original architecture and only adds a novel class registration phase.
  • Designs Context-Aware Prototype Learning (CAPL) to improve feature alignment by leveraging co-occurrence priors from support samples.
  • Employs a trainable two-layer MLP to generate context-aware gamma vectors that adaptively refine base prototypes based on query image content.
  • Applies contextual enrichment during inference by dynamically adjusting classifier weights using query-dependent features.
  • Integrates CAPL into existing semantic segmentation models like PANet, PFENet, and DeepLab without structural modifications.

Experimental results

Research questions

  • RQ1Why do state-of-the-art Few-Shot Segmentation (FS-Seg) models fail in the generalized few-shot setting (GFS-Seg)?
  • RQ2Can a unified model effectively segment both base and novel classes simultaneously without requiring support samples at inference time?
  • RQ3How can contextual information from support samples and query images be leveraged to improve prototype learning in few-shot segmentation?
  • RQ4To what extent does dynamic, query-conditioned adaptation of prototypes improve performance in both GFS-Seg and standard FS-Seg?
  • RQ5Can a method like CAPL generalize across different backbone architectures and datasets without architectural redesign?

Key findings

  • The proposed GFS-Seg benchmark reveals that even recent SOTA FS-Seg models perform poorly in the generalized setting due to inherent constraints in their design.
  • CAPL improves the baseline by 1.5–2.5 mIoU on Pascal-VOC 5-shot and 1.5–2.0 mIoU on COCO-20 i 5-shot, demonstrating substantial gains.
  • On COCO-20 i, CAPL achieves 47.3 mIoU (1-shot) and 50.4 mIoU (5-shot) with Res-101 backbone, outperforming prior methods.
  • In the standard FS-Seg setting, CAPL improves PFENet by 2.5 mIoU (1-shot) and 2.1 mIoU (5-shot), achieving state-of-the-art performance.
  • The ablation study confirms that both training alignment (CAPL-Tr) and contextual enrichment (CAPL-Te) are essential, as their combination yields optimal results.
  • CAPL generalizes well to different models and backbones, including ResNet-50 and ResNet-101, with nearly identical inference speed as the original models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.