Prototypical Kernel Learning and Open-set Foreground Perception for Generalized Few-shot Semantic Segmentation

Kai Huang, Feigege Wang, Ye Xi, Yutao GaoICCV 2023 · DOI

Introduction

Few-shot semantic segmentation (FSS) has traditionally focused on identifying novel classes in isolation, given only a handful of annotated examples. However, the more realistic challenge is Generalized Few-shot Semantic Segmentation (GFSS), where a model must simultaneously segment previously learned "base" classes and newly introduced "novel" classes. This paper addresses the significant performance gap inherent in GFSS through a dual-pronged approach focusing on representation consistency and open-set foreground perception.

The Challenges of GFSS

The authors identify two primary obstacles that hinder current GFSS methods:

  1. Representation Division: Base classes are typically learned via standard parametric classifiers from large datasets, while novel classes are represented by non-parametric "prototypes" (averaged features) from just 1–5 images. This creates a fundamental mathematical mismatch in how the model processes the two groups.
  2. Embedding Prejudice: Because the feature extractor (backbone) is trained exclusively on base classes, it tends to treat novel objects as part of the background. If the model fails to recognize a pixel as foreground, it will not attempt to classify it into a novel category.

Proposed Methodology

The researchers propose a novel framework consisting of three core components designed to unify class representations and improve foreground detection.

Prototypical Kernel Learning (PKL)

To harmonize base and novel representations, the PKL module replaces static classifiers with learnable kernels. Crucially, these kernels undergo a "one-off" dynamic update for every input image based on the specific features present. By forcing the base class classifiers to act more like the dynamic prototypes used for novel classes, the model achieves a more balanced and consistent decision boundary across all categories.

Foreground Contextual Perception (FCP)

The FCP module acts as a class-agnostic "objectness" detector. It uses a "Hybrid Pooling" strategy to identify common foreground patterns across different classes, regardless of whether they were seen during training. This module answers the fundamental question: "Is there an object here?" By identifying novel objects as foreground before attempting to categorize them, the model prevents them from being swallowed by the background class.

Conditional Bias Based Inference (CBBI)

The CBBI module serves as the integration layer. It merges class-specific predictions from the PKL with the class-agnostic foreground mask from the FCP. It utilizes a "conditional bias" to boost the scores of novel classes in regions where the FCP has successfully detected a foreground object, effectively acting as a safety net for unseen categories.

Experimental Results

The proposed method was evaluated on two primary benchmarks, PASCAL-5i and COCO-20i, setting new state-of-the-art (SOTA) records:

  • PASCAL-5i (1-shot): The model achieved a 37.83% hIoU (harmonic mean of base and novel IoU), a significant improvement over the previous SOTA of 29.27%.
  • COCO-20i (1-shot): Novel class mIoU improved to 11.04%, compared to the previous best of 7.05%.
  • Incremental Learning: The model also excelled in Class Incremental Few-shot Semantic Segmentation (CIFSS). In sequential learning scenarios, it maintained high accuracy for both old and new classes, demonstrating robustness against catastrophic forgetting.

Conclusion and Future Directions

By bridging the gap between base and novel class representations and implementing an open-set foreground prior, this framework establishes a new benchmark for GFSS. While the method shows great promise, the authors note that the performance gap narrows as the total number of classes increases, suggesting that distinguishing between many similar classes remains a challenge. Future research will likely focus on scaling these dynamic architectures to even more complex, real-world environments and reducing the computational overhead associated with dual-branch architectures.

Summary updated

BibTeX
@misc{huang2023prototypical,
  author = {Kai Huang and Feigege Wang and Ye Xi and Yutao Gao},
  title = {{Prototypical Kernel Learning and Open-set Foreground Perception for Generalized Few-shot Semantic Segmentation}},
  year = {2023},
  eprint = {2308.04952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.04952},
}
Figure