[Paper Review] Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer
This paper proposes a simpler few-shot semantic segmentation approach that meta-learns only the classifier head while freezing a pre-trained encoder-decoder backbone. By introducing a Classifier Weight Transformer (CWT) to dynamically adapt classifier weights per query image, the method achieves state-of-the-art performance on COCO-20 and PASCAL-20 benchmarks, outperforming prior methods by large margins despite reduced model complexity.
A few-shot semantic segmentation model is typically composed of a CNN encoder, a CNN decoder and a simple classifier (separating foreground and background pixels). Most existing methods meta-learn all three model components for fast adaptation to a new class. However, given that as few as a single support set image is available, effective model adaption of all three components to the new class is extremely challenging. In this work we propose to simplify the meta-learning task by focusing solely on the simplest component, the classifier, whilst leaving the encoder and decoder to pre-training. We hypothesize that if we pre-train an off-the-shelf segmentation model over a set of diverse training classes with sufficient annotations, the encoder and decoder can capture rich discriminative features applicable for any unseen classes, rendering the subsequent meta-learning stage unnecessary. For the classifier meta-learning, we introduce a Classifier Weight Transformer (CWT) designed to dynamically adapt the supportset trained classifier's weights to each query image in an inductive way. Extensive experiments on two standard benchmarks show that despite its simplicity, our method outperforms the state-of-the-art alternatives, often by a large margin.Code is available on https://github.com/zhiheLu/CWT-for-FSS.
Motivation & Objective
- To address the challenge of few-shot semantic segmentation with minimal supervision, where only one or a few annotated support images are available per novel class.
- To reduce the complexity of model adaptation by focusing meta-learning solely on the classifier, while freezing a pre-trained encoder-decoder backbone.
- To overcome intra-class variation in object appearance across support and query images through dynamic classifier weight adaptation.
- To demonstrate that pre-training a strong, class-agnostic feature extractor enables superior few-shot generalization, even without meta-learning on the backbone.
Proposed method
- The method pre-trains a segmentation backbone (e.g., ResNet-50) on a diverse set of training classes to learn class-agnostic, discriminative features.
- During inference, the classifier is initialized using support-set features via a learned projection head, forming the initial classifier weights.
- A Classifier Weight Transformer (CWT) dynamically adapts these initial weights to each query image by attending to query features and refining the classifier weights in an inductive manner.
- The CWT uses self-attention mechanisms where query features serve as queries, and support-set features are used as keys and values to generate query-specific classifier weights.
- The entire model is trained in an episodic manner, with meta-learning applied only to the classifier head and the CWT module.
- The encoder and decoder remain frozen during meta-training and inference, significantly reducing optimization complexity.
Experimental results
Research questions
- RQ1Can we achieve state-of-the-art few-shot semantic segmentation performance by meta-learning only the classifier head, while freezing the pre-trained encoder and decoder?
- RQ2How effective is a pre-trained encoder-decoder backbone in generalizing to unseen classes without fine-tuning?
- RQ3Can a query-adaptive classifier head, such as the CWT, effectively mitigate intra-class variation in few-shot segmentation?
- RQ4What is the performance gain from explicitly modeling query-image-specific adaptation compared to static classifier adaptation?
Key findings
- The proposed method achieves 32.9% mean mIoU on the COCO-20 dataset under 1-shot setting, outperforming the previous SOTA by a significant margin.
- A simple baseline that pre-trains the backbone and trains a classifier on the support set (without meta-learning) already achieves 28.6% mIoU, outperforming PPNet by 2.9%.
- The full CWT model improves performance by 4.3% over the baseline, demonstrating the effectiveness of query-specific classifier adaptation.
- Removing query-image conditioning in the CWT (i.e., using only support features for attention) reduces mIoU by 14.0 points, proving the necessity of query-aware adaptation.
- Failure cases are primarily due to extreme appearance changes (e.g., partial views, pose, occlusion), indicating a need for better modeling of spatial and appearance variations.
- The method generalizes well to cross-domain few-shot segmentation, showing robustness to domain shift.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.