Papers › Diffusion Model is an Effective Planner and Data Synthesizer for Multi-Task...

Diffusion Model is an Effective Planner and Data Synthesizer for Multi-Task Reinforcement Learning

29 May 2023NeurIPS 2023 11arXiv:2305.18459archive 2025-07-28

Haoran He, Chenjia Bai, Kang Xu, Zhuoran Yang, Weinan Zhang, Dong Wang, Bin Zhao, Xuelong Li

Diffusion models have demonstrated highly-expressive generative capabilities in vision and NLP. Recent studies in reinforcement learning (RL) have shown that diffusion models are also powerful in modeling complex policies or trajectories in offline datasets. However, these works have been limited to single-task settings where a generalist agent capable of addressing multi-task predicaments is absent. In this paper, we aim to investigate the effectiveness of a single diffusion model in modeling large-scale multi-task offline data, which can be challenging due to diverse and multimodal data distribution. Specifically, we propose Multi-Task Diffusion Model (\textsc{MTDiff}), a diffusion-based method that incorporates Transformer backbones and prompt learning for generative planning and data synthesis in multi-task offline settings. \textsc{MTDiff} leverages vast amounts of knowledge available in multi-task data and performs implicit knowledge sharing among tasks. For generative planning, we find \textsc{MTDiff} outperforms state-of-the-art algorithms across 50 tasks on Meta-World and 8 maps on Maze2D. For data synthesis, \textsc{MTDiff} generates high-quality data for testing tasks given a single demonstration as a prompt, which enhances the low-quality datasets for even unseen tasks.

PaperPDFConference PDFCodeCode 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="2305.18459")

Code

Syntology Ran 11 of 30 code samples harvested from 2 repositories linked to this paper; 19 have no recorded run. Of those that ran: 5 ran · honoured contract; 1 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 7 ran; found in paper text by Syntology: 8 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tinnerhrhe/MTDiff officialmentioned on GitHubjaxMIT 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

30 samples harvested; 11 ran; 5 honoured the contract we drafted; 19 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.

5ran · honoured contract
1ran · our draft was wrong
5ran
19unverified

Licence: 0 of the 30 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 2 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.

cosine_beta_schedule tinnerhrhe/MTDiff/diffuser/models/helpers.py official repository ran · honoured contract MIT (permissive) · b6113e0f43155a33 · report
default_sample_fn tinnerhrhe/MTDiff/diffuser/models/diffusion.py official repository ran · our draft was wrong MIT (permissive) · 8d04d499d75080d0 · report
load_environment tinnerhrhe/MTDiff/diffuser/datasets/d4rl.py official repository ran MIT (permissive) · 69e493e37778664c · report
sort_by_values tinnerhrhe/MTDiff/diffuser/models/diffusion.py official repository ran · honoured contract MIT (permissive) · c409be426eec3eec · report
to_np tinnerhrhe/MTDiff/diffuser/utils/arrays.py official repository ran · honoured contract MIT (permissive) · 0e8d8251e66ab160 · report
to_torch tinnerhrhe/MTDiff/diffuser/utils/arrays.py official repository ran MIT (permissive) · 134173215340e0d1 · report
vp_beta_schedule tinnerhrhe/MTDiff/diffuser/models/helpers.py official repository ran · honoured contract MIT (permissive) · 47c7ce0ace6e7c47 · report
add_deltas tinnerhrhe/MTDiff/diffuser/datasets/preprocessing.py official repository unverified MIT (permissive) · 5347209028588046 · report
atleast_2d tinnerhrhe/MTDiff/diffuser/datasets/buffer.py official repository unverified MIT (permissive) · 785632d29b87adad · report
atleast_2d tinnerhrhe/MTDiff/diffuser/datasets/normalization.py official repository unverified MIT (permissive) · 3ca83b3e96824f00 · report
empirical_cdf tinnerhrhe/MTDiff/diffuser/datasets/normalization.py official repository unverified MIT (permissive) · 2fd70118265255f8 · report
extract tinnerhrhe/MTDiff/diffuser/models/helpers.py official repository unverified MIT (permissive) · 09c8479d9a5b3e06 · report
flatten tinnerhrhe/MTDiff/diffuser/datasets/normalization.py official repository unverified MIT (permissive) · 505d6b06c543b4fb · report
get_dataset tinnerhrhe/MTDiff/diffuser/datasets/d4rl.py official repository unverified MIT (permissive) · 6b688f0cd038f65e · report
get_policy_preprocess_fn tinnerhrhe/MTDiff/diffuser/datasets/preprocessing.py official repository unverified MIT (permissive) · 65e5c27060559602 · report
get_preprocess_fn tinnerhrhe/MTDiff/diffuser/datasets/preprocessing.py official repository unverified MIT (permissive) · 54442074c20e0e8f · report
get_prompt tinnerhrhe/MTDiff/diffuser/models/temporal.py official repository unverified MIT (permissive) · 5321d9d86ff019c1 · report
get_prompt_batch tinnerhrhe/MTDiff/diffuser/models/temporal.py official repository unverified MIT (permissive) · 27c640b42f4e6a73 · report
get_prompt_batchs tinnerhrhe/MTDiff/diffuser/models/temporal.py official repository unverified MIT (permissive) · 6c4cc9bc7e5e5859 · report
load_episode tinnerhrhe/MTDiff/diffuser/datasets/d4rl.py official repository unverified MIT (permissive) · bb6694e97ebbdbb5 · report
load_tf_weights_in_gpt2 tinnerhrhe/MTDiff/diffuser/models/GPT2.py official repository unverified MIT (permissive) · 00a33466c69c5705 · report
parse_maze tinnerhrhe/MTDiff/diffuser/utils/arrays.py official repository unverified MIT (permissive) · 80cbf0ec77b1d134 · report
WeightedL1 jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology ran MIT (permissive) · bb0b654d7e2f043a · report
WeightedL2 jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology ran MIT (permissive) · 63bb8b129db38dfb · report
WeightedLoss jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology ran MIT (permissive) · 31a6a65466c90f16 · report
make_timesteps jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology ran · honoured contract MIT (permissive) · 51db163798eb0f5e · report
GaussianDiffusion jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology unverified MIT (permissive) · b647fa958c28b7a0 · report
ValueL1 jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology unverified MIT (permissive) · 15f5f25cbe9d72e0 · report
ValueL2 jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology unverified MIT (permissive) · 4b9ad2741a65b9b0 · report
ValueLoss jannerm/diffuser/diffuser/models/diffusion.py found in paper text by Syntology unverified MIT (permissive) · 2033d022f4c21dd8 · report

Tasks

Prompt LearningReinforcement Learning (RL)

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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