HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Few-Shot Segmentation Without Meta-Learning: A Good Transductive Inference Is All You Need?

Malik Boudiaf Hoel Kervadec Ziko Imtiaz Masud Pablo Piantanida Ismail Ben Ayed Jose Dolz

Few-Shot Segmentation Without Meta-Learning: A Good Transductive Inference Is All You Need?

Abstract

We show that the way inference is performed in few-shot segmentation tasks has a substantial effect on performances -- an aspect often overlooked in the literature in favor of the meta-learning paradigm. We introduce a transductive inference for a given query image, leveraging the statistics of its unlabeled pixels, by optimizing a new loss containing three complementary terms: i) the cross-entropy on the labeled support pixels; ii) the Shannon entropy of the posteriors on the unlabeled query-image pixels; and iii) a global KL-divergence regularizer based on the proportion of the predicted foreground. As our inference uses a simple linear classifier of the extracted features, its computational load is comparable to inductive inference and can be used on top of any base training. Foregoing episodic training and using only standard cross-entropy training on the base classes, our inference yields competitive performances on standard benchmarks in the 1-shot scenarios. As the number of available shots increases, the gap in performances widens: on PASCAL-5i, our method brings about 5% and 6% improvements over the state-of-the-art, in the 5- and 10-shot scenarios, respectively. Furthermore, we introduce a new setting that includes domain shifts, where the base and novel classes are drawn from different datasets. Our method achieves the best performances in this more realistic setting. Our code is freely available online: https://github.com/mboudiaf/RePRI-for-Few-Shot-Segmentation.

Code Repositories

Bingolby/medical_few_shot_segmentation
pytorch
Mentioned in GitHub
mboudiaf/RePRI-for-Few-Shot-Segmentation
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
few-shot-semantic-segmentation-on-coco-20iRePRI (ResNet-50)
Mean IoU: 63.1
few-shot-semantic-segmentation-on-coco-20i-1RePRI (ResNet-50)
Mean IoU: 34.1
few-shot-semantic-segmentation-on-coco-20i-10RePRI (ResNet-50)
Mean IoU: 44.1
few-shot-semantic-segmentation-on-coco-20i-2RePRI (ResNet-50)
Mean IoU: 67.7
few-shot-semantic-segmentation-on-coco-20i-5RePRI (ResNet-50)
Mean IoU: 41.6
few-shot-semantic-segmentation-on-pascal-5iRePRI (ResNet-50)
Mean IoU: 68.1
few-shot-semantic-segmentation-on-pascal-5i-1RePRI (ResNet-50)
Mean IoU: 59.7
few-shot-semantic-segmentation-on-pascal-5i-1RePRI (ResNet-101)
Mean IoU: 59.4
few-shot-semantic-segmentation-on-pascal-5i-5RePRI (ResNet-50)
Mean IoU: 66.6
few-shot-semantic-segmentation-on-pascal-5i-5RePRI (ResNet-101)
Mean IoU: 65.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp