A Self-Distillation Embedded Supervised Affinity Attention Model for Few-Shot Segmentation

Qi Zhao, Binghao Liu, Shuchang Lyu, Huojin Chen

TL;DR

This paper introduces SD-AANet, a novel model for few-shot semantic segmentation that tackles the challenges of feature discrepancies between support and query images and the limited representational power of support prototypes. By integrating self-distillation for feature alignment and a supervised affinity attention mechanism for better guidance, SD-AANet achieves state-of-the-art results on the COCO-20i dataset.

What Problem Does This Paper Address?

Semantic segmentation, a crucial task in computer vision, involves assigning a class label to every pixel in an image. Traditional methods require vast amounts of pixel-level annotated data, which is costly and time-consuming to acquire. Furthermore, these models struggle when encountering "unseen" classes not present in their training data. Few-shot segmentation aims to address this by enabling models to segment new classes using only a few annotated examples (support set).

However, existing few-shot segmentation approaches face two primary hurdles:

  1. Feature Discrepancy: Differences in lighting, viewpoint, and object appearance between the support and query images create a "knowledge transfer barrier," hindering accurate segmentation.
  2. Limited Prototype Representation: A small number of support prototypes may not adequately capture the diverse features of an object class, leading to insufficient guidance for segmenting the query image.

This paper proposes a solution to overcome these limitations.

Methods

The proposed model, SD-AANet (Self-Distillation Embedded Supervised Affinity Attention Network), is built upon two novel modules:

  • Self-Distillation Guided Prototype Generating Module (SDPM): This module aims to bridge the gap between support and query features by employing self-distillation. It aligns features from both sets, identifying commonalities. SDPM takes support labels, support features, and query features as input and outputs a channel-reweighted query feature and a support prototype that captures intrinsic class features. The self-distillation process uses a "teacher" prototype (an average of support and query prototypes) to supervise the learning of an "student" prototype, encouraging the extraction of more robust, intrinsic features.
  • Supervised Affinity Attention Module (SAAM): This module generates a high-quality query attention map to guide the segmentation process. It leverages the entire support feature to supervise the attention map generation, compensating for the unrepresentative nature of limited support prototypes. SAAM introduces a supervised affinity attention mechanism that can be easily embedded into existing CNN models with minimal computational overhead. It produces an affinity attention map that helps the decoder focus on relevant regions in the query image.

SD-AANet combines these two modules to effectively address the challenges of feature distinction and limited prototype representation.

Datasets

The paper evaluates its method on two standard datasets for few-shot segmentation:

  • PASCAL-5²: This dataset is derived from PASCAL VOC 2012 and extended annotations. It's divided into 4 folds, each containing 5 classes, with 1000 support-query pairs used for testing per fold.
  • COCO-20²: This dataset, with 80 classes, is also split into 4 folds, each containing 20 classes. The experiments use the COCO validation set, which has a significantly larger number of images than PASCAL-5².

Key Insights and Ideas

  • Self-Distillation for Feature Alignment: The core idea of using self-distillation to align support and query features is a powerful way to mitigate the impact of varying image conditions and capture more robust, intrinsic object characteristics.
  • Supervised Attention for Guidance: Instead of relying solely on unsupervised prototype matching, SAAM's supervised approach to generating attention maps provides a more direct and effective way to guide the segmentation of unseen classes.
  • Synergy of SDPM and SAAM: The combination of SDPM and SAAM proves more effective than either module alone, demonstrating that addressing both feature discrepancy and prototype representation is crucial for high performance.
  • Intrinsic Features are Key: The paper emphasizes the importance of extracting "intrinsic features" – those common to all objects of a class – to overcome variations in unique features like shape, color, and lighting.

Key Results

  • State-of-the-Art Performance: SD-AANet achieves new state-of-the-art results on the COCO-20² dataset for both 1-shot and 5-shot segmentation tasks, with mIoU scores of 40.9% (1-shot) and 48.7% (5-shot). It also achieves comparable state-of-the-art results on PASCAL-5² (mIoU of 62.9% for 1-shot).
  • Significant Improvements: The proposed SDPM and SAAM modules individually improve performance over a baseline, and their combination yields a substantial gain of 2.5% mIoU on PASCAL-5² for 1-shot segmentation.
  • Efficiency: While increasing GPU memory slightly, SD-AANet maintains a competitive inference speed.
  • Multi-class Segmentation: The paper extends SD-AANet to multi-class few-shot segmentation, showing significant improvements over the baseline even in this more challenging setting.
  • Qualitative Improvements: Visualizations demonstrate SD-AANet's ability to better segment objects with significant appearance differences and to focus on intrinsic features, ignoring irrelevant backgrounds.

Limitations and Future Work

  • Small Target Segmentation: While SD-AANet shows improved performance on small targets compared to the baseline, it still struggles with extremely small objects or those highly similar to the background, as shown in the failure cases.
  • Computational Cost: The model increases GPU memory usage and the number of learnable parameters compared to the baseline, though inference speed remains competitive.
  • Future Work: The authors suggest exploring the application of self-distillation for zero-shot segmentation tasks.

Summary updated

BibTeX
@article{zhao2023self,
  author = {Qi Zhao and Binghao Liu and Shuchang Lyu and Huojin Chen},
  title = {{A Self-Distillation Embedded Supervised Affinity Attention Model for Few-Shot Segmentation}},
  journal = {IEEE Transactions on Cognitive and Developmental Systems},
  year = {2023},
  doi = {10.1109/tcds.2023.3251371},
}
Figure