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

Towards Practical Few-Shot Query Sets: Transductive Minimum Description Length Inference

About

Standard few-shot benchmarks are often built upon simplifying assumptions on the query sets, which may not always hold in practice. In particular, for each task at testing time, the classes effectively present in the unlabeled query set are known a priori, and correspond exactly to the set of classes represented in the labeled support set. We relax these assumptions and extend current benchmarks, so that the query-set classes of a given task are unknown, but just belong to a much larger set of possible classes. Our setting could be viewed as an instance of the challenging yet practical problem of extremely imbalanced K-way classification, K being much larger than the values typically used in standard benchmarks, and with potentially irrelevant supervision from the support set. Expectedly, our setting incurs drops in the performances of state-of-the-art methods. Motivated by these observations, we introduce a PrimAl Dual Minimum Description LEngth (PADDLE) formulation, which balances data-fitting accuracy and model complexity for a given few-shot task, under supervision constraints from the support set. Our constrained MDL-like objective promotes competition among a large set of possible classes, preserving only effective classes that befit better the data of a few-shot task. It is hyperparameter free, and could be applied on top of any base-class training. Furthermore, we derive a fast block coordinate descent algorithm for optimizing our objective, with convergence guarantee, and a linear computational complexity at each iteration. Comprehensive experiments over the standard few-shot datasets and the more realistic and challenging i-Nat dataset show highly competitive performances of our method, more so when the numbers of possible classes in the tasks increase. Our code is publicly available at https://github.com/SegoleneMartin/PADDLE.

S\'egol\`ene Martin, Malik Boudiaf, Emilie Chouzenoux, Jean-Christophe Pesquet, Ismail Ben Ayed• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationMini-Imagenet (test)
Acc (5-shot)62.9
75
Few-shot Image Classificationmini-ImageNet K=20 (test)
Accuracy80
56
Few-shot Image Classificationtiered-ImageNet K=160 (test)
Accuracy0.72
42
Few-shot classificationCUB K=50 (test)
Accuracy86.8
27
Few-shot classificationi-Nat (test)
Accuracy84.3
26
Image Classificationtiered-ImageNet (test)
5-shot Accuracy45.4
16
Image ClassificationFlowers102 4-shot
Accuracy82.3
8
Image ClassificationDTD 4-shot
Accuracy50
8
Image ClassificationUCF101 4-shot
Accuracy63.7
8
Image ClassificationFGVC Aircraft 4-shot
Accuracy21.3
8
Showing 10 of 17 rows

Other info

Code

Follow for update