SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.12534 · 2023

Inexact iterative numerical linear algebra for neural network-based spectral estimation and rare-event prediction

arXiv · PDF · Open in the Atlas

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; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 2 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/2303.12534.json · badge: /api/ran/2303.12534.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
dinner-group/inexact-subspace-iteration canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
F Ran
ran on a synthesized input
dinner-group/inexact-subspace-iteration/MB_Model.py
code served (permissive licence) · get_code("4b2aa3ee6acddaad")
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 (2,) 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

# Construct valid arguments for function F
xycoord = np.array([0.5, 0.3])

ARGS = {
    "xycoord": xycoord,
    "Deep": True
}
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 (2,) — shape (2,) 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
Sample_Starts Ran
ran on a synthesized input
dinner-group/inexact-subspace-iteration/MB_Model.py
code served (permissive licence) · get_code("c56f2c72d62defa5")
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 (5, 2) 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

# The function Sample_Starts takes parameters: N, vmax, and Deep
# N: number of samples to generate (int)
# vmax: maximum potential value threshold (float)
# Deep: boolean flag for potential function variant (bool)

ARGS = {
    "N": 5,
    "vmax": 15.0,
    "Deep": True
}
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 (5, 2) — shape (5, 2) 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
Subspace_Iteration Ran
ran on a synthesized input
dinner-group/inexact-subspace-iteration/VPM.py
code served (permissive licence) · get_code("bd6757220d8a7a64")
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
import jax
import jax.numpy as jnp
import optax
import scipy

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

# Create small sample data
N = 10  # number of trajectories
t = 5   # time steps
m = 3   # input feature dimension
k = 4   # number of basis functions

# Data: (N, t, m) - trajectory data with starting points and stopping time features
Data = np.random.randn(N, t, m).astype(np.float32)

# phi_t: (N, t, k) - basis functions with constant function as first
phi_t = np.random.randn(N, t, k).astype(np.float32)
phi_t[:, :, 0] = 1.0  # First basis function is constant

# Create parameters for the neural network
# The function FF_Subspace_Single expects params[:-2] to be (w, b) pairs
# and params[-2:] for final layers
def create_params(input_dim, hidden_dim, output_dim):
    """Create simple neural network parameters."""
    params = []
    # First layer: input_dim -> hidden_dim
    w1 = np.random.randn(hidden_dim, input_dim).astype(np.float32) * 0.1
    b1 = np.zeros(hidden_dim, dtype=np.float32)
    params.append((jnp.array(w1), jnp.array(b1)))
    
    # Second layer: hidden_dim -> output_dim
    w2 = np.random.randn(output_dim, hidden_dim).astype(np.float32) * 0.1
    b2 = np.zeros(output_dim, dtype=np.float32)
    params.append((jnp.array(w2), jnp.array(b2)))
    
    # Last two parameters (required by the function)
    params.append(np.eye(output_dim, dtype=np.float32))
    params.append(np.eye(output_dim, dtype=np.float32))
    
    return params

params = create_params(input_dim=m, hidden_dim=5, output_dim=3)

# Create optimizer and optimizer state
optimizer = optax.adam(learning_rate=0.001)
opt_state = optimizer.init(params)

# Define a loss function (Lossd parameter)
def dummy_loss(params, data_batch, phi_batch, alpha, l=1.0, l2=0.01):
    """Dummy loss function that returns gradients."""
    # This should return (gradient, loss_value)
    # We'll return dummy gradients matching params structure
    dummy_grads = []
    for p in params[:-2]:
        w, b = p
        dummy_grads.append((np.zeros_like(w), np.zeros_like(b)))
    dummy_grads.append(np.zeros_like(params[-2]))
    dummy_grads.append(np.zeros_like(params[-1]))
    loss_value = np.array(0.1)
    return (dummy_grads, loss_value)

# Build ARGS dictionary with all required parameters
ARGS = {
    'params': params,
    'Data': Data,
    'phi_t': phi_t,
    'optimizer': optimizer,
    'opt_state': opt_state,
    'Inner_Iter': 10,
    'alpha': 1.0,
    'BS': 4,
    'Lossd': dummy_loss,
    'orth': True,
    'l': 1.0,
    'l2': 0.01,
    'Train_Frac': 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy, optax, scipy — 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
V Ran
ran on a synthesized input
dinner-group/inexact-subspace-iteration/MB_Model.py
code served (permissive licence) · get_code("d387c1e26539aa32")
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 (2,) 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

# The function V takes xycoord (coordinates with x, y at last dimension) and Deep (boolean)
# xycoord is indexed with [..., 0] and [..., 1], so it needs shape (..., 2)
# Let's create a small array with shape (2, 2) - batch of 2 points with 2D coordinates

xycoord = np.array([
    [0.5, 0.3],
    [-0.2, 1.1]
], dtype=np.float64)

Deep = True

ARGS = {
    "xycoord": xycoord,
    "Deep": Deep
}
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 (2,) — shape (2,) 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_Forecast Not yet run
unverified (harvested, no recorded run)
dinner-group/inexact-subspace-iteration/VPM.py
code served (permissive licence) · get_code("025697705b4ecdd5")
How it ran

no invocation recorded.

Subspace_Iteration_Forecast Not yet run
unverified (harvested, no recorded run)
dinner-group/inexact-subspace-iteration/VPM.py
code served (permissive licence) · get_code("de2a1600f36d3b04")
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

Understanding dynamics in complex systems is challenging because there are many degrees of freedom, and those that are most important for describing events of interest are often not obvious. The leading eigenfunctions of the transition operator are useful for visualization, and they can provide an efficient basis for computing statistics such as the likelihood and average time of events (predictions). Here we develop inexact iterative linear algebra methods for computing these eigenfunctions (spectral estimation) and making predictions from a data set of short trajectories sampled at finite intervals. We demonstrate the methods on a low-dimensional model that facilitates visualization and a high-dimensional model of a biomolecular system. Implications for the prediction problem in reinforcement learning are discussed.

For agents

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

get_harvested_code_for_paper("2303.12534")
get_code_for_paper("2303.12534")
have("2303.12534")

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

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

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

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

Connect an agent — have() is free.