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

Cold Diffusion on the Replay Buffer: Learning to Plan from Known Good States

Zidan Wang, Takeru Oba, Takuma Yoneda, Rui Shen, Matthew Walter, Bradly C. Stadie

Abstract

Learning from demonstrations (LfD) has successfully trained robots to exhibit remarkable generalization capabilities. However, many powerful imitation techniques do not prioritize the feasibility of the robot behaviors they generate. In this work, we explore the feasibility of plans produced by LfD. As in prior work, we employ a temporal diffusion model with fixed start and goal states to facilitate imitation through in-painting. Unlike previous studies, we apply cold diffusion to ensure the optimization process is directed through the agent's replay buffer of previously visited states. This routing approach increases the likelihood that the final trajectories will predominantly occupy the feasible region of the robot's state space. We test this method in simulated robotic environments with obstacles and observe a significant improvement in the agent's ability to avoid these obstacles during planning.

Introduction

Standard diffusion models for robot planning often struggle with "faulty generalization." When a robot is deployed in a slightly novel configuration, typical imitation learning models might suggest paths that violate physical constraints, such as moving through walls. Recent "Diffusion" models, like the Diffuser algorithm, attempt to solve planning by denoising a random path into a valid trajectory. However, these models usually start with a prior of d-dimensional Gaussian noise. In environments with complex obstacles, starting from a completely random point often leads the model to hallucinate intermediate states that are physically impossible. This research introduces Cold Diffusion on the Replay Buffer (CDRB) to ensure generative models stay within the "feasible" regions of a robot's state space.

Methodology: Cold Diffusion on the Replay Buffer

The core innovation of CDRB is the replacement of standard Gaussian noise with a "degradation" process grounded in the agent's actual experience.

The Forward and Backward Processes

  1. Forward Process (Degradation): Instead of adding Gaussian noise, successful trajectories are iteratively mapped to randomly sampled points from the agent's replay buffer—a collection of previously visited, "known good" states. This ensures that even at high "noise" levels, the state representation remains physically grounded.
  2. Backward Process (Restoration): A neural network is trained as a restoration operator to reverse this mapping. It learns to transform a set of points from the replay buffer back into a coherent, feasible trajectory.
Comparison of Gaussian and Cold Diffusion processes. Cold diffusion (bottom) utilizes points from the replay buffer, ensuring the restoration process stays within feasible regions.

Implementation Details

To handle large replay buffers, the authors utilize k-means clustering to reduce the buffer to representative centroids, maintaining performance while boosting computational efficiency. At test time, the robot "pins" its current location and goal, using the restoration operator to "in-paint" the intermediate path.

Experimental Setup

The researchers evaluated CDRB across eight simulated robotic environments in MuJoCo:

  • Maze & Maze Tight: Navigation through narrow openings.
  • Fetch Robot Tasks: Reach, Push, and Pick & Place, including "Obstacle" variants with tall barriers.

Models were trained on expert demonstrations generated by RL agents like SAC or HER.

Results

CDRB consistently outperformed Gaussian-based baselines, particularly in environments with obstacles. In the Maze Tight environment, CDRB achieved a 98% success rate, significantly outperforming Diffusion-QL (84%) and standard MLP (38%). In the Pick & Place Obstacle task, CDRB reached 70.8%, nearly doubling the performance of the Gaussian-based Diffusion-QL (24.1%).

Qualitatively, CDRB produces significantly smoother trajectories. While Gaussian-based models often create "jittery" plans or paths that cut through walls, CDRB-generated paths naturally curve around obstacles, respecting environmental constraints learned from the buffer.

Final planned trajectories. CDRB (bottom) produces smoother paths that respect environmental obstacles compared to standard Gaussian diffusion (top).

Discussion and Conclusion

CDRB demonstrates that grounding generative models in actual experience is key to viable diffusion-based planning. By using the replay buffer as a feasibility prior, the model learns the "shape" of the environment's free space.

However, limitations remain. The algorithm is sensitive to the number of reverse diffusion steps and can struggle in "bug trap" scenarios where visitation density is low. Future work will focus on improving robustness in low-density regions and refining action generation for direct motor control.

Summary updated

BibTeX
@inproceedings{wang2023cold,
  author = {Zidan Wang and Takeru Oba and Takuma Yoneda and Rui Shen and Matthew Walter and Bradly C. Stadie},
  title = {{Cold Diffusion on the Replay Buffer: Learning to Plan from Known Good States}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=AyRr_i028w},
}
Figure