[Paper Review] Meta-Learning with Shared Amortized Variational Inference
This paper proposes SAMOVAR, a meta-learning framework that uses a shared amortized variational inference network to model uncertainty in classifier weights for few-shot image classification. By learning a conditional prior and posterior over model parameters using a single shared inference network, it avoids the variance collapse seen in Monte Carlo-based approaches, achieving state-of-the-art performance on miniImageNet, CIFAR-FS, and FC100 with improved uncertainty estimation and accuracy.
We propose a novel amortized variational inference scheme for an empirical Bayes meta-learning model, where model parameters are treated as latent variables. We learn the prior distribution over model parameters conditioned on limited training data using a variational autoencoder approach. Our framework proposes sharing the same amortized inference network between the conditional prior and variational posterior distributions over the model parameters. While the posterior leverages both the labeled support and query data, the conditional prior is based only on the labeled support data. We show that in earlier work, relying on Monte-Carlo approximation, the conditional prior collapses to a Dirac delta function. In contrast, our variational approach prevents this collapse and preserves uncertainty over the model parameters. We evaluate our approach on the miniImageNet, CIFAR-FS and FC100 datasets, and present results demonstrating its advantages over previous work.
Motivation & Objective
- To address the issue of variance underestimation in Monte Carlo-based variational inference for meta-learning.
- To improve uncertainty estimation in few-shot classification by modeling classifier weights as latent variables with a structured prior.
- To develop a shared amortized inference network that generalizes across both prior and posterior distributions over model parameters.
- To enhance performance of existing meta-learning models like VERSA and TADAM through stochastic, uncertainty-aware weight adaptation.
- To demonstrate that variational inference prevents prior collapse—common in Monte Carlo methods—leading to more robust generalization.
Proposed method
- The model uses a shared inference network to parameterize both the conditional prior and variational posterior over task-specific classifier weights.
- The prior is conditioned only on support set data, while the posterior uses both support and query data, enabling uncertainty-aware prediction.
- A variational autoencoder framework is employed to approximate the intractable marginal likelihood, with the inference network trained end-to-end via backpropagation.
- The method leverages a task-agnostic feature extractor (e.g., ResNet-12) to extract features from support and query images before passing them to the shared inference network.
- The framework enables stochastic sampling of classifier weights from both prior and posterior distributions for prediction on query data.
- The approach is applied to both deterministic models (e.g., VERSA) and models with scaled cosine classifiers (e.g., TADAM), transforming them into stochastic variants.
Experimental results
Research questions
- RQ1Can a shared amortized inference network improve uncertainty estimation in meta-learning compared to separate priors and posteriors?
- RQ2Does variational inference prevent the prior collapse observed in Monte Carlo-based approaches when using few gradient samples?
- RQ3How does the proposed method improve few-shot classification accuracy on standard benchmarks like miniImageNet, CIFAR-FS, and FC100?
- RQ4Can the stochastic formulation of TADAM, enabled by shared variational inference, achieve performance competitive with state-of-the-art models?
- RQ5Is the proposed framework compatible with and effective when combined with existing techniques like data augmentation or transductive training?
Key findings
- The variational approach successfully prevents prior collapse, which plagues Monte Carlo-based methods when using few samples, leading to accurate variance estimation.
- On miniImageNet, SAMOVAR achieves 57.9% ± 0.3 accuracy at 5-shot, outperforming other ResNet-12-based models and matching or exceeding state-of-the-art results.
- On FC100, SAMOVAR achieves the best 5-shot accuracy among non-transductive methods, with 42.1% ± 0.3 accuracy.
- On CIFAR-FS, the model reaches 85.3% ± 0.2 accuracy at 5-shot and 72.5% ± 0.3 at 1-shot, demonstrating strong performance across shot settings.
- The stochastic version of TADAM, trained with the proposed variational framework, significantly improves over the original deterministic model and matches state-of-the-art performance.
- The method is robust to hyperparameter choices and generalizes well across multiple few-shot benchmarks, confirming its effectiveness and reliability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.