Policy Optimization with Differentiable MPC: Convergence Analysis under Uncertainty

Riccardo Zuliani, Efe C. Balta, John LygerosarXiv 2026

Abstract

Model-based policy optimization is a well-established framework for designing reliable and high-performance controllers across a wide range of control applications. Recently, this approach has been extended to model predictive control policies, where explicit dynamical models are embedded within the control law. However, the performance of the resulting controllers, and the convergence of the associated optimization algorithms, critically depends on the accuracy of the models. In this paper, we demonstrate that combining gradient-based policy optimization with recursive system identification ensures convergence to an optimal controller design and showcase our finding in several control examples.

Introduction

Model Predictive Control (MPC) is a cornerstone of modern control engineering, leveraging mathematical models to optimize future system behavior. Despite its power, tuning MPC hyperparameters—such as cost weights and constraints—to meet high-level performance objectives remains a significant challenge. Recent advances in "differentiable optimization" allow MPCs to be treated as learnable layers within a neural network, enabling automatic parameter tuning via gradient descent. However, most existing theoretical guarantees for these methods assume a perfect model of the system dynamics. In real-world applications, dynamics are often uncertain, and sensors are subject to noise, which can lead to erroneous gradient calculations and algorithmic divergence.

Methodology: Integrated Learning and Optimization

To address the gap between theoretical assumptions and practical uncertainty, we propose an iterative, closed-loop algorithm that simultaneously refines the system model and the control policy.

Iterative closed-loop learning architecture for differentiable MPC tuning.

The framework operates in three primary stages:

  1. Recursive System Identification: During system rollouts, state-input data is collected to update estimates of unknown parameters using Recursive Least Squares (RLS).
  2. Differentiable Policy Gradient: The algorithm computes the gradient of a high-level cost function by backpropagating through the MPC's Karush-Kuhn-Tucker (KKT) optimality conditions. Crucially, it uses the current learned model to approximate these gradients.
  3. Certainty Equivalence (CE) Variant: We compare two architectural approaches. The standard approach treats the internal MPC model as a tunable parameter. The CE variant, however, constrains the MPC to use the most recent nominal model identified by the system ID step.

Key Insights

Our analysis reveals that convergence to a critical point is guaranteed as long as the system identification process is asymptotically exact. Interestingly, the Certainty Equivalence approach often outperforms more flexible architectures. By restricting the optimizer's search space to the identified model, the algorithm avoids many poor local minima and converges more rapidly.

Furthermore, the framework demonstrates robustness to "objective mismatch." It can tune standard quadratic MPC weights to achieve complex, non-convex goals, such as minimizing a drone's energy consumption, even when those goals cannot be directly encoded into the MPC's internal cost function.

Experimental Results

The proposed methods were validated across three simulated environments: random 4D linear systems, a 12D nonlinear quadcopter, and a kinematic bicycle model for autonomous racing.

Comparison of suboptimality for standard (Alg. 1) and Certainty Equivalence (Alg. 3) variants.

In random linear system tests, the CE variant (Algorithm 3) achieved a suboptimality of 11%, significantly better than the 30% suboptimality of the non-CE variant (Algorithm 1). In the quadcopter simulation, the system identification error fell below 1% within 40 iterations, allowing the tuned MPC to achieve a closed-loop cost nearly identical to the theoretical optimal. Similarly, for autonomous vehicles, the framework reduced tracking costs by approximately 35%, with trajectories closely following the optimal racing line.

Conclusion and Future Directions

This work provides a rigorous foundation for tuning differentiable MPCs under model uncertainty. By coupling system identification with policy optimization, we ensure convergence to high-performance controllers. Future research will focus on "anytime feasibility" to ensure safety constraints are never violated during the learning process and validating these algorithms on physical robotic hardware.

Summary updated

BibTeX
@misc{zuliani2026policy,
  author = {Riccardo Zuliani and Efe C. Balta and John Lygeros},
  title = {{Policy Optimization with Differentiable MPC: Convergence Analysis under Uncertainty}},
  year = {2026},
  eprint = {2601.01940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.01940},
  howpublished = {arXiv},
}
Figure