Joint Model-based Model-free Diffusion for Planning with Constraints

Wonsuhk Jung, Utkarsh Aashu Mishra, Nadun Ranawaka Arachchige, Yongxin Chen, Danfei Xu, Shreyas Kousik · DOI

Abstract

Robotic planning often faces a trade-off between the expressive, multi-modal capabilities of generative models and the rigorous safety requirements of model-based optimization. We present Joint Model-based Model-free Diffusion (JM2D), a framework that treats the integration of these two paradigms as a joint sampling problem. By simultaneously optimizing for data fidelity and constraint satisfaction during the diffusion denoising process, JM2D produces trajectories that are inherently safe and high-performing, overcoming the alignment issues common in sequential "plan-then-filter" approaches.

Introduction

In modern robotics, there is a persistent tension between flexibility and safety. Model-free diffusion models excel at generating diverse, complex trajectories from high-dimensional data. However, they lack an inherent mechanism to enforce "hard" constraints, such as avoiding dynamic obstacles or maintaining physical balance. The conventional solution is to pass diffusion-generated plans through a model-based safety filter.

This sequential approach often suffers from a lack of alignment: if the generative model proposes a trajectory that is fundamentally unsafe, the safety filter must override it, frequently resulting in jerky, inefficient, or physically implausible behavior. JM2D addresses this "mutual compatibility" challenge by allowing the generative model and the safety module to work together simultaneously during the denoising process.

The JM2D Framework

Instead of the traditional sequential pipeline, JM2D samples the plan ($x$) and the optimization parameters ($k$) at the same time. This is achieved through several key technical innovations:

  • Interaction Potential ($V$): A mathematical bridge that quantifies the compatibility between a proposed plan and the safety constraints.
  • Monte Carlo Score Approximation: Since many safety filters are non-differentiable, JM2D uses importance sampling to estimate the "score" (the direction to move the noise to improve the sample) without requiring gradients from the safety module.
  • Clean Sample Guidance: The algorithm performs a "lookahead" by estimating the final denoised trajectory at each step. Evaluating the interaction potential on these "clean" estimates significantly improves guidance accuracy.
Figure 1: Overview of the JM2D framework, illustrating how model-based constraints and model-free diffusion are integrated via an interaction potential to produce safe, joint samples.

Experimental Evaluation

The researchers evaluated JM2D across three distinct domains to test its robustness and adaptability:

  1. D4RL-PointMaze: A navigation benchmark modified with "inference-time padding" to test adaptation to novel constraints.
  2. D3IL-Avoiding: A 7-degree-of-freedom (7DOF) manipulator task requiring navigation through narrow passages.
  3. Real-world Robot Experiment: A Franka Emika Panda robot tasked with picking up a mug in a cluttered environment with obstacles not present during the diffusion model's training.

Key Results and Insights

JM2D demonstrated significant improvements over state-of-the-art baselines in both simulation and real-world settings. In the PointMaze task, JM2D achieved higher safe success rates and lower intervention rates compared to sequential and Gibbs sampling methods. In the complex D3IL-Avoiding task, it outperformed planners like DPCC and SafeDiffuser, which often became "trapped" by conservative approximations.

Figure 2: Qualitative comparison of sampling strategies. JM2D maintains the training data distribution (gray) while satisfying inference-time obstacles (red circles), unlike sequential or Gibbs sampling which often fall outside the valid data manifold.

A critical insight from the study is the importance of reciprocal information sharing. Unlike sequential methods where the filter merely rejects plans, JM2D allows the planner to anticipate the filter's limitations, leading to plans that are "safe by construction." Furthermore, the authors found that traditional "projection" methods often push samples off the learned data manifold, whereas JM2D keeps trajectories within the physically plausible distribution learned from data.

Limitations and Future Work

While effective, JM2D introduces computational overhead due to its reliance on Monte Carlo sampling and multiple denoising lookaheads per step. Additionally, the method's effectiveness depends on some overlap between the learned generative model's support and the feasible region defined by constraints. Future research will explore more efficient diffusion samplers, such as DPM++, and the application of this framework to align diverse robotic modules beyond safety filters.

Summary updated

BibTeX
@misc{jung2025joint,
  author = {Wonsuhk Jung and Utkarsh Aashu Mishra and Nadun Ranawaka Arachchige and Yongxin Chen and Danfei Xu and Shreyas Kousik},
  title = {{Joint Model-based Model-free Diffusion for Planning with Constraints}},
  year = {2025},
  eprint = {2509.08775},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.08775},
}
Figure