Hypernetwork approach to Bayesian MAML

Piotr Borycki, Piotr Kubacki, Marcin Przewięźlikowski, Tomasz Kuśmierczyk, Jacek Tabor +1 more
10/6/2022
cs.LGcs.AI
bayesian

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

Abstract

The main goal of Few-Shot learning algorithms is to enable learning from 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 shared universal weights of a meta-model, which are then adapted for specific tasks. However, the method suffers from over-fitting and poorly quantifies uncertainty due to limited data size. Bayesian approaches could, in principle, alleviate these shortcomings by learning weight distributions in place of point-wise weights. Unfortunately, previous modifications of MAML are limited due to the simplicity of Gaussian posteriors, MAML-like gradient-based weight updates, or by the same structure enforced for universal and adapted weights. In this paper, we propose a novel framework for Bayesian MAML called BayesianHMAML, which employs Hypernetworks for weight updates. It learns the universal weights point-wise, but a probabilistic structure is added when adapted for specific tasks. In such a framework, we can use simple Gaussian distributions or more complicated posteriors induced by Continuous Normalizing Flows.

View on arXivView PDF

Code Implementations(1)

2814Jupyter Notebook, PythonJun 2, 20223 months agoNOASSERTION

Similar Papers

Cite this paper

@article{borycki2022hypernetwork,
  title  = {Hypernetwork approach to Bayesian MAML},
  author = {Piotr Borycki and Piotr Kubacki and Marcin Przewięźlikowski and Tomasz Kuśmierczyk and Jacek Tabor and Przemysław Spurek},
  year   = {2022},
  eprint = {2210.02796},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.02796}
}

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/2210.02796.svg)](https://codeofpaper.com/paper/2210.02796)

Discussion