SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.03943 · ICLR · 2025

Oscillatory State-Space Models

Daniela Rus, T Rusch

arXiv · PDF · Open in the Atlas

Code that ran

4 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 1 has no contract verdict; 3 failures of our instrument; 4 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/2410.03943.json · badge: /api/ran/2410.03943.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
tk-rusch/linoss community
Papers with Code archive
4 ran · 4 no recorded run
FunctionStatusWhere it lives
LinOSSLayer Ran
ran on a synthesized input
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("89731cf15fbb7099")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned ArrayImpl, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 equinox as eqx
import jax
import jax.numpy as jnp
import jax.random as jr
import math

INIT_ARGS = {
    "ssm_size": 8,
    "H": 4,
    "discretization": "IMEX",
    "key": jr.PRNGKey(0),
}

# Create a small input sequence for testing
input_sequence = jnp.ones((2, INIT_ARGS["H"]))

ARGS = {
    "input_sequence": input_sequence,
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
equinox, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
apply_linoss_im Ran
ran; our contract draft was wrong, not the code
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("24eeb5f0aa98ab68")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 3) 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 jax
import jax.numpy as jnp
import numpy as np

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

# Define dimensions
P = 4  # State dimension
H = 3  # Feature/hidden dimension
L = 2  # Sequence length

# A_diag: diagonal state matrix (P,)
A_diag = jnp.array([-0.5, -0.3, -0.2, -0.1], dtype=jnp.float32)

# B: input matrix (P, H) - complex64
B = jnp.array([
    [0.1 + 0.2j, 0.3 + 0.1j, 0.2 + 0.05j],
    [0.15 + 0.1j, 0.2 + 0.15j, 0.1 + 0.2j],
    [0.05 + 0.1j, 0.1 + 0.05j, 0.15 + 0.1j],
    [0.2 + 0.05j, 0.1 + 0.1j, 0.05 + 0.15j]
], dtype=jnp.complex64)

# C_tilde: output matrix (H, P) - complex64
C_tilde = jnp.array([
    [0.1 + 0.1j, 0.2 + 0.05j, 0.15 + 0.1j, 0.05 + 0.2j],
    [0.2 + 0.1j, 0.1 + 0.15j, 0.05 + 0.1j, 0.1 + 0.05j],
    [0.15 + 0.05j, 0.05 + 0.1j, 0.1 + 0.2j, 0.2 + 0.1j]
], dtype=jnp.complex64)

# input_sequence: input sequence of features (L, H) - float32
input_sequence = jnp.array([
    [0.5, 0.3, 0.2],
    [0.4, 0.6, 0.1]
], dtype=jnp.float32)

# step: discretization time-step (scalar) - float
step = 0.1

ARGS = {
    "A_diag": A_diag,
    "B": B,
    "C_tilde": C_tilde,
    "input_sequence": input_sequence,
    "step": step
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
binary_operator Ran
ran; our contract draft was wrong, not the code
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("11738ec367aede4b")
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 jax
import jax.numpy as jnp

# The function is decorated with @jax.vmap, which means it will be called
# with batched inputs. We need to provide q_i and q_j as tuples of arrays.
# 
# From the function body:
# - q_i and q_j are tuples of (A, b)
# - A is split into 4 parts of size N each, so A has shape (4*N,)
# - b is split into 2 parts of size N each, so b has shape (2*N,)
# - The vmap decorator will add a batch dimension

# Let's use N=2, so:
# - A has shape (8,) before vmap, (batch, 8) after vmap
# - b has shape (4,) before vmap, (batch, 4) after vmap

N = 2
batch_size = 2

# Create A arrays: shape (4*N,) = (8,)
A_i = jnp.arange(8, dtype=jnp.float32)
A_j = jnp.arange(8, 16, dtype=jnp.float32)

# Create b arrays: shape (2*N,) = (4,)
b_i = jnp.arange(4, dtype=jnp.float32)
b_j = jnp.arange(4, 8, dtype=jnp.float32)

# Stack to create batch dimension for vmap
q_i_batched = (
    jnp.stack([A_i, A_i]),  # shape (batch, 8)
    jnp.stack([b_i, b_i])   # shape (batch, 4)
)

q_j_batched = (
    jnp.stack([A_j, A_j]),  # shape (batch, 8)
    jnp.stack([b_j, b_j])   # shape (batch, 4)
)

ARGS = {
    "q_i": q_i_batched,
    "q_j": q_j_batched
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax — 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
simple_uniform_init Ran
ran; our contract draft was wrong, not the code
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("85bf175cdac4f823")
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 ArrayImpl, ndim 2, dtype family float, shape (4, 3) 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 jax
from jax import random
import jax.numpy as jnp

# Set seed for reproducibility
key = random.PRNGKey(0)

# Define arguments for simple_uniform_init
ARGS = {
    "rng": key,
    "shape": (4, 3),
    "std": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
GLU Not yet run
unverified (harvested, no recorded run)
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("eb21c6dcd5f470d8")
How it ran

no invocation recorded.

LinOSS Not yet run
unverified (harvested, no recorded run)
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("e841118ce22d477e")
How it ran

no invocation recorded.

LinOSSBlock Not yet run
unverified (harvested, no recorded run)
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("ceb50921398bae85")
How it ran

no invocation recorded.

apply_linoss_imex Not yet run
unverified (harvested, no recorded run)
tk-rusch/linoss/models/LinOSS.py
code served (permissive licence) · get_code("909ae39b93de5731")
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 8 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 8 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 Linear Oscillatory State-Space models (LinOSS) for efficiently learning on long sequences. Inspired by cortical dynamics of biological neural networks, we base our proposed LinOSS model on a system of forced harmonic oscillators. A stable discretization, integrated over time using fast associative parallel scans, yields the proposed state-space model. We prove that LinOSS produces stable dynamics only requiring nonnegative diagonal state matrix. This is in stark contrast to many previous state-space models relying heavily on restrictive parameterizations. Moreover, we rigorously show that LinOSS is universal, i.e., it can approximate any continuous and causal operator mapping between time-varying functions, to desired accuracy. In addition, we show that an implicit-explicit discretization of LinOSS perfectly conserves the symmetry of time reversibility of the underlying dynamics. Together, these properties enable efficient modeling of long-range interactions, while ensuring stable and accurate long-horizon forecasting. Finally, our empirical results, spanning a wide range of time-series tasks from mid-range to very long-range classification and regression, as well as long-horizon forecasting, demonstrate that our proposed LinOSS model consistently outperforms state-of-the-art sequence models. Notably, LinOSS outperforms Mamba and LRU by nearly 2x on a sequence modeling task with sequences of length 50k.

For agents

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

get_harvested_code_for_paper("2410.03943")
get_code_for_paper("2410.03943")
have("2410.03943")

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

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

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

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

Connect an agent — have() is free.