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

Refining Diffusion Planner for Reliable Behavior Synthesis by Automatic Detection of Infeasible Plans

Kyowoon Lee, Seongun Kim, Jaesik Choi

Abstract

Diffusion-based planners have emerged as a powerful paradigm for long-horizon reinforcement learning, treating trajectory synthesis as a generative modeling task. However, these models frequently produce "artifacts"—trajectories that appear plausible to the model but violate physical constraints or environmental boundaries. This paper introduces a novel framework for detecting and correcting these infeasible plans using the restoration gap, a metric that quantifies a plan's self-consistency under noise. By leveraging this gap through Restoration Gap Guidance (RGG) and attribution-based regularization, the proposed method significantly enhances the reliability and performance of diffusion planners across complex navigation and manipulation tasks.

Introduction

In recent years, diffusion models have transitioned from the domain of computer vision to robotics, where they are used to generate complex robot trajectories. In this context, "diffusion planning" frames the search for an optimal path to a goal as a denoising process. While effective for long-range tasks, these models are purely probabilistic and lack an inherent understanding of physical laws or spatial geometry.

Consequently, diffusion planners often suffer from a "hallucination" problem, generating plans that involve impossible transitions—such as teleportation or passing through solid obstacles. These artifacts pose significant risks in safety-critical applications. Traditional metrics for evaluating generative quality often fail to distinguish between creative, high-reward paths and physically broken ones. This research addresses this gap by teaching the model to "double-check" its own outputs for physical feasibility.

Methodology

The authors propose a two-step solution centered on the detection and subsequent refinement of generated plans.

1. The Restoration Gap

The core innovation of this work is the restoration gap. This metric is based on the intuition that a feasible plan (one that aligns with the training data distribution) should be easily "restored" by the diffusion model if it is slightly corrupted by noise. Conversely, an infeasible plan—being an outlier relative to the training data—will be significantly harder to recover. The gap is calculated as the $L_2$ distance between the original generated plan and its restored version after a noise-injection-and-denoising cycle.

2. Restoration Gap Guidance (RGG)

To utilize this metric during the planning phase, the authors train a separate neural network called the gap predictor. This network estimates the restoration gap for any given trajectory. During the diffusion process, the gradient of this predictor is used to nudge the sampling process away from regions with high predicted gaps. This ensures that the generated trajectories remain within the bounds of physical feasibility.

3. Attribution Map Regularization (RGG+)

To prevent the model from generating adversarial paths that might fool the gap predictor, the authors introduce Attribution Map Regularization (RGG+). This technique uses attribution maps (similar to Grad-CAM) to identify which specific transitions in a plan contribute most to the gap score. By penalizing plans where the gap prediction is overly sensitive to a few transitions, the model is forced to produce trajectories that are globally consistent and smooth.

Experimental Evaluation

The effectiveness of RGG and RGG+ was evaluated across three diverse benchmarks:

  • Maze2D (U-Maze, Medium, Large): Navigation tasks requiring the model to circumvent walls to reach a goal.
  • D4RL Locomotion: Standard robotic control tasks including HalfCheetah, Hopper, and Walker2d.
  • Kuka Block Stacking: A high-dimensional robotic arm task involving the sequential stacking of blocks in specific orders.

Key Insights

  • Restorability as a Proxy for Feasibility: The research demonstrates that a diffusion model's own score function can be used to validate its outputs. This self-consistency check effectively identifies "artifacts" that standard discriminators might miss.
  • Explainable Infeasibility: Because the gap predictor utilizes attribution maps, it provides a level of explainability. In maze environments, the maps highlight the exact moment a plan attempts to cross a wall, acting as a diagnostic tool for plan failure.
  • Global Consistency: Unlike local discriminators that check if individual steps look "real," the restoration gap captures the global structure of the trajectory, making it superior at catching long-range physical inconsistencies.

Results

The RGG+ framework consistently outperformed the baseline "Diffuser" model and other state-of-the-art offline reinforcement learning methods like CQL and IQL.

Environment Diffuser (Base) RGG+ (Proposed)
Maze2D-Large 123.5 143.9

In the challenging Maze2D-Large environment, RGG+ achieved a score of 143.9, a significant improvement over the original Diffuser's 123.5. Furthermore, the restoration gap proved to be a more reliable indicator of plan failure than existing generative metrics, clearly separating valid trajectories from artifacts.

Conclusion and Future Work

This paper introduces a robust method for improving the reliability of diffusion-based planners. By using the restoration gap to guide the generative process, the authors provide a way to synthesize behaviors that are both high-performing and physically consistent.

While the results are promising, the authors note certain limitations. Training the gap predictor is computationally intensive, requiring 30-50 hours on high-end hardware. Additionally, the method's performance is dependent on the quality of the offline dataset used for training. Future research will focus on scaling this approach to even higher-dimensional, real-world scenarios such as multi-robot coordination and dynamic environments.

Summary updated

BibTeX
@inproceedings{lee2023refining,
  author = {Kyowoon Lee and Seongun Kim and Jaesik Choi},
  title = {{Refining Diffusion Planner for Reliable Behavior Synthesis by Automatic Detection of Infeasible Plans}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Q5tuGgqJwt},
}
Figure