Meta Learning MPC using Finite-Dimensional Gaussian Process Approximations

Elena Arcari, Andrea Carron, Melanie N. ZeilingerarXiv 2020

Abstract

Model Predictive Control (MPC) is a cornerstone of modern robotics, yet its performance is heavily dependent on the accuracy of the underlying dynamics model. While Gaussian Processes (GPs) offer a powerful probabilistic framework for learning dynamics, their computational complexity often precludes real-time application. This paper introduces a meta-learning framework that utilizes finite-dimensional GP approximations via the Karhunen-Loève expansion. By learning shared basis functions offline and performing rapid linear updates online, the proposed method enables data-efficient adaptation to novel environments. We demonstrate the efficacy of this approach on simulated benchmarks, showing it outperforms neural-network-based alternatives in both parameter efficiency and adaptation speed.

Introduction

Data-driven control in robotics faces a persistent trade-off between model expressivity and computational efficiency. Simple linear models are fast but fail to capture complex, non-stationary dynamics. Conversely, standard Gaussian Processes can model intricate behaviors but scale poorly with data, becoming "too heavy" for high-frequency control loops. Furthermore, most adaptive controllers lack the ability to leverage prior experience, essentially starting from scratch for every new task.

To address these challenges, we propose a meta-learning framework for MPC (MMPC) that combines the probabilistic strengths of GPs with the speed of linear models. Our approach focuses on learning a set of "universal features" from historical data that can be quickly adapted to new tasks using simple Bayesian updates.

Methodology

The core of our method is the approximation of a Gaussian Process as a finite sum of basis functions using the Karhunen-Loève expansion: $$\hat{f}(x) = \sum_{i=1}^{E} \phi_i(x)\alpha_i$$ where $\phi_i(x)$ represents the basis functions and $\alpha_i$ are the associated weights. The framework operates in two distinct phases:

  1. Offline Meta-training: The system analyzes data from a variety of related tasks to optimize the hyperparameters of the basis functions. This is achieved by maximizing the Evidence Lower Bound (ELBO), which identifies a shared feature space across the task distribution.
  2. Online Meta-testing: When encountering a new task, the basis functions are fixed. The controller performs Bayesian Linear Regression to update only the linear weights $\alpha_i$. This matrix update is computationally lightweight, allowing for real-time adaptation within the MPC loop.

Key Insights and Ideas

A critical finding of this work is that the "shape" of uncertainty—represented by the basis functions—is often shared across related tasks. By learning this structure offline, the online adaptation problem is reduced to a simple linear regression.

Figure 1: Meta-training and testing trajectories alongside the ELBO optimization landscape.

As shown in Figure 1c, the negative ELBO provides a clear optimization landscape with distinct minima, confirming that the meta-training phase effectively captures the underlying structure of the data.

Key Results

We validated our framework on simulated benchmarks including the Mountain-Car problem and miniature autonomous racing. In racing simulations, the controller successfully adapted to a 36% reduction in tire grip mid-track, maintaining a trajectory nearly identical to a ground-truth controller with perfect knowledge.

Figure 2: Comparison between ground truth and predicted residual dynamics.

Figure 2 highlights the accuracy of our approach, where the predicted residual dynamics (orange) closely track the ground truth (blue) with well-calibrated confidence intervals across different task parameters. Compared to Alpaca (a neural-network-based meta-learner), our MMPC method achieved lower Root Mean Square Error (RMSE) while utilizing approximately 100 times fewer parameters, making it ideal for embedded platforms.

Conclusion and Future Work

This paper presents a computationally efficient meta-learning framework for real-time control. By approximating GPs with finite basis functions, we achieve the benefits of probabilistic modeling without the associated computational overhead. While these results are primarily based on simulation, they provide a strong foundation for future hardware implementations and applications to higher-dimensional robotic systems. Recent updates to this work include successful hardware results on diverse robotic platforms.

Summary updated

BibTeX
@misc{arcari2020meta,
  author = {Elena Arcari and Andrea Carron and Melanie N. Zeilinger},
  title = {{Meta Learning MPC using Finite-Dimensional Gaussian Process Approximations}},
  year = {2020},
  eprint = {2008.05984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.05984},
}
Figure