SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.03954 · 2024

3D Diffusion Policy: Generalizable Visuomotor Policy Learning via Simple 3D Representations

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), 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/2403.03954.json · badge: /api/ran/2403.03954.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
YanjieZe/3D-Diffusion-Policy canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
create_indices Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/sampler.py
code served (permissive licence) · get_code("0a16eab1dfc7ced0")
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 ndarray, ndim 2, dtype family int, shape (21, 4) 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 numpy as np
import numba

# Analyze the function signature and body:
# - episode_ends: np.ndarray of episode end indices
# - sequence_length: int, the length of sequences to create
# - episode_mask: np.ndarray of booleans indicating which episodes to include
# - pad_before: int, padding before sequences
# - pad_after: int, padding after sequences
# - debug: bool, whether to enable assertions

# Create small test data
# episode_ends should be cumulative end indices for episodes
episode_ends = np.array([10, 25, 40], dtype=np.int64)

# sequence_length is the target length of sequences
sequence_length = 5

# episode_mask selects which episodes to process
episode_mask = np.array([True, True, False], dtype=np.bool_)

# pad_before and pad_after control padding
pad_before = 1
pad_after = 1

# debug flag
debug = True

ARGS = {
    'episode_ends': episode_ends,
    'sequence_length': sequence_length,
    'episode_mask': episode_mask,
    'pad_before': pad_before,
    'pad_after': pad_after,
    'debug': debug
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (21, 4) — shape (21, 4) 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
dict_apply Ran
ran; our contract draft was wrong, not the code
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/pytorch_util.py
code served (permissive licence) · get_code("e889bd81b4735ee5")
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 torch

torch.manual_seed(0)

# Create a simple function that applies a transformation to a tensor
def simple_transform(tensor: torch.Tensor) -> torch.Tensor:
    return tensor * 2 + 1

# Create a nested dictionary with tensors
x = {
    "a": torch.randn(2, 4),
    "b": torch.randn(2, 3),
    "nested": {
        "c": torch.randn(2, 5),
        "d": torch.randn(2, 6)
    }
}

ARGS = {
    "x": x,
    "func": simple_transform
}
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 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
dict_apply_split Ran
ran; our contract draft was wrong, not the code
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/pytorch_util.py
code served (permissive licence) · get_code("8c6a9f390c7af799")
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 defaultdict. 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 collections

torch.manual_seed(0)

# Define a split function that takes a tensor and returns a dict of tensors
def split_func(tensor: torch.Tensor) -> dict:
    """
    Example split function that splits a tensor into two parts.
    Returns a dict with keys 'part1' and 'part2'.
    """
    mid = tensor.shape[0] // 2
    return {
        'part1': tensor[:mid],
        'part2': tensor[mid:]
    }

# Create input dict with string keys and tensor values
input_dict = {
    'feature_a': torch.randn(2, 4),
    'feature_b': torch.randn(2, 3),
}

ARGS = {
    'x': input_dict,
    'split_func': split_func,
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
downsample_mask Ran
ran, violated the contract we drafted
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/sampler.py
code served (permissive licence) · get_code("85ef80fba2caa71d")
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 ndarray, ndim 1, dtype family float, shape (10,) 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 numpy as np

# Construct a boolean mask with some True values
mask = np.array([True, False, True, True, False, True, False, True, True, False])

# Set max_n to a value smaller than the number of True values in the mask
# This will trigger the downsampling logic
max_n = 3

# Set seed for reproducibility
seed = 42

ARGS = {
    "mask": mask,
    "max_n": max_n,
    "seed": seed
}
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 ndarray, ndim 1, dtype family float, shape (10,) — shape (10,) 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_optimal_chunks Ran
ran; our contract draft was wrong, not the code
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py
code served (permissive licence) · get_code("1d4ddad52e215d73")
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, ndim 1, dtype family int; 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 math
import numpy as np

# Test case 1: 2D shape (T, D)
shape_2d = (1000, 128)
dtype_2d = np.float32

# Test case 2: 3D shape (T, N, D)
shape_3d = (500, 64, 256)
dtype_3d = np.float32

# Test case 3: 4D shape (T, H, W, C)
shape_4d = (100, 32, 32, 3)
dtype_4d = np.uint8

# Test case 4: 5D shape (T, N, H, W, C)
shape_5d = (50, 16, 16, 16, 4)
dtype_5d = np.float64

# Test case 5: with max_chunk_length constraint
shape_constrained = (200, 512, 512)
dtype_constrained = np.float32
max_chunk_length_val = 128

ARGS = {
    "shape": shape_2d,
    "dtype": dtype_2d,
    "target_chunk_bytes": 2000000.0,
    "max_chunk_length": None
}
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 tuple, ndim 1, dtype family int — a tuple 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
get_val_mask Ran
ran, violated the contract we drafted
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/sampler.py
code served (permissive licence) · get_code("ed689847c85c1288")
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 ndarray, ndim 1, dtype family float, shape (100,) 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 numpy as np

ARGS = {
    "n_episodes": 100,
    "val_ratio": 0.2,
    "seed": 0,
}
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 ndarray, ndim 1, dtype family float, shape (100,) — shape (100,) 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
pad_remaining_dims Ran
ran, violated the contract we drafted
YanjieZe/3D-Diffusion-Policy/3D-Diffusion-Policy/diffusion_policy_3d/common/pytorch_util.py
code served (permissive licence) · get_code("ad05722d0bd12d1e")
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 4, dtype family float, shape (2, 4, 1, 1) 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)

# The function pad_remaining_dims takes two parameters:
# - x: a tensor that should have shape that is a prefix of target.shape
# - target: a tensor whose shape determines the final output shape
#
# The function asserts that x.shape is a prefix of target.shape,
# then reshapes x by appending (1,) dimensions to match target's number of dimensions

# Create x as a 2D tensor
x = torch.randn(2, 4)

# Create target as a 4D tensor with shape that has x.shape as prefix
# x.shape = (2, 4), so target.shape should start with (2, 4)
# We'll make target shape (2, 4, 3, 5) to have 2 extra dimensions
target = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x,
    "target": target,
}
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 4, dtype family float, shape (2, 4, 1, 1) — shape (2, 4, 1, 1) 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 6 the same month, 7 later) and 0 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
dict_apply 4 other papers
1 dated earlier, 1 the same month, 2 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2411.02359 (2024-11)
DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot Execution
and 1 more not named here
dict_apply_split 3 other papers
1 dated earlier, 1 the same month, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models
downsample_mask 3 other papers
1 dated earlier, 1 the same month, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models
get_optimal_chunks 3 other papers
1 dated earlier, 1 the same month, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models
get_val_mask 3 other papers
1 dated earlier, 1 the same month, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models
pad_remaining_dims 3 other papers
1 dated earlier, 1 the same month, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2403.03206 (2024-03)
Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models
create_indices 2 other papers
1 dated earlier, 1 later
2402.05421 (2024-02)
DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning
2503.07511 (2025-03)
PointVLA: Injecting the 3D World into Vision-Language-Action Models

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

