SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.06999 · ICLR · 2024

Likelihood Training of Cascaded Diffusion Models via Hierarchical Volume-preserving Maps

Ronen Basri, Henry Li, Yuval Kluger

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 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/2501.06999.json · badge: /api/ran/2501.06999.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
lihenryhfl/pcdm canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
constant_init Ran
ran; our contract draft was wrong, not the code
lihenryhfl/pcdm/nn.py
code served (permissive licence) · get_code("efd5fbe71f5d4417")
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 function. 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 jax
from jax import numpy as jnp

ARGS = {
    'value': 5.0,
    'dtype': 'float32'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
copy_dict Ran
ran; our contract draft was wrong, not the code
lihenryhfl/pcdm/experiment.py
code served (permissive licence) · get_code("d741dec5707d4fea")
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)

# Analyzing the function:
# - copy_dict takes dict1 and dict2
# - It checks if dict1 is a dict
# - It recursively copies values from dict2 into dict1 where keys overlap
# - It handles both dict and non-dict cases

# Create test dictionaries with overlapping and non-overlapping keys
dict1 = {
    "a": 1,
    "b": {"nested_key": 10},
    "c": 3
}

dict2 = {
    "a": 100,
    "b": {"nested_key": 200, "other_key": 999},
    "d": 4
}

ARGS = {
    "dict1": dict1,
    "dict2": dict2
}
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
dist Ran
ran; our contract draft was wrong, not the code
lihenryhfl/pcdm/utils.py
code served (permissive licence) · get_code("4ff86972ab4194f5")
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 function. 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 jax
import jax.numpy as jnp
import functools
import flax.jax_utils

# Define a simple function that takes array inputs and returns arrays
def simple_fn(x):
    """A simple function that processes JAX arrays."""
    return x * 2.0

# Create small test arrays - shape (2, 4) where 2 is batch, 4 is feature dim
x_test = jnp.ones((2, 4), dtype=jnp.float32)

# The dist function wraps a function with pmap and device_get/unreplicate
# Parameters:
# - fn: a callable function
# - accumulate: str in {'concat', 'mean', 'none'}
# - axis_name: str for pmap axis name (default 'batch')

