Skip to main content
QUICK REVIEW

[Paper Review] HyperMAML: Few-Shot Adaptation of Deep Models with Hypernetworks

M. Przewięźlikowski, Przemysław Przybysz|arXiv (Cornell University)|May 31, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

HyperMAML proposes a novel few-shot learning framework that replaces gradient-based weight updates in MAML with a trainable hypernetwork, enabling significant, non-gradient-based parameter updates in a single step. This approach achieves superior accuracy compared to MAML and state-of-the-art performance on standard benchmarks while reducing computational cost and improving biological plausibility by eliminating backpropagation during adaptation.

ABSTRACT

The aim of Few-Shot learning methods is to train models which can easily adapt to previously unseen tasks, based on small amounts of data. One of the most popular and elegant Few-Shot learning approaches is Model-Agnostic Meta-Learning (MAML). The main idea behind this method is to learn the general weights of the meta-model, which are further adapted to specific problems in a small number of gradient steps. However, the model's main limitation lies in the fact that the update procedure is realized by gradient-based optimisation. In consequence, MAML cannot always modify weights to the essential level in one or even a few gradient iterations. On the other hand, using many gradient steps results in a complex and time-consuming optimization procedure, which is hard to train in practice, and may lead to overfitting. In this paper, we propose HyperMAML, a novel generalization of MAML, where the training of the update procedure is also part of the model. Namely, in HyperMAML, instead of updating the weights with gradient descent, we use for this purpose a trainable Hypernetwork. Consequently, in this framework, the model can generate significant updates whose range is not limited to a fixed number of gradient steps. Experiments show that HyperMAML consistently outperforms MAML and performs comparably to other state-of-the-art techniques in a number of standard Few-Shot learning benchmarks.

Motivation & Objective

  • To address the biological implausibility and computational inefficiency of MAML’s gradient-based inner-loop optimization in few-shot learning.
  • To reduce the number of hyperparameters and training complexity associated with inner-loop optimization in MAML.
  • To enable more effective weight updates in few-shot adaptation without relying on iterative gradient descent.
  • To develop a meta-learning framework that generalizes better across diverse few-shot tasks with minimal data.
  • To improve computational efficiency by eliminating the need for multiple gradient steps during inference.

Proposed method

  • HyperMAML replaces the standard gradient update in MAML with a learnable hypernetwork that generates task-specific weight updates from the support set.
  • The hypernetwork is trained end-to-end to map support set inputs to effective parameter updates, bypassing backpropagation during inference.
  • The main model’s weights are updated once per task using the output of the hypernetwork, eliminating the need for multiple inner-loop optimization steps.
  • The hypernetwork is trained via meta-optimization using a meta-loss that evaluates performance on the query set after a single update.
  • The method avoids second-order optimization by not requiring gradient computation on the update weights, simplifying training.
  • The framework maintains model-agnosticism, allowing application to any neural network architecture.

Experimental results

Research questions

  • RQ1Can a hypernetwork-based update mechanism outperform gradient-based updates in few-shot meta-learning?
  • RQ2Does replacing iterative gradient descent with a single, learnable update improve generalization and accuracy in few-shot settings?
  • RQ3Can a hypernetwork-based approach reduce computational cost and hyperparameter sensitivity compared to MAML?
  • RQ4How does the method perform under cross-domain few-shot adaptation where distribution shifts occur?
  • RQ5Is the hypernetwork-based update more biologically plausible than gradient-based optimization?

Key findings

  • HyperMAML achieves 80.78% accuracy on the Omniglot → EMNIST 1-shot classification benchmark, outperforming MAML’s 74.81% and approaching the state-of-the-art HyperShot+finetuning (80.65%).
  • On the 5-shot Omniglot → EMNIST task, HyperMAML reaches 89.22% accuracy, comparable to HyperShot (90.81%) and DKT (90.30%).
  • In the challenging mini-ImageNet → CUB cross-domain setting, HyperMAML performs comparably to MAML, ProtoNet, and Matching Networks, especially in the 1-shot regime.
  • HyperMAML processes the entire Omniglot → EMNIST test set in 8.21 seconds, matching the speed of MAML with only 2 gradient steps, despite achieving significantly higher accuracy.
  • Even with 100 gradient steps, MAML fails to match HyperMAML’s accuracy (74.86% vs. 80.78%), demonstrating the superiority of the hypernetwork update mechanism.
  • The method reduces hyperparameter tuning complexity by eliminating the need to search over inner-loop learning rates and step counts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.