Papers › Diffusion Policies creating a Trust Region for Offline Reinforcement Learning

Diffusion Policies creating a Trust Region for Offline Reinforcement Learning

30 May 2024arXiv:2405.19690archive 2025-07-28

Tianyu Chen, Zhendong Wang, Mingyuan Zhou

Offline reinforcement learning (RL) leverages pre-collected datasets to train optimal policies. Diffusion Q-Learning (DQL), introducing diffusion models as a powerful and expressive policy class, significantly boosts the performance of offline RL. However, its reliance on iterative denoising sampling to generate actions slows down both training and inference. While several recent attempts have tried to accelerate diffusion-QL, the improvement in training and/or inference speed often results in degraded performance. In this paper, we introduce a dual policy approach, Diffusion Trusted Q-Learning (DTQL), which comprises a diffusion policy for pure behavior cloning and a practical one-step policy. We bridge the two polices by a newly introduced diffusion trust region loss. The diffusion policy maintains expressiveness, while the trust region loss directs the one-step policy to explore freely and seek modes within the region defined by the diffusion policy. DTQL eliminates the need for iterative denoising sampling during both training and inference, making it remarkably computationally efficient. We evaluate its effectiveness and algorithmic characteristics against popular Kullback--Leibler divergence-based distillation methods in 2D bandit scenarios and gym tasks. We then show that DTQL could not only outperform other methods on the majority of the D4RL benchmark tasks but also demonstrate efficiency in training and inference speeds. The PyTorch implementation is available at https://github.com/TianyuCodings/Diffusion_Trusted_Q_Learning.

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

Code

Syntology Ran 14 of 20 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 8 ran with no contract checked.

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

tianyucodings/diffusion_trusted_q_learning officialmentioned in papermentioned 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

20 samples harvested; 14 ran; 0 honoured the contract we drafted; 6 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.

3ran · our draft was wrong
3ran · fixture could not drive it
8ran
6unverified

Licence: 20 of the 20 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 TianyuCodings/Diffusion_Trusted_Q_Learning. “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.

append_dims TianyuCodings/Diffusion_Trusted_Q_Learning/diffusion/utils.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 30befb7e4327e615 · report
Critic tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 59d5a0d1c043921d · report
DiagGaussianActorTanhAction tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 2b19235526d53532 · report
MLPNetwork tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran · metamorphic tier: invariant no licence file found · pointer only · b4d20c11cf5cfc46 · report
ScoreNetwork tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran no licence file found · pointer only · 5b576f691b552a0e · report
SinusoidalPosEmb tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 23a2a4fd719c5e35 · report
append_zero TianyuCodings/Diffusion_Trusted_Q_Learning/diffusion/utils.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 43f2167b019a5fb7 · report
get_dmd_loss TianyuCodings/Diffusion_Trusted_Q_Learning/agents/helpers.py official repository ran no licence file found · pointer only · fceadce152b8ff0e · report
get_dmd_loss TianyuCodings/Diffusion_Trusted_Q_Learning/toy_tasks/toy_main.py official repository ran no licence file found · pointer only · c99851217830b079 · report
iql_normalize TianyuCodings/Diffusion_Trusted_Q_Learning/utils/data_sampler.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · d9e80fbdea32802d · report
mlp TianyuCodings/Diffusion_Trusted_Q_Learning/agents/model.py official repository ran · our draft was wrong no licence file found · pointer only · bdef24507a4ccfa7 · report
mlp tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository ran · our draft was wrong no licence file found · pointer only · db00dda8b96201d3 · report
q_v_critic_loss TianyuCodings/Diffusion_Trusted_Q_Learning/toy_tasks/toy_main.py official repository ran no licence file found · pointer only · c7662f1e7a145184 · report
rand_log_normal TianyuCodings/Diffusion_Trusted_Q_Learning/diffusion/utils.py official repository ran · our draft was wrong no licence file found · pointer only · ec8364ee198f15b3 · report
DTQL tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository unverified no licence file found · pointer only · 454a6e7377da6557 · report
DiffusionModel tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository unverified no licence file found · pointer only · e9334a508a34ace3 · report
create_exp_name TianyuCodings/Diffusion_Trusted_Q_Learning/utils/logger.py official repository unverified no licence file found · pointer only · 5e687d63bb9beb4a · report
dict_to_safe_json TianyuCodings/Diffusion_Trusted_Q_Learning/utils/logger.py official repository unverified no licence file found · pointer only · 41279dfcda8b39e4 · report
safe_json TianyuCodings/Diffusion_Trusted_Q_Learning/utils/logger.py official repository unverified no licence file found · pointer only · 07afff96928bd142 · report
weight_init tianyucodings/diffusion_trusted_q_learning/agents/dtql.py official repository unverified no licence file found · pointer only · e16f745c22233bb1 · report

Tasks

D4RLDenoisingOffline RLQ-LearningReinforcement LearningReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionQ-LearningSPEED

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