ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learning

Rahel Rickenbach, Alan Lahoud, Erik Schaffernicht, Melanie Zeilinger, Johannes A. Stork
Proceedings of The 9th Conference on Robot Learning, PMLR 305:3115-3136, 2025.

Abstract

The computational burden of model predictive control (MPC) limits its application on real-time systems, such as robots, and often requires the use of short prediction horizons. This not only affects the control performance, but also increases the difficulty of designing MPC cost functions that reflect the desired long-term objective. This paper proposes ZipMPC, a method that imitates a long-horizon MPC behaviour by learning a compressed and context-dependent cost function for a short-horizon MPC. It improves performance over alternative methods, such as approximate explicit MPC and automatic cost parameter tuning, in particular in terms of i) optimizing the long-term objective; ii) maintaining computational costs comparable to a short-horizon MPC; iii) ensuring constraint satisfaction; and iv) generalizing control behaviour to environments not observed during training. For this purpose, ZipMPC leverages the concept of differentiable MPC with neural networks to propagate gradients of the imitation loss through the MPC optimization. We validate our proposed method in simulation and real-world experiments on autonomous racing. ZipMPC consistently completes laps faster than selected baselines, achieving lap times close to the long-horizon MPC baseline. In challenging scenarios where the short-horizon MPC baseline fails to complete a lap, ZipMPC is able to do so. In particular, these performance gains are also observed on tracks unseen during training.

Cite this Paper


BibTeX
@InProceedings{pmlr-v305-rickenbach25a, title = {ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learning}, author = {Rickenbach, Rahel and Lahoud, Alan and Schaffernicht, Erik and Zeilinger, Melanie and Stork, Johannes A.}, booktitle = {Proceedings of The 9th Conference on Robot Learning}, pages = {3115--3136}, year = {2025}, editor = {Lim, Joseph and Song, Shuran and Park, Hae-Won}, volume = {305}, series = {Proceedings of Machine Learning Research}, month = {27--30 Sep}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v305/main/assets/rickenbach25a/rickenbach25a.pdf}, url = {https://proceedings.mlr.press/v305/rickenbach25a.html}, abstract = {The computational burden of model predictive control (MPC) limits its application on real-time systems, such as robots, and often requires the use of short prediction horizons. This not only affects the control performance, but also increases the difficulty of designing MPC cost functions that reflect the desired long-term objective. This paper proposes ZipMPC, a method that imitates a long-horizon MPC behaviour by learning a compressed and context-dependent cost function for a short-horizon MPC. It improves performance over alternative methods, such as approximate explicit MPC and automatic cost parameter tuning, in particular in terms of i) optimizing the long-term objective; ii) maintaining computational costs comparable to a short-horizon MPC; iii) ensuring constraint satisfaction; and iv) generalizing control behaviour to environments not observed during training. For this purpose, ZipMPC leverages the concept of differentiable MPC with neural networks to propagate gradients of the imitation loss through the MPC optimization. We validate our proposed method in simulation and real-world experiments on autonomous racing. ZipMPC consistently completes laps faster than selected baselines, achieving lap times close to the long-horizon MPC baseline. In challenging scenarios where the short-horizon MPC baseline fails to complete a lap, ZipMPC is able to do so. In particular, these performance gains are also observed on tracks unseen during training.} }
Endnote
%0 Conference Paper %T ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learning %A Rahel Rickenbach %A Alan Lahoud %A Erik Schaffernicht %A Melanie Zeilinger %A Johannes A. Stork %B Proceedings of The 9th Conference on Robot Learning %C Proceedings of Machine Learning Research %D 2025 %E Joseph Lim %E Shuran Song %E Hae-Won Park %F pmlr-v305-rickenbach25a %I PMLR %P 3115--3136 %U https://proceedings.mlr.press/v305/rickenbach25a.html %V 305 %X The computational burden of model predictive control (MPC) limits its application on real-time systems, such as robots, and often requires the use of short prediction horizons. This not only affects the control performance, but also increases the difficulty of designing MPC cost functions that reflect the desired long-term objective. This paper proposes ZipMPC, a method that imitates a long-horizon MPC behaviour by learning a compressed and context-dependent cost function for a short-horizon MPC. It improves performance over alternative methods, such as approximate explicit MPC and automatic cost parameter tuning, in particular in terms of i) optimizing the long-term objective; ii) maintaining computational costs comparable to a short-horizon MPC; iii) ensuring constraint satisfaction; and iv) generalizing control behaviour to environments not observed during training. For this purpose, ZipMPC leverages the concept of differentiable MPC with neural networks to propagate gradients of the imitation loss through the MPC optimization. We validate our proposed method in simulation and real-world experiments on autonomous racing. ZipMPC consistently completes laps faster than selected baselines, achieving lap times close to the long-horizon MPC baseline. In challenging scenarios where the short-horizon MPC baseline fails to complete a lap, ZipMPC is able to do so. In particular, these performance gains are also observed on tracks unseen during training.
APA
Rickenbach, R., Lahoud, A., Schaffernicht, E., Zeilinger, M. & Stork, J.A.. (2025). ZipMPC: Compressed Context-Dependent MPC Cost via Imitation Learning. Proceedings of The 9th Conference on Robot Learning, in Proceedings of Machine Learning Research 305:3115-3136 Available from https://proceedings.mlr.press/v305/rickenbach25a.html.

Related Material