Generalized Few-Shot Semantic Segmentation (GFSS) is a challenging task that requires models to segment novel object categories from just a few annotated examples while simultaneously maintaining performance on a set of previously learned base classes. This paper introduces GFSS-EKT, a framework designed to mitigate the distribution gap and context scarcity inherent in GFSS. By leveraging effective knowledge transfer through Novel Prototype Modulation (NPM), Novel Classifier Calibration (NCC), and Context Consistency Learning (CCL), GFSS-EKT bridges the gap between data-rich base classes and data-poor novel classes.
What Problem Does This Paper Address?
Semantic segmentation usually requires massive amounts of annotated data. While Few-Shot Semantic Segmentation (FSS) was developed to let models learn novel classes from a few examples, standard FSS models often "forget" the original base classes.
Generalized Few-Shot Semantic Segmentation (GFSS) aims to solve this by segmenting both base and novel classes simultaneously. The challenge is twofold: the distribution gap, where features and classifiers become biased toward either base or novel classes during two-phase training, and context scarcity, where the limited samples for novel classes make it difficult for the model to learn environmental associations (e.g., a boat usually appearing in water).
Methodology
The authors propose the GFSS-EKT framework, which introduces three novel modules designed to transfer knowledge from data-rich base classes to data-poor novel classes during a fine-tuning phase:
- Novel Prototype Modulation (NPM): Instead of treating novel class prototypes as isolated entities, NPM uses a cross-attention mechanism. This allows novel prototypes to "borrow" relevant features from base prototypes, exploiting the fact that novel classes often share structural or textural patterns with base classes (e.g., a novel "van" sharing features with a base "truck").
- Novel Classifier Calibration (NCC): Novel classifiers trained on few samples are prone to overfitting. NCC adjusts the mean and scales the variance of the novel classifier's weights to align with the more reliable and stable statistics of base classifiers, significantly reducing prediction bias.
- Context Consistency Learning (CCL): This unsupervised scheme applies a context-oriented cutout to unlabeled base images. By forcing the model to produce consistent predictions across different augmented versions of an image, it transfers contextual knowledge—how objects relate to their surroundings—to the novel classes.
Key Results
GFSS-EKT outperformed previous state-of-the-art (SOTA) methods across standard computer vision benchmarks, particularly in the H-Mean metric (the harmonic mean of base and novel class accuracy), which ensures performance is balanced across all classes.
- PASCAL-$5^i$ (1-shot): Achieved an H-Mean of 55.47%, a significant jump over the previous best of 52.22%.
- COCO-$20^i$ (1-shot): Achieved an H-Mean of 31.22%, compared to the previous SOTA of 26.69%.
Qualitative visual results show that GFSS-EKT produces much cleaner segmentations with better part-recognition and less noise compared to prior methods like POP.
Conclusion and Future Work
GFSS-EKT effectively addresses the distribution gap and context scarcity in GFSS by treating novel classes as related to, rather than isolated from, base classes. While the performance gains are most critical in 1-shot scenarios where data is most scarce, the framework remains beneficial as more samples become available. Future work may involve incorporating multimodal information, such as natural language descriptions from large language models, to further bridge the semantic gap between base and novel categories.
Summary updated