Learning to learn with Gaussian processes

Quoc Phong Nguyen, Bryan Kian Hsiang Low, Patrick Jaillet

Abstract

Meta-learning aims to enable models to adapt to new tasks with minimal data. While Model-Agnostic Meta-Learning (MAML) finds a single global initialization, it struggles with diverse or multimodal task distributions. We introduce Gaussian Process Meta-Learning (GPML), a framework that predicts task-specific initializers using Gaussian Processes. By defining a task kernel based on representative "inducing tasks," GPML effectively handles heterogeneous task distributions, significantly outperforming fixed-initialization methods in both synthetic and real-world benchmarks.

Introduction

The goal of few-shot meta-learning is to learn a prior that allows rapid adaptation to new tasks. Model-Agnostic Meta-Learning (MAML) has been highly successful by learning a shared parameter initialization. However, MAML's "one-size-fits-all" strategy is suboptimal when tasks are heterogeneous—for instance, a mixture of periodic and linear functions. In such cases, no single initialization can be close to all possible task optima. Gaussian Process Meta-Learning (GPML) addresses this by moving from a single point to a task-dependent manifold of initializers.

Methodology: Gaussian Process Meta-Learning (GPML)

GPML frames the search for a model initializer as a Gaussian Process (GP) regression problem. Instead of a global initialization $\theta$, the model predicts a task-specific initializer $\theta_t^\circ$ based on the training data $\mathcal{X}_t$ of a new task.

Graphical models for GPML-lite (a) and GPML (b), illustrating the relationship between tasks, inducing tasks, and initializers.

The Task Kernel and Inducing Tasks

A core challenge in comparing tasks is that their input spaces may not overlap. GPML addresses this by introducing "inducing tasks"—a set of learned, representative tasks that serve as anchors in the task space. The similarity between a new task and these anchors, measured via a stationary task kernel, determines the predicted initializer. This approach successfully bridges gradient-based adaptation and metric-based logic.

GPML is presented in three variants:

  • GPML-lite: An efficient version that optimizes computation by reusing matrix inversions across tasks.
  • GPML: A theoretically consistent version with a more rigorous kernel definition.
  • GPML-Bayes: A probabilistic approach that accounts for uncertainty in the predicted initializer.

Experimental Evaluation

The researchers evaluated GPML on both synthetic and real-world benchmarks:

  • Synthetic Functions: Regression on random cosine functions and a multimodal mixture of cosine and linear functions.
  • Sushi Dataset: A collaborative filtering task involving user preference profiles.
  • Light Sensor Dataset: Recovering missing environmental data from sensor networks.

Results and Key Insights

GPML demonstrates significant advantages in scenarios with high task diversity. In multimodal synthetic experiments, GPML significantly outperformed MAML; even with ten gradient descent steps, MAML could not match the performance of GPML using only a single step.

Performance comparison (MSE) on cosine tasks. GPML variants outperform MAML, with accuracy improving as the number of inducing tasks ($n_u$) increases.

Interpretability and Diversity

One of the most compelling aspects of GPML is the interpretability of its learned inducing tasks. In multimodal tests, the model automatically specialized different inducing tasks to represent different task types (e.g., some becoming sine waves, others lines). This allows GPML to explicitly exploit task diversity rather than being hindered by it. Additionally, GPML-Bayes provides a useful signal of uncertainty: when a new task does not fit the learned inducing tasks well, the model's predictive variance increases.

Conclusion

GPML provides a mathematically rigorous framework for learning task-specific initializers. By leveraging Gaussian Processes and inducing tasks, it overcomes the limitations of fixed-initialization meta-learning in diverse environments. Future research will explore extending these kernels to classification and reinforcement learning domains, where task similarity metrics present unique challenges.

Summary updated

BibTeX
@inproceedings{nguyen2021learning,
  author = {Quoc Phong Nguyen and Bryan Kian Hsiang Low and Patrick Jaillet},
  title = {{Learning to learn with Gaussian processes}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure