Atsuro Okazawa, SoftBank Corp.
Abstract
Few-shot segmentation (FSS) aims to segment novel object classes using only a handful of labeled examples. A primary challenge in this domain is feature sparsity, where the limited number of support samples fails to provide a comprehensive representation of the target class, leading to ambiguous classification boundaries—especially when distinguishing between visually similar categories. This paper introduces IPRNet (Interclass Prototype Relation Network), which addresses this by explicitly managing the relationships between different class prototypes. By enforcing separation in the feature space and utilizing a dual-classifier architecture, IPRNet achieves state-of-the-art results on the PASCAL-$5^i$ and COCO-$20^i$ benchmarks.
The Problem: Feature Sparsity and Interclass Confusion
Standard semantic segmentation requires massive datasets with pixel-level annotations. FSS attempts to learn from just 1 to 5 examples (the "support" set). However, because the model only sees a few instances, the resulting feature distribution for the target class is often sparse.
As shown in the figure above, when feature spaces for the target class and similar classes overlap (a), the classification boundary becomes unreliable. Most existing FSS methods focus solely on the relationship between the target object and the background, ignoring how the target class relates to other potential categories. This often leads to "distractor" objects being misclassified as the target.
Proposed Method: IPRNet
The authors propose two primary innovations to solve these boundary issues:
- Interclass Prototype Relation Module (IPRM): Unlike traditional methods that only generate a prototype for the target class, IPRM generates prototypes for all classes present in a training batch. It introduces a Relation Loss ($L_r$) based on cosine similarity, which penalizes the model if prototypes from different classes are too close in feature space. This forces the network to learn more discriminative, unique features.
- Respective Classifier Module (RCM): To better balance foreground and background detection, the RCM branches the feature map into two independent paths—one specialized for the foreground target and one for the background. These branches are trained with a specific loss that ignores distractor pixels, and their outputs are eventually fused for the final prediction.
Key Results and Insights
IPRNet was evaluated on the PASCAL-$5^i$ and COCO-$20^i$ benchmarks, outperforming previous state-of-the-art models like HSNet.
- Performance Gains: On PASCAL-$5^i$, the model achieved a mean Intersection-over-Union (mIoU) of 67.5% (1-shot) and 70.9% (5-shot). On the more challenging COCO-$20^i$ dataset, it reached 46.9% (1-shot) and 53.3% (5-shot).
- Handling Difficult Classes: The model saw significant improvements in categories often confused with others, such as a 20.7% increase for "person" and a 20.2% increase for "dining table" on COCO.
- The Importance of Contrast: Ablation studies showed that removing the IPRM and RCM modules caused the mIoU to drop by 4.4%, confirming that the inter-class relation logic is the primary driver of success. Qualitative t-SNE visualizations confirmed that IPRNet successfully clusters class prototypes further apart than baseline models.
Limitations and Future Work
While IPRNet excels at distinguishing between similar classes, it is slightly less effective for "characteristic objects"—items with highly unique, complex shapes (like kites or potted plants) that do not resemble other common categories. In these cases, the model's focus on inter-class differences is less beneficial than a deep understanding of the object's unique geometry. Future research may focus on balancing inter-class discriminative learning with enhanced intra-class feature extraction for these unique shapes.
Summary updated