Bayesian Meta-Learning Through Variational Gaussian Processes

Vivek Myers, Nikhil SardanaarXiv 2021

Abstract

Recent advances in the field of meta-learning have tackled domains consisting of large numbers of small ("few-shot") supervised learning tasks. Meta-learning algorithms must be able to rapidly adapt to any individual few-shot task, fitting to a small support set within a task and using it to predict the labels of the task's query set. This problem setting can be extended to the Bayesian context, wherein rather than predicting a single label for each query data point, a model predicts a distribution of labels capturing its uncertainty. Successful methods in this domain include Bayesian ensembling of MAML-based models, Bayesian neural networks, and Gaussian processes with learned deep kernel and mean functions. While Gaussian processes have a robust Bayesian interpretation in the meta-learning context, they do not naturally model non-Gaussian predictive posteriors for expressing uncertainty. In this paper, we design a theoretically principled method, VMGP, extending Gaussian-process-based meta-learning to allow for high-quality, arbitrary non-Gaussian uncertainty predictions. On benchmark environments with complex non-smooth or discontinuous structure, we find our VMGP method performs significantly better than existing Bayesian meta-learning baselines.

Introduction

Meta-learning, or "learning to learn," is essential for models that must adapt to new tasks with minimal data. In safety-critical applications like healthcare or autonomous systems, providing a point estimate is insufficient; models must accurately quantify their uncertainty. Gaussian Processes (GPs) are traditionally favored for this task due to their principled Bayesian framework. However, standard GPs suffer from a "Gaussian bottleneck": they assume the output distribution follows a Gaussian bell curve. This assumption fails when the underlying data is multimodal, skewed, or contains sharp discontinuities, such as step functions.

The VMGP Framework

To overcome the Gaussian bottleneck, we introduce Variational Meta-Gaussian Processes (VMGP). The core innovation is a "sandwich" architecture that places a latent Gaussian Process between two neural network components. This allows the model to retain the analytical conditioning strengths of GPs while gaining the expressive power of deep learning.

The VMGP graphical model showing the interaction between the latent GP (p_theta, q_psi) and the decoder MLP (f_phi).

As shown in the graphical model above, the framework consists of:

  1. Latent GP ($p_\theta$ and $q_\psi$): Instead of modeling labels ($y$) directly, the GP models a set of latent variables ($z$). This preserves the ability to condition on support sets efficiently.
  2. Decoder MLP ($f_\phi$): A Multi-Layer Perceptron maps the latent variables $z$ to the final labels $y$. As a universal function approximator, the MLP can transform the Gaussian latent space into complex, non-Gaussian output distributions.
  3. Variational Inference: To handle the intractability introduced by the non-linear decoder, we derive a new Variational Lower Bound (ELBO) to train the GP kernels and neural network weights simultaneously.

Experimental Results

We evaluated VMGP against several strong baselines, including EMAML, ALPaCA, and Deep Kernel Transfer (DKT), across various few-shot regression benchmarks.

Latent Gaussian Environment

We introduced a new, challenging benchmark featuring functions with extreme discontinuities, such as 5 floor(z) and tan(z). These environments are designed to break standard Gaussian assumptions.

Quantitative results (NLL) on the Latent Gaussian Environment benchmark, showing VMGP's superior performance.

As seen in the results table, VMGP significantly outperforms all baselines in Negative Log-Likelihood (NLL). For instance, on the 5 floor(z) task, VMGP achieved an NLL of 3.990, whereas the next best baseline (ALPaCA) reached 4.559, and EMAML struggled at 63.621.

Step Function and Sinusoid Regression

VMGP demonstrated mastery over step functions, outperforming DKT by a wide margin in high-frequency scenarios (0.742 vs 2.072 NLL). However, we observed an expressivity trade-off: on simple, smooth sine waves where the Gaussian assumption holds true, simpler models like ALPaCA can perform better as VMGP's added complexity is unnecessary.

Discussion and Conclusion

The primary "aha moment" of VMGP is that any continuous density can be factored through a Gaussian latent space. By forcing only the latent variables to be Gaussian, we maintain mathematical elegance while allowing the neural network to handle real-world complexity. Qualitative visualizations confirm that VMGP is uniquely capable of predicting multimodal distributions—where a value might belong to two distinct clusters—while baselines typically produce an inaccurate, wide Gaussian blur.

While VMGP is more computationally intensive to train and requires careful hyperparameter tuning, its ability to model non-Gaussian uncertainty makes it a powerful tool for complex meta-learning tasks. Future work will explore replacing the MLPs with Convolutional Neural Networks for image-based tasks like few-shot pose estimation.

Summary updated

BibTeX
@misc{myers2021bayesian,
  author = {Vivek Myers and Nikhil Sardana},
  title = {{Bayesian Meta-Learning Through Variational Gaussian Processes}},
  year = {2021},
  eprint = {2110.11044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.11044},
}
Figure