On First-Order Meta-Learning Algorithms
Alex NicholJoshua AchiamJohn Schulman
Introduces Reptile, a computationally efficient first-order meta-learning algorithm that avoids expensive second-order derivatives in MAML while matching its few-shot classification performance, supported by theoretical analysis explaining how first-order updates find effective initializations across tasks.
Machine learning models typically require large amounts of data to reach strong performance on new tasks, while humans can often learn from just a few examples. This gap motivates meta-learning methods that aim to produce agents capable of rapid adaptation to previously unseen tasks drawn from a distribution of related problems. The article examines a family of first-order algorithms that learn a parameter initialization optimized for quick fine-tuning, avoiding the computational cost of second-order derivatives required by full MAML.
The work set out to analyze why first-order approximations perform well, introduce a simpler algorithm called Reptile, and provide both theoretical insight and practical guidance for few-shot learning. The authors combine Taylor-series analysis of gradient updates with experiments on standard benchmarks. They evaluate on Omniglot and Mini-ImageNet few-shot classification tasks using convolutional networks, plus a controlled one-dimensional sine-wave regression problem, comparing MAML, first-order MAML, and Reptile under consistent architectures and optimizers.
The analysis shows that both first-order MAML and Reptile optimize not only the average loss across tasks but also the inner product of gradients computed on different minibatches within the same task, thereby improving within-task generalization. On Mini-ImageNet, Reptile with transduction reaches 49.97 % accuracy in the 1-shot 5-way setting and 65.99 % in the 5-shot setting, matching or slightly exceeding first-order MAML. On Omniglot the three methods perform similarly, with transduction providing a consistent boost. Reptile requires no explicit train-test split within each task and is simpler to implement than full MAML.
These results indicate that computationally lighter first-order methods can deliver performance comparable to more expensive second-order approaches on established few-shot benchmarks, lowering barriers to applying meta-learning at larger scale. The theoretical view also helps explain why standard pre-training followed by fine-tuning often succeeds. Practitioners can therefore consider Reptile as a practical baseline when second-order information is prohibitive.
Further work is warranted to adapt Reptile to reinforcement learning, test deeper networks, add regularization to close the train-test gap, and explore few-shot density estimation. The Taylor approximation underlying the analysis holds only for modest step sizes and iteration counts, and empirical gains remain sensitive to inner-loop batching choices; readers should therefore validate hyper-parameters on their specific data regime before large-scale deployment.
- Paper: Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks, Chelsea Finn et al. (2017). It introduces Model-Agnostic Meta-Learning (MAML), providing the primary foundation, objective, and second-order optimization baseline that Reptile and first-order meta-learning algorithms analyze and simplify.
- Paper: Optimization as a Model for Few-Shot Learning, S. Ravi et al. (2017). It frames few-shot learning directly as an optimization problem and establishes key benchmark protocols on Mini-ImageNet that this work adopts.
- Paper: Learning to learn by gradient descent by gradient descent, Marcin Andrychowicz et al. (2016). It establishes the modern foundation of learning to optimize via gradient descent across tasks, providing conceptual background for gradient-based meta-learning.
- Paper: Prototypical Networks for Few-shot Learning, Jake Snell et al. (2017). It establishes core few-shot episodic evaluation benchmarks and standard comparison baselines on Omniglot and Mini-ImageNet used throughout the paper.
- Paper: Matching Networks for One Shot Learning, Oriol Vinyals et al. (2016). It formalizes episodic meta-learning for one-shot visual recognition that underpins the experimental setups and problem formulation in this paper.
- Paper: Learning to Compare: Relation Network for Few-Shot Learning, Flood Sung et al. (2017). It provides foundational metric-learning and episodic training paradigms for few-shot image classification evaluated alongside gradient-based meta-learning methods.
- Paper: Gradient Surgery for Multi-Task Learning, Tianhe Yu et al. (2020). It builds directly upon the dynamics of multi-task gradient alignment studied in first-order meta-learning by introducing gradient projection surgery to resolve destructive task conflicts.
