Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Realistic Evaluation of Transductive Few-Shot Learning

About

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. 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 $\alpha$-divergences, which can handle effectively class-distribution variations. Empirically, we show that our transductive $\alpha$-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.

Olivier Veilleux, Malik Boudiaf, Pablo Piantanida, Ismail Ben Ayed• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationMini-Imagenet (test)
Acc (5-shot)71.5
75
Few-shot Image Classificationmini-ImageNet K=20 (test)
Accuracy75.8
56
Few-shot Image Classificationtiered-ImageNet K=160 (test)
Accuracy0.518
42
Few-shot classificationMini-ImageNet
Accuracy (1-shot)69.8
41
Few-shot classificationtiered-ImageNet
Accuracy (1-shot)76
38
Few-shot classificationCUB Dirichlet alpha=2 (test)
Accuracy94.6
36
Few-shot classificationCUB K=50 (test)
Accuracy83.6
27
Few-shot classificationi-Nat (test)
Accuracy66.7
26
Few-shot classificationImageNet mini
Acc (Unbalanced, 1-shot)69.8
17
Image Classificationtiered-ImageNet (test)
5-shot Accuracy45.8
16
Showing 10 of 22 rows

Other info

Code

Follow for update