NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Optimize in Model Predictive Control

Jacob Sacks, Byron Boots · DOI

Abstract

Sampling-based Model Predictive Control (MPC) is a robust framework for handling complex, non-smooth dynamics in robotics. However, its performance is often limited by a high computational cost, requiring thousands of parallel simulations to produce smooth control updates. This paper introduces L2O-MPC, a framework that replaces traditional, hand-designed update rules with a learned optimizer. By training a neural network to mimic a high-sample expert through imitation learning, L2O-MPC achieves high-performance control with significantly fewer samples, enabling efficient deployment on compute-constrained hardware.

Introduction

Sampling-based MPC algorithms, such as Model Predictive Path Integral (MPPI) control, have become a standard for robotic systems operating in complex environments. These methods work by simulating numerous potential control sequences and weighting them based on their associated costs. While effective, the quality of the control update is directly proportional to the number of samples; a low sample count leads to noisy gradient estimates, resulting in jittery or failed trajectories.

In "Learning to Optimize in Model Predictive Control," Jacob Sacks and Byron Boots address this "sample hunger" by reframing the MPC update as a learnable function. Instead of relying on fixed mathematical rules, they propose using a neural network to "denoise" updates, extracting maximum information from a limited set of samples.

Methodology

MPC as Dynamic Mirror Descent

The authors frame MPC through the lens of Dynamic Mirror Descent (DMD), an online learning algorithm. In this context, the standard update rule is replaced with a learnable function $m_\phi$. This perspective allows the optimizer to adapt to the specific cost landscapes of the task at hand.

Gated Update Architecture

The core of L2O-MPC is a gated architecture inspired by Gated Recurrent Units (GRUs). This structure manages the "warm-start" mechanism inherent in MPC—where the previous plan informs the next—by outputting gating terms. These terms determine how much of the prior trajectory to retain versus how much new information from the current noisy samples to incorporate. This approach allows the model to capture temporal relationships across the planning horizon more effectively than standard methods.

Structured Sampling and Input Reduction

To improve efficiency, the framework utilizes Halton sequences (low-discrepancy sequences) rather than pure random noise. Because these sequences are deterministic, the learned optimizer does not need to process the control samples themselves; it only requires the resulting costs. This significantly reduces the input dimensionality and simplifies the learning task for the neural network.

Training via DAGGER

The model is trained using Dataset Aggregation (DAGGER), an imitation learning technique. A "Teacher" (an MPPI controller with a massive sample budget) provides optimal updates, while the "Student" (the L2O-MPC network) learns to replicate those updates using only a fraction of the samples. Training occurs across randomized initial states and goal positions to ensure the model learns a generalizable control strategy.

Experimental Results

The L2O-MPC framework was evaluated against standard MPPI in three simulated environments using Nvidia’s Isaac Gym and analytical models: Cartpole, Franka Reacher (7-DOF arm), and Franka Obstacles.

Performance in Sample-Starved Regimes

L2O-MPC demonstrated significant improvements in reliability when the sample budget was restricted:

  • Cartpole: L2O-MPC achieved a 90% success rate with only 2 samples, whereas standard MPPI success dropped to 10%.
  • Franka Reacher: The model maintained a 100% success rate with just 16 samples. In contrast, standard MPPI required 64 samples to achieve the same reliability.
  • Franka Obstacles: In a complex navigation task involving spherical obstacles, L2O-MPC with 64 samples (76.6% success) outperformed standard MPPI using 128 samples (73.3% success).

Generalization

Notably, the model trained on two obstacles generalized successfully to a novel environment containing three obstacles. This suggests that the learned optimizer is not merely memorizing paths but is learning a robust strategy for interpreting the cost landscape.

Discussion and Limitations

While L2O-MPC offers a substantial reduction in the required sample count—up to 8x in some scenarios—it is not without trade-offs. The authors observed that L2O-MPC trajectories tend to have higher average jerk (less smoothness) than those produced by the expert. Furthermore, the student's performance is currently capped by the quality of the expert teacher; if the expert cannot solve a task, the student will likely fail as well.

Conclusion

L2O-MPC represents a significant step toward making high-performance sampling-based MPC viable for embedded systems. By treating the update rule as a learnable component, the framework bridges the gap between the theoretical benefits of high-sample MPC and the practical constraints of real-world robotics. Future work may explore Reinforcement Learning to allow the controller to surpass its teacher and the co-optimization of sample generation and update rules.

Summary updated

BibTeX
@inproceedings{sacks2022learning,
  author = {Jacob Sacks and Byron Boots},
  title = {{Learning to Optimize in Model Predictive Control}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=Q6SO0-YJ3xr},
}
Figure