Efficient Diffusion Policies for Offline Reinforcement Learning

Bingyi Kang, Xiao Ma, Chao Du, Tianyu Pang, Shuicheng Yan · DOI

Abstract

Diffusion models have recently emerged as a powerful tool for representing complex, multi-modal policy distributions in offline reinforcement learning (RL). However, their practical application is often hindered by extreme computational costs during training and inference. We introduce Efficient Diffusion Policy (EDP), a framework that reduces training time by 25x—from 5 days to just 5 hours—while setting new state-of-the-art performance records on the D4RL benchmark. By decoupling the training process from the full denoising chain and introducing a likelihood generalization method, EDP makes diffusion-based policies compatible with a wide range of offline RL algorithms, including IQL and CRR.

1. Introduction

Offline Reinforcement Learning (RL) focuses on learning optimal behaviors from fixed, pre-collected datasets without environment interaction. A central challenge in this domain is distributional shift: when an agent selects an action outside the training data distribution, the resulting value estimates often become unreliable.

Traditional offline RL methods typically utilize simple Gaussian distributions to model policies. While computationally efficient, these models struggle to capture the complex, multi-modal nature of expert or diverse datasets. Diffusion models offer a solution by learning to denoise a random signal into a valid action, but they are notoriously slow. Standard Denoising Diffusion Probabilistic Models (DDPM) require hundreds or thousands of sequential steps to generate a single action, making them computationally prohibitive for many research and production environments. This paper presents EDP, a method to bridge the gap between the expressive power of diffusion and the efficiency required for practical RL.

2. Methodology

EDP introduces four primary innovations to optimize the training and sampling of diffusion policies:

2.1 Action Approximation

In standard diffusion training, backpropagating through a full 1,000-step denoising chain is computationally expensive. EDP utilizes an "action approximation" trick: during training, the model takes a ground-truth action from the dataset, adds a specific level of noise, and learns to predict the original action in a single step. This allows the model to learn the underlying data distribution via standard backpropagation without simulating the entire Markov chain, drastically reducing the training overhead.

2.2 DPM-Solver Integration

To accelerate inference, EDP replaces the standard DDPM sampler with a DPM-Solver. This ODE-based sampler allows the model to generate high-quality actions in approximately 15 steps, compared to the 100–1,000 steps required by traditional methods, without sacrificing the quality of the generated actions.

2.3 Likelihood Generalization

Many popular offline RL algorithms, such as Implicit Q-Learning (IQL) and Critic Regularized Regression (CRR), are "likelihood-based," meaning they require the probability density of an action to update the policy. Diffusion models do not naturally provide this. EDP overcomes this by approximating the log-likelihood using the Evidence Lower Bound (ELBO) or by constructing a Gaussian distribution centered on the approximated action, allowing diffusion policies to be used as a "plug-and-play" replacement for Gaussian policies in almost any RL framework.

2.4 Energy-based Action Selection (EAS)

To further refine performance, EDP employs Energy-based Action Selection. The agent generates multiple candidate actions from the diffusion model and uses the learned Q-function (the critic) to select the action with the highest predicted value. This step helps filter out potential noise inherent in the diffusion sampling process.

3. Experimental Evaluation

We evaluated EDP on the D4RL benchmark, the standard for offline RL research, across four domains:

  • Gym-locomotion: Standard robotic tasks (HalfCheetah, Hopper, Walker2d).
  • AntMaze: Complex navigation with a quadruped robot.
  • Adroit: High-dimensional robotic hand manipulation.
  • Kitchen: Sequential task completion in a simulated environment.

3.1 Efficiency and Performance

EDP demonstrates a massive reduction in training time. On gym-locomotion tasks, training time dropped from 120 hours (5 days) to 5 hours, representing a 25x speedup over previous state-of-the-art methods like Diffusion-QL.

Despite the increased speed, EDP achieved superior results. In the challenging AntMaze domain, EDP paired with IQL achieved an average score of 73.4, significantly outperforming the previous baseline of 63.0. Similar gains were observed in the Adroit manipulation tasks, confirming that EDP can handle high-dimensional action spaces more effectively than previous methods.

4. Discussion and Conclusion

The success of EDP suggests that the full denoising chain is not necessary for effective policy training; a single-step approximation provides sufficient signal for the model to learn complex distributions. Furthermore, by enabling diffusion policies to work with algorithms like IQL and CRR, EDP proves that diffusion is a versatile policy representation rather than a niche tool tied to specific algorithms.

While EDP significantly reduces the computational barrier to using diffusion in RL, some limitations remain. Inference latency, though improved by DPM-Solver, is still higher than that of simple feed-forward networks. Additionally, the Energy-based Action Selection (EAS) introduces a trade-off between performance and real-time execution speed. Future work will focus on further compressing these models for deployment on edge hardware and exploring the safety implications of highly efficient autonomous systems.

Summary updated

BibTeX
@inproceedings{kang2023efficient,
  author = {Bingyi Kang and Xiao Ma and Chao Du and Tianyu Pang and Shuicheng Yan},
  title = {{Efficient Diffusion Policies for Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=0P6uJtndWu},
}
Figure