SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.26645 · NeurIPS · 2025

Curly Flow Matching for Learning Non-gradient Field Dynamics

Michael Bronstein, Alexander Tong, İsmail Ceylan, Avishek Bose, Kacper Kapuśniak, Lazar Atanackovic, Viggo Moro, Katarina Petrović

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure 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/2510.26645.json · badge: /api/ran/2510.26645.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
kpetrovicc/curly-flow-matching canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_gamma Ran
ran, honoured the contract we drafted
kpetrovicc/curly-flow-matching/src/models/components/cfd_utils.py
code served (permissive licence) · get_code("02c28167d6a786d7")
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 float, ndim 0, dtype family float, shape () 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 compute_gamma takes three scalar parameters: t, t_min, t_max
# It performs arithmetic operations on them to compute a gamma value
# All parameters should be numeric values (int or float)

ARGS = {
    "t": 0.5,
    "t_min": 0.0,
    "t_max": 1.0,
}
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 float, ndim 0, dtype family float, shape () — shape () 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_xt Ran
ran on a synthesized input
kpetrovicc/curly-flow-matching/src/models/components/cfd_utils.py
code served (permissive licence) · get_code("2484ccb6f470144f")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple geodesic_model that takes concatenated input and outputs a tensor
class GeodesicModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Set up dimensions
batch_size = 2
x_dim = 4

# Create tensors
x0 = torch.randn(batch_size, x_dim)
x1 = torch.randn(batch_size, x_dim)
t = torch.tensor([[0.3], [0.7]])  # shape (batch_size, 1)

# Create geodesic model
# Input: cat([x0, x1, t], dim=-1) has shape (batch_size, x_dim + x_dim + 1) = (2, 9)
# Output should match x0 shape: (batch_size, x_dim) = (2, 4)
geodesic_model = GeodesicModel(input_dim=x_dim + x_dim + 1, output_dim=x_dim)

# Set up t_min and t_max
t_min = 0.0
t_max = 1.0

# Set up sigma
sigma = 0.1

ARGS = {
    't': t,
    't_min': t_min,
    't_max': t_max,
    'x0': x0,
    'x1': x1,
    'geodesic_model': geodesic_model,
    'sigma': sigma
}
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
get_xt_xt_dot Ran
ran; our contract draft was wrong, not the code
kpetrovicc/curly-flow-matching/src/models/components/cfd_utils.py
code served (permissive licence) · get_code("1f9622a30ae7987a")
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
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal geodesic model that takes concatenated input and outputs a vector
class GeodesicModel(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Set up dimensions
batch_size = 2
x_dim = 4
t_dim = 1

# Create model - input is [x0, x1, t] concatenated, so input_dim = 4 + 4 + 1 = 9
geodesic_model = GeodesicModel(input_dim=9, output_dim=4)

# Create tensors
t = torch.tensor([0.5, 0.3], dtype=torch.float32)  # shape (2,)
t_start = torch.tensor(0.0, dtype=torch.float32)
t_end = torch.tensor(1.0, dtype=torch.float32)
x0 = torch.randn(batch_size, x_dim, dtype=torch.float32)  # shape (2, 4)
x1 = torch.randn(batch_size, x_dim, dtype=torch.float32)  # shape (2, 4)
sigma = 0.1

ARGS = {
    't': t,
    't_start': t_start,
    't_end': t_end,
    'x0': x0,
    'x1': x1,
    'geodesic_model': geodesic_model,
    'sigma': sigma
}
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
autograd_trace Not yet run
unverified (harvested, no recorded run)
kpetrovicc/curly-flow-matching/src/models/components/augmentation.py
code served (permissive licence) · get_code("b5f6b8244bc3a7ba")
How it ran

no invocation recorded.

hutch_trace Not yet run
unverified (harvested, no recorded run)
kpetrovicc/curly-flow-matching/src/models/components/augmentation.py
code served (permissive licence) · get_code("baacb4e4857ec096")
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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 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
autograd_trace 1 other paper
1 dated earlier
2007.09601 (2020-07)
Hypersolvers: Toward Fast Continuous-Depth 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

Modeling the transport dynamics of natural processes from population-level observations is a ubiquitous problem in the natural sciences. Such models rely on key assumptions about the underlying process in order to enable faithful learning of governing dynamics that mimic the actual system behavior. The de facto assumption in current approaches relies on the principle of least action that results in gradient field dynamics and leads to trajectories minimizing an energy functional between two probability measures. However, many real-world systems, such as cell cycles in single-cell RNA, are known to exhibit non-gradient, periodic behavior, which fundamentally cannot be captured by current state-of-the-art methods such as flow and bridge matching. In this paper, we introduce CURLY FLOW MATCH-ING (CURLY-FM), a novel approach that is capable of learning non-gradient field dynamics by designing and solving a Schrödinger bridge problem with a non-zero drift reference process-in stark contrast to typical zero-drift reference processeswhich is constructed using inferred velocities in addition to population snapshot data. We showcase CURLY-FM by solving the trajectory inference problems for single cells, computational fluid dynamics, and ocean currents with approximate velocities. We demonstrate that CURLY-FM can learn trajectories that better match both the reference process and population marginals. CURLY-FM expands flow matching models beyond the modeling of populations and towards the modeling of known periodic behavior in physical systems. Our code repository is accessible at: https://github.com/kpetrovicc/curly-flow-matching.git.

For agents

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

get_harvested_code_for_paper("2510.26645")
get_code_for_paper("2510.26645")
have("2510.26645")

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

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

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

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

Connect an agent — have() is free.