Label-Efficient Few-Shot Semantic Segmentation with Unsupervised Meta-Training

Jianwu Li, Kaiyue Shi, Guo-Sen Xie, Xiaofeng Liu, Jian Zhang, Tianfei Zhou

Introduction

Semantic segmentation is a critical computer vision task that involves assigning a class label to every pixel in an image. While highly effective, modern deep learning models for this task are notoriously "data-hungry," requiring exhaustive, pixel-level human annotations that are expensive and time-consuming to produce. Few-Shot Semantic Segmentation (FSS) attempts to mitigate this by learning to segment novel objects from only a few examples (the "support set"). However, conventional FSS models still require massive labeled "base" datasets for initial training. This research introduces Unsupervised Meta-Training (UMT), a framework that leverages vast amounts of unlabeled data to train FSS models, achieving performance comparable to fully supervised methods with significantly fewer human labels.

Methodology: Unsupervised Meta-Training and ProtoSHA

The proposed approach consists of two primary components: an automatic meta-task generator and a noise-robust Transformer architecture.

Automatic Meta-Task Construction

To bypass the need for human labels during training, the authors generate "pseudo-tasks" from unlabeled images. First, a self-supervised backbone (e.g., MoCo) extracts dense feature embeddings. These embeddings are then grouped into "semantic clusters" using $k$-means clustering. Each cluster serves as a "pseudo-class." By sampling images containing the same cluster, the system creates support and query pairs where the cluster's spatial layout acts as a pseudo-mask.

A support image example where a motorcycle is masked to guide the segmentation of similar objects in a query image.

Prototype-Aware Cross-Attention (ProtoSHA)

Because unsupervised pseudo-masks are inherently noisy and may have "jagged edges," a standard pixel-to-pixel attention mechanism would likely overfit to these errors. To address this, the authors developed the Prototype-Aware Cross-Attention (ProtoSHA) layer. This layer abstracts support pixels into a small set of foreground and background "prototypes" (centroids). The query image then interacts only with these prototypes, effectively filtering out local noise and reducing computational complexity from $O(H^2W^2)$ to $O(HW \cdot K)$.

Experimental Evaluation

The model was evaluated on the PASCAL-5ⁱ and COCO-20ⁱ benchmarks. For the unsupervised phase, the authors utilized over 82,000 unlabeled images from the COCO-20ⁱ training set.

Key Results

  • Unsupervised Performance: The purely unsupervised model (0% human labels) achieved a 54.1% mIoU on PASCAL-5ⁱ, outperforming several older fully supervised FSS baselines.
  • Label Efficiency: With only 20% of the available labels, the model reached 64.3% mIoU on PASCAL-5ⁱ, matching the performance of state-of-the-art models that utilize 100% of the annotations.
  • Qualitative Robustness: The model demonstrates strong segmentation capabilities across a wide variety of semantic categories and complex scenarios, as shown in the qualitative results.
Qualitative examples demonstrating the model's ability to segment diverse objects, including animals, people, and vehicles, across various environments.

Discussion and Future Directions

The success of UMT stems from the semantic consistency of modern self-supervised features, which allow clustering to act as a viable proxy for human labels. Furthermore, the use of prototypes serves as a natural denoising filter. While a performance gap still exists between purely unsupervised and the best fully supervised models, this paradigm offers a significant breakthrough for domains where expert labels are scarce, such as medical imaging. Future work may extend this unsupervised meta-learning approach to 3D data or video segmentation.

Summary updated

BibTeX
@inproceedings{li2024label,
  author = {Jianwu Li and Kaiyue Shi and Guo-Sen Xie and Xiaofeng Liu and Jian Zhang and Tianfei Zhou},
  title = {{Label-Efficient Few-Shot Semantic Segmentation with Unsupervised Meta-Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28094},
}
Figure