Imitation learning provides an efficient way to teach robots dexterous skills; however, learning complex skills robustly and generalizablely usually consumes large amounts of human demonstrations. To tackle this challenging problem, we present 3D Diffusion Policy (DP3), a novel visual imitation learning approach that incorporates the power of 3D visual representations into diffusion policies, a class of conditional action generative models. The core design of DP3 is the utilization of a compact 3D visual representation, extracted from sparse point clouds with an efficient point encoder. In our experiments involving 72 simulation tasks, DP3 successfully handles most tasks with just 10 demonstrations and surpasses baselines with a 24.2% relative improvement. In 4 real robot tasks, DP3 demonstrates precise control with a high success rate of 85%, given only 40 demonstrations of each task, and shows excellent generalization abilities in diverse aspects, including space, viewpoint, appearance, and instance. Interestingly, in real robot experiments, DP3 rarely violates safety requirements, in contrast to baseline methods which frequently do, necessitating human intervention. Our extensive evaluation highlights the critical importance of 3D representations in real-world robot learning. Videos, code, and data are available on https://3d-diffusion-policy.github.io .

For agents

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

get_harvested_code_for_paper("2403.03954")
get_code_for_paper("2403.03954")
have("2403.03954")

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

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

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

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

Connect an agent — have() is free.