Realistic Evaluation of Transductive Few-Shot Learning

Olivier Veilleux, Malik Boudiaf, Pablo Piantanida, Ismail Ben Ayed
4/24/2022
cs.LGcs.CV

Official code: oveilleux/Realistic_Transductive_Few_Shot (25 stars, Python, last commit 2022-11-10).

Abstract

Transductive inference is widely used in few-shot learning, as it leverages the statistics of the unlabeled query set of a few-shot task, typically yielding substantially better performances than its inductive counterpart. The current few-shot benchmarks use perfectly class-balanced tasks at inference.

Show full abstract

We argue that such an artificial regularity is unrealistic, as it assumes that the marginal label probability of the testing samples is known and fixed to the uniform distribution. In fact, in realistic scenarios, the unlabeled query sets come with arbitrary and unknown label marginals. We introduce and study the effect of arbitrary class distributions within the query sets of few-shot tasks at inference, removing the class-balance artefact. Specifically, we model the marginal probabilities of the classes as Dirichlet-distributed random variables, which yields a principled and realistic sampling within the simplex. This leverages the current few-shot benchmarks, building testing tasks with arbitrary class distributions. We evaluate experimentally state-of-the-art transductive methods over 3 widely used data sets, and observe, surprisingly, substantial performance drops, even below inductive methods in some cases. Furthermore, we propose a generalization of the mutual-information loss, based on $α$-divergences, which can handle effectively class-distribution variations. Empirically, we show that our transductive $α$-divergence optimization outperforms state-of-the-art methods across several data sets, models and few-shot settings. Our code is publicly available at https://github.com/oveilleux/Realistic_Transductive_Few_Shot.

View on arXivView PDF

Code Implementations(1)

(NeurIPS 2021) Realistic Evaluation of Transductive Few-Shot Learning

254Python, Jupyter NotebookMay 7, 20214 years ago
alpha-divergenceclass-imbalancedirichlet-distributionfew-shotfew-shot-classification+4 more

Similar Papers

Cite this paper

@article{veilleux2022realistic,
  title  = {Realistic Evaluation of Transductive Few-Shot Learning},
  author = {Olivier Veilleux and Malik Boudiaf and Pablo Piantanida and Ismail Ben Ayed},
  year   = {2022},
  eprint = {2204.11181},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.11181}
}

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/2204.11181.svg)](https://codeofpaper.com/paper/2204.11181)

Discussion