Efficient Diffusion Policies for Offline Reinforcement Learning

Bingyi Kang, Xiao Ma, Chao Du, Tianyu Pang, Shuicheng Yan
5/31/2023
cs.LGcs.AI

Official code: sail-sg/edp (113 stars, MIT, last commit 2023-10-31).

Abstract

Offline reinforcement learning (RL) aims to learn optimal policies from offline datasets, where the parameterization of policies is crucial but often overlooked. Recently, Diffsuion-QL significantly boosts the performance of offline RL by representing a policy with a diffusion model, whose success relies on a parametrized Markov Chain with hundreds of steps for sampling. However, Diffusion-QL suffers from two critical limitations. 1) It is computationally inefficient to forward and backward through the whole Markov chain during training. 2) It is incompatible with maximum likelihood-based RL algorithms (e.g., policy gradient methods) as the likelihood of diffusion models is intractable. Therefore, we propose efficient diffusion policy (EDP) to overcome these two challenges. EDP approximately constructs actions from corrupted ones at training to avoid running the sampling chain. We conduct extensive experiments on the D4RL benchmark. The results show that EDP can reduce the diffusion policy training time from 5 days to 5 hours on gym-locomotion tasks. Moreover, we show that EDP is compatible with various offline RL algorithms (TD3, CRR, and IQL) and achieves new state-of-the-art on D4RL by large margins over previous methods. Our code is available at https://github.com/sail-sg/edp.

View on arXivView PDF

Code Implementations(1)

sail-sg/edpOfficial100%
MIT

[NeurIPS 2023] Efficient Diffusion Policy

1138Python, MakefileMay 29, 20232 years agoMIT

Similar Papers

Cite this paper

@article{kang2023efficient,
  title  = {Efficient Diffusion Policies for Offline Reinforcement Learning},
  author = {Bingyi Kang and Xiao Ma and Chao Du and Tianyu Pang and Shuicheng Yan},
  year   = {2023},
  eprint = {2305.20081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.20081v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.20081.svg)](https://codeofpaper.com/paper/2305.20081)

Discussion