arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.16245cs.LGcs.AIcs.CV
收藏

如何训练您的MAML在Few-Shot分类中脱颖而出

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

Nanjing University(南京大学);The Ohio State University(俄亥俄州立大学)

Han-Jia Ye, Wei-Lun Chao

摘要:

模型不可知元学习(MAML)可以说是当今最流行的元学习算法之一。然而,其性能上的Few-Shot分类是远远落后于许多最近的算法致力于这个问题。在本文中,我们指出了几个关键方面,如何训练MAML擅长Few-Shot分类。首先,我们发现MAML在其内部循环更新中需要大量的梯度步骤,这与其在Few-Shot分类中的常见用法相矛盾。其次,我们发现MAML是敏感的类标签分配过程中的元测试。具体地,MAML元训练$N$路分类器的初始化。在元测试期间,这些$N$方式然后具有“$N!$“不同排列以与$N$新颖类的Few-Shot任务配对。我们发现,这些排列导致一个巨大的方差的准确性,使MAML不稳定的Few-Shot分类。第三,我们研究了几种方法,使MAML置换不变,其中元训练一个单一的向量初始化所有的$N$权重向量在分类头表现最好。在像MiniImageNet和TieredImageNet这样的基准数据集上,我们命名为UNICORN-MAML的方法的性能与许多最近的Few-Shot分类算法相当,甚至优于它们,而不会牺牲MAML的简单性。

英文摘要:

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 $N$-way classifier. These $N$ ways, during meta-testing, then have "$N!$" different permutations to be paired with a few-shot task of $N$ 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 $N$ 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