✓✓ Beats tuned baseline 2026

Resonance-Aware Stochastic RNN Control

Implementation & benchmark of arXiv:2607.18771 — Statistical periodicity in noise-induced order from Ruelle-Pollicott resonances

Usefulness7/10
Difficulty6/10
Novelty7/10

Source paper: Statistical periodicity in noise-induced order from Ruelle-Pollicott resonances arXiv:2607.18771 ⓘ · analyzed Aug 30, 2026

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

Idea description

Estimate the leading complex resonances of the noise-averaged hidden-state dynamics of a stochastic RNN and use them to detect or control statistically persistent oscillations. The key design principle is to treat resonance radius and Lyapunov growth as independent signals: hidden trajectories can be Lyapunov-stable while the annealed dynamics still produce narrow-band ringing because a transfer-operator eigenvalue lies close to the unit circle.

Formulas

$$(P_{theta} f)(h)=E_{x,xi}[f(F_{theta}(h,x,xi))],\qquad P_{theta} phi_j=z_j phi_j,\qquad z_j=r_j exp(i omega_j).$$
$$C_y(k)approximately sum_j a_j z_j^k=sum_j a_j r_j^k exp(i k omega_j),\qquad T_j=2 pi divided by omega_j,\qquad tau_j=-1 divided by log(r_j).$$
$$S_y(omega)=sum_{k=-infinity}^{infinity} C_y(k) exp(-i omega k),\qquad Lambda_hat=(1/T)sum_{t=0}^{T-1} log(norm(J_t v_t)),\qquad J_t=partial F_{theta}/partial h.$$
$$L_res=sum_{j in J}[max(0,r_j-r_max)]^2+beta sum_{j in J} wrap(omega_j-omega_j^*)^2.$$

Mathematical statement

Let the stochastic hidden update be h_(t+1)=F_theta(h_t,x_t,xi_t), where xi_t is injected noise and K_theta(h,A)=Pr(F_theta(h,x_t,xi_t) belongs to A) is the annealed Markov kernel after averaging over noise and optionally inputs. Its transfer operator is (P_theta f)(h)=E[f(F_theta(h,x_t,xi_t))]. A Ruelle–Pollicott resonance is an eigenvalue z_j=r_j exp(i omega_j) satisfying P_theta phi_j=z_j phi_j, with 0<=r_j<1. For an observable y_t=g(h_t), the long-lag correlation is approximately C_y(k)=sum_j a_j z_j^k=sum_j a_j r_j^k exp(i k omega_j). Thus the predicted period is T_j=2 pi divided by omega_j, the decay time is tau_j=-1 divided by log(r_j), and the power spectrum has peaks near omega_j. Independently estimate the finite-time trajectory Lyapunov exponent Lambda_hat=(1/T) sum_t log(norm(J_t v_t)), where J_t is the hidden-state Jacobian and v_t is a repeatedly normalized tangent vector. Lambda_hat and log(r_j) measure different mechanisms.

Implementation notes

1. Integration point: use a tanh RNN, GRU, or diagonal state-space model with explicit Gaussian noise xi_t in the hidden update. During training, maintain a small ensemble of hidden trajectories under identical inputs but independent noise. Every M optimizer steps, collect one output coordinate, several hidden coordinates, and random projections of the hidden state. 2. Pseudocode: run B noisy trajectories; compute lag covariances C_hat(k)=B^{-1} sum_b (T-k)^{-1} sum_t (y_b,t-y_bar)(y_b,t+k-y_bar); fit m damped complex modes C_hat(k) approximately equal to sum_j a_j z_j^k using matrix-pencil, ESPRIT, or nonlinear least squares; calculate r_hat_j=abs(z_j) and omega_hat_j=arg(z_j); then add lambda times L_res to the task loss. Initially stop gradients through the fitted resonance estimates, or update the penalty only periodically. Estimate Lambda_hat with Jacobian-vector products and tangent-vector renormalization. 3. Computed versus estimated: the transfer-operator interpretation, resonance eigenvalue equation, and correlation expansion are the paper mechanism; finite-dimensional resonance values are estimated from sampled correlations rather than computed exactly. 4. First cheap experiment: train a noisy tanh RNN on a two-sine-wave prediction task and a copy-memory task, comparing ordinary weight decay, recurrent spectral-radius regularization, and resonance regularization. Sweep injected noise amplitude and recurrent gain. The falsifiable prediction is that a narrow output-spectrum peak appears when a fitted r_hat_j crosses approximately 0.95, with correlation decay time close to -1/log(r_hat_j), even when Lambda_hat remains negative. Penalizing r_hat_j above r_max=0.9 should remove that peak and reduce long-horizon error without necessarily changing Lambda_hat. The measured peak frequency should match omega_hat_j divided by 2 pi within about 10 percent.

