Confusable Learning for Large-class Few-Shot Classification
Abstract
Traditional few-shot learning (FSL) benchmarks often focus on small-class scenarios, which do not reflect the complexity of real-world applications involving thousands of categories. In large-class FSL, the primary challenge is class confusability—the difficulty in distinguishing between highly similar categories. We present Confusable Learning (CL), a meta-learning framework designed to address this by prioritizing training on the most difficult-to-distinguish classes. CL utilizes a Confusion Matrix Estimation (CME) module to maintain a dynamic, soft confusion matrix and a Confusion Task Processor (CTP) to construct challenging training episodes. Our experiments across Omniglot, Fungi, and ImageNet datasets demonstrate that CL consistently improves the performance of various meta-learning baselines, particularly in large-scale settings.
Introduction: The Challenge of Large-Class FSL
Few-shot learning aims to recognize new objects from minimal examples. While significant progress has been made in "small-class" scenarios (e.g., 5-way classification), real-world applications often involve thousands of classes. As shown in the categorization of FSL tasks, the "large-class few-shot" scenario represents the most significant challenge for current models because it combines data scarcity with high inter-class similarity.
The bottleneck in large-class FSL is class confusability. In datasets with 1,000+ classes, many categories are visually nearly identical (e.g., different species of fungi). Traditional meta-learning typically samples training tasks randomly, often resulting in "easy" tasks that fail to challenge the model. Consequently, the model never learns the fine-grained features necessary to distinguish similar classes, leading to poor generalization on massive test sets.
The Confusable Learning (CL) Framework
To address this, we propose Confusable Learning (CL), a biased learning paradigm that can be integrated with existing meta-learning algorithms like Prototypical Networks or Matching Networks. The framework consists of two primary components:
- Confusion Matrix Estimation (CME): Maintaining a full $K \times K$ confusion matrix for thousands of classes is computationally prohibitive. CME uses an iterative, windowed estimation method to update a "soft" confusion matrix incrementally during training. Unlike hard misclassification counts, the soft matrix utilizes model output probabilities, providing a richer signal of relative confusion even when the model predicts correctly.
- Confusion Task Processor (CTP): Instead of random sampling, the CTP selects a "target class" and then intentionally picks "distractors"—classes that the model currently finds most confusing based on the CME. This forces the model to learn subtle, discriminative features.
Experimental Evaluation
We evaluated CL on three large-scale datasets: Omniglot (3,856 training classes), Fungi (632 training classes of fine-grained species), and ImageNet64x64 (split into 522 training and 410 testing classes).
The results across four popular meta-learning baselines (PN, MN, PMN, and R2D2) showed consistent improvements:
- Omniglot: The R2D2 model's accuracy increased from 66.12% to 74.72%.
- Fungi: Prototypical Networks improved from 6.96% to 7.29%, a significant gain given the 674-way task difficulty.
- ImageNet: Improvements were consistent, with R2D2 reaching 8.46% compared to the 7.78% baseline in a 410-way task.
Discussion and Conclusion
Confusable Learning introduces a dynamic curriculum of difficulty. By focusing on distractors, the model undergoes a form of hard-negative mining that evolves as the model improves. This approach not only enhances discriminative power but also helps resist overfitting by ignoring "easy" patterns in favor of robust, fine-grained features. While the method introduces new hyperparameters like the number of distractors and update rates, it offers a practical and efficient way to scale few-shot learning to large-scale, real-world datasets.
Summary updated