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

Diffusion-Based Approximate MPC: Fast and Consistent Imitation of Multi-Modal Action Distributions

Pau Marquez Julbe, Julian Nubert, Henrik Hose, Sebastian Trimpe, Katherine J. Kuchenbecker

TL;DR

This paper introduces a diffusion-based Approximate Model Predictive Control (AMPC) framework that successfully captures multi-modal action distributions in non-convex robotic tasks, such as obstacle avoidance. By introducing gradient guidance and early noise stopping, the authors enable smooth, consistent closed-loop control at frequencies up to 1 kHz. The resulting controller achieves a 70× speedup over online optimization and is successfully deployed on a real 7-DoF robotic arm at 250 Hz.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a powerful tool in robotics because it handles complex constraints and provides safety guarantees by solving an optimization problem at every time step. However, solving these non-convex optimization problems online is computationally expensive, often limiting update rates to tens of hertz—too slow for highly dynamic or resource-constrained systems.

To fix this, researchers use Approximate MPC (AMPC), which uses imitation learning to train a fast neural network policy on data generated by an offline MPC "expert." Traditionally, these networks are trained using standard least-squares (L2) regression.

The fatal flaw of L2 regression is that it assumes a unimodal distribution. In non-convex environments (e.g., deciding whether to go left or right around an obstacle), the expert data contains multiple valid paths (multi-modality). An L2-trained network will average these paths together, resulting in an unfeasible command that drives the robot straight into the obstacle.

Methods

The authors propose Diffusion-Based AMPC (DAMPC) to accurately learn and sample from these multi-modal action distributions.

Overview of the Diffusion-Based Approximate MPC framework, highlighting data collection, imitation learning, and deployment advantages.

While diffusion models excel at capturing complex distributions, naively applying them to low-level control causes jerky robot behavior because the model might randomly switch between different modes (e.g., left vs. right) at consecutive time steps. To solve this, the authors introduce three key innovations:

  1. Gradient Guidance ($\nabla G$): Inspired by warm-starting in numerical optimization, they condition the diffusion model's denoising process on the previously executed control command. This biases the model to stay within the same solution mode across time steps, ensuring temporal consistency.
  2. Early Stopping (ES) of Noise Injection: Random noise injection is stopped during the final denoising steps. This prioritizes smooth control commands over exploratory diversity, eliminating high-frequency vibrations.
  3. Informative Parallel Sampling: By leveraging GPU parallelization, the system samples multiple candidate trajectories simultaneously. These are ranked online using either the original MPC cost function (if full state knowledge is available) or a clustering-based "democratic voting" mechanism to pick the safest, most optimal mode.

Datasets

The authors generated two massive datasets using an expert nonlinear MPC solver (IPOPT) controlling a simulated 7-DoF KUKA LBR4+ robotic manipulator within NVIDIA's Isaac Lab:

  • Dataset 1 (Self-Collision): Contains 55.5 million open-loop MPC predictions focusing purely on joint limits and self-collision avoidance.
  • Dataset 2 (Obstacle Avoidance): Contains 33.9 million open-loop predictions and introduces a non-convex constraint in the form of a large spherical obstacle in the center of the workspace.

Key Insights and Ideas

  • The Student Can Outperform the Teacher: Interestingly, the trained diffusion model achieved a higher success rate than the expert MPC solver used to train it. This is because numerical solvers occasionally fail to converge or get stuck in poor local minima. By filtering out these failed trajectories from the training dataset, the diffusion model learns a cleaner, more robust control policy.
  • Least Squares Models Collapse: As visualized in the paper's trajectory heatmaps, standard least-squares models completely collapse when faced with multi-modal options, failing to reach the target. The diffusion model successfully maps out and navigates multiple distinct trajectories.
Heatmaps showing the end-effector position probability density. The diffusion model successfully captures multiple modes, whereas the LSM collapses to a non-feasible mean.
  • Five Steps are Enough: While image-generation diffusion models often require dozens of denoising steps, the authors demonstrate that just 5 denoising steps are sufficient for low-level robotic control when paired with their early stopping and gradient guidance strategies.

Key Results

  • Speedup: DAMPC achieved a 5.6× speedup on CPU and a massive 73× speedup on GPU compared to the online numerical MPC solver.
  • Hardware Deployment: The controller was successfully deployed on a real KUKA LBR4+ robotic arm at 250 Hz, whereas the online expert MPC was computationally bottlenecked at just 10 Hz.
  • Tracking Performance: In real-world hardware tests, DAMPC achieved a 93.0% success rate, outperforming both the online MPC expert (87.8%) and the baseline Least Squares Model (12.9%).
Tracking error over time on real hardware, demonstrating that DAMPC provides smooth transient behavior with minimal overshoot compared to slow 10 Hz MPC.

Limitations and Future Work

The primary limitation of this approach is its high data requirement. Generating tens of millions of expert MPC trajectories requires significant offline computational time and power.

For future work, the authors plan to explore more sample-efficient data collection strategies. They also aim to scale the framework to handle higher-dimensional inputs, such as direct camera vision, and compress the neural network via pruning and quantization to allow deployment on low-power embedded microcontrollers.

Summary updated

BibTeX
@inproceedings{julbe2025diffusion,
  author = {Pau Marquez Julbe and Julian Nubert and Henrik Hose and Sebastian Trimpe and Katherine J. Kuchenbecker},
  title = {{Diffusion-Based Approximate MPC: Fast and Consistent Imitation of Multi-Modal Action Distributions}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11247134},
}
Figure