Optimization as a Model for Few-Shot Learning
S. RaviH. Larochelle
Proposes an LSTM-based meta-learner that learns both parameter initializations and gradient-based update rules, enabling neural networks to rapidly adapt to new classification tasks from only a few training examples.
The paper addresses the challenge of few-shot learning, in which a model must classify new examples after seeing only one or five labeled instances per class. Standard deep networks trained with gradient descent perform poorly in this regime because typical optimizers require many iterations and examples to converge, and each new task normally begins from a random initialization that slows progress further.
The work sets out to learn an optimization procedure itself, rather than hand-design one, so that a learner network can reach good performance after a fixed, small number of updates on each new task.
The authors frame the problem as meta-learning over many small training sets drawn from Mini-ImageNet. They replace the usual gradient-descent update with an LSTM whose cell state stores the learner’s parameters. The LSTM is trained end-to-end to produce both a useful starting point for the learner and a sequence of parameter updates that minimize loss on held-out test examples from the same small task. Experiments compare the resulting meta-learner against nearest-neighbor and fine-tuning baselines as well as Matching Networks on 5-class, 1-shot and 5-shot classification.
On the 5-shot task the meta-learner reaches 60 percent accuracy, materially above Matching Networks (52 percent) and the baselines (49–52 percent). On the harder 1-shot task it achieves 44 percent, statistically indistinguishable from the strongest Matching-Network variant. Visualizations of the learned input and forget gates show that the meta-learner adopts a consistent weight-decay strategy while still varying its updates across tasks, indicating it has not collapsed to a fixed learning-rate schedule.
These results demonstrate that an explicitly learned optimizer can capture both a task-common initialization and an adaptive update rule that together overcome the data and iteration limits of conventional training. Consequently, models can be deployed in domains where collecting millions of labels is impractical, and the same meta-learner can be reused across many related but distinct classification problems.
The authors note that the current implementation is tuned only for the narrow few-shot, few-class setting. Extending the approach to a wider range of example counts and class cardinalities is identified as the next step required before broader deployment. The main limitations are the use of a custom Mini-ImageNet split and a gradient-independence assumption that simplifies training but may affect scaling behavior on larger models.
- Paper: On the importance of initialization and momentum in deep learning, Ilya Sutskever et al. (2013). Understanding how properly tuned momentum and sparse initialization enable first-order training of deep networks provides necessary foundation for the source's meta-learned optimization.
- Paper: An overview of gradient descent optimization algorithms, Sebastian Ruder (2016). Reviewing standard gradient descent variants and adaptive optimization algorithms helps clarify the mechanics of gradient-based parameter updates that the source's meta-learner seeks to generate.
- Book: Introduction to stochastic gradient methods, Simon Weissmann (2026). Familiarity with the mathematical foundations and convergence properties of stochastic gradient methods establishes the theoretical baseline for analyzing gradient-based learning.
- Paper: Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks, Chelsea Finn et al. (2017). Building directly upon the source's idea of optimizing initialization for fast gradient-based adaptation, this work introduces Model-Agnostic Meta-Learning (MAML) as a streamlined and broadly applicable optimization-based meta-learner.
