SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.12953 · 2024

Efficient Diffusion Transformer Policies with Mixture of Expert Denoisers for Multitask Learning

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 5 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2412.12953.json · badge: /api/ran/2412.12953.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
intuitive-robots/MoDE_Diffusion_Policy community (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
FunctionStatusWhere it lives
append_dims Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from layer6ai-labs/direct-cms, is pointer only (licence: NONE) · get_code("30befb7e4327e615")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from layer6ai-labs/direct-cms, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

append_zero Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/gc_sampling.py
pointer only (licence: MIT); the stored copy get_code serves, from tianyucodings/cdiff, is pointer only (licence: NONE) · get_code("43f2167b019a5fb7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tianyucodings/cdiff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sigmas_exponential Ran
ran, honoured the contract we drafted
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/gc_sampling.py
code served (permissive licence) · get_code("205e97641ece09f8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (11,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

ARGS = {
    'n': 10,
    'sigma_min': 0.002,
    'sigma_max': 80.0,
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (11,) — shape (11,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_sigmas_karras Ran
ran, honoured the contract we drafted
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/gc_sampling.py
code served (permissive licence) · get_code("a3ae2e8a897b4d99")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (6,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "n": 5,
    "sigma_min": 0.1,
    "sigma_max": 10.0,
    "rho": 7.0,
    "device": "cpu"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (6,) — shape (6,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_npz Ran
ran; our contract draft was wrong, not the code
intuitive-robots/MoDE_Diffusion_Policy/mode/datasets/disk_dataset.py
code served (permissive licence) · get_code("68787b0149b5e4bf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned NpzFile. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import numpy as np
from pathlib import Path

# Create a temporary NPZ file for testing
with tempfile.NamedTemporaryFile(suffix='.npz', delete=False) as tmp:
    tmp_path = tmp.name
    # Create sample data to save
    data = {
        'array1': np.array([1, 2, 3, 4]),
        'array2': np.array([[1, 2], [3, 4]]),
        'array3': np.random.rand(2, 3)
    }
    np.savez(tmp_path, **data)

# Define ARGS
ARGS = {
    'filename': Path(tmp_path)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NpzFile — a NpzFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NpzFile output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_pkl Ran
ran; our contract draft was wrong, not the code
intuitive-robots/MoDE_Diffusion_Policy/mode/datasets/disk_dataset.py
code served (permissive licence) · get_code("45af63efa9933397")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import pickle
from pathlib import Path
import numpy as np

# Create a temporary file with pickled numpy arrays
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test_data.pkl"

# Create sample data to pickle
sample_data = {
    "array_1": np.array([[1, 2, 3], [4, 5, 6]]),
    "array_2": np.array([7, 8, 9, 10]),
    "array_3": np.random.randn(4, 5)
}

# Write the pickle file
with open(temp_path, 'wb') as f:
    pickle.dump(sample_data, f)

ARGS = {
    "filename": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rand_log_normal Ran
ran; our contract draft was wrong, not the code
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from tianyucodings/cdiff, is pointer only (licence: NONE) · get_code("ec8364ee198f15b3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tianyucodings/cdiff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

return_time_sigma_embedding_model Ran
ran on a synthesized input
intuitive-robots/MoDE_Diffusion_Policy/mode/models/edm_diffusion/utils.py
code served (permissive licence) · get_code("6f1fce523ddeea43")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned GaussianFourierEmbedding. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math
import torch.nn as nn
import numpy as np
import einops

torch.manual_seed(0)

# Define ARGS dict with all parameters for return_time_sigma_embedding_model
ARGS = {
    'embedding_type': 'GaussianFourier',
    'time_embed_dim': 8,
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaussianFourierEmbedding — a GaussianFourierEmbedding output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GaussianFourierEmbedding output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_callbacks Ran
ran on a synthesized input
intuitive-robots/MoDE_Diffusion_Policy/mode/training_calvin.py
code served (permissive licence) · get_code("0e68bc534d7f6740")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from omegaconf import DictConfig, OmegaConf
from pytorch_lightning import Callback
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
import tempfile
import os

torch.manual_seed(0)

# Create temporary directory for checkpoints
temp_dir = tempfile.mkdtemp()

# Create a DictConfig with callback configurations
callbacks_cfg = OmegaConf.create({
    "early_stopping": {
        "_target_": "pytorch_lightning.callbacks.EarlyStopping",
        "monitor": "val_loss",
        "patience": 3,
        "mode": "min"
    },
    "checkpoint": {
        "_target_": "pytorch_lightning.callbacks.ModelCheckpoint",
        "dirpath": temp_dir,
        "filename": "best",
        "monitor": "val_loss",
        "mode": "min",
        "save_top_k": 1
    }
})

ARGS = {
    "callbacks_cfg": callbacks_cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hydra, omegaconf, pytorch_lightning, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_trajectories Ran
ran on a synthesized input
intuitive-robots/MoDE_Diffusion_Policy/mode/datasets/libero_data_module.py
code served (permissive licence) · get_code("38618aea799ddc0e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

def split_trajectories(num_trajectories, train_ratio=0.8):
    num_train = int(num_trajectories * train_ratio)
    num_val = num_trajectories - num_train
    trajectory_indices = list(range(num_trajectories))
    random.shuffle(trajectory_indices)
    train_indices = trajectory_indices[:num_train]
    val_indices = trajectory_indices[num_train:]
    return (train_indices, val_indices)

ARGS = {
    "num_trajectories": 10,
    "train_ratio": 0.8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_logger Not yet run
unverified (harvested, no recorded run)
intuitive-robots/MoDE_Diffusion_Policy/mode/training_calvin.py
code served (permissive licence) · get_code("765bd1c53cf958eb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
append_dims 27 other papers
22 dated earlier, 3 later, 2 same year, order not determinable · 2 only as an assembly brick
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2304.09787 (2023-04)
NeuralField-LDM: Scene Generation with Hierarchical Latent Diffusion Models
2307.12493 (2023-07)
TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition
and 24 more not named here
append_zero 3 other papers
3 dated earlier
2405.19690 (2024-05)
Diffusion Policies Creating a Trust Region for Offline Reinforcement Learning
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
2410.19105 (2024-10)
Conditional diffusions for amortized neural posterior estimation
get_sigmas_exponential 2 other papers
2 dated earlier
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
get_sigmas_karras 2 other papers
2 dated earlier
2402.11846 (2024-02)
UnlearnCanvas: Stylized Image Dataset for Enhanced Machine Unlearning Evaluation in Diffusion Models
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
load_npz 2 other papers
2 dated earlier
2112.03227 (2021-12)
CALVIN: A Benchmark for Language-Conditioned Policy Learning for Long-Horizon Robot Manipulation Tasks
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
load_pkl 2 other papers
2 dated earlier
2112.03227 (2021-12)
CALVIN: A Benchmark for Language-Conditioned Policy Learning for Long-Horizon Robot Manipulation Tasks
2407.05996 (2024-07)
Multimodal Diffusion Transformer: Learning Versatile Behavior from Multimodal Goals
rand_log_normal 2 other papers
2 dated earlier
2405.19690 (2024-05)
Diffusion Policies Creating a Trust Region for Offline Reinforcement Learning
2410.19105 (2024-10)
Conditional diffusions for amortized neural posterior estimation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Diffusion Policies have become widely used in Imitation Learning, offering several appealing properties, such as generating multimodal and discontinuous behavior. As models are becoming larger to capture more complex capabilities, their computational demands increase, as shown by recent scaling laws. Therefore, continuing with the current architectures will present a computational roadblock. To address this gap, we propose Mixture-of-Denoising Experts (MoDE) as a novel policy for Imitation Learning. MoDE surpasses current state-of-the-art Transformer-based Diffusion Policies while enabling parameter-efficient scaling through sparse experts and noise-conditioned routing, reducing both active parameters by 40% and inference costs by 90% via expert caching. Our architecture combines this efficient scaling with noise-conditioned self-attention mechanism, enabling more effective denoising across different noise levels. MoDE achieves state-of-the-art performance on 134 tasks in four established imitation learning benchmarks (CALVIN and LIBERO). Notably, by pretraining MoDE on diverse robotics data, we achieve 4.01 on CALVIN ABC and 0.95 on LIBERO-90. It surpasses both CNN-based and Transformer Diffusion Policies by an average of 57% across 4 benchmarks, while using 90% fewer FLOPs and fewer active parameters compared to default Diffusion Transformer architectures. Furthermore, we conduct comprehensive ablations on MoDE's components, providing insights for designing efficient and scalable Transformer architectures for Diffusion Policies. Code and demonstrations are available at https://mbreuss.github.io/MoDE_Diffusion_Policy/.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2412.12953")
get_code_for_paper("2412.12953")
have("2412.12953")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2412.12953.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2412.12953.svg)](https://syntology.ai/paper/2412.12953)

Connect an agent — have() is free.