L4acados: Learning-Based Models for acados, Applied to Gaussian Process-Based Predictive Control
Abstract
Incorporating learning-based models, such as artificial neural networks or Gaussian processes, into model predictive control (MPC) strategies can significantly improve control performance and online adaptation capabilities for real-world applications. Still, enabling state-of-the-art implementations of learning-based models for MPC is complicated by the challenge of interfacing machine learning frameworks with real-time optimal control software. This work aims to fill this gap by incorporating external sensitivities in sequential quadratic programming (SQP) solvers for nonlinear optimal control. To this end, we provideL4acados, a general framework for incorporatingPython-based dynamics models in the real-time optimal control softwareacados. By computing external sensitivities via a user-definedPythonmodule,L4acadosenables the implementation of MPC controllers with learning-based residual models inacados, while supporting parallelization of sensitivity computations when preparing the quadratic subproblems. We demonstrate significant speedups and superior scaling properties ofL4acadoscompared to available software using a neural-network (NN)-based control example. Last, we provide an efficient and modular real-time implementation of Gaussian process-based MPC (GP-MPC) usingL4acados, which is applied to two hardware examples: autonomous miniature racing, as well as motion control of a full-scale autonomous vehicle for an ISO lane change maneuver.
Fields of Study & Subjects
Gaussian Processes and Bayesian Inference
Advanced Bandit Algorithms Research
Advanced Control Systems Optimization
Publication details
- Journal / source
- IEEE Transactions on Control Systems Technology
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Volume
- 34
- Issue
- 3
- Pages
- 1091–1105
- Publication date
- 6 March 2026