Self-Supervised Tuning for Few-Shot Segmentation

Kai Zhu, Wei Zhai, Yang Cao

Abstract

Few-shot segmentation (FSS) is a challenging task that requires identifying and segmenting novel object categories using only a few annotated examples. A common failure mode in FSS is the generation of generic or "marginalized" features that fail to distinguish target objects from complex backgrounds. Researchers from the University of Science and Technology of China propose a Self-Supervised Tuning (SST) framework that introduces an adaptive "inner-loop" to refine support feature representations. By treating support images as their own segmentation targets, the model learns to generate highly discriminative, category-specific descriptors. Our approach achieves state-of-the-art results on the PASCAL-5i and COCO-20i benchmarks.

Introduction

Few-shot segmentation relies on a "support set" of labeled images to guide the segmentation of a "query" image. Most current methods utilize a base learner to extract features from the support set, which are then matched against the query image's features. However, if the extracted features are not sufficiently distinct in the embedding space, the model often confuses the target object with the background or other semantically similar categories.

Comparison of segmentation results before and after self-supervised tuning.

The core insight of this work is that a model's ability to segment a query image is fundamentally limited by its ability to represent the support image. If a model cannot accurately segment the object in the support image—where the ground truth is known—it is unlikely to succeed on a novel query image. The SST framework addresses this by forcing the model to "practice" on the support images before tackling the query image, ensuring the generated descriptors are category-specific.

Methodology

The proposed SST framework consists of several integrated components designed to enhance feature discriminability.

Self-Supervised Module (SSM) and Adaptive Tuning

The SSM introduces an "inner loop" during inference. For each few-shot episode, the model performs a self-segmentation task on the support image. Instead of updating the entire network's weights, which is computationally prohibitive and prone to overfitting, the framework performs Adaptive Tuning. It calculates the gradient of the self-segmentation loss with respect to the support feature maps ($R_s$) and updates the representation directly:

$$R'_s = R_s - \\frac{\\partial L_{sup}}{\\partial R_s}$$

This process "tunes" the latent features to be more category-specific before they are used for query segmentation. This acts as a semantic constraint, pushing features toward category-specific clusters and away from marginalized areas of the embedding space.

Metric Module and Meta-Learning

The refined features are passed to a metric module for final segmentation. This module involves pooling and tiling operations to align support and query features before a convolutional decoder generates the final mask.

The metric module architecture used for feature matching and segmentation.

An "outer loop" optimization-based meta-learner ensures that the model generalizes well across different episodes. Additionally, an auxiliary loss is used during training to act as a form of data enhancement, encouraging the feature extractor to learn robust representations faster.

Weighted 5-Shot Fusion

In 5-shot scenarios, the model employs a weighted fusion strategy. Instead of simple averaging, it weights each support image's contribution based on its self-segmentation performance. Support images that the model "understands" better (higher self-segmentation accuracy) exert more influence on the final query prediction.

Experimental Results

The SST framework was evaluated on two standard benchmarks: PASCAL-5i and COCO-20i.

  • PASCAL-5i: Using a ResNet-50 backbone, the model achieved a mean Intersection-over-Union (mIoU) of 57.6% in the 1-shot setting and 61.4% in the 5-shot setting, surpassing previous state-of-the-art methods like CANet.
  • COCO-20i: On this more complex dataset, the model outperformed competitors such as PANet and FWBFS by approximately 1-2% mIoU, demonstrating strong generalization on larger, more difficult datasets.

Ablation studies confirmed the efficacy of the individual components. The inclusion of the SSM module alone improved mIoU by approximately 1.2%, while the auxiliary loss provided an additional 2.3% boost.

Conclusion

Self-Supervised Tuning provides a powerful mechanism for adapting few-shot models to specific tasks without the overhead of full weight fine-tuning. By enforcing a semantic constraint through self-segmentation, the model produces more discriminative features that significantly improve segmentation accuracy. While the back-propagation step in the inner loop adds some computational overhead, the gains in precision make it a compelling approach for flexible computer vision systems. Future work may explore applying this adaptive tuning strategy to other few-shot tasks, such as object detection or medical image analysis.

Summary updated

BibTeX
@inproceedings{zhu2020self,
  author = {Kai Zhu and Wei Zhai and Yang Cao},
  title = {{Self-Supervised Tuning for Few-Shot Segmentation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/142},
}
Figure