Self-support Few-Shot Semantic Segmentation

Qi Fan, Wenjie Pei, Yu-Wing Tai, Chi-Keung Tang

Few-shot semantic segmentation (FSS) aims to segment objects of novel classes using only a handful of annotated support images. A fundamental challenge in this field is the intra-class appearance discrepancy: a "dog" in a support image may look vastly different from a "dog" in a query image (e.g., a Golden Retriever vs. a Poodle). Standard methods often fail because support images are too scarce to cover the visual variety of a class. This paper introduces a "self-support" strategy to bridge this gap by leveraging the query image's own features to refine its segmentation.

The Self-Support Paradigm

The core innovation is the Self-Support Network (SSP), which operates on the principle that pixels belonging to the same object are more similar to each other than to pixels of different objects, even within the same semantic class.

Conceptual overview of Self-Support Matching versus conventional matching. The model uses an initial mask to harvest features from the query image itself to create a more accurate prototype.

As shown in Figure 1, while conventional matching relies solely on a support prototype ($S$) to segment the query ($Q$), the proposed method uses an initial high-confidence prediction to extract a "self-support" prototype directly from the query image. This self-generated prototype captures the specific visual characteristics of the target object in the current scene, leading to a much more accurate final mask.

Methodology and Architecture

The SSP architecture consists of several key components designed to optimize both foreground and background segmentation:

  1. Self-Support Prototype (SSP): The model first generates an initial mask using standard support-query matching. It then pools features from high-confidence regions of this mask to create a self-support prototype, which is used to refine the final segmentation.
  2. Adaptive Self-support Background Prototype (ASBP): Backgrounds are often cluttered and lack global consistency. Instead of a single global prototype, ASBP uses an affinity-based mechanism to generate unique, adaptive background prototypes for every pixel by aggregating similar surrounding background features.
  3. Self-Support Loss (SSL): This novel loss function supervises the matching between query features and self-generated prototypes, ensuring the model learns to effectively "support itself" during training.
Detailed architecture of the Self-Support Network, showing the weight-shared CNN encoders and the generation of self-support prototypes (SSFP and ASBP).

Key Insights and Results

The authors demonstrate that even a partial or noisy initial prediction provides a better prototype for segmenting the rest of a specific object than a "perfect" prototype from a different support image. This is due to the high intra-object similarity compared to cross-object similarity. This creates a "Matthew Effect" where better initial predictions lead to higher-quality self-support prototypes, which in turn produce even better final predictions.

Performance Benchmarks

The model was evaluated on standard FSS benchmarks, achieving state-of-the-art (SOTA) results:

  • PASCAL-5ⁱ: Achieved 64.0% mIoU in 1-shot and 72.5% mIoU in 5-shot settings (ResNet-101).
  • Efficiency: The self-support module is non-parametric, adding no new learnable weights to the matching process. It runs at approximately 28 FPS on a Tesla V100, making it suitable for real-time applications.
  • Robustness: The method is notably robust to weak support annotations, such as bounding boxes or scribbles, showing significantly smaller performance drops than baseline models when precise masks are unavailable.

Conclusion

By shifting the focus from cross-image matching to self-supporting refinement, the SSP framework effectively addresses the intra-class discrepancy problem in few-shot learning. Its high efficiency and robustness to weak supervision make it a powerful tool for practical semantic segmentation tasks where annotated data is limited.

Summary updated

BibTeX
@inproceedings{fan2022self,
  author = {Qi Fan and Wenjie Pei and Yu-Wing Tai and Chi-Keung Tang},
  title = {{Self-support Few-Shot Semantic Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19800-7\_41},
}
Figure