TL;DR
This paper introduces a novel framework that combines differentiable Model Predictive Control (MPC) with Model-Agnostic Meta-Learning (MAML) and online system identification. By learning a generalized parameter initialization across multiple tasks, the controller can rapidly adapt its hyperparameters to optimize performance on completely unseen trajectories with just a single gradient update.
What Problem Does This Paper Address?
Model Predictive Control (MPC) is highly effective for complex control tasks because it explicitly handles system constraints. However, its performance depends heavily on meticulously tuned hyperparameters (like cost matrices) and an accurate system dynamics model.
While gradient-based policy optimization (differentiable MPC) can automate this tuning process by learning from real-world data, it is computationally expensive and requires numerous closed-loop iterations. On physical hardware, this translates to high execution times and mechanical wear-and-tear. Furthermore, a controller optimized for one specific task (e.g., tracking a circular path) often performs poorly when switched to a new task (e.g., tracking a square path)—it overfits to its training conditions.
The authors address this bottleneck: How can we design an MPC controller that adapts rapidly to new, unseen tasks using minimal real-world data?
Methods
The authors propose an end-to-end pipeline that integrates three main components:
- Differentiable MPC (BP-MPC): The MPC optimization problem is treated as a differentiable layer. This allows the framework to compute sensitivities (gradients) of the actual closed-loop tracking cost with respect to the internal MPC hyperparameters.
- Model-Agnostic Meta-Learning (MAML): Instead of training a single parameter set for all tasks, MAML optimizes for a generalized parameter initialization. When faced with a new trajectory, the controller takes just one gradient step from this initialization to achieve task-specific optimization.
- Online System Identification (SysID): At the end of each iteration, a Recursive Least Squares (RLS) estimator updates the system's linearized physics model. This dual-purpose update improves both the MPC’s internal predictions and the accuracy of the gradients used for policy optimization.
To avoid the computationally prohibitive second-order derivatives (Hessians) typically required by MAML, the authors implement a Quasi-Newton BFGS approximation, which provides the necessary gradient corrections at zero additional computational cost.
Datasets
The methodology was validated using a physical Ball-on-Plate (BoP) system rather than standard software datasets.

The control tasks consisted of parameterized trajectory tracking:
- Training Tasks: A circle (0.2m radius) and a square (0.3m side length).
- Unseen Testing Task: A complex figure-eight trajectory.
Key Insights and Ideas
- Shifting the Meta-Learning Focus: While prior research has applied MAML to MPC, it was almost exclusively used to adapt the dynamics model (mitigating the sim-to-real gap). This paper shifts the focus to adapting the controller's objective and constraint definitions.
- The SysID Synergy: Integrating online system identification does more than just make the model more accurate; it significantly reduces bias in the gradient estimates. This cleaner gradient signal accelerates the policy optimization process.
- Hessian-Free Meta-Updates: Proving that a first-order Quasi-Newton approximation (BFGS) can bypass the need for exact second derivatives makes meta-learning practically viable for real-time, hardware-constrained control loops.
Key Results
The framework was evaluated on the physical testbed against standard baselines (PID, LQR, and untrained MPC):
- Superior Tracking: The optimized BP-MPC scheme reduced tracking errors significantly, operating at roughly 15–17% of the total cost incurred by a standard PID controller.
- SysID Impact: Incorporating online system identification yielded a 2x reduction in closed-loop cost compared to running the optimization pipeline without it.
- Rapid Adaptation: When deployed on the completely unseen figure-eight trajectory, the meta-initialized parameters achieved low tracking errors from the very first episode, demonstrating robust generalization without needing full retraining.
Limitations and Future Work
While the framework demonstrates rapid adaptation, executing gradient steps directly on physical hardware introduces safety risks. If an intermediate parameter update is too aggressive, it could cause the system to violate critical physical constraints. The authors note that future work will focus on strengthening the safety guarantees of the adaptation procedure and exploring even faster tailored optimization algorithms.
Summary updated