Abstract
Generalized Few-Shot Semantic Segmentation (GFSS) requires models to segment novel classes with limited examples while maintaining performance on base classes. We present Projection onto Orthogonal Prototypes (POP), a framework that mitigates catastrophic forgetting by enforcing orthogonality between class prototypes. By treating the background as a residual of class projections, POP effectively handles semantic shifts. Experimental results on PASCAL-$5^i$ and COCO-$20^i$ demonstrate that POP achieves state-of-the-art performance with minimal degradation in base class accuracy.
Introduction
In standard Few-Shot Semantic Segmentation (FSS), models are evaluated on their ability to segment novel classes given a few support examples. However, real-world applications require Generalized Few-Shot Semantic Segmentation (GFSS), where the model must simultaneously recognize both the original "base" classes and the new "novel" classes.
The primary challenge in GFSS is performance degradation on base classes—often termed "catastrophic forgetting"—when the model is fine-tuned on novel data. Additionally, a "semantic shift" occurs because novel classes were treated as background during the initial training phase. When these classes are explicitly learned, the definition of the background changes, leading to confusion.
Methodology: Projection onto Orthogonal Prototypes (POP)
The proposed POP framework addresses these challenges through a two-phase training strategy centered on orthogonal feature decoupling.
Orthogonal Prototypes and Residual Background
Instead of standard linear classifiers, POP utilizes class-specific prototype vectors. To ensure that learning novel classes does not overwrite base class features, an orthogonality loss is applied. This forces prototypes to occupy distinct subspaces.
A key innovation is the Residual Background Representation. Rather than learning a static background prototype, POP defines the background as the residual feature map—the information remaining after projecting the input features onto all known class prototypes. This approach naturally adapts as new classes are introduced, resolving the semantic shift problem.
Two-Phase Training
- Phase 1 (Base Learning): The encoder and base prototypes are trained on the base dataset.
- Phase 2 (Novel Updating): The encoder and base prototypes are frozen to prevent forgetting. Only the novel prototypes and a small novel-class classifier are optimized using a few-shot support set. To address data imbalance, the authors employ relabeling and resampling techniques.
Experimental Results
The authors evaluated POP on the PASCAL-$5^i$ and COCO-$20^i$ benchmarks.
Quantitative Performance
POP demonstrates superior performance in both base and novel class segmentation. On PASCAL-$5^i$ (5-shot), POP achieved a total mIoU of 70.28%, outperforming the strong BAM baseline. On the more complex COCO-$20^i$ dataset, POP reached 48.75% mIoU, significantly higher than standard fine-tuning (FT) approaches.
Stability and Forgetting
A critical metric for GFSS is the stability of base class performance. As shown in the confusion matrix analysis, standard fine-tuning leads to a 4.54% drop in base class accuracy upon learning novel classes. In contrast, POP experiences a negligible drop of only 0.13%, effectively eliminating catastrophic forgetting.
Conclusion
The POP framework successfully addresses the core challenges of GFSS. By decoupling class representations through orthogonality and modeling the background as a residual, POP maintains high accuracy on base classes while effectively learning novel ones. This approach sets a new state-of-the-art for generalized few-shot segmentation tasks.
Summary updated