Lune

ICLR2022Top-tier venue

How to Train Your MAML to Excel in Few-Shot Classification

Han-Jia Ye, Wei-Lun Chao

Abstract

Model-agnostic meta-learning (MAML) is arguably one of the most popular meta-learning algorithms nowadays. Nevertheless, its performance on few-shot classification is far behind many recent algorithms dedicated to the problem. In this paper, we point out several key facets of how to train MAML to excel in few-shot classification. First, we find that MAML needs a large number of gradient steps in its inner loop update, which contradicts its common usage in few-shot classification. Second, we find that MAML is sensitive to the class label assignments during meta-testing. Concretely, MAML meta-trains the initialization of an NN-way classifier. These NN ways, during meta-testing, then have"N!N!"different permutations to be paired with a few-shot task of NN novel classes. We find that these permutations lead to a huge variance of accuracy, making MAML unstable in few-shot classification. Third, we investigate several approaches to make MAML permutation-invariant, among which meta-training a single vector to initialize all the NN weight vectors in the classification head performs the best. On benchmark datasets like MiniImageNet and TieredImageNet, our approach, which we name UNICORN-MAML, performs on a par with or even outperforms many recent few-shot classification algorithms, without sacrificing MAML's simplicity.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Channel Importance Matters in Few-Shot Image Classification cites Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples
  • Channel Importance Matters in Few-Shot Image Classification cites Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAML
  • Channel Importance Matters in Few-Shot Image Classification cites A Baseline for Few-Shot Image Classification
  • Channel Importance Matters in Few-Shot Image Classification cites Cross-Domain Few-Shot Classification via Learned Feature-Wise Transformation
  • Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples cites A Baseline for Few-Shot Image Classification
  • A Baseline for Few-Shot Image Classification cites Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples
  • Scaling Few-Shot Learning for the Open World cites A Baseline for Few-Shot Image Classification
  • Cross-Domain Few-Shot Classification via Learned Feature-Wise Transformation cites Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Bi-directional Feature Reconstruction Network for Fine-Grained Few-Shot Image ClassificationJijie Wu, Dongliang Chang, Aneeshan Sain, Xiaoxu Li et al.AAAI 2023 · 76 citations
  2. Channel Importance Matters in Few-Shot Image ClassificationXu Luo, Jing Xu, Zenglin XuICML 2022 · 57 citations
  3. RankDNN: Learning to Rank for Few-Shot LearningQianyu Guo, Haotong Gong, Xujun Wei, Yanwei Fu et al.AAAI 2023 · 27 citations
  4. Scaling Few-Shot Learning for the Open WorldZhipeng Lin, Wenjing Yang, Haotian Wang, Haoang Chi et al.AAAI 2024 · 5 citations
  5. PERK: Long-Context Reasoning as Parameter-Efficient Test-Time LearningZeming Chen, Angelika Romanou, Gail Weiss, Antoine BosselutICLR 2026 · 4 citations

Builds on18

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAMLAniruddh Raghu, Maithra Raghu, Samy Bengio, Oriol VinyalsICLR 2020 · 736 citations
  3. Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few ExamplesEleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin et al.ICLR 2020 · 692 citations
  4. A Baseline for Few-Shot Image ClassificationGuneet Singh Dhillon, Pratik Chaudhari, Avinash Ravichandran, Stefano SoattoICLR 2020 · 640 citations
  5. Cross-Domain Few-Shot Classification via Learned Feature-Wise TransformationHung-Yu Tseng, Hsin-Ying Lee, Jia-Bin Huang, Ming-Hsuan YangICLR 2020 · 467 citations

Related papers

  1. Repurposing Pretrained Models for Robust Out-of-domain Few-Shot LearningNamyeong Kwon, Hwidong Na, Gabriel Huang, Simon Lacoste-JulienICLR 2021 · 7 citations
  2. OOD-MAML: Meta-Learning for Few-Shot Out-of-Distribution Detection and ClassificationTaewon Jeong, Heeyoung KimNeurIPS 2020 · 111 citations
  3. A Nested Bi-level Optimization Framework for Robust Few Shot LearningKrishnaTeja Killamsetty, Changbin Li, Chen Zhao, Feng Chen et al.AAAI 2022 · 12 citations
  4. PLATINUM: Semi-Supervised Model Agnostic Meta-Learning using Submodular Mutual InformationChangbin Li, Suraj Kothawade, Feng Chen, Rishabh K. IyerICML 2022 · 6 citations
  5. BOIL: Towards Representation Change for Few-shot LearningJaehoon Oh, Hyungjun Yoo, ChangHwan Kim, Se-Young YunICLR 2021 · 185 citations
Dusk over the sea between two cliffs drawn in fine vertical lines