English

DiffCPS: Diffusion Model based Constrained Policy Search for Offline Reinforcement Learning

Machine Learning 2024-02-29 v2

Abstract

Constrained policy search (CPS) is a fundamental problem in offline reinforcement learning, which is generally solved by advantage weighted regression (AWR). However, previous methods may still encounter out-of-distribution actions due to the limited expressivity of Gaussian-based policies. On the other hand, directly applying the state-of-the-art models with distribution expression capabilities (i.e., diffusion models) in the AWR framework is intractable since AWR requires exact policy probability densities, which is intractable in diffusion models. In this paper, we propose a novel approach, Diffusion-based Constrained Policy Search\textbf{Diffusion-based Constrained Policy Search} (dubbed DiffCPS), which tackles the diffusion-based constrained policy search with the primal-dual method. The theoretical analysis reveals that strong duality holds for diffusion-based CPS problems, and upon introducing parameter approximation, an approximated solution can be obtained after O(1/ϵ)\mathcal{O}(1/\epsilon) number of dual iterations, where ϵ\epsilon denotes the representation ability of the parametrized policy. Extensive experimental results based on the D4RL benchmark demonstrate the efficacy of our approach. We empirically show that DiffCPS achieves better or at least competitive performance compared to traditional AWR-based baselines as well as recent diffusion-based offline RL methods. The code is now available at https://github.com/felix-thu/DiffCPS.

Keywords

Cite

@article{arxiv.2310.05333,
  title  = {DiffCPS: Diffusion Model based Constrained Policy Search for Offline Reinforcement Learning},
  author = {Longxiang He and Li Shen and Linrui Zhang and Junbo Tan and Xueqian Wang},
  journal= {arXiv preprint arXiv:2310.05333},
  year   = {2024}
}

Comments

22 pages, 9 figures, 6 tables. Submitted to ICML 2024. arXiv admin note: text overlap with arXiv:1910.13393 by other authors

R2 v1 2026-06-28T12:44:07.825Z