SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.14067 · NeurIPS · 2024

Provable Benefits of Complex Parameterizations for Structured State Space Models

Amir Globerson, Edo Cohen-Karlik, Nadav Cohen, Raja Giryes, Yuval Ran-Milo, Eden Lumbroso

arXiv · PDF · Open in the Atlas

Code that ran

15 of 17 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; 4 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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.14067.json · badge: /api/ran/2410.14067.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
edenlum/ssmcomplexparambenefits canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
alxndrTL/mamba.py canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
alxndrTL/mamba.py/mambapy/jamba.py
code served (permissive licence) · get_code("3c76e52815c5401d")
How it ran

Ran in Syntology's jail 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 (2, 6, 5, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:23:17Z). 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 shape (batch, num_key_value_heads, seqlen, head_dim)
# Using distinct sizes: batch=2, num_key_value_heads=3, seqlen=5, head_dim=4
hidden_states = torch.randn(2, 3, 5, 4)

# n_rep is the repetition factor
n_rep = 2

ARGS = {
    "hidden_states": hidden_states,
    "n_rep": n_rep,
}
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 (2, 6, 5, 4) — shape (2, 6, 5, 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
cauchy_naive Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/s4.py
pointer only (licence: NONE) · get_code("83d17705e31bdff1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

complex_log Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/simple_mamba/pscan.py
pointer only (licence: NONE) · get_code("9828d3d0e675c964")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_type Ran
ran, violated the contract we drafted
edenlum/ssmcomplexparambenefits/utils.py
pointer only (licence: NONE) · get_code("24adb09177909a7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

delay_l2 Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/datasets.py
pointer only (licence: NONE) · get_code("9a722661e545209d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_hash Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/utils.py
pointer only (licence: NONE) · get_code("999d44c96aa5e190")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/s4.py
pointer only (licence: NONE) · get_code("61139ec62260b411")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_target_imp_res Ran
ran, honoured the contract we drafted
edenlum/ssmcomplexparambenefits/theory_ssm/theory_ssm.py
pointer only (licence: NONE) · get_code("85c040cde89f147b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

impulse_response Ran
ran, honoured the contract we drafted
edenlum/ssmcomplexparambenefits/theory_ssm/theory_ssm.py
pointer only (licence: NONE) · get_code("bbc00961f58e024d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_balancing_loss Ran
ran, honoured the contract we drafted
alxndrTL/mamba.py/mambapy/jamba.py
code served (permissive licence) · get_code("0ebccfcf2c0a35d9")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# Analyze the function:
# - router_logits: list of tensors that get concatenated (filtering out those with shape[1] <= 1)
# - num_experts: int, used in one_hot and final multiplication
# - num_experts_per_tok: int, used in topk

# Create router_logits as a list of tensors
# Each tensor should have shape (batch, num_experts) where num_experts > 1
# We'll create 2 tensors: one that will be kept, one with shape[1] <= 1 to test filtering

router_logits = [
    torch.randn(2, 4),  # shape (2, 4) - will be kept
    torch.randn(2, 1),  # shape (2, 1) - will be filtered out (shape[1] == 1)
    torch.randn(3, 4),  # shape (3, 4) - will be kept
]

num_experts = 4
num_experts_per_tok = 2

ARGS = {
    "router_logits": router_logits,
    "num_experts": num_experts,
    "num_experts_per_tok": num_experts_per_tok,
}
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 Tensor, 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
log_vandermonde_naive Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/s4.py
pointer only (licence: NONE) · get_code("264ebea7a7690cc2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

npo2 Ran
ran, honoured the contract we drafted
alxndrTL/mamba.py/mambapy/pscan.py
pointer only (licence: MIT); the stored copy get_code serves, from atlasanalyticslab/2dmamba, is pointer only (licence: NONE) · get_code("d547c23b7746ffe5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from atlasanalyticslab/2dmamba, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

override_config Ran
ran; our contract draft was wrong, not the code
edenlum/ssmcomplexparambenefits/utils.py
pointer only (licence: NONE) · get_code("23c18f489a46fdc1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_npo2 Ran
ran; our contract draft was wrong, not the code
alxndrTL/mamba.py/mambapy/pscan.py
pointer only (licence: MIT); the stored copy get_code serves, from atlasanalyticslab/2dmamba, is pointer only (licence: NONE) · get_code("8213e85fd713879a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from atlasanalyticslab/2dmamba, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unsqueeze Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
alxndrTL/mamba.py/mlx/misc.py
code served (permissive licence) · get_code("152101b1129338c6")
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 4, dtype family float, shape (2, 1, 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
x = torch.randn(2, 3, 4)

# Test with a positive axis
axis = 1

ARGS = {
    "x": x,
    "axis": axis,
}
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 Tensor, ndim 4, dtype family float, shape (2, 1, 3, 4) — shape (2, 1, 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
checkpointed_sequence Not yet run
unverified (harvested, no recorded run)
alxndrTL/mamba.py/mambapy/checkpointing.py
code served (permissive licence) · get_code("6da707934cf98642")
How it ran

no invocation recorded.

logits_to_probability Not yet run
unverified (harvested, no recorded run)
edenlum/ssmcomplexparambenefits/datasets.py
pointer only (licence: NONE) · get_code("0ffc6db74abcbaca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edenlum/ssmcomplexparambenefits when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 4 later) and 11 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
repeat_kv 243 other papers
119 dated earlier, 24 the same month, 96 later, 2 same year, order not determinable, 2 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
get_logger 15 other papers
12 dated earlier, 2 the same month, 1 later · 3 only as an assembly brick
2009.09761 (2020-09)
DiffWave: A Versatile Diffusion Model for Audio Synthesis
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2204.01692 (2022-04)
Long Movie Clip Classification with State-Space Video Models
and 12 more not named here
cauchy_naive 6 other papers
6 dated earlier · 1 only as an assembly brick
1612.00796 (2016-12)
Overcoming catastrophic forgetting in neural networks
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2312.00752 (2023-12)
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
and 3 more not named here
log_vandermonde_naive 6 other papers
6 dated earlier · 1 only as an assembly brick
1612.00796 (2016-12)
Overcoming catastrophic forgetting in neural networks
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2312.00752 (2023-12)
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
and 3 more not named here
npo2 3 other papers
2 dated earlier, 1 later
2405.19707 (2024-05)
DeMamba: AI-Generated Video Detection on Million-Scale GenVideo Benchmark
2406.05316 (2024-06)
CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting
2412.00678 (2024-12)
2DMamba: Efficient State Space Model for Image Representation with Applications on Giga-Pixel Whole Slide Image Classification
pad_npo2 3 other papers
2 dated earlier, 1 later
2405.19707 (2024-05)
DeMamba: AI-Generated Video Detection on Million-Scale GenVideo Benchmark
2406.05316 (2024-06)
CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting
2412.00678 (2024-12)
2DMamba: Efficient State Space Model for Image Representation with Applications on Giga-Pixel Whole Slide Image Classification

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

Structured state space models (SSMs), the core engine behind prominent neural networks such as S4 and Mamba, are linear dynamical systems adhering to a specified structure, most notably diagonal. In contrast to typical neural network modules, whose parameterizations are real, SSMs often use complex parameterizations. Theoretically explaining the benefits of complex parameterizations for SSMs is an open problem. The current paper takes a step towards its resolution, by establishing formal gaps between real and complex diagonal SSMs. Firstly, we prove that while a moderate dimension suffices in order for a complex SSM to express all mappings of a real SSM, a much higher dimension is needed for a real SSM to express mappings of a complex SSM. Secondly, we prove that even if the dimension of a real SSM is high enough to express a given mapping, typically, doing so requires the parameters of the real SSM to hold exponentially large values, which cannot be learned in practice. In contrast, a complex SSM can express any given mapping with moderate parameter values. Experiments corroborate our theory, and suggest a potential extension of the theory that accounts for selectivity, a new architectural feature yielding state of the art performance. 1

For agents

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

get_harvested_code_for_paper("2410.14067")
get_code_for_paper("2410.14067")
have("2410.14067")

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

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

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

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

Connect an agent — have() is free.