Meta Learning as Bayes Risk Minimization

Shin-ichi Maeda, Toshiki Nakanishi, Masanori Koyama

Abstract

Meta-learning has traditionally been viewed through the lenses of optimization or probabilistic inference, yet a unified theoretical framework has remained elusive. This paper reframes meta-learning as a Bayes Risk Minimization (BRM) problem, providing a rigorous foundation for the use of predictive distributions. We identify a critical "statistical glitch" in existing models like Neural Processes (NPs) and Generative Query Networks (GQNs), where posterior variance fails to shrink appropriately with increasing data. To resolve this, we introduce a "Smart Gaussian" encoder that leverages natural parameters of the exponential family to ensure statistical consistency. Our results demonstrate superior stability and performance in both 1D regression and complex neural scene rendering tasks.

Introduction

Meta-learning, or "learning to learn," aims to train models that can rapidly adapt to new tasks using minimal data. While methods like Model-Agnostic Meta-Learning (MAML) and Neural Processes (NP) have shown empirical success, the field lacks a theoretical consensus on optimality. Furthermore, existing probabilistic meta-learners often exhibit inconsistent behavior: as the size of the context dataset grows, their uncertainty (variance) does not necessarily converge to zero, violating fundamental principles of classical statistics. This "statistical glitch" can lead to unstable predictions and performance degradation when more information is provided.

Meta-Learning as Bayes Risk Minimization

We bridge the gap between meta-learning and Bayesian theory by proving that minimizing Bayes Risk leads to an optimal solution defined by the predictive distribution of a task-specific latent variable. This framework justifies the architectural choices of probabilistic meta-learners and provides a clear objective for training.

The Smart Gaussian Encoder

To address the variance inconsistency in standard NPs, we propose a novel encoder design. Standard NPs typically average features of context data, which ignores the relative reliability of different observations. Our "Smart Gaussian" approach treats each context point as a local Gaussian update. By combining these updates using natural parameters, we derive a global posterior where mean and variance are calculated analytically. Crucially, this design incorporates a weighting mechanism based on precision (inverse variance), ensuring that the posterior variance decays at the theoretically expected rate of $O(1/N)$.

Experimental Evaluation

We evaluated our framework on two distinct benchmarks: 1D function regression with random discontinuities and neural scene rendering.

1D Function Regression

In the 1D regression task, the proposed method consistently outperformed the Linear Gaussian Model (LGM) and standard Neural Processes. As shown in the quantitative analysis below, the Mean Squared Error (MSE) of our method decreases monotonically as the number of observations ($N$) increases. More importantly, the latent variable variance scales exactly as $O(1/N)$, satisfying the Bernstein-von Mises theorem.

Quantitative comparison of MSE and variance decay.

Neural Scene Rendering

Using the "rooms_free_camera" dataset, we tasked models with predicting room views from novel angles based on context images. While the Generative Query Network (GQN) often saw performance "collapse" or diverge as more context observations were added, our method remained stable and continued to improve.

Qualitative results on scene rendering across varying observation counts.

Discussion and Future Work

By casting meta-learning as BRM, we provide a theoretical justification for using latent variables and predictive distributions. Our "Smart Gaussian" approximation ensures that uncertainty is treated as a weight, allowing the model to downvote uninformative context samples. While the Gaussian assumption is theoretically justified for large datasets, it may be restrictive for highly multi-modal task distributions. Future work will explore extending this framework to handle domain-shift and investigating its applications in curriculum and lifelong learning.

Summary updated

BibTeX
@misc{maeda2020meta,
  author = {Shin-ichi Maeda and Toshiki Nakanishi and Masanori Koyama},
  title = {{Meta Learning as Bayes Risk Minimization}},
  year = {2020},
  eprint = {2006.01488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.01488},
}
Figure