Uncertainty-Aware Meta-Learning for Multimodal Task Distributions

Cesar Almecija, Apoorva Sharma, Navid Azizan · OpenReview

Abstract

Meta-learning or learning to learn is a popular approach for learning new tasks with limited data (i.e., few-shot learning) by leveraging the commonalities among different tasks. However, meta-learned models can perform poorly when context data is limited, or when data is drawn from an out-of-distribution (OoD) task. Especially in safety-critical settings, this necessitates an uncertainty-aware approach to meta-learning. In addition, the often multimodal nature of task distributions can pose unique challenges to meta-learning methods. In this work, we present UnLiMiTD (uncertainty-aware meta-learning for multimodal task distributions), a novel method for meta-learning that (1) makes probabilistic predictions on in-distribution tasks efficiently, (2) is capable of detecting OoD context data at test time, and (3) performs on heterogeneous, multimodal task distributions. To achieve this goal, we take a probabilistic perspective and train a parametric, tuneable distribution over tasks on the meta-dataset. We construct this distribution by performing Bayesian inference on a linearized neural network, leveraging Gaussian process theory. We demonstrate that UnLiMiTD's predictions compare favorably to, and outperform in most cases, the standard baselines, especially in the low-data regime. Furthermore, we show that UnLiMiTD is effective in detecting data from OoD tasks. Finally, we confirm that both of these findings continue to hold in the multimodal task-distribution setting.

Introduction

Meta-learning aims to create models that can adapt to new tasks with just a few examples, a paradigm known as few-shot learning. However, traditional meta-learning algorithms, such as Model-Agnostic Meta-Learning (MAML), face significant hurdles in real-world applications. Specifically, they often suffer from "uncertainty blindness," providing confident predictions without indicating reliability. They also struggle with out-of-distribution (OoD) tasks and multimodal task distributions—where tasks belong to distinct clusters, such as periodic versus linear functions.

We introduce UNLIMITD (Uncertainty-aware meta-learning for multimodal task distributions) to address these challenges simultaneously. By leveraging linearized neural networks and Bayesian inference, UNLIMITD provides reliable uncertainty estimates and robust OoD detection while maintaining superior performance in low-data scenarios.

Methodology

The core innovation of UNLIMITD is treating meta-learning through the lens of Bayesian linear regression on linearized neural networks. The model approximates a deep neural network by linearizing it around its parameters, allowing the network's Jacobian to serve as a feature map. By assuming a Gaussian prior over the weights of this linearized model, the adaptation process becomes a mathematically tractable Bayesian inference problem. This yields a closed-form solution for both predictions and uncertainty (variance).

The UNLIMITD meta-learning pipeline: constructing a distribution over functions from sampled meta-training data.

To manage the complexity of high-dimensional parameter spaces, the authors propose three variants:

  • UNLIMITD-I: Uses a simple identity matrix for covariance.
  • UNLIMITD-R: Employs random projections to reduce dimensionality.
  • UNLIMITD-F: Uses the Fisher Information Matrix (FIM) to identify the most impactful directions in the weight space, preserving the most expressive features.

To handle multimodality, UNLIMITD utilizes a Mixture of Experts approach. At test time, the model identifies which "cluster" a task likely belongs to and performs adaptation within that specific cluster.

Experimental Evaluation

The framework was evaluated on both synthetic and high-dimensional datasets. Toy regression tasks involved sinusoids, lines, and quadratic functions to test multimodal handling and OoD detection. For real-world scaling, the researchers used Shapenet1D, a computer vision benchmark requiring the prediction of 3D object orientation from 2D images.

Results and Discussion

UNLIMITD-F consistently outperformed MAML and MMAML, particularly in the low-data regime (1–5 context points). A key insight is that while wide networks behave linearly during training, UNLIMITD exploits this to make Bayesian math efficient and exact at test time. Furthermore, by using Negative Log-Likelihood (NLL) as an uncertainty metric, the model can effectively flag OoD tasks, achieving AUC-ROC scores often exceeding 0.9.

Regression performance of UNLIMITD across different numbers of context points (K). Shaded areas represent uncertainty (+/- 1.96σ), which narrows as more data is provided.

In multimodal experiments, the mixture-model version of UNLIMITD-F accurately identified task types and adapted more effectively than single-GP models. On the Shapenet1D dataset, UNLIMITD-F significantly reduced orientation prediction error compared to MAML, proving the method scales to deep architectures.

Conclusion

UNLIMITD provides a robust framework for uncertainty-aware meta-learning. While the FIM-based projection is highly effective, future work could address potential sub-optimality if network features shift drastically after the projection is computed. Additionally, extending the framework to classification tasks via Laplace approximations and implementing non-parametric methods for automatic cluster inference remain promising avenues for future research.

Summary updated

BibTeX
@inproceedings{almecija2023uncertainty,
  author = {Cesar Almecija and Apoorva Sharma and Navid Azizan},
  title = {{Uncertainty-Aware Meta-Learning for Multimodal Task Distributions}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=bd7tj6MoZn},
}
Figure