Zero-order optimization for Gaussian process-based model predictive control

Amon Lahr, Andrea Zanelli, Andrea Carron, Melanie N. ZeilingerEur. J. Control 2022

TL;DR

This paper introduces a novel "zero-order" optimization method for Gaussian Process Model Predictive Control (GP-MPC). By cleverly approximating Jacobians and leveraging GPU acceleration, they significantly reduce computation time, making real-time GP-MPC feasible for complex systems while maintaining desirable convergence properties.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a powerful control strategy that optimizes future control actions based on a model of the system. When this model is learned using Gaussian Processes (GPs), it can adapt online to changing system dynamics and capture uncertainty. This "GP-MPC" has shown great promise in real-world applications like robotics and autonomous driving. However, a major hurdle for GP-MPC is its computational cost. The optimization problem becomes significantly larger due to the need to propagate GP uncertainty (covariance) through the prediction horizon. Furthermore, evaluating GP posterior means, covariances, and their derivatives is computationally expensive. Existing methods often resort to heuristics that can compromise feasibility or accuracy. This paper aims to bridge this gap by making GP-MPC computationally tractable for real-time applications without sacrificing its core benefits.

Methods

The authors propose an inexact Sequential Quadratic Programming (SQP) approach tailored for GP-MPC. The core innovation lies in a "zero-order" Jacobian approximation. Instead of computing exact Jacobians for the covariance propagation constraints, they make a simplifying assumption that decouples these constraints from the main optimization problem. This allows them to eliminate the covariance optimization variables from the Quadratic Program (QP) subproblems, drastically reducing their size.

Key methodological contributions include:

  • Tailored Jacobian Approximation: A specific approximation for the Jacobian of the covariance propagation equations, enabling the decoupling of covariance variables.
  • Efficient QP Formulation: The decoupling allows for a reformulated QP that is significantly smaller, reducing the computational burden.
  • GPU Acceleration: GP inference and automatic differentiation routines are parallelized on a GPU, further speeding up computations.
  • Theoretical Analysis: The paper provides a theoretical analysis of the local convergence properties of their proposed algorithm, showing that it converges to a feasible and suboptimal solution under certain conditions, especially when process noise and GP uncertainty are small.

Datasets

Not discussed in the paper. The authors use a "hanging chain example" as a benchmark, which is a modified version of an existing benchmark for numerical methods for NMPC. This example is used to generate data for training GPs.

Key Insights and Ideas

  • Decoupling Covariance is Key: The most significant insight is that by making a specific approximation to the Jacobian of the covariance propagation, the problem of optimizing covariance variables can be effectively separated from the main optimization problem. This is a clever way to reduce the dimensionality of the optimization.
  • Zero-Order is "Good Enough": The "zero-order" approximation, while inexact, is sufficient to maintain desirable convergence properties for GP-MPC, especially when the GP uncertainty is not excessively large. This highlights that perfect accuracy in every component of the optimization might not be necessary for practical control.
  • GPU Power Unleashed: The paper clearly demonstrates the substantial benefits of offloading GP computations to the GPU. This is crucial for making complex GP-based models computationally feasible in real-time control.
  • Feasibility is Preserved: Unlike some heuristics that can lead to infeasible solutions, their method is shown to converge to feasible (though potentially suboptimal) solutions, which is critical for safety-critical applications.

Key Results

  • Significant Speedup: The proposed zero-order GP-MPC method achieves a dramatic reduction in computation time. For a state dimension of $n_x=39$, they observe a roughly 1000-fold speedup compared to a "naïve" exact GP-MPC implementation.
  • GPU Acceleration Benefits: Using a GPU for GP inference and AD provides a 5-10-fold speedup compared to CPU implementations, especially for larger state spaces.
  • Scalability: The method scales much better with the state dimension ($n_x$) than exact methods, showing an $O(n_x)$ complexity per SQP iteration compared to $O(n_x^3)$ for the naïve approach.
  • Feasible Solutions: Numerical experiments confirm that the algorithm converges to feasible solutions, as illustrated by the avoidance of infeasibility scenarios shown in Figure 1.

Limitations and Future Work

  • Suboptimality: The method guarantees convergence to a suboptimal but feasible solution. While this is often acceptable in practice, achieving optimality might require further refinements.
  • Small Uncertainty Assumption: The theoretical convergence guarantees are strongest when process noise and GP posterior covariance are small. The behavior with very large uncertainties is not fully characterized.
  • Constraint Tightening: The paper notes that for cases with zero data points (only GP prior), the constraint tightening computations could be further improved by switching to a C/C++ implementation.
  • Future Work: The authors suggest that improvements in the Hessian approximation and further optimization of the constraint tightening step could lead to even better performance. They also mention that incorporating linear state feedback can be straightforwardly applied to their framework.

Summary updated

BibTeX
@article{lahr2022zero,
  author = {Amon Lahr and Andrea Zanelli and Andrea Carron and Melanie N. Zeilinger},
  title = {{Zero-order optimization for Gaussian process-based model predictive control}},
  journal = {Eur. J. Control},
  year = {2022},
  url = {https://openreview.net/forum?id=IJ1MHoADdb},
}
Figure