ARGS = {
    'fn': simple_fn,
    'accumulate': 'none',
    'axis_name': 'batch'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
dot_product_attention Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lihenryhfl/pcdm/nn.py
code served (permissive licence) · get_code("3650a2dfe2e97298")
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 ArrayImpl, ndim 4, dtype family float, shape (2, 6, 3, 5) 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 jax
import jax.numpy as jnp
import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Define small tensors for attention computation
batch_size = 2
num_heads = 3
mem_channels = 4
value_channels = 5
seq_len = 6

# Create query, key, value tensors
# Shape: [batch_size, seq_len, num_heads, mem_channels]
query = jnp.ones((batch_size, seq_len, num_heads, mem_channels), dtype=jnp.float32)
key = jnp.ones((batch_size, seq_len, num_heads, mem_channels), dtype=jnp.float32)
value = jnp.ones((batch_size, seq_len, num_heads, value_channels), dtype=jnp.float32)

# Optional bias - shape should match attention weights
# After reshaping, attention weights will have shape compatible with axis
bias = None

# dtype parameter
dtype = jnp.float32

# axis - which dimensions to apply attention over
axis = (1,)

# precision parameter
precision = None

ARGS = {
    "query": query,
    "key": key,
    "value": value,
    "dtype": dtype,
    "bias": bias,
    "axis": axis,
    "precision": precision,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (2, 6, 3, 5) — shape (2, 6, 3, 5) 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
generate_image_grids Ran
ran, violated the contract we drafted
lihenryhfl/pcdm/utils.py
code served (permissive licence) · get_code("3f7ef732a2045c0f")
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 ArrayImpl, ndim 2, dtype family float, shape (6, 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 jax.numpy as jnp
import numpy as np
import chex

# Create a small batch of images
# batch_size=4, height=3, width=3, channels=1
batch_size = 4
height = 3
width = 3
channels = 1

images = jnp.ones((batch_size, height, width, channels), dtype=jnp.float32)

ARGS = {
    "images": images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (6, 6) — shape (6, 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
get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lihenryhfl/pcdm/nn.py
code served (permissive licence) · get_code("0a5352fc3e23401b")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 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 jax
from jax import numpy as jnp
import numpy as np

# Create timesteps as a JAX array with shape (2,)
timesteps = jnp.array([0.0, 1.0])

# Create embedding dimension
embedding_dim = 4

# Create dtype
dtype = jnp.float32

ARGS = {
    "timesteps": timesteps,
    "embedding_dim": embedding_dim,
    "dtype": dtype,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
restore_partial Ran
ran; our contract draft was wrong, not the code
lihenryhfl/pcdm/experiment.py
code served (permissive licence) · get_code("428176833658e89d")
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 flax
import flax.core
import jax
import jax.numpy as jnp

# Create a minimal Flax state object
# We need a state that can be serialized/deserialized
class SimpleModule(flax.linen.Module):
    features: int = 4
    
    @flax.linen.compact
    def __call__(self, x):
        x = flax.linen.Dense(self.features)(x)
        return x

# Initialize the module to get a state
module = SimpleModule()
key = jax.random.PRNGKey(0)
dummy_input = jnp.ones((2, 3))
params = module.init(key, dummy_input)

# Create a state dict from the params
state = params

# Create a state_restore_dict that contains partial updates
# This should be a nested dict structure that matches the state structure
state_restore_dict = {
    'params': {
        'Dense_0': {
            'kernel': jnp.ones((3, 4)),
            'bias': jnp.zeros(4)
        }
    }
}

ARGS = {
    'state': state,
    'state_restore_dict': state_restore_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — 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
allgather_and_reshape Not yet run
unverified (harvested, no recorded run)
lihenryhfl/pcdm/utils.py
code served (permissive licence) · get_code("4c25c1400cdbb0a1")
How it ran

no invocation recorded.

gkern Not yet run
unverified (harvested, no recorded run)
lihenryhfl/pcdm/cascade_utils.py
code served (permissive licence) · get_code("bd8f0acf7a427cee")
How it ran

no invocation recorded.

lap_conv Not yet run
unverified (harvested, no recorded run)
lihenryhfl/pcdm/cascade_utils.py
code served (permissive licence) · get_code("cb75cd4188a57c9f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 0 later) and 2 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
constant_init 3 other papers
3 dated earlier
2107.00630 (2021-07)
Variational Diffusion Models
2310.19789 (2023-10)
DiffEnc: Variational Diffusion with a Learned Encoder
2403.16382 (2024-03)
An image-computable model of speeded decision-making
get_timestep_embedding 3 other papers
3 dated earlier
2107.00630 (2021-07)
Variational Diffusion Models
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise
allgather_and_reshape 2 other papers
2 dated earlier
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise
copy_dict 2 other papers
2 dated earlier
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise
dist 2 other papers
2 dated earlier
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise
dot_product_attention 2 other papers
2 dated earlier
2107.00630 (2021-07)
Variational Diffusion Models
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
restore_partial 2 other papers
2 dated earlier
2305.03935 (2023-05)
Improved Techniques for Maximum Likelihood Estimation for Diffusion ODEs
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise
generate_image_grids 1 other paper
1 dated earlier
2312.13236 (2023-12)
Diffusion Models With Learned Adaptive Noise

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

Cascaded models are multi-scale generative models with a marked capacity for producing perceptually impressive samples at high resolutions. In this work, we show that they can also be excellent likelihood models, so long as we overcome a fundamental difficulty with probabilistic multi-scale models: the intractability of the likelihood function. Chiefly, in cascaded models each intermediary scale introduces extraneous variables that cannot be tractably marginalized out for likelihood evaluation. This issue vanishes by modeling the diffusion process on latent spaces induced by a class of transformations we call hierarchical volume-preserving maps, which decompose spatially structured data in a hierarchical fashion without introducing local distortions in the latent space. We demonstrate that two such maps are well-known in the literature for multiscale modeling: Laplacian pyramids and wavelet transforms. Not only do such reparameterizations allow the likelihood function to be directly expressed as a joint likelihood over the scales, we show that the Laplacian pyramid and wavelet transform also produces significant improvements to the state-of-the-art on a selection of benchmarks in likelihood modeling, including density estimation, lossless compression, and out-of-distribution detection. Investigating the theoretical basis of our empirical gains we uncover deep connections to score matching under the Earth Mover's Distance (EMD), which is a well-known surrogate for perceptual similarity. Code can be found at this https url.

For agents

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

get_harvested_code_for_paper("2501.06999")
get_code_for_paper("2501.06999")
have("2501.06999")

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

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

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

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

Connect an agent — have() is free.