Diffusion Models for Reinforcement Learning: A Survey

Zhengbang Zhu, Hanye Zhao, Haoran He, Yichao Zhong, Shenyu Zhang, Haoquan Guo, Tingting Chen, Weinan Zhang

TL;DR

This survey provides a comprehensive overview of how diffusion models are being integrated into reinforcement learning (RL) to overcome long-standing bottlenecks. By leveraging their exceptional generative quality and training stability, researchers are replacing traditional Gaussian policies, mitigating compounding errors in planning, and addressing data scarcity through high-fidelity data synthesis.

What Problem Does This Paper Address?

While Reinforcement Learning (RL) has achieved notable success, several foundational challenges persist across its different paradigms:

  1. Restricted Expressiveness in Offline RL: Traditional algorithms often rely on unimodal Gaussian distributions to model policies. However, offline datasets collected from various sources are frequently complex and multimodal; simple Gaussian models lack the expressiveness to fit them accurately.
  2. Data Scarcity in Experience Replay: Both online and offline RL suffer when state-action spaces are high-dimensional or data coverage is poor. Prior data augmentation techniques often lack the fidelity required for complex environments.
  3. Compounding Errors in Model-Based RL: Traditional model-based planners predict future states autoregressively (step-by-step). Small single-step errors accumulate rapidly over long horizons, causing the planned trajectories to wildly deviate from reality.
  4. Poor Multitask Generalization: Standard RL agents struggle to generalize to new tasks or environments without expensive retraining from scratch.

This paper surveys how the flexible distribution-modeling capabilities of diffusion models are being deployed to solve these exact issues.

Methods

The paper establishes a clear taxonomy based on the distinct roles diffusion models play within the RL loop:

Figure 1: An illustration of how diffusion models play a different role in the classic Agent-Environment-Buffer cycle compared to previous solutions. (1) When used as a planner, diffusion models optimize the whole trajectory at each denoising step, whereas the autoregressive models generate the next-step output only based on previously planned partial subsequences. (2) When used as a policy, diffusion models can model arbitrary action distributions, whereas Gaussian policies can only fit the possibly diversified dataset distribution with unimodal distributions. (3) When used as a data synthesizer, diffusion models augment the dataset with generated data sampled from the learned dataset distribution, whereas augmentation with random perturbations might generate samples that deviate from data samples.

1. Diffusion Models as Planners

Instead of predicting the next state autoregressively, diffusion planners generate entire multi-step trajectory clips simultaneously. By modeling the joint distribution of sequence horizons, they maintain temporal consistency and bypass the compounding error problem.

2. Diffusion Models as Policies

In model-free settings, diffusion models replace standard Gaussian policy parameterizations. By treating the action generation as a denoising process conditioned on the current state, the policy can represent highly complex, multimodal action distributions. To ensure the policy favors high-reward actions, techniques like Diffusion-QL inject Q-value maximization directly into the training loss or use advantage-weighted regression.

3. Diffusion Models as Data Synthesizers

Diffusion models can act as powerful data augmenters by learning the underlying distribution of an entire offline dataset or replay buffer. They generate diverse, physically consistent synthetic transitions to expand the training data pool, which is particularly useful in data-scarce or multitask settings.

Figure 2: Different roles of diffusion models in RL. (a) Diffusion models as the planner. The sampling target is a part of trajectories whose components may vary from specific tasks. (b) Diffusion models as the policy. The sampling target is the action conditioned on the state, usually guided by the Q-function via policy gradient-style guidance or directly subtracting it from the training objective. (c) Diffusion models as the data synthesizer. The sampling target is also the trajectory, and both real and synthetic data are used for downstream policy improvement. For better visualizations, we omit the arrows for N denoising iterations in (c) and only show generated synthetic data from randomly sampled noise. Note that there are other roles that are less explored, and we introduce them in Section 4.4.

Key Enabling Techniques

  • Guided Sampling: Crucial for directing diffusion generation toward high-reward trajectories. This is achieved via classifier guidance (using an external reward or Q-function gradient to bias the denoising steps) or classifier-free guidance (jointly training conditional and unconditional models).
  • Fast Sampling Solvers: Because iterative denoising is slow, RL applications heavily leverage advanced ODE solvers (like DPM-solver) or truncated diffusion processes to reduce sampling down to ~15 steps or even a single step for real-time deployment.

Datasets

As a survey paper, it does not introduce new benchmarks but reviews literature evaluated across standard RL and robotics domains, including:

  • Offline RL Benchmarks: Datasets containing mixed-quality trajectories generated by various behavior policies.
  • Multitask & Robotic Datasets: Environments requiring language-conditioned manipulation, goal-directed navigation, and pixel-based control (RGB video datasets).

Key Insights and Ideas

  • Trajectory-Level Operations: The shift from step-by-step autoregressive modeling to trajectory-level generation is a paradigm shift for model-based RL. Operating on the entire horizon at once inherently enforces global consistency.
  • Decoupling Behavior Learning from Evaluation: Using diffusion models allows algorithms to perfectly clone behavior distributions first, and then layer optimization (like Q-guidance) on top. This prevents the extrapolation errors common in offline Q-learning.
  • Implicit Knowledge Sharing: In multitask offline RL, training a single diffusion synthesizer on mixed-quality data from multiple tasks enables implicit knowledge sharing, allowing the model to effectively compose new skills for unseen tasks.

Key Results

The survey highlights several qualitative and quantitative breakthroughs across the reviewed literature:

  • Expressiveness: Diffusion policies perfectly fit highly complex, multimodal datasets where distance-based policy regularization approaches fail.
  • Imitation Learning: In robotic manipulation, diffusion policies excel at predicting closed-loop action sequences with high temporal consistency, outperforming traditional GAN or Transformer baselines.
  • Augmentation Fidelity: Frameworks like SynthER demonstrate that the diversity and accuracy of data generated via diffusion are significantly higher than prior data augmentation methods, translating directly to downstream policy improvements.

Limitations and Future Work

Despite their promise, the authors note several open challenges:

  • Inference Latency: Even with fast sampling solvers, the iterative nature of diffusion models introduces computational overhead that can hinder high-frequency, real-time online control.
  • Instability in Online RL: Training diffusion models online remains difficult because value estimations are noisy and non-stationary, changing constantly as the policy updates.

Promising Future Directions

  1. Generative Simulation: Moving beyond augmenting the agent or buffer to using diffusion models to generate entire environments, including diverse dynamics functions, reward functions, and multi-agent opponents.
  2. Safety Constraints: Utilizing classifier-guided sampling to treat safety constraints as conditioning signals, allowing models to adapt to new safety thresholds dynamically without retraining.
  3. Retrieval-Augmented Generation: Fetching relevant states from an external dataset to guide the diffusion model when the agent encounters rare or "long-tail" out-of-distribution states.

Summary updated

BibTeX
@misc{zhu2023diffusion,
  author = {Zhengbang Zhu and Hanye Zhao and Haoran He and Yichao Zhong and Shenyu Zhang and Haoquan Guo and Tingting Chen and Weinan Zhang},
  title = {{Diffusion Models for Reinforcement Learning: A Survey}},
  year = {2023},
  eprint = {2311.01223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.01223},
}
Figure