Papers › Diffusion Policies as an Expressive Policy Class for Offline Reinforcement Learning

Diffusion Policies as an Expressive Policy Class for Offline Reinforcement Learning

12 Aug 2022arXiv:2208.06193archive 2025-07-28

Zhendong Wang, Jonathan J Hunt, Mingyuan Zhou

Offline reinforcement learning (RL), which aims to learn an optimal policy using a previously collected static dataset, is an important paradigm of RL. Standard RL methods often perform poorly in this regime due to the function approximation errors on out-of-distribution actions. While a variety of regularization methods have been proposed to mitigate this issue, they are often constrained by policy classes with limited expressiveness that can lead to highly suboptimal solutions. In this paper, we propose representing the policy as a diffusion model, a recent class of highly-expressive deep generative models. We introduce Diffusion Q-learning (Diffusion-QL) that utilizes a conditional diffusion model to represent the policy. In our approach, we learn an action-value function and we add a term maximizing action-values into the training loss of the conditional diffusion model, which results in a loss that seeks optimal actions that are near the behavior policy. We show the expressiveness of the diffusion model-based policy, and the coupling of the behavior cloning and policy improvement under the diffusion model both contribute to the outstanding performance of Diffusion-QL. We illustrate the superiority of our method compared to prior works in a simple 2D bandit example with a multimodal behavior policy. We then show that our method can achieve state-of-the-art performance on the majority of the D4RL benchmark tasks.

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="2208.06193")

Code

Syntology Ran 11 of 18 code samples harvested from 3 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 10 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 1 ran; community (archive-listed): 15 samples from 2 repositories, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhendong-wang/diffusion-policies-for-offline-rl officialmentioned in papermentioned on GitHubpytorch report
zzmtsvv/rl_task mentioned on GitHubpytorch 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

18 samples harvested; 11 ran; 1 honoured the contract we drafted; 7 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.

1ran · honoured contract
10ran
7unverified

Licence: 10 of the 18 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 3 repositories linked to this paper, official or community; each sample names its own and says which. “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.

EMA zhendong-wang/diffusion-policies-for-offline-rl/agents/ql_diffusion.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · cb039993bd16f94c · report
Diffusion zhendong-wang/diffusion-policies-for-offline-rl/agents/ql_diffusion.py official repository unverified Apache-2.0 (permissive) · a8e86dce13aa99a1 · report
Diffusion_QL zhendong-wang/diffusion-policies-for-offline-rl/agents/ql_diffusion.py official repository unverified Apache-2.0 (permissive) · 56d3224268de9651 · report
DDPM zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 08e51c2d2c41c81f · report
EMA quantumiracle/consistency_model_for_reinforcement_learning/agents/ql_diffusion.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 19732228c46fa1ba · report
EnsembledCritic zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran no licence file found · pointer only · d6fcbdadf8cb4e3f · report
EnsembledLinear zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran no licence file found · pointer only · ac150cae89f0e687 · report
MLP zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 911033f1c5373d15 · report
MLP quantumiracle/consistency_model_for_reinforcement_learning/agents/ql_diffusion.py community (archive-listed) ran · metamorphic tier: invariant Apache-2.0 (permissive) · 6a06af32e9295cda · report
PositionalEncoding zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran no licence file found · pointer only · ef90a18431b489f9 · report
WeightedL2 zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 480e0c2c2219727e · report
dql_config zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran no licence file found · pointer only · 9cbe616246577b15 · report
vp_beta_schedule zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 25a711883c5a59fe · report
Diffusion quantumiracle/consistency_model_for_reinforcement_learning/agents/ql_diffusion.py community (archive-listed) unverified Apache-2.0 (permissive) · 49c674376f6d739f · report
DiffusionQL zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) unverified no licence file found · pointer only · 8136ea50760183ad · report
Diffusion_QL quantumiracle/consistency_model_for_reinforcement_learning/agents/ql_diffusion.py community (archive-listed) unverified Apache-2.0 (permissive) · f3e8db467ebcdc65 · report
WeightedHuber quantumiracle/consistency_model_for_reinforcement_learning/agents/ql_diffusion.py community (archive-listed) unverified Apache-2.0 (permissive) · a193aa42d45269f9 · report
extract zzmtsvv/rl_task/diffusion_ql/dql.py community (archive-listed) unverified no licence file found · pointer only · ba56ef20ff6743ce · report

Tasks

D4RLOffline RLQ-LearningReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionQ-Learning

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