✗ Failed on benchmark 2026

Matching-Controllable Recurrent State Space

Implementation & benchmark of arXiv:2607.27706 — Structural Averaged Controllability for Linear Ensemble Systems: Multi-input Case

Usefulness7/10
Difficulty5/10
Novelty7/10

Source paper: Structural Averaged Controllability for Linear Ensemble Systems: Multi-input Case arXiv:2607.27706 ⓘ · analyzed Aug 31, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Construct the sparse transition matrix and input projection of a recurrent or state-space layer so that every hidden-state row is covered by a matching in the controllability core. This prevents hidden directions from becoming unreachable from the input sequence, especially in multi-input systems and across a distribution of transition matrices or task conditions.

Formulas

$$\mathcal C(\sigma)=\left[B(\sigma)\; A(\sigma)B(\sigma)\; A(\sigma)^2B(\sigma)\;\cdots\;A(\sigma)^{n-1}B(\sigma)\right],$$
$$\operatorname{rank}\mathcal C(\sigma)=n\ \Longleftrightarrow\ \text{the hidden state is controllable for parameter value }\sigma,$$
$$W_T(\sigma)=\int_0^T e^{A(\sigma)t}B(\sigma)B(\sigma)^Te^{A(\sigma)^Tt}\,dt,\qquad \bar W_T=\frac{1}{K}\sum_{k=1}^{K}W_T(\sigma_k),$$
$$\text{accessibility}(G)+\text{row-saturating matching}(\mathcal S_{G^*})\ \Longrightarrow\ \exists\text{ edge weights with full-rank averaged controllability}.$$

Mathematical statement

Consider the linearized hidden dynamics \(\dot h(t)=A(\sigma)h(t)+B(\sigma)u(t)\), where \(h\in\mathbb{R}^{n}\) is the hidden state, \(u\in\mathbb{R}^{m}\) is the input, and \(\sigma\in\Sigma\) indexes an ensemble of parameter values, operating conditions, or task contexts. The controllability matrix is \(\mathcal C(\sigma)=[B(\sigma),A(\sigma)B(\sigma),\ldots,A(\sigma)^{n-1}B(\sigma)]\). Form the directed graph with an edge \(j\to i\) whenever \(A_{ij}\) is structurally nonzero and an input edge \(u_k\to i\) whenever \(B_{ik}\) is structurally nonzero. The core sparsity pattern \(\mathcal S_{G^*}\) is the zero/nonzero pattern of the corresponding symbolic controllability matrix. The paper's structural criterion is: an accessible graph together with a row-saturating matching in the bipartite graph of \(\mathcal S_{G^*}\) is necessary and sufficient for existence of edge weights giving full-rank averaged controllability. A row-saturating matching selects one nonzero symbolic entry in every hidden-state row, with no column selected twice. For a differentiable neural implementation, estimate controllability using the finite-horizon Gramian \(W_T(\sigma)=\int_0^T e^{A(\sigma)t}B(\sigma)B(\sigma)^Te^{A(\sigma)^Tt}\,dt\); the empirical averaged Gramian is \(\bar W_T=K^{-1}\sum_{k=1}^K W_T(\sigma_k)\). Full controllability predicts \(\lambda_{\min}(\bar W_T)>0\), while unmatched or inaccessible designs produce an exactly or nearly singular Gramian.

Implementation notes

1. Integration point: use this as a structural design and initialization procedure for a linear recurrent layer, S4-like state-space layer, or residual RNN. Let the hidden update be \(h_{t+1}=Ah_t+Bu_t\), optionally followed by a nonlinear readout. Choose binary masks \(M_A,M_B\) before training; \(A=M_A\odot\Theta_A\) and \(B=M_B\odot\Theta_B\). 2. Pseudocode: build the directed graph from \(M_A,M_B\); run graph reachability from all input nodes; compute symbolic path products for \([B,AB,\ldots,A^{n-1}B]\) using Boolean matrix multiplication; construct the core pattern; run Hopcroft-Karp maximum matching on its row-column bipartite graph. Reject or repair the mask unless all hidden rows are matched. Initialize the matched entries with independent nonzero values, initialize remaining allowed edges with smaller random values, and optionally resample until the numerical controllability score is adequate. During training, periodically sample contexts \(\sigma_k\), form the local/Jacobian transition matrices \(A(\sigma_k)\), approximate \(W_T(\sigma_k)\) by discretized recursion, and add \(\lambda[-\log(\lambda_{\min}(\bar W_T)+\epsilon)]\) to the loss. 3. Computed exactly from the paper: accessibility, symbolic controllability-core construction, maximum matching, and the structural accept/reject test. Estimated empirically: Jacobians, finite-horizon Gramians, condition numbers, and averaged minimum eigenvalues. 4. First cheap experiment: compare a 64-dimensional tanh residual RNN on sequential MNIST or permuted sequential MNIST against the same parameter-count model with a random sparse mask, an accessible-but-unmatched mask, and a matching-controllable mask. Use four input channels and 20% transition sparsity. Measure validation accuracy, gradient propagation, \(\lambda_{\min}(\bar W_T)\), and the numerical rank of \(\bar W_T\) over 32 sampled input/context conditions. The quantitative prediction is a sharp structural boundary: masks failing accessibility or matching should yield rank-deficient Gramians and near-zero \(\lambda_{\min}\), whereas matching-controllable masks should have full rank for generic weights; after random initialization, the latter should show a substantially larger minimum eigenvalue and less degradation of input-to-hidden gradients at long horizons. A secondary prediction is that adding the Gramian penalty increases \(\lambda_{\min}(\bar W_T)\) monotonically until optimization becomes ill-conditioned, revealing a measurable tradeoff rather than an unconstrained benchmark effect.

