SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.06074 · ICLR · 2025

Scalable Mechanistic Neural Networks

Francesco Locatello, Dan Alistarh, Dingling Yao, Jiale Chen, Adeel Pervez

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 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/2410.06074.json · badge: /api/ran/2410.06074.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
ist-daslab/scalablemnn canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
IST-DASLab/ScalableMNN marked official in Papers with Code
Papers with Code archive
3 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_ata_atb Ran
ran; our contract draft was wrong, not the code
ist-daslab/scalablemnn/smnn.py
code served (permissive licence) · get_code("781b24ec1442c438")
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 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 math

torch.manual_seed(0)

# Define dimensions with distinct sizes
n_steps = 3
n_init_var_steps = 2
n_dims = 4
n_orders = 5
n_init_var_orders = 3
batch_size = 2

# Batch shapes
batch = torch.Size([batch_size])
batch_lhs = torch.Size([batch_size])

# Create coefficients: (n_steps[b], ..., n_equations, n_dims, n_orders)
# Shape: (3, 2, 7, 4, 5) where 7 is n_equations
coefficients = torch.randn(n_steps, batch_size, 7, n_dims, n_orders, dtype=torch.float32)

# Create rhs_equation: (n_steps[b], ..., n_equations[e])
# Shape: (3, 2, 7)
rhs_equation = torch.randn(n_steps, batch_size, 7, dtype=torch.float32)

# Create init_vars: (n_init_var_steps[b], ..., n_dims[e], n_init_var_orders[e])
# Shape: (2, 2, 4, 3)
init_vars = torch.randn(n_init_var_steps, batch_size, n_dims, n_init_var_orders, dtype=torch.float32)

# Create steps: (n_steps-1[b], ...)
# Shape: (2, 2)
steps = torch.randn(n_steps - 1, batch_size, dtype=torch.float32)

# Scalar parameters
weight_equation = 1.0
weight_init_var = 0.5
weight_smooth = 0.1
enable_central_smoothness = False

# Device and dtype
dtype = torch.float32
device = torch.device('cpu')

ARGS = {
    'coefficients': coefficients,
    'rhs_equation': rhs_equation,
    'init_vars': init_vars,
    'steps': steps,
    'n_steps': n_steps,
    'n_init_var_steps': n_init_var_steps,
    'weight_equation': weight_equation,
    'weight_init_var': weight_init_var,
    'weight_smooth': weight_smooth,
    'enable_central_smoothness': enable_central_smoothness,
    'dtype': dtype,
    'device': device,
    'n_dims': n_dims,
    'n_orders': n_orders,
    'n_init_var_orders': n_init_var_orders,
    'batch': batch,
    'batch_lhs': batch_lhs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
compute_ata_atb Ran
ran; our contract draft was wrong, not the code
IST-DASLab/ScalableMNN/smnn.py
code served (permissive licence) · get_code("d7b9be6133f7d6b7")
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)

# Define small dimensions for distinct sizes
n_steps = 5
n_init_var_steps = 3
n_dims = 2
n_orders = 3
n_init_var_orders = 2
batch_size = 2
n_equations = 4

dtype = torch.float32
device = torch.device("cpu")

# Batch shapes for broadcasting
batch = torch.Size([batch_size])
batch_lhs = torch.Size([batch_size])

# Build coefficients: (n_steps, batch_size, n_equations, n_dims, n_orders)
coefficients = torch.randn(n_steps, batch_size, n_equations, n_dims, n_orders, dtype=dtype, device=device)

# Build rhs_equation: (n_steps, batch_size, n_equations)
rhs_equation = torch.randn(n_steps, batch_size, n_equations, dtype=dtype, device=device)

# Build init_vars: (n_init_var_steps, batch_size, n_dims, n_init_var_orders)
init_vars = torch.randn(n_init_var_steps, batch_size, n_dims, n_init_var_orders, dtype=dtype, device=device)

# Build steps: (n_steps-1, batch_size)
steps = torch.randn(n_steps - 1, batch_size, dtype=dtype, device=device) + 0.1  # Add offset to avoid near-zero steps

# Weights and flags
weight_equation = 1.0
weight_init_var = 0.5
weight_smooth = 0.3
enable_central_smoothness = False

ARGS = {
    "coefficients": coefficients,
    "rhs_equation": rhs_equation,
    "init_vars": init_vars,
    "steps": steps,
    "n_steps": n_steps,
    "n_init_var_steps": n_init_var_steps,
    "weight_equation": weight_equation,
    "weight_init_var": weight_init_var,
    "weight_smooth": weight_smooth,
    "enable_central_smoothness": enable_central_smoothness,
    "dtype": dtype,
    "device": device,
    "n_dims": n_dims,
    "n_orders": n_orders,
    "n_init_var_orders": n_init_var_orders,
    "batch": batch,
    "batch_lhs": batch_lhs,
}
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
compute_atb Ran
ran; our contract draft was wrong, not the code
IST-DASLab/ScalableMNN/smnn.py
code served (permissive licence) · get_code("ee8fc2f245bacb2e")
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 Tensor, ndim 4, dtype family float, shape (3, 2, 30, 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)

