Adaptive Online Replanning with Diffusion Models

Siyuan Zhou, Yilun Du, Shun Zhang, Mengdi Xu, Yikang Shen, Wei Xiao, Dit-Yan Yeung, Chuang Gan

Introduction

Diffusion models have emerged as powerful tools for generating complex trajectories in robotics. However, static plans often fail in dynamic or stochastic environments where execution errors accumulate or obstacles shift. In "Adaptive Online Replanning with Diffusion Models," researchers from HKUST and MIT propose RDM, a framework that leverages the internal likelihood estimates of diffusion models to adaptively trigger replanning.

The Challenge of Static Planning

Data-driven planning typically involves generating a full trajectory from start to goal. In practice, two primary issues arise:

  1. Error Accumulation: Small deviations from the plan can lead to catastrophic failure over time as the agent drifts from its intended path.
  2. Environmental Stochasticity: Unexpected changes, such as a blocked path or a moving obstacle, render the original plan unfeasible.

While replanning at every step can mitigate these issues, it is computationally expensive and can cause "plan switching" instability, where the agent oscillates between competing paths. RDM seeks an optimal balance by replanning only when necessary.

Methodology: The RDM Framework

RDM introduces a two-pronged approach to online adaptation, focusing on both the timing and the method of replanning.

1. When to Replan: Likelihood as a Trigger

Instead of fixed-interval replanning, RDM uses the diffusion model's internal likelihood estimates. Since the model is trained on successful trajectories, it inherently "knows" the feasibility of a path. By measuring the KL divergence between the diffusion posterior and the denoising step, RDM identifies when a plan's likelihood drops below a critical threshold, signaling that the current trajectory is no longer viable.

2. How to Replan: Multi-Tier Strategy

When a replan is triggered, RDM employs one of two strategies based on the severity of the failure:

  • Replan with Future (Fast Replanning): For minor deviations, the model adds a small amount of noise to the existing trajectory and performs a few denoising steps. This refinement keeps the plan consistent while adjusting for errors.
  • Replan from Scratch (Complete Replanning): In cases of catastrophic failure where the current path is no longer viable, the model generates an entirely new trajectory from Gaussian noise.
Comparison of initial planning, fast replanning (refinement), and complete replanning in a maze environment.

Experimental Evaluation

The researchers evaluated RDM across three diverse domains to test its robustness:

  • Maze2D & Multi2D: Long-horizon navigation in complex mazes requiring consistent pathfinding.
  • Stochastic D4RL Locomotion: Standard benchmarks like Hopper and Walker2d modified with environmental noise to test robustness against physics errors.
  • RLBench: Vision-based robotic manipulation tasks (e.g., opening fridges) using a 7-DoF arm, testing high-dimensional control.

Key Results and Insights

RDM demonstrates significant performance improvements over traditional diffusion-based planners. In Maze2D, RDM outperformed the "Diffuser" baseline by 38% overall, with a 63% gain in the most challenging "Large" maze setting. In robotic manipulation (RLBench), RDM achieved a 77.3% success rate, significantly higher than Decision Diffuser (61.2%) and IQL (17.0%).

Performance comparison of RDM against Single-step and Diffuser baselines across three benchmark domains.

The results highlight that likelihood is an effective "free" signal for failure detection, requiring no additional training. Furthermore, the "Replan with Future" strategy ensures temporal consistency, avoiding the jitter common in frequent replanning methods.

Conclusion

RDM provides a robust and efficient framework for online adaptation in diffusion-based planning. By using internal model signals to decide when to replan, it achieves superior performance in stochastic and long-horizon tasks while maintaining computational efficiency. Future work will explore scaling these methods to high-stakes real-world applications like autonomous driving and home service robotics.

Summary updated

BibTeX
@inproceedings{zhou2023adaptive,
  author = {Siyuan Zhou and Yilun Du and Shun Zhang and Mengdi Xu and Yikang Shen and Wei Xiao and Dit-Yan Yeung and Chuang Gan},
  title = {{Adaptive Online Replanning with Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=jhs8F63xI6},
}
Figure