TransformerMPC: Accelerating Model Predictive Control via Transformers
Authors:
- 19 May 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 9221-9227
Abstract
In this paper, we address the problem of reducing the computational burden of Model Predictive Control (MPC) for real-time robotic applications. We propose TransformerMPC, a method that enhances the computational efficiency of MPC algorithms by leveraging the attention mechanism in transformers for both online constraint removal and better warm start initialization. Specifically, TransformerMPC accelerates the computation of optimal control inputs by selecting only the active constraints to be included in the MPC problem, while simultaneously providing a warm start to the optimization process. This approach ensures that the original constraints are satisfied at optimality. TransformerMPC is designed to be seamlessly integrated with any solver, irrespective of its implementation. To guarantee constraint satisfaction after removing inactive constraints, we perform an offline verification to ensure that the optimal control inputs generated by the solver meet all constraints. The effectiveness of TransformerMPC is demonstrated through extensive numerical simulations on complex robotic systems, achieving up to $35 \times$ improvement in runtime without any loss in performance.
Keywords
All Related Versions
This publication has 43 references indexed in Scilit:
- QPALM: a proximal augmented lagrangian method for nonconvex quadratic programsMathematical Programming Computation, 2022
- OSQP: an operator splitting solver for quadratic programsMathematical Programming Computation, 2020
- CasADi: a software framework for nonlinear optimization and optimal controlMathematical Programming Computation, 2018
- qpOASES: a parametric active-set algorithm for quadratic programmingMathematical Programming Computation, 2014
- Matrix inversion on CPU–GPU platforms with applications in control theoryConcurrency and Computation: Practice and Experience, 2012
- A Survey on Explicit Model Predictive Control2009
- On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programmingMathematical Programming, 2005
- Numerical Optimization1999
- Support-vector networksMachine Learning, 1995
- A numerically stable dual method for solving strictly convex quadratic programsMathematical Programming, 1983