[Paper Review] Near-Optimal Rapid MPC using Neural Networks: A Primal-Dual Policy Learning Framework
This paper proposes a primal-dual policy learning framework that uses deep neural networks to approximate explicit Model Predictive Control (MPC) laws for linear parameter-varying systems, ensuring feasibility and near-optimality with high probability. By jointly learning a primal control policy and a dual optimality certificate, the method enables real-time suboptimality verification at inference time, achieving up to 62x speedup on desktop and 10x on automotive ECUs while maintaining near-optimal performance with zero backup controller activations in experiments.
In this paper, we propose a novel framework for approximating the explicit MPC policy for linear parameter-varying systems using supervised learning. Our learning scheme guarantees feasibility and near-optimality of the approximated MPC policy with high probability. Furthermore, in contrast to most existing approaches that only learn the MPC policy, we also learn the "dual policy", which enables us to keep a check on the approximated MPC's optimality online during the control process. If the check deems the control input from the approximated MPC policy safe and near-optimal, then it is applied to the plant, otherwise a backup controller is invoked, thus filtering out (severely) suboptimal control inputs. The backup controller is only invoked with a bounded (low) probability, where the exact probability level can be chosen by the user. Since our framework does not require solving any optimization problem during the control process, it enables the deployment of MPC on resource-constrained systems. Specifically, we illustrate the utility of the proposed framework on a vehicle dynamics control problem. Compared to online optimization methods, we demonstrate a speedup of up to 62x on a desktop computer and 10x on an automotive-grade electronic control unit, while maintaining a high control performance.
Motivation & Objective
- To address the challenge of deploying computationally intensive MPC on resource-constrained embedded systems, such as automotive ECUs.
- To develop a learning-based MPC approximation that guarantees feasibility and near-optimality with high probability, overcoming limitations of existing function approximation methods.
- To introduce a dual policy that enables real-time, online verification of the primal policy’s suboptimality, ensuring safety during deployment.
- To reduce computational overhead at runtime by eliminating online optimization, enabling real-time control on low-power hardware.
- To demonstrate the framework’s effectiveness in a real-world vehicle dynamics control application with high-speed and high-accuracy requirements.
Proposed method
- The framework formulates the primal-dual policy learning as a randomized optimization problem constrained by a training dataset of state-control pairs from explicit MPC.
- It leverages statistical learning theory and scenario optimization to derive sample size bounds that ensure feasibility and near-optimality of the learned policies with high probability.
- The dual policy is derived from the dual variables of the MPC optimization problem and serves as a real-time certificate of suboptimality for the primal policy’s output.
- The dual policy is computationally lightweight and enables online verification: if the suboptimality exceeds a user-defined threshold, a backup controller is invoked.
- The primal policy is implemented as a deep neural network (DNN) or linear combination of basis functions, trained via supervised learning on offline MPC solutions.
- The method ensures bounded probability of backup controller activation, which can be tuned by the user, providing a safety guarantee without sacrificing speed.
Experimental results
Research questions
- RQ1Can a neural network-based approximation of explicit MPC be guaranteed to be feasible and near-optimal with high probability?
- RQ2Can a dual policy be learned to provide real-time, online verification of the primal policy’s suboptimality without solving optimization problems?
- RQ3Can the proposed framework achieve significant speedups on embedded systems while maintaining high control performance?
- RQ4How does the dual policy’s verification capability reduce reliance on backup controllers in practice?
- RQ5What is the trade-off between approximation accuracy, computational efficiency, and memory usage in real-time MPC deployment?
Key findings
- The proposed framework achieved a 62x speedup on a desktop computer and a 10x speedup on an automotive-grade electronic control unit (ECU) compared to the CVXGEN solver.
- The average computation time for the DNN-ReLU controller was 1.8 ms on the ECU, enabling real-time operation at 100 Hz, while CVXGEN required 18.7 ms.
- The DNN-ReLU controller achieved an average relative primal suboptimality of only 1.1%, confirming near-optimality in practice.
- The backup controller was never activated during the full 12-second lane change experiment on the Berkeley Autonomous Car, indicating high reliability and safety.
- The framework reduced memory usage to 114 KB for the DNN-ReLU model, significantly lower than CVXGEN’s 322 KB, making it suitable for embedded deployment.
- Theoretical analysis shows that the probability of backup controller activation is bounded and can be tuned by the user, ensuring safety with high confidence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.