NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Amortized Bayesian Prototype Meta-learning: A New Probabilistic Meta-learning Approach to Few-shot Image Classification

Zhuo Sun, Jijie Wu, Xiaoxu Li, Wenming Yang, Jing-Hao XueAISTATS 2021

Abstract

This paper introduces Amortized Bayesian Prototype Meta-learning (ABPM), a probabilistic approach to few-shot classification that significantly reduces computational complexity by treating class prototypes—rather than high-dimensional neural network weights—as random variables. By utilizing amortized variational inference and task-dependent priors, the model achieves state-of-the-art performance on benchmarks such as mini-ImageNet and Omniglot. Furthermore, ABPM offers superior interpretability, robustness to task distribution shifts, and reliable predictive uncertainty.

Introduction

Few-shot learning aims to develop models capable of recognizing new concepts from a limited number of examples. While probabilistic meta-learning methods, such as Bayesian MAML, are powerful due to their ability to model uncertainty, they typically treat every weight in a deep neural network as a random variable. This leads to a "curse of dimensionality," where millions of parameters result in severe computational overhead and identifiability issues. This research explores whether the meta-learning process can be represented using a much smaller embedding space with fewer random variables without sacrificing performance.

Methods: Latent Prototype Modeling

The core innovation of this work is shifting the probabilistic focus from network weights to latent class prototypes.

  1. Latent Prototypes ($z$): Instead of a distribution over weights, the model defines a distribution over a latent vector $z$ representing the "ideal" version of a class.
  2. Amortized Variational Inference: To estimate the posterior distribution of these prototypes for a new task, the model employs a shared set of parameters $\theta$ and performs a few steps of gradient descent to adapt variational parameters. This "amortized" logic is learned across many tasks.
  3. Task-Dependent Priors: Unlike standard methods using a simple Gaussian prior, ABPM uses the support set to construct a prior specific to the current task.
Graphical model of the proposed Amortized Bayesian Prototype Meta-learning framework, illustrating the relationship between the support set $S_i$, latent prototypes $z_i$, and query set $Q_i$.

The model is trained end-to-end to maximize the Evidence Lower Bound (ELBO) of the query set's predictive likelihood using a shallow convolutional feature extractor.

Experimental Results

The model was evaluated on several standard benchmarks, including Omniglot, mini-ImageNet, CUB-200-2011, and Stanford-dogs.

Performance and Efficiency

On mini-ImageNet, ABPM achieved 70.44% accuracy on 5-way 5-shot tasks, outperforming other probabilistic methods like VERSA (67.37%) and BMAML (64.23%). In fine-grained classification (CUB-200-2011), it reached 80.94% accuracy, significantly surpassing standard Prototypical Networks (76.39%). By treating only prototypes as random variables, the model handles a tiny fraction of the variables compared to weight-based methods, facilitating easier optimization.

Robustness and Calibration

A key advantage of ABPM is its flexibility. Because it learns a general embedding space for prototypes, it is remarkably robust to changes in task configuration. A model trained on 5-way tasks can be tested on 50-way tasks without retraining, maintaining high accuracy.

Robustness of the model to changes in the number of classes (Way). The plot shows mean accuracy on Omniglot as the number of ways increases from 5 to 50.

Additionally, the probabilistic nature of the model ensures well-calibrated confidence levels. Reliability diagrams indicate that the model's predicted probabilities closely match its actual accuracy, resulting in lower Expected Calibration Error (ECE) compared to non-probabilistic baselines.

Conclusion and Future Work

ABPM provides a scalable and robust framework for Bayesian few-shot learning. While highly effective, the authors noted "shrinkage" in 1-shot scenarios due to the strong task-dependent prior. Future work includes exploring how this approach scales with larger architectures like Vision Transformers and developing more sophisticated methods for aggregating support images to further refine the task-dependent priors.

Summary updated

BibTeX
@inproceedings{sun2021amortized,
  author = {Zhuo Sun and Jijie Wu and Xiaoxu Li and Wenming Yang and Jing-Hao Xue},
  title = {{Amortized Bayesian Prototype Meta-learning: A New Probabilistic Meta-learning Approach to Few-shot Image Classification}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure