Harmonizing Base and Novel Classes: A Class-Contrastive Approach for Generalized Few-Shot Segmentation
About
Current methods for few-shot segmentation (FSSeg) have mainly focused on improving the performance of novel classes while neglecting the performance of base classes. To overcome this limitation, the task of generalized few-shot semantic segmentation (GFSSeg) has been introduced, aiming to predict segmentation masks for both base and novel classes. However, the current prototype-based methods do not explicitly consider the relationship between base and novel classes when updating prototypes, leading to a limited performance in identifying true categories. To address this challenge, we propose a class contrastive loss and a class relationship loss to regulate prototype updates and encourage a large distance between prototypes from different classes, thus distinguishing the classes from each other while maintaining the performance of the base classes. Our proposed approach achieves new state-of-the-art performance for the generalized few-shot segmentation task on PASCAL VOC and MS COCO datasets.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Few-shot Segmentation | Pascal VOC | mIoU69.4 | 40 | |
| Few-shot Segmentation | MS-COCO | mIoU50.6 | 36 | |
| Generalized Few-Shot Semantic Segmentation | PASCAL VOC (train val) | Mean Novel mIoU22.58 | 5 | |
| Generalized Few-Shot Semantic Segmentation | Pascal VOC | Novel mIoU32.08 | 5 | |
| Generalized Few-Shot Semantic Segmentation | MS COCO 2014 (cross-validation) | Fold 0 Novel mIoU9.23 | 4 | |
| Generalized Few-Shot Semantic Segmentation | PASCAL VOC (Fold 0) | Novel mIoU27.64 | 4 | |
| Generalized Few-Shot Semantic Segmentation | PASCAL VOC (Fold 1) | Novel mIoU45.95 | 4 | |
| Generalized Few-Shot Semantic Segmentation | PASCAL VOC (Fold 2) | Novel mIoU30.06 | 4 | |
| Generalized Few-Shot Semantic Segmentation | PASCAL VOC (Fold 3) | Novel mIoU24.68 | 4 |