TL;DR
Diffusion policies capture rich, multimodal behaviors from offline data but cannot guarantee adherence to new constraints encountered at runtime. Diffusion Predictive Control with Constraints (DPCC) solves this by embedding model-based dynamic projections directly into every step of the reverse diffusion process, combined with constraint tightening to buffer against model error. In robot manipulator simulations, DPCC achieves a 98% success rate under novel obstacles and limits—dramatically reducing violations compared to standard guidance and post-processing baselines.
What Problem Does This Paper Address?
Diffusion models have emerged as a premier framework for robot imitation learning because they can represent complex, high-dimensional, and multimodal trajectory distributions. However, standard diffusion policies are trained offline. When deployed into dynamic real-world environments, they face novel test-time constraints (such as unseen obstacles or altered actuator limits) that never appeared in the demonstration data.
While classic Model Predictive Control (MPC) excels at handling constraints via system dynamics models, it requires a hand-crafted objective function—notoriously hard to tune for intricate robotic tasks. Conversely, existing constrained diffusion methods fall short:
- Classifier/Cost Guidance nudges trajectories toward feasible regions using cost gradients, but offers zero hard guarantees.
- Post-Processing Projections solve an optimization problem after denoising finishes, often stripping the trajectory of its learned goal-reaching behavior.
- Model-Free Projections ignore physical transitions, yielding trajectories that real robot dynamics cannot execute.
DPCC bridges this divide by blending the expressiveness of diffusion priors with the safety and rigor of model-predictive projections.
Methods
DPCC formulates trajectory generation as receding-horizon conditional sampling, introducing three core mechanisms:
-
In-Denoising Model-Based Projections: Framing feasibility as approximate Bayesian inference ($p(\tau \mid O=1)$ where $O$ indicates trajectory feasibility), the authors show that sampling corresponds to projecting the predicted mean at each reverse diffusion step. DPCC deterministically projects the trajectory after adding noise at step $k$: $$\tau^{k-1} = \Pi_{\tilde{\mathcal{Z}}_f} \big(\mu_\theta(\tau^k, k, c) + \sigma_k \epsilon_k\big)$$ The projection set $\tilde{\mathcal{Z}}_f$ explicitly enforces both constraint bounds and nominal discrete-time system dynamics ($s_{t+1} = f(s_t, a_t)$), guaranteeing open-loop dynamic feasibility.
-
Constraint Tightening for Model Mismatch: Real hardware inevitably deviates from nominal dynamics by an unknown disturbance ($w_t$ bounded by $\|w_t\|_2 \le \gamma$). To prevent real-world violations, DPCC tightens the state constraints using the Minkowski set difference: $$\tilde{\mathcal{S}}_{t+1} = \mathcal{S}_{t+1} \ominus \mathcal{B}_\gamma$$ The authors prove inductively that this step guarantees closed-loop satisfaction under bounded disturbances.
-
Trajectory Batch Selection: Because diffusion naturally generates batches of $B$ candidate trajectories in parallel, DPCC compares two trajectory selection criteria rather than picking at random:
-
Temporal Consistency (DPCC-T): Selects the plan closest to the previous step's rollout to eliminate jittery mode-switching.
- Cumulative Projection Cost (DPCC-C): Chooses the candidate that required the least modification throughout all denoising steps, retaining maximal information from the learned expert distribution.
Prior Noise τ^K ~ N(0, I)
│
▼
┌────────────────────────┐
│ Diffusion Denoise │ ◄─── Context c = (s_t, goal)
│ (1D U-Net Step) │
└─────────┬──────────────┘
│
▼
┌────────────────────────┐
│ Model-Based Project │ ◄─── Dynamics f(s, a) +
│ onto Tightened Set │ Tightened Constraints S ⊖ B_γ
└─────────┬──────────────┘
│ (Repeat for K steps)
▼
┌────────────────────────┐
│ Trajectory Selection │ ───► Apply first action a_t
│ (Min Projection Cost) │
└────────────────────────┘
Datasets
- Avoiding Benchmark (Jia et al., 2024): A 2D simulation environment where a robot manipulator end-effector must reach a goal line without colliding with 6 circular obstacles.
- Training Data: 96 multimodal demonstrations (4 trajectories across 24 distinct topological routes navigating the obstacles).
- Evaluation Scenarios: Tested on novel obstacle layouts (circular exclusion zones and halfspaces) that were never seen during offline training.
Key Insights and Ideas
- Projection belongs inside the denoising loop: Projecting at every reverse diffusion step allows the score function to pull the trajectory back onto the manifold of natural demonstration behavior, avoiding the performance degradation seen when projecting only after the final step.
- Model awareness is essential: Model-free projections ruin dynamic feasibility. Even though the diffusion model is trained on valid transitions, its reverse mean $\mu_\theta$ cannot self-repair arbitrary kinematic violations without an explicit dynamics constraint in the projection.
- Tightening makes or breaks closed-loop safety: Simply generating feasible plans is insufficient in closed loop. Without constraint tightening, small model mismatch errors compound, causing constraint violations in over 50% of runs. With tightening, success nears 100%.
- Robustness to inaccurate models: Even when the assumed model sampling time differed from the true system by a factor of 4, DPCC maintained high constraint adherence, proving that an approximate model is vastly superior to no model at all.
Key Results
- Constraint Satisfaction & Task Success: Under novel test-time constraints, DPCC-C achieved a 98% combined success rate (reaching the goal while satisfying all constraints). Standard unconstrained Diffuser achieved only 7%, Guidance reached 13%, and Post-Processing reached 96%.
- Constraint Violations: DPCC-C virtually eliminated safety infractions ($0.0 \pm 0.3$ timesteps in violation), compared to 17.8 timesteps for Diffuser and 17.4 timesteps for Guidance.
- Time to Goal: DPCC-C reached the goal significantly faster ($69.0 \pm 12.9$ timesteps) than Post-Processing ($79.1 \pm 13.9$ timesteps).
- Runtime: Using an SLSQP nonlinear optimization solver, an action was computed in approximately 80 ms on a modern GPU/CPU setup.
Limitations and Future Work
- Assumed Disturbance Bounds: DPCC assumes an accurate upper bound ($\gamma$) on the dynamics model mismatch; underestimating $\gamma$ could reintroduce safety violations.
- Solver Scalability: The in-loop projection relies on solving a nonlinear program (SLSQP). For systems with complex non-convex constraints or high-dimensional horizons, projection latency could exceed real-time control frequencies.
- Simplified Dynamics: Experiments relied on 2D velocity-controlled kinematics with Euler integration. Validating high-speed torque-controlled manipulators or legged robots remains open.
- Future Directions: The authors highlight extending DPCC to guarantee formal control-theoretic notions such as closed-loop stability.
Summary updated