[Paper Review] Safe and Near-Optimal Policy Learning for Model Predictive Control using Primal-Dual Neural Networks
This paper proposes a primal-dual neural network framework for learning safe, near-optimal Model Predictive Control (MPC) laws in linear parameter-varying systems. By jointly training a primal policy for control and a dual policy for suboptimality certification, the method enables real-time, computation-efficient control with online feasibility and optimality guarantees via randomized verification, achieving up to 100x speedup over state-of-the-art solvers with minimal performance loss.
In this paper, we propose a novel framework for approximating the explicit MPC law for linear parameter-varying systems using supervised learning. In contrast to most existing approaches, we not only learn the control policy, but also a "certificate policy", that allows us to estimate the sub-optimality of the learned control policy online, during execution-time. We learn both these policies from data using supervised learning techniques, and also provide a randomized method that allows us to guarantee the quality of each learned policy, measured in terms of feasibility and optimality. This in turn allows us to bound the probability of the learned control policy of being infeasible or suboptimal, where the check is performed by the certificate policy. Since our algorithm does not require the solution of an optimization problem during run-time, it can be deployed even on resource-constrained systems. We illustrate the efficacy of the proposed framework on a vehicle dynamics control problem where we demonstrate a speedup of up to two orders of magnitude compared to online optimization with minimal performance degradation.
Motivation & Objective
- To address the challenge of deploying MPC on resource-constrained systems by replacing online optimization with fast, learned policies.
- To ensure safety and performance of learned control policies without relying on expensive online optimization or restrictive constraint enforcement during training.
- To provide a randomized verification framework that bounds the probability of infeasibility or suboptimality of the learned policy during runtime.
- To extend explicit MPC approximation to linear parameter-varying (LPV) systems using function approximation with provable guarantees.
- To enable deployment of MPC on embedded platforms by decoupling expensive optimization from runtime execution.
Proposed method
- Train a primal neural network policy to approximate the explicit MPC control law using supervised learning on offline-generated data.
- Train a dual neural network policy to estimate the duality gap, providing online bounds on suboptimality and feasibility of the primal policy’s output.
- Use randomized verification with sample size bounds derived from concentration inequalities to probabilistically certify the quality of both policies offline.
- Apply duality theory from convex optimization to define the dual policy as an estimator of the optimal cost, enabling real-time performance monitoring.
- Deploy the trained primal-dual network pair at runtime: the primal policy outputs control actions, and the dual policy checks their quality; if checks fail, a backup controller is activated.
- Use ReLU-based deep neural networks for function approximation, making the framework compatible with any differentiable architecture and scalable to complex systems.
Experimental results
Research questions
- RQ1Can a learned control policy for MPC be both fast to evaluate and provably safe and near-optimal at runtime?
- RQ2Can a dual neural network be trained to provide online, data-driven certificates of suboptimality and feasibility for a primal control policy?
- RQ3Can randomized verification with finite sample sizes guarantee the performance of learned MPC policies with high probability?
- RQ4Does the proposed primal-dual learning framework maintain near-optimal performance while enabling orders-of-magnitude speedup over online optimization?
- RQ5Can this framework be extended to linear parameter-varying systems, where system matrices depend on time-varying parameters?
Key findings
- The proposed method achieves an average speedup of over 65x compared to Gurobi and more than 100x compared to Mosek on a 2016 MacBook, with mean inference time of 0.023 ms for the DNN-ReLU policy.
- The median duality gap (suboptimality measure) across 100,000 test parameters was 0.00083, and the worst-case duality gap was 1.2732, indicating strong near-optimality.
- The empirical violation probability for the duality gap exceeding the threshold γ=1 was 0.005%, far below the target ε=1%, confirming the conservativeness of the theoretical sample size bounds.
- The dual policy successfully detected suboptimal or infeasible actions in real time, enabling fallback to a backup controller when needed.
- The framework demonstrated robustness and consistency, with a standard deviation of only 0.0023 ms in DNN inference times, outperforming the more variable performance of Gurobi and Mosek.
- The method is general and applicable to any function approximator, including deep neural networks, and enables safe deployment of MPC on embedded systems without online optimization.
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.