# Define dimensions with distinct sizes
n_steps = 3
n_init_var_steps = 2
n_equations = 4
n_dims = 5
n_orders = 6
n_init_var_orders = 3
batch_size = 2

# Create tensors with shapes matching the function's docstring
# coefficients: (n_steps[b], ..., n_equations, n_dims, n_orders)
coefficients = torch.randn(n_steps, batch_size, n_equations, n_dims, n_orders, dtype=torch.float32)

# rhs_equation: (n_steps[b], ..., n_equations[e])
rhs_equation = torch.randn(n_steps, batch_size, n_equations, dtype=torch.float32)

# init_vars: (n_init_var_steps[b], ..., n_dims[e], n_init_var_orders[e])
init_vars = torch.randn(n_init_var_steps, batch_size, n_dims, n_init_var_orders, dtype=torch.float32)

# Scalar parameters
weight_equation = 1.5
weight_init_var = 2.0

# dtype and device
dtype = torch.float32
device = torch.device('cpu')

# batch size as torch.Size
batch = torch.Size([batch_size])

ARGS = {
    'coefficients': coefficients,
    'rhs_equation': rhs_equation,
    'init_vars': init_vars,
    'n_steps': n_steps,
    'n_init_var_steps': n_init_var_steps,
    'weight_equation': weight_equation,
    'weight_init_var': weight_init_var,
    'dtype': dtype,
    'device': device,
    'n_orders': n_orders,
    'n_init_var_orders': n_init_var_orders,
    'batch': batch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (3, 2, 30, 1) — shape (3, 2, 30, 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
move_step_dim_first Ran
ran; our contract draft was wrong, not the code
ist-daslab/scalablemnn/smnn.py
code served (permissive licence) · get_code("9bc6c6581bc61d8f")
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 Tensor, ndim 4, dtype family float, shape (5, 2, 3, 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 distinct dimensions
# Shape: (2, 3, 4, 5) - batch=2, dim1=3, dim2=4, dim3=5
x = torch.randn(2, 3, 4, 5)

# Test case 1: i=1, revert=False
# This should move the -1 dimension (last, size 5) to the first position
i = 1
revert = False

ARGS = {
    "x": x,
    "i": i,
    "revert": revert,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (5, 2, 3, 4) — shape (5, 2, 3, 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
move_step_dim_first Ran
ran; our contract draft was wrong, not the code
IST-DASLab/ScalableMNN/smnn.py
code served (permissive licence) · get_code("1d13e24085b1e33e")
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 Tensor, ndim 4, dtype family float, shape (5, 2, 3, 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 distinct dimensions
# Shape: (2, 3, 4, 5) - batch=2, feature=3, steps=4, extra=5
x = torch.randn(2, 3, 4, 5)

# i parameter: which dimension from the end to move (0-indexed from the end)
i = 1

# revert parameter: whether to move to last (True) or first (False)
revert = False

ARGS = {
    "x": x,
    "i": i,
    "revert": revert,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (5, 2, 3, 4) — shape (5, 2, 3, 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
LinearSolver Not yet run
unverified (harvested, no recorded run)
IST-DASLab/ScalableMNN/smnn.py
code served (permissive licence) · get_code("3e7a78a1b56ac153")
How it ran

no invocation recorded.

ode_forward Not yet run
unverified (harvested, no recorded run)
ist-daslab/scalablemnn/smnn.py
code served (permissive licence) · get_code("e27b3c00975e8684")
How it ran

no invocation recorded.

ode_forward Not yet run
unverified (harvested, no recorded run)
IST-DASLab/ScalableMNN/smnn.py
code served (permissive licence) · get_code("3b5db06f26ba5f16")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 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

We propose Scalable Mechanistic Neural Network (S-MNN), an enhanced neural network framework designed for scientific machine learning applications involving long temporal sequences. By reformulating the original Mechanistic Neural Network (MNN) (Pervez et al., 2024), we reduce the computational time and space complexities from cubic and quadratic with respect to the sequence length, respectively, to linear. This significant improvement enables efficient modeling of long-term dynamics without sacrificing accuracy or interpretability. Extensive experiments demonstrate that S-MNN matches the original MNN in precision while substantially reducing computational resources. Consequently, S-MNN can drop-in replace the original MNN in applications, providing a practical and efficient tool for integrating mechanistic bottlenecks into neural network models of complex dynamical systems. Source code is available at https://github.com/IST-DASLab/ScalableMNN.

For agents

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

get_harvested_code_for_paper("2410.06074")
get_code_for_paper("2410.06074")
have("2410.06074")

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

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

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

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

Connect an agent — have() is free.