The meta-learning method for the ensemble model based on situational meta-task

Zhengchao Zhang, Lianke Zhou, Yuyang Wu, Nianbin WangFrontiers Neurorobotics 2024

TL;DR

This paper introduces a novel meta-learning approach that constructs "situational meta-tasks" from base datasets to provide more relevant training signals for few-shot learning. It then employs an ensemble of models trained on these meta-tasks to improve generalization and robustness on unseen tasks, outperforming existing methods on several benchmarks.

What Problem Does This Paper Address?

Deep learning models typically require vast amounts of labeled data to perform well. However, in many real-world scenarios, obtaining such large datasets is impractical or impossible. Few-shot learning aims to enable models to learn new tasks from only a handful of examples, mimicking human learning capabilities. Meta-learning is a promising paradigm for few-shot learning, where models learn "how to learn" from a distribution of tasks.

The core problem this paper addresses is that existing meta-learning methods often fail to effectively leverage the relationship between the base classes used for meta-training and the novel classes encountered in few-shot tasks. This can lead to the meta-learner acquiring irrelevant meta-knowledge, hindering its ability to generalize to new tasks. Furthermore, relying on a single meta-learned model can lead to unstable performance.

Methods

The proposed method, termed "Full-phase Meta-Learning Method based on Multiple Initial Model Cooperation (FMPMIMC)," consists of two main phases:

  1. Basic Learning Phase: A universal feature extractor is trained on the base class dataset. This extractor is crucial for subsequent steps, particularly for constructing situational meta-tasks.
  2. Meta-Optimization Phase: This phase is further divided into:
  3. Meta-Training: * Situational Meta-Task Construction (CSMT): This is a key innovation. Instead of using random tasks from the base dataset, CSMT intelligently selects candidate meta-tasks that are highly correlated in terms of features with the target few-shot tasks. It achieves this by comparing class centroids of base data with few-shot support sets. These selected tasks are then used to construct "situational meta-tasks" that mimic the form and features of few-shot tasks.
  4. Multiple Initial Models: Different situational meta-tasks are used to train multiple independent meta-models. This diversity in training signals is intended to imbue each model with distinct but useful meta-knowledge.
  5. Meta-Testing: The multiple initial models are then combined in an ensemble. They cooperate to learn the novel few-shot tasks, with a loss function that includes both classification loss and a KL divergence term to encourage agreement between model predictions. This ensemble approach aims to improve prediction accuracy and stability.

Datasets

The paper evaluates its methods on three standard few-shot image classification benchmarks:

  • Omniglot: A dataset of handwritten characters from 50 languages, known for its diversity and suitability for few-shot learning.
  • CIFAR-100: A more complex dataset with 100 classes and 600 images per class, requiring more robust feature extraction.
  • MiniImageNet: A subset of ImageNet with 100 classes, commonly used for few-shot learning research.

Key Insights and Ideas

  • Situational Meta-Tasks are Key: The most significant insight is that carefully constructing meta-tasks that are situationally relevant to the target few-shot tasks, rather than using random tasks, dramatically improves meta-knowledge acquisition.
  • Ensemble for Robustness: Leveraging an ensemble of models, each trained on different situational meta-tasks, leads to more stable and accurate predictions compared to single models.
  • Feature Correlation Matters: The method explicitly leverages feature relationships between base and novel classes to guide meta-task selection, addressing a critical limitation of prior work.
  • Balancing Meta-Tasks: The experiments highlight that an optimal number of candidate meta-tasks is crucial; too few can lead to overfitting, while too many can introduce irrelevant information.

Key Results

  • CSMT Improves Single-Model Performance: The CSMT method, when used with a single model, showed improved accuracy on Omniglot (0.23% better than SNAIL) and CIFAR-100 (up to 6.16% better than Dual TriNet).
  • FMPMIMC Achieves State-of-the-Art: The full FMPMIMC method, incorporating the ensemble strategy, achieved the highest average classification accuracy on CIFAR-100 (9.74% and 4.63% higher than baselines for 5-way 1-shot and 5-shot, respectively) and competitive results on MiniImageNet.
  • Ensemble Benefits: The ensemble approach consistently outperformed single models, with the best performance often achieved with around 10 ensemble models.
  • KL Divergence is Effective: Ablation studies confirmed the effectiveness of the KL divergence term in promoting model cooperation and improving performance.

Limitations and Future Work

  • Completely Invisible Novel Tasks: The authors acknowledge that their current method relies on some information about the novel tasks (e.g., their relationship to base classes) for constructing situational meta-tasks. A future direction is to extend the method to provide generalized meta-knowledge even when novel tasks are completely invisible during meta-training.
  • Computational Cost: The ensemble approach, especially with a large number of models, can be computationally intensive, requiring significant GPU memory (over 32 GB for 20 models). The paper mentions alleviating this by reducing batch size.
  • Optimal Meta-Task Selection: While CSMT is effective, further research could explore more sophisticated methods for selecting and weighting candidate meta-tasks.

Summary updated

BibTeX
@article{zhang2024meta,
  author = {Zhengchao Zhang and Lianke Zhou and Yuyang Wu and Nianbin Wang},
  title = {{The meta-learning method for the ensemble model based on situational meta-task}},
  journal = {Frontiers Neurorobotics},
  year = {2024},
  doi = {10.3389/fnbot.2024.1391247},
}
Figure