SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.06662 · ICML · 2023

Action Matching: Learning Stochastic Dynamics from Samples

Rob Brekelmans, Alireza Makhzani, Kirill Neklyudov, Daniel Severo

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 1 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/2210.06662.json · badge: /api/ran/2210.06662.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
necludov/jam canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
necludov/action-matching reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
AMLoss Ran
ran on a synthesized input · constructed an object; no result was computed
necludov/action-matching/core/losses.py
pointer only (licence: NONE) · get_code("d7175c89d11fb001")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, necludov/action-matching 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.

asslaguerre_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
necludov/action-matching/core/hmodel.py
pointer only (licence: NONE) · get_code("fce0f6e5743660d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, necludov/action-matching 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.

asslegendre_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
necludov/action-matching/core/hmodel.py
pointer only (licence: NONE) · get_code("2abd5732cb5f0ec3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, necludov/action-matching 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_am_loss Ran
ran; our contract draft was wrong, not the code
necludov/jam/losses.py
code served (permissive licence) · get_code("5fe431cc3c099186")
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) 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 jax.random as random
import flax.linen as nn
from typing import Any, Dict, Tuple

# Define a minimal score-based model
class ScoreModel(nn.Module):
    @nn.compact
    def __call__(self, t, x, train=False):
        # t: (batch, 1, 1, 1), x: (batch, 4, 3, 3)
        # Return score with same shape as x
        batch_size = x.shape[0]
        # Simple model: just return a learned score
        x_flat = x.reshape((batch_size, -1))
        t_flat = t.reshape((batch_size, -1))
        combined = jnp.concatenate([x_flat, t_flat], axis=1)
        hidden = nn.Dense(16)(combined)
        hidden = nn.relu(hidden)
        output = nn.Dense(36)(hidden)  # 4*3*3 = 36
        return output.reshape((batch_size, 4, 3, 3))

# Initialize model and params
key = random.PRNGKey(0)
model = ScoreModel()
dummy_t = jnp.ones((2, 1, 1, 1))
dummy_x = jnp.ones((2, 4, 3, 3))
params = model.init(key, dummy_t, dummy_x, train=False)['params']

# Config class
class Config:
    class ModelConfig:
        const_weight = False
    
    class DataConfig:
        t_0 = 0.0
        t_1 = 1.0
    
    def __init__(self):
        self.model = self.ModelConfig()
        self.data = self.DataConfig()

config = Config()

# Time sampler
class TimeSampler:
    def sample_t(self, batch_size, sampler_state):
        key, subkey = random.split(sampler_state)
        t = random.uniform(subkey, shape=(batch_size,), minval=0.0, maxval=1.0)
        return t, key
    
    def invdensity(self, t):
        # Return inverse density, shape (batch, 1, 1, 1)
        return jnp.ones_like(t)

time_sampler = TimeSampler()

# q_t function: transition kernel
def q_t(key, data, t, t_0, t_1):
    # data: (batch, 4, 3, 3)
    # t, t_0, t_1: (batch, 1, 1, 1)
    keys = random.split(key, num=3)
    x_0 = data + 0.1 * random.normal(keys[0], data.shape)
    x_1 = data + 0.5 * random.normal(keys[1], data.shape)
    x_t = data + (t * 0.3) * random.normal(keys[2], data.shape)
    return x_0, x_1, x_t

# Batch
batch = {
    'image': jnp.ones((2, 4, 3, 3))
}

# Sampler state (just a random key)
sampler_state = random.PRNGKey(1)

ARGS = {
    'config': config,
    'model': model,
    'q_t': q_t,
    'time_sampler': time_sampler,
    'train': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
get_model_fn Not yet run
unverified (harvested, no recorded run)
necludov/jam/losses.py
code served (permissive licence) · get_code("4c75a777beb20eea")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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

Learning the continuous dynamics of a system from snapshots of its temporal marginals is a problem which appears throughout natural sciences and machine learning, including in quantum systems, single-cell biological data, and generative modeling. In these settings, we assume access to cross-sectional samples that are uncorrelated over time, rather than full trajectories of samples. In order to better understand the systems under observation, we would like to learn a model of the underlying process that allows us to propagate samples in time and thereby simulate entire individual trajectories. In this work, we propose Action Matching, a method for learning a rich family of dynamics using only independent samples from its time evolution. We derive a tractable training objective, which does not rely on explicit assumptions about the underlying dynamics and does not require back-propagation through differential equations or optimal transport solvers. Inspired by connections with optimal transport, we derive extensions of Action Matching to learn stochastic differential equations and dynamics involving creation and destruction of probability mass. Finally, we showcase applications of Action Matching by achieving competitive performance in a diverse set of experiments from biology, physics, and generative modeling.

For agents

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

get_harvested_code_for_paper("2210.06662")
get_code_for_paper("2210.06662")
have("2210.06662")

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

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

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

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

Connect an agent — have() is free.