Learn To Learn More Precisely

Runxi Cheng, Yongxian Wei, Xianglong He, Wanyun Zhu, Songsong Huang, Fei Richard Yu, Fei Ma, Chun YuanarXiv 2024

Abstract

Meta-learning has been extensively applied in the domains of few-shot learning and fast adaptation, achieving remarkable performance. While methods like Model-Agnostic Meta-Learning (MAML) provide a strong set of initial parameters, models still tend to learn "shortcut features," leading to poor generalization. We propose the concept of "learning to learn more precisely," aiming to extract target knowledge while reducing the impact of noise. We introduce Meta Self-Distillation (MSD), a framework that maximizes the consistency of learned knowledge. In the inner loop, MSD uses augmented views of support data to update the model; in the outer loop, it optimizes consistency across these updates using query data. Experiments on standard and augmented few-shot classification tasks demonstrate that MSD effectively boosts both accuracy and knowledge consistency.

Introduction

Few-shot learning aims to generalize from minimal examples. A significant challenge is the reliance on "shortcut features"—irrelevant details like background or lighting that happen to correlate with labels in small datasets. This lack of "precision" prevents models from capturing invariant target features. While MAML provides a good initialization, it does not explicitly penalize the learning of noisy features. Our proposed Meta Self-Distillation (MSD) addresses this by enforcing consistency in the knowledge learned from different views of the same data.

Methodology: Meta Self-Distillation (MSD)

MSD integrates a consistency constraint into the optimization-based meta-learning framework. The process is divided into an inner and outer loop:

  1. Inner Loop (Task-Specific Adaptation): For a given support set, MSD generates multiple augmented views. The model is updated separately for each view, resulting in a set of variant models ($f_{\theta^1}, f_{\theta^2}, \dots, f_{\theta^k}$).
  2. Outer Loop (Meta-Optimization): These variant models are evaluated on the same query data. The meta-loss combines standard classification loss with a consistency loss, which maximizes the similarity (e.g., via cosine similarity of logits) between the predictions of the different variant models.
Overview of the MSD framework showing the inner loop (augmentation and training) and outer loop (consistency and classification loss).

By requiring that different "views" of the same support data lead to consistent predictions on query data, the model is forced to ignore view-specific noise and focus on robust, invariant features.

Experiments and Results

We evaluated MSD on MiniImageNet and TieredImageNet. MSD consistently outperformed MAML and other baselines. For instance, on MiniImageNet (5-way 1-shot), MSD achieved 65.41% accuracy compared to MAML's 64.42%.

The benefits are most pronounced in "augmented" scenarios where test data is perturbed. In a strongly augmented 5-way 1-shot task on MiniImageNet, MSD+MAML reached 57.31%, a significant jump over MAML's 49.94%.

Knowledge Consistency

A key metric introduced is "Knowledge Consistency," measuring how similar the model's predictions are across different input augmentations. MSD maintains nearly 99% consistency, whereas MAML drops significantly as the number of inner steps increases, indicating that MAML's updates are more susceptible to noise.

Quantitative comparison of accuracy and knowledge consistency between MSD and MAML. MSD shows superior stability and performance across varying inner loop steps.

Conclusion

Meta Self-Distillation (MSD) provides a robust framework for "learning more precisely" in few-shot settings. By leveraging consistency as a proxy for precision, MSD effectively filters out shortcut features. Future work will explore scaling MSD to larger models and applying it to self-supervised learning domains.

Summary updated

BibTeX
@misc{cheng2024learn,
  author = {Runxi Cheng and Yongxian Wei and Xianglong He and Wanyun Zhu and Songsong Huang and Fei Richard Yu and Fei Ma and Chun Yuan},
  title = {{Learn To Learn More Precisely}},
  year = {2024},
  eprint = {2408.04590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04590},
}
Figure