Verification

Beats tuned baseline

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗

Stage 2 · Practical benchmark result: Significant win ✓

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

How to read this: The implementation beat the baseline, but the claimed mechanism did not reproduce at benchmark scale. The gain may come from another effect; treat the cause as unresolved.

Stage 1 — Mechanism check agent confidence 8/10

Built a readable stochastic rotational hidden-state MVP with correlation-based damped-mode fitting, PSD peak estimation, finite-time Lyapunov estimation, parameter sweeps, and resonance-radius control. The mechanism manifested quantitatively: fitted decay-time error was at most 2.9%, spectral peak error at most 4.1%, and fitted resonance parameters were invariant to noise while variance changed substantially. Controlling radius from 0.975 to 0.90 reduced peak power by 14.9x and long-lag correlation by 12.7x, although this is an exactly analyzable toy system rather than a trained nonlinear RNN.

Agent confidence
8/10
Baseline
Uncontrolled r=0.975: fitted r=0.9753, decay time=39.93, PSD peak power=25.51, absolute lag-80 correlation=0.0623, Lyapunov=-0.0253.
Idea
Controlled r=0.90: fitted r=0.8996, decay time=9.45, PSD peak power=1.71, absolute lag-80 correlation=0.00490, Lyapunov=-0.1054. Radius-sweep decay prediction maximum relative error=2.91%; frequency prediction maximum relative error=4.12%; noise-invariance spans were 0.00157 in fitted radius and 0.00284 rad in fitted frequency.

Limitations: The experiment uses a linear 2D noisy rotation, where the exact transfer resonance is known and Lyapunov estimation is straightforward; it does not train or compare nonlinear tanh/GRU RNNs on sine prediction or copy-memory tasks. The controller is implemented as direct recurrent-radius clipping rather than a differentiable periodically updated penalty, and no compute/FLOP or CUDA comparison was performed.

How to run: python3 resonance_experiment.py

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

Beats the tuned baseline by 30.8% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0021
Idea mean
0.0014
Effect (Δ)
-0.0006 (−30.8%; negative = idea better)
Wins
8 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±14.1%
Mechanism
Not confirmed ✗
Practical effect
Helps
Baseline tuning
swept over 6 configs
Limitations:

Only the registered dynamics track was tested. The experiment used 12 epochs and 400/200 examples; no wall-clock or FLOP comparison was performed. The intervention used a recurrent matrix spectral-norm proxy rather than a full transfer-operator resonance fit, and the trained-model mechanism signature was not confirmed.

How to run: python3 bench_resonance.py

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

Stage 2 — Benchmark latest Worked ✓

Agent confidence: 7/10

The resonance-aware intervention significantly improved the structurally matched dynamics benchmark: mean test MSE fell from 0.00207045 to 0.00143193 across 8 paired seeds, with all 8 paired wins and permutation p=0.0081. The mathematical sanity check passed, but the trained-model mechanism signature was not confirmed because the observed recurrent norm exceeded the target and fitted frequency reached the search boundary; therefore the empirical win is real under the bench criterion, while resonance-specific attribution remains uncertain.

Baseline
Tuned baseline: mean test MSE 0.0020704465 over 8 seeds.
Idea
Best resonance-aware setting: mean test MSE 0.0014319316 over 8 seeds; paired delta -0.0006385149; 8/8 wins; p=0.0081.

Benchmark result

Beats the tuned baseline by 30.8% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0021
Idea mean
0.0014
Effect (Δ)
-0.0006 (−30.8%; negative = idea better)
Wins
8 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±14.1%
Mechanism
Not confirmed ✗
Practical effect
Helps
Baseline tuning
swept over 6 configs
Limitations:

Only the registered dynamics track was tested. The experiment used 12 epochs and 400/200 examples; no wall-clock or FLOP comparison was performed. The intervention used a recurrent matrix spectral-norm proxy rather than a full transfer-operator resonance fit, and the trained-model mechanism signature was not confirmed.

How to run: python3 bench_resonance.py

Artifacts

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