Expert Training: Task Hardness Aware Meta-Learning for Few-Shot Classification

Yucan Zhou, Yu Wang, Jianfei Cai, Qinghua Hu, Weiping WangarXiv 2020

Introduction

Deep learning models typically require extensive labeled datasets to achieve high performance. Few-Shot Learning (FSL) addresses this limitation by enabling models to recognize novel categories from only a handful of examples. The predominant approach in FSL is meta-learning, or "learning to learn," where a model is trained across numerous "episodes" to develop a generalizable strategy for rapid adaptation.

However, conventional meta-learning strategies often sample training tasks randomly, treating all episodes with equal importance. This approach can be inefficient; a model might be tasked with distinguishing highly similar categories (e.g., two breeds of dogs) before it has mastered basic classification (e.g., distinguishing a cat from a car). This paper proposes "Expert Training," a curriculum-based strategy that schedules task difficulty to improve the efficiency and final performance of meta-learners.

Illustration of easy tasks (top) versus hard tasks (bottom) based on category similarity.

Methodology: The Expert Training Strategy

The authors introduce a two-stage training curriculum designed to transition the model from a generalist to an expert:

  1. Primary Learning Phase: The model is initially exposed to "easy" tasks—episodes containing visually distinct categories. This phase allows the model to build a foundational feature space and basic classification capabilities.
  2. Advanced Learning Phase: As training progresses, the focus shifts to "hard" tasks involving visually similar categories. This forces the model to refine its features to capture subtle, discriminative details, effectively becoming an "expert."

Task Hardness Aware Module (THAM)

To implement this curriculum, the researchers developed the Task Hardness Aware Module (THAM), which quantifies the difficulty of each sampled episode. Two versions were explored:

  • Semantic THAM (Se-THAM): Utilizes external knowledge bases like WordNet. Tasks are labeled "easy" if categories come from different superclasses and "hard" if they share a common ancestor.
  • Computable THAM (Co-THAM): A dynamic approach that measures hardness based on the model's current feature representations. The authors evaluated several metrics, finding that the Hilbert-Schmidt Independence Criterion (HSIC) was most effective. HSIC captures complex, non-linear dependencies between category distributions, providing a more nuanced measure of task difficulty than simple Euclidean distance.
The meta-learning framework incorporating episodic training and parameter updates.

Experimental Evaluation

The Expert Training framework was evaluated on two benchmarks: miniImageNet and tieredImageNetSketch. The latter was specifically chosen to test the model's robustness across different data domains (photographs vs. sketches).

Key Results

Integrating Expert Training (specifically Co-THAM-HSIC) led to consistent performance improvements across various base architectures, including MAML and Meta-SGD:

  • On miniImageNet (5-way 5-shot), accuracy improved from a baseline of 63.90% to 67.42%.
  • On tieredImageNetSketch, the model achieved 68.31% accuracy, demonstrating strong generalization.

The study also highlighted the importance of phase timing, finding that dedicating the first 25-33% of training to the Primary phase yielded optimal results. Furthermore, the "soft" weighting provided by Co-THAM proved superior to the discrete labels of Se-THAM, allowing for smoother optimization gradients.

Conclusion

Expert Training demonstrates that the sequence and weighting of tasks are critical components of meta-learning. By mimicking human-like learning—starting with simple concepts before tackling complex nuances—meta-learners can achieve significantly higher accuracy in few-shot scenarios. Future research may explore more granular, multi-stage curricula and automated methods for determining phase transitions to further reduce computational overhead and hyperparameter sensitivity.

Summary updated

BibTeX
@misc{zhou2020expert,
  author = {Yucan Zhou and Yu Wang and Jianfei Cai and Yu Zhou and Qinghua Hu and Weiping Wang},
  title = {{Expert Training: Task Hardness Aware Meta-Learning for Few-Shot Classification}},
  year = {2020},
  eprint = {2007.06240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06240},
}
Figure