Introduction
Few-Shot Learning (FSL) aims to recognize new categories from minimal labeled data. A common strategy to boost performance is transductive inference, where models leverage the statistical distribution of an entire unlabeled "query set" (test set) simultaneously. While transductive methods often outperform inductive ones, this paper identifies a critical flaw in current benchmarks: the assumption of perfectly balanced query sets. In real-world scenarios, class distributions are unknown and typically skewed. This "class-balance artifact" allows models to exploit unrealistic regularities, leading to inflated performance metrics that do not hold up in practice.
The Dirichlet Evaluation Protocol
To address this, the authors introduce a more realistic evaluation protocol. Instead of fixed, balanced query sets, class proportions are modeled as random variables following a Dirichlet distribution. By varying the concentration parameter ($a$ in the figure below), researchers can simulate a wide range of scenarios, from extreme imbalance to perfect uniformity.
This protocol serves as a "stress test" for transductive models. Experiments reveal a "performance crash": state-of-the-art methods like PT-MAP and standard Transductive Mutual Information (TIM) suffer accuracy drops of up to 20% when faced with imbalanced data, sometimes even performing worse than simple inductive baselines. This drop occurs because many methods implicitly bake in a uniform prior, essentially "cheating" by using knowledge of the benchmark's artificial structure.
α-TIM: Robust Transductive Inference
To overcome these limitations, the authors propose α-TIM, a novel transductive loss function based on α-divergences. Standard transductive methods often minimize Shannon entropy to encourage confident, balanced predictions. However, Shannon entropy is rigid and penalizes deviations from uniformity too harshly in imbalanced settings.
α-TIM generalizes the mutual information loss using Tsallis α-entropy. As shown in the figure below, increasing the parameter α alters the shape of the entropy function and its gradients, making the model more tolerant of imbalanced marginals.
When α → 1, the loss recovers standard Shannon entropy. As α increases, the model becomes more "flexible," allowing predicted class marginals to deviate from a uniform distribution without excessive penalty. Crucially, it still maintains a mathematical barrier against "collapsed" solutions where all samples are assigned to a single class. This makes α-TIM a robust, "plug-and-play" replacement for standard transductive losses.
Key Results and Insights
The authors evaluated α-TIM on standard FSL benchmarks—mini-ImageNet, tiered-ImageNet, and CUB—modified with the Dirichlet sampling protocol.
- Superior Performance: α-TIM consistently outperformed existing transductive methods across all datasets and shot counts (1-shot to 20-shot) under imbalanced conditions. For example, on 1-shot mini-ImageNet, α-TIM achieved 67.4% accuracy, while the previous SOTA (PT-MAP) plummeted to 60.1%.
- Stability: Unlike standard TIM, which requires sensitive hyperparameter tuning for different imbalance levels, α-TIM is remarkably robust to the choice of its α hyperparameter.
- Broad Applicability: The robustness of α-divergences suggests potential applications in other fields where class distributions are unknown, such as semi-supervised learning and unsupervised domain adaptation.
Conclusion
This work exposes a significant bias in few-shot learning research and provides the tools to correct it. By moving toward realistic, imbalanced evaluation protocols and adopting flexible loss functions like α-TIM, the field can develop models that are truly ready for real-world deployment. Future work may extend this analysis to address imbalance in the labeled support sets as well.
Summary updated