SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.00095 · 2026

SNAP-FM: Sparse Nonlinear Accelerated Projection for Physics-Constrained Generative Modeling

Alan Edelman, Christopher Rackauckas, Rafael Gómez-Bombarelli, Pengfei Cai, Utkarsh Utkarsh, Alaina Kolli, Theodoros Xenakis

arXiv · PDF

Code that ran

4 of 6 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 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/2607.00095.json · badge: /api/ran/2607.00095.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
xenakistheo/PCFM.jl canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
generate_ic Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xenakistheo/PCFM.jl/datasets/generate_RD1d_data.py
code served (permissive licence) · get_code("0ba442a31ddb3f78")
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 (50,) 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

# xc is used as:
# - xc[-1] and xc[0] for range calculation
# - indexing with xc[None, :] for broadcasting
# - used in np.tanh((xc - xL) / trns) operations
# So xc should be a 1D numpy array of spatial coordinates

xc = np.linspace(0, 1, 50)

ARGS = {
    "xc": xc,
    "k_tot": 3,
    "num_choice_k": 2,
}
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 (50,) — shape (50,) 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_sample Ran
ran; our contract draft was wrong, not the code
xenakistheo/PCFM.jl/datasets/generate_burgers1d_data.py
code served (permissive licence) · get_code("4942d4c5175a1bb8")
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 numpy as np

# Analyze the function signature and body:
# generate_sample(args) where args is a tuple of:
#   i_ic, i_bc, p_locs, u_bcs, Nx, Nt
# 
# Body usage:
#   - i_ic: integer index into p_locs
#   - i_bc: integer index into u_bcs
#   - p_locs: array-like, indexed by i_ic -> passed to solve_burgers as p_loc (scalar)
#   - u_bcs: array-like, indexed by i_bc -> passed to solve_burgers as u_bc (scalar)
#   - Nx: integer, passed to solve_burgers
#   - Nt: integer, passed to solve_burgers

# Create small test data
p_locs = np.array([0.3, 0.5, 0.7])  # 3 different initial condition locations
u_bcs = np.array([1.0, 0.5])        # 2 different boundary conditions

i_ic = 0  # index into p_locs
i_bc = 1  # index into u_bcs
Nx = 10   # small spatial grid
Nt = 5    # small temporal grid

args = (i_ic, i_bc, p_locs, u_bcs, Nx, Nt)

ARGS = {
    'args': args
}
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 — 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_random_force Ran
ran, honoured the contract we drafted
xenakistheo/PCFM.jl/datasets/generate_ns_2d.py
code served (permissive licence) · get_code("f2d9f924e12dbef0")
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, 4, 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
import math

torch.manual_seed(0)

ARGS = {
    'b': 2,
    's': 4,
    'device': 'cpu',
    'cycles': 1,
    'scaling': 0.1,
    't': 0.0,
    't_scaling': 0.2,
    'seed': 42,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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, 4, 4) — shape (2, 4, 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
solve_burgers Ran
ran, honoured the contract we drafted
xenakistheo/PCFM.jl/datasets/generate_burgers1d_data.py
code served (permissive licence) · get_code("b360f2fe94c8b825")
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 float, shape (101, 101) 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

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

# Define all parameters for solve_burgers
ARGS = {
    "p_loc": 0.5,           # Location parameter for initial condition
    "u_bc": 0.0,            # Boundary condition value
    "u_L": 1.0,             # Left boundary value (unused in function but in signature)
    "u_R": 0.0,             # Right boundary value (unused in function but in signature)
    "L": 1.0,               # Domain length
    "T": 1.0,               # Time domain length
    "Nx": 100,              # Number of spatial grid points
    "Nt": 100,              # Number of time steps
    "eps": 0.02,            # Smoothing parameter for initial condition
}
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 2, dtype family float, shape (101, 101) — shape (101, 101) 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_burgers_dataset Not yet run
unverified (harvested, no recorded run)
xenakistheo/PCFM.jl/datasets/generate_burgers1d_data.py
code served (permissive licence) · get_code("97f983ceb8d1b9b1")
How it ran

no invocation recorded.

solve_navier_stokes_2d Not yet run
unverified (harvested, no recorded run)
xenakistheo/PCFM.jl/datasets/generate_ns_2d.py
code served (permissive licence) · get_code("acbf8e12aab478c1")
How it ran

no invocation recorded.

Also present in other papers' code

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

Generative models have emerged as scalable surrogates for physical simulation, yet they offer no guarantee that their outputs respect the conservation laws, boundary conditions, and nonlinear invariants that govern the underlying physics. Constrained sampling closes this gap, enforcing such constraints exactly at inference time without retraining, but at a computational cost: projection, correction and trajectory-optimization steps are repeated during sampling, with these steps becoming expensive for nonlinear constraints. Standard ML frameworks exacerbate this: their dense tensor algebra and limited sparse solver composability obscure the structure that physical constraints naturally induce, making efficient batched nonlinear optimization difficult to realize in practice. We address this bottleneck by exploiting the structure that sample-wise batching and local PDE couplings induce in the projection subproblemsnamely, block-sparse Jacobian and KKT systems -exposing this structure using ExaModels.jl and solving the resulting sparse nonlinear programs with MadNLP.jl and GPU sparse factorization. Applied to Physics-Constrained Flow Matching (PCFM), on PDE benchmarks with linear, nonlinear, one-dimensional, and twodimensional constraints, this approach accelerates nonlinear constraint projection while maintaining constraint satisfaction. These results show that sparse GPU nonlinear optimization is a practical foundation for constrained generative sampling in scientific machine learning.

For agents

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

get_harvested_code_for_paper("2607.00095")
get_code_for_paper("2607.00095")
have("2607.00095")

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

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

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

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

Connect an agent — have() is free.