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 +1 more
12/11/2020
259 citations
cs.CV

Official code: mboudiaf/RePRI-for-Few-Shot-Segmentation (175 stars, Python, MIT, last commit 2023-03-05).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

(CVPR 2021) Code for our method RePRI for Few-Shot Segmentation. Paper at http://arxiv.org/abs/2012.06166

17527Python, ShellDec 8, 20203 years agoMIT
cocodomain-shiftfew-shot-segmentationpascal-5itransductive-learning

Similar Papers

Cite this paper

@article{boudiaf2020fewshot,
  title  = {Few-Shot Segmentation Without Meta-Learning: A Good Transductive Inference Is All You Need?},
  author = {Malik Boudiaf and Hoel Kervadec and Ziko Imtiaz Masud and Pablo Piantanida and Ismail Ben Ayed and Jose Dolz},
  year   = {2020},
  eprint = {2012.06166},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.06166}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.06166.svg)](https://codeofpaper.com/paper/2012.06166)

Discussion