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

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

9 Oct 2023arXiv:2310.05333archive 2025-07-28

Longxiang He, Li Shen, Linrui Zhang, Junbo Tan, Xueqian Wang

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 (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 𝒪(1/ϵ) number of dual iterations, where ϵ 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.05333")

Code

Syntology Ran 9 of 12 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · honoured contract; 7 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

felix-thu/DiffCPS officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 9 ran; 2 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
7ran
3unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from felix-thu/DiffCPS. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Critic felix-thu/DiffCPS/agents/diffcps.py official repository ran fingerprinted Apache-2.0 (permissive) · 5bdc9227d5668ad4 · report
EMA felix-thu/DiffCPS/agents/diffcps.py official repository ran Apache-2.0 (permissive) · 5c992de440a54f2a · report
MLP felix-thu/DiffCPS/agents/diffcps.py official repository ran Apache-2.0 (permissive) · cb1c89fe9b73e635 · report
Progress felix-thu/DiffCPS/agents/diffcps.py official repository ran Apache-2.0 (permissive) · 33d1a23a0c89bc5b · report
Silent felix-thu/DiffCPS/agents/diffcps.py official repository ran Apache-2.0 (permissive) · 98e65aa869e5b6c6 · report
WeightedL1 felix-thu/DiffCPS/agents/diffcps.py official repository ran fingerprinted Apache-2.0 (permissive) · a7e6cca0e2c2e381 · report
WeightedL2 felix-thu/DiffCPS/agents/diffcps.py official repository ran fingerprinted Apache-2.0 (permissive) · 1b472abd57f98492 · report
linear_beta_schedule felix-thu/DiffCPS/agents/diffcps.py official repository ran · honoured contract Apache-2.0 (permissive) · 63d21c7afce1a9e5 · report
vp_beta_schedule felix-thu/DiffCPS/agents/diffcps.py official repository ran · honoured contract Apache-2.0 (permissive) · 47c7ce0ace6e7c47 · report
DiffCPS felix-thu/DiffCPS/agents/diffcps.py official repository unverified Apache-2.0 (permissive) · c560690a1bed4e05 · report
Diffusion felix-thu/DiffCPS/agents/diffcps.py official repository unverified Apache-2.0 (permissive) · ead7aeb95e87333f · report
WeightedLoss felix-thu/DiffCPS/agents/diffcps.py official repository unverified Apache-2.0 (permissive) · 4a042f8f348b0f44 · report

Tasks

D4RLOffline RLreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections