Task Consistent Prototype Learning for Incremental Few-Shot Semantic Segmentation

Wenbo Xu, Yanan Wu, Haoran Jiang, Yang Wang, Qiang Wu, Jian Zhang

Introduction

Semantic segmentation is a fundamental task in computer vision, requiring dense pixel-level annotations. While standard supervised methods excel with large datasets, real-world applications often demand learning from limited examples. Few-Shot Semantic Segmentation (FSS) addresses this, but typically assumes a static set of classes. This paper explores the more challenging and realistic scenario of Incremental Few-Shot Semantic Segmentation (iFSS), where a model must continuously integrate new classes from sparse data without degrading its performance on previously learned "base" classes.

The Challenge: Task Misalignment

The primary hurdle in iFSS is the disconnect between the initial training phase and the incremental deployment phase. Standard models are trained on base classes using traditional supervised learning but are expected to function as few-shot learners later. This task misalignment leads to two critical failures:

  1. Catastrophic Forgetting: New updates can overwrite the feature representations associated with base classes.
  2. Overfitting: Sparse data (1 or 5 shots) for novel classes often leads to poor generalization and decision boundary collapse.

Proposed Methodology

The authors introduce a framework designed to bridge this gap through two main innovations:

Meta-Learning for Task Consistency

To prepare the model for incremental learning, the authors employ a meta-learning strategy during the base training phase. By sampling "pseudo-incremental tasks"—splitting base data into simulated "pseudo-base" and "pseudo-novel" sets—the model is forced to practice adapting to new classes while maintaining its memory of old ones. This "train-as-you-test" philosophy ensures the model develops a robust strategy for future real-world updates.

Qualitative results from the base session (Session T) showing successful segmentation of the horse and rider.

Prototype Space Re-distribution Learning (PSRL)

To manage the feature space effectively, the paper proposes Prototype Space Re-distribution Learning (PSRL). Most iFSS models represent classes as "prototypes" (representative feature vectors). PSRL introduces a prototype projector ($g$) and a specialized Redistribution Loss ($L_r$). This loss function pushes new class prototypes away from existing ones to minimize interference and ensures that updated base prototypes remain anchored to their original positions, preventing misalignment.

Experimental Evaluation

The framework was evaluated on the PASCAL VOC 2012 and COCO benchmarks, adapted for incremental settings. The experiments covered both single-step and multi-step scenarios, focusing on the Harmonic Mean (HM) to balance performance across base and novel categories.

Key Results

The proposed method achieved state-of-the-art results across major metrics:

  • PASCAL VOC: In the 5-shot multi-step setting, the model reached a 40.4% HM, significantly improving novel class mIoU to 29.1%.
  • COCO: On this complex dataset, the model achieved a 29.4% HM, outperforming previous benchmarks by 2.8%.
Segmentation results from a later incremental session (Session 2), demonstrating the model's ability to learn new classes like 'train' while retaining knowledge.

Discussion and Conclusion

The success of this approach highlights that iFSS performance is not just a matter of data volume, but of objective alignment. By simulating the incremental process during training and dynamically managing the prototype space, the model maintains clear decision boundaries between old and new knowledge. While challenges remain regarding background interference and hyperparameter sensitivity, this work provides a robust foundation for deploying adaptive segmentation models in dynamic environments.

Summary updated

BibTeX
@inproceedings{xu2024task,
  author = {Wenbo Xu and Yanan Wu and Haoran Jiang and Yang Wang and Qiang Wu and Jian Zhang},
  title = {{Task Consistent Prototype Learning for Incremental Few-Shot Semantic Segmentation}},
  booktitle = {ICPR},
  year = {2024},
  doi = {10.1007/978-3-031-78347-0\_10},
}
Figure