SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.21646 · ICML · 2026

Energy-based Compositional Diffusion Planning

Tao Sun, Jiaxin Lu, Danfei Xu, Iro Armeni, Utkarsh Mishra

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2606.21646.json · badge: /api/ran/2606.21646.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
GradientSpaces/ECD community
Papers with Code archive
7 ran · 2 no recorded run
FunctionStatusWhere it lives
GaussianMarkovPriorMeta Ran
ran on a synthesized input · constructed an object; no result was computed
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("324c5892718f085e")
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 an instance of its own class, GaussianMarkovPriorMeta: the run constructed the object and did not call it, so no result was computed. 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
from typing import Tuple

ARGS = {
    "env_name": "CartPole-v1",
    "obs_select_dim": (0, 1, 2),
    "dim": 4,
    "n_states": 8,
    "n_pairs": 5,
    "ridge": 0.01,
    "shrinkage": 0.5,
    "version": 1,
}
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 GaussianMarkovPriorMeta — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GaussianMarkovPriorMeta 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
WeightedL2Loss Ran
ran on a synthesized input
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("ab67c5d03040abd2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple, 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
import numpy as np

# INIT_ARGS: parameters for WeightedL2Loss.__init__
# __init__ takes: weights (torch.Tensor)
# The weights tensor is registered as a buffer and used in forward to weight the loss per dimension

weights_tensor = torch.tensor([1.0, 2.0, 0.5, 1.5])  # 4 dimensions

INIT_ARGS = {
    'weights': weights_tensor
}

# ARGS: parameters for WeightedL2Loss.forward
# forward takes: pred (torch.Tensor), targ (torch.Tensor), ext_loss_w (float, default=1.0)
# pred and targ should have shape that broadcasts with weights (4 dimensions)

batch_size = 2
feature_dim = 4  # must match the size of weights

pred_tensor = torch.randn(batch_size, feature_dim)
targ_tensor = torch.randn(batch_size, feature_dim)

ARGS = {
    'pred': pred_tensor,
    'targ': targ_tensor,
    'ext_loss_w': 1.5
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — 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 float — 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_repeat_batch_tensor Ran
ran; our contract draft was wrong, not the code
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("9cd17c99c7c51ffc")
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 2, dtype family float, shape (6, 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 torch

torch.manual_seed(0)

# Create a small tensor with batch dimension
# Shape: (batch=2, feature_dim=4)
v = torch.randn(2, 4)

# Number of repetitions
n_rp = 3

ARGS = {
    "v": v,
    "n_rp": n_rp,
}
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 2, dtype family float, shape (6, 4) — shape (6, 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
apply_conditioning Ran
ran; our contract draft was wrong, not the code
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("7f8834a79742edda")
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 3, dtype family float, shape (2, 5, 7) 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)

# x: torch.Tensor - observation tensor with shape (batch, time, features)
# batch_size=2, time_steps=5, features=action_dim + observation_dim
# action_dim=3, observation_dim=4, so total features=7
x = torch.randn(2, 5, 7)

# conditions: Dict[int, torch.Tensor] - maps time indices to conditioning values
# The values should have shape matching the observation dimensions (features - action_dim)
# So each value tensor should have shape (batch, observation_dim) = (2, 4)
conditions = {
    1: torch.randn(2, 4),
    3: torch.randn(2, 4),
}

# action_dim: int - the number of action dimensions
# In x, indices [0:action_dim] are actions, [action_dim:] are observations
action_dim = 3

ARGS = {
    "x": x,
    "conditions": conditions,
    "action_dim": action_dim,
}
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 3, dtype family float, shape (2, 5, 7) — shape (2, 5, 7) 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
batch_repeat_tensor_in_dict Ran
ran; our contract draft was wrong, not the code
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("606978755e8978e6")
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 torch

torch.manual_seed(0)

# Create small tensors for testing
# x: batch dimension is first, feature dimension is second
x = torch.randn(2, 4)  # batch_size=2, features=4

# t_2d: 2D time tensor with batch dimension first
t_2d = torch.randn(2, 3)  # batch_size=2, time_features=3

# d: dictionary with some batch-aligned and non-batch-aligned tensors
d = {
    "batch_tensor_1": torch.randn(2, 5),  # batch-aligned (shape[0]=2)
    "batch_tensor_2": torch.randn(2, 6, 7),  # batch-aligned with extra dims
    "non_batch_tensor": torch.randn(3, 8),  # not batch-aligned (shape[0]=3 != 2)
    "scalar_value": 42,  # non-tensor value
    "string_value": "test",  # non-tensor value
}

# n_rp: number of repetitions
n_rp = 3

ARGS = {
    "x": x,
    "t_2d": t_2d,
    "d": d,
    "n_rp": n_rp,
}
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 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
cosine_beta_schedule Ran
ran, honoured the contract we drafted
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("9d5aff25a71e5a03")
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 (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
import torch

torch.manual_seed(0)

ARGS = {
    "timesteps": 10,
    "s": 0.008,
    "dtype": torch.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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 (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
extract_2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("4062d22068039018")
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)

# a_1d: 1D tensor of schedule coefficients
# The function indexes into this with t_2d, so it needs to be large enough
# to accommodate all timestep indices in t_2d
a_1d = torch.randn(10)  # 10 timestep coefficients

# t_2d: 2D tensor of shape (batch, horizon) containing timestep indices
# Values should be valid indices into a_1d (0-9)
t_2d = torch.tensor([[0, 1, 2, 3], [4, 5, 6, 7]], dtype=torch.long)  # shape (2, 4)

# x_shape: tuple representing the target output shape
# The function will reshape to (b, h, *(1,) * (len(x_shape) - 2))
# With x_shape of length 4, this adds (len(4) - 2) = 2 dimensions of size 1
x_shape = (2, 4, 8, 16)  # batch=2, horizon=4, then 2 spatial dims

ARGS = {
    "a_1d": a_1d,
    "t_2d": t_2d,
    "x_shape": x_shape,
}
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
ChunkDiffusion Not yet run
unverified (harvested, no recorded run)
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("3decbb36840f1172")
How it ran

no invocation recorded.

FittedGaussianMarkovPrior Not yet run
unverified (harvested, no recorded run)
GradientSpaces/ECD/ecd/planner.py
code served (permissive licence) · get_code("5086d13837c3a70d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

Compositional diffusion planners aim to solve long-horizon robotic tasks using short training trajectories. Yet, current approaches often rely on the heuristic stitching of local predictions. We show that the resulting stitched update is generally a non-conservative field that does not mathematically correspond to any valid global trajectory log-density function. We propose Energy-based Compositional Diffuser (ECD), a framework that formulates the global trajectory as the minimizer of the sum of local bridge potentials. This energy-based perspective defines a conservative correction field and contains a boundary reaction term that heuristic stitching omits. To enable efficient inference, we further introduce a Markov-based score approximation that computes the reaction term via a single blocktridiagonal solve, maintaining time complexity linear in the planning horizon. Empirically, ECD achieves state-of-the-art success rates on a range of OGBench stitching tasks, while nearly matching the inference speed of heuristic stitching methods. Code is available at https: //github.com/GradientSpaces/ECD.

For agents

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

get_harvested_code_for_paper("2606.21646")
get_code_for_paper("2606.21646")
have("2606.21646")

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

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

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

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

Connect an agent — have() is free.