Meta-Learning with Differentiable Convex Optimization
About
Many meta-learning approaches for few-shot learning rely on simple base learners such as nearest-neighbor classifiers. However, even in the few-shot regime, discriminatively trained linear predictors can offer better generalization. We propose to use these predictors as base learners to learn representations for few-shot learning and show they offer better tradeoffs between feature size and performance across a range of few-shot recognition benchmarks. Our objective is to learn feature embeddings that generalize well under a linear classification rule for novel categories. To efficiently solve the objective, we exploit two properties of linear classifiers: implicit differentiation of the optimality conditions of the convex problem and the dual formulation of the optimization problem. This allows us to use high-dimensional embeddings with improved generalization at a modest increase in computational overhead. Our approach, named MetaOptNet, achieves state-of-the-art performance on miniImageNet, tieredImageNet, CIFAR-FS, and FC100 few-shot learning benchmarks. Our code is available at https://github.com/kjunelee/MetaOptNet.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Few-shot classification | tieredImageNet (test) | Accuracy81.75 | 282 | |
| Few-shot Image Classification | Mini-Imagenet (test) | Accuracy80 | 235 | |
| 5-way Classification | miniImageNet (test) | Accuracy78.6 | 231 | |
| Few-shot classification | Mini-ImageNet | 1-shot Acc62.64 | 175 | |
| 5-way Few-shot Classification | MiniImagenet | Accuracy (5-shot)78.63 | 150 | |
| Few-shot classification | CUB (test) | Accuracy97.2 | 145 | |
| 5-way Few-shot Classification | Mini-Imagenet (test) | 1-shot Accuracy64.09 | 141 | |
| Few-shot classification | miniImageNet standard (test) | 5-way 1-shot Acc64.09 | 138 | |
| Few-shot classification | miniImageNet (test) | Accuracy78.63 | 120 | |
| 5-way Image Classification | tieredImageNet 5-way (test) | 1-shot Acc65.99 | 117 |