Verification

Failed on benchmark

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗

Stage 2 · Practical benchmark result: Inconclusive

Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built a self-contained MVP with Boolean controllability-core construction, accessibility, maximum row-saturating matching, numerical controllability matrices, and finite-horizon Gramians. The mechanism manifested clearly: the matched accessible mask had matching size 10/10 and numerical controllability rank 10, the reachable-but-unmatched mask had matching size 2/10 and rank 2, and the inaccessible mask had rank 9 because of its unreachable state. The horizon sweep matched the predicted transition: the matched chain reached ranks 2, 4, 6, 8, and 10 at horizons 1 through 5, while the unmatched design saturated at rank 2.

Agent confidence
9/10
Baseline
Random sparse: mean Gramian rank about 8.6/10 across 8 seeds; lambda_min varied from 5.9e-8 to 1.1e-3 and was often larger than matching.
Idea
Matching mask: structural matching 10/10, mean controllability rank 10/10, mean finite-horizon Gramian rank 9.25/10, mean lambda_min 1.47e-6; full discrete controllability rank appeared at horizon H=5. Unmatched mask: matching 2/10, controllability rank 2/10, and lambda_min approximately zero.

Limitations: No nonlinear RNN training or task-accuracy experiment was run. Continuous-time Gramians were highly ill-conditioned for long sparse chains, making numerical Gramian rank tolerance-dependent. Ensemble context variation and Gramian-penalty training were not tested.

How to run: python3 matching_controllable_rnn.py

Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.27706)

No significant difference vs. the tuned baseline (+34.5%, p=0.3437, wins 2 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
explicit_tanh_rnn_shared
Paired seeds
8
Baseline mean
0.0031
Idea mean
0.0042
Effect (Δ)
0.0011 (+34.5%; negative = idea better)
Wins
2 / 8 paired seeds
p-value
0.3437 (permutation test, 20 000 shuffles)
Smallest detectable effect
±81.7%
Mechanism
Not confirmed ✗
Practical effect
Inconclusive
Baseline tuning
swept over 3 configs
Limitations:

Only the registered built-in dynamics pendulum track was tested. No multi-context Gramian penalty, alternative masks, larger hidden sizes, or longer training budgets were evaluated; numerical rank is tolerance-dependent.

How to run: python3 matching_bench.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Stage 2 — Benchmark latest Failed ✗

Agent confidence: 9/10

The registered built-in dynamics track was rerun with 8 paired seeds, a tuned three-point baseline sweep, and the same learning-rate grid for the idea. The matching-controllable recurrent model had higher test MSE than the dense baseline (0.004187 versus 0.003113), paired delta +0.001074, and permutation p=0.3437; therefore there was no significant win. The trained-model mechanism signature was also not confirmed: numerical controllability ranks were 15–18/24 rather than full rank.

Baseline
Best lr=0.01, weight_decay=0.0; full 8-seed test MSE mean 0.0031130631 ± 0.0015298698.
Delta mean
0.0010737121192505583
Idea
Best lr=0.01, weight_decay=0.0; full 8-seed test MSE mean 0.0041867752 ± 0.0021045838.
P value
0.3437

Benchmark result

No significant difference vs. the tuned baseline (+34.5%, p=0.3437, wins 2 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
explicit_tanh_rnn_shared
Paired seeds
8
Baseline mean
0.0031
Idea mean
0.0042
Effect (Δ)
0.0011 (+34.5%; negative = idea better)
Wins
2 / 8 paired seeds
p-value
0.3437 (permutation test, 20 000 shuffles)
Smallest detectable effect
±81.7%
Mechanism
Not confirmed ✗
Practical effect
Inconclusive
Baseline tuning
swept over 3 configs
Limitations:

Only the registered built-in dynamics pendulum track was tested. No multi-context Gramian penalty, alternative masks, larger hidden sizes, or longer training budgets were evaluated; numerical rank is tolerance-dependent.

How to run: python3 matching_bench.py

Artifacts

Implementation overview ⬇ Download all as ZIP 6 files · code, reports and structured results