HyperMAML: Few-Shot Adaptation of Deep Models with Hypernetworks

M. Przewięźlikowski, P. Przybysz, J. Tabor, M. Zięba, P. Spurek
5/31/2022
cs.LGcs.AI

Official code: gmum/few-shot-hypernets-public (28 stars, Jupyter Notebook, last commit 2026-08-14).

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

2814Jupyter Notebook, PythonJun 2, 20223 months agoNOASSERTION

Similar Papers

Cite this paper

@article{przewilikowski2022hypermaml,
  title  = {HyperMAML: Few-Shot Adaptation of Deep Models with Hypernetworks},
  author = {M. Przewięźlikowski and P. Przybysz and J. Tabor and M. Zięba and P. Spurek},
  year   = {2022},
  eprint = {2205.15745},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15745}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.15745.svg)](https://codeofpaper.com/paper/2205.15745)

Discussion