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

Hubs and Hyperspheres: Reducing Hubness and Improving Transductive Few-shot Learning with Hyperspherical Embeddings

About

Distance-based classification is frequently used in transductive few-shot learning (FSL). However, due to the high-dimensionality of image representations, FSL classifiers are prone to suffer from the hubness problem, where a few points (hubs) occur frequently in multiple nearest neighbour lists of other points. Hubness negatively impacts distance-based classification when hubs from one class appear often among the nearest neighbors of points from another class, degrading the classifier's performance. To address the hubness problem in FSL, we first prove that hubness can be eliminated by distributing representations uniformly on the hypersphere. We then propose two new approaches to embed representations on the hypersphere, which we prove optimize a tradeoff between uniformity and local similarity preservation -- reducing hubness while retaining class structure. Our experiments show that the proposed methods reduce hubness, and significantly improves transductive FSL accuracy for a wide range of classifiers.

Daniel J. Trosten, Rwiddhi Chakraborty, Sigurd L{\o}kse, Kristoffer Knutsen Wickstr{\o}m, Robert Jenssen, Michael C. Kampffmeyer• 2023

Related benchmarks

TaskDatasetResultRank
Few-shot classificationCUB (test)
Accuracy94.69
145
Few-shot classificationminiImageNet standard (test)--
138
Few-shot Image ClassificationtieredImageNet (test)
Accuracy80.6
86
5-way Few-shot Image ClassificationtieredImageNet 5-shot (test)
Accuracy87.13
41
Few-shot Image ClassificationtieredImageNet standard (test)
Average Accuracy83.09
34
Few-shot Image ClassificationCUB-200 (test)
Accuracy90.82
18
Few-shot Learningmini-ImageNet 5-shot (test)
Accuracy86.44
18
Few-shot LearningCUB-200 5-shot (test)
Accuracy93.76
18
Showing 8 of 8 rows

Other info

Code

Follow for update