Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer

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.

PDF Abstract ICCV 2021 PDF ICCV 2021 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Few-Shot Semantic Segmentation COCO-20i (1-shot) CWT (ResNet-50) Mean IoU 32.9 # 69
Few-Shot Semantic Segmentation COCO-20i (1-shot) CWT (ResNet-101) Mean IoU 32.4 # 70
Few-Shot Semantic Segmentation COCO-20i (5-shot) CWT (ResNet-101) Mean IoU 42 # 59
Few-Shot Semantic Segmentation COCO-20i (5-shot) CWT (ResNet-50) Mean IoU 41.3 # 63
Few-Shot Semantic Segmentation COCO-20i -> Pascal VOC (1-shot) CWT (ResNet-50) Mean IoU 59.5 # 10
Few-Shot Semantic Segmentation COCO-20i -> Pascal VOC (5-shot) CWT (ResNet-50) Mean IoU 66.5 # 9
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) CWT (ResNet-50) Mean IoU 56.4 # 88
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) CWT (ResNet-101) Mean IoU 58 # 83
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) CWT (ResNet-50) Mean IoU 63.7 # 72
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) CWT (ResNet-101) Mean IoU 64.7 # 67

Methods