△ Mechanism confirmed, baseline not beaten 2026

Hopf Period-Homeostatic Recurrent Cell

Implementation & benchmark of arXiv:2608.04126 — Period Homeostasis Near Hopf Bifurcation

Usefulness7/10
Difficulty5/10
Novelty7/10

Source paper: Period Homeostasis Near Hopf Bifurcation arXiv:2608.04126 ⓘ · analyzed Aug 31, 2026

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

Idea description

Replace or augment a recurrent layer with a learnable near-Hopf oscillator whose amplitude remains stable while its oscillation period is explicitly regularized to be insensitive to the input operating point. The cell is intended for sequence tasks where timing or phase must persist despite changes in signal amplitude, gain, or nuisance context.

Formulas

$$\dot z=[\mu(\lambda,\mathcal{I})+i\omega(\lambda,\mathcal{I})]z-(c_r+i c_i)|z|^2z,\qquad c_r>0.$$
$$r_*^2=\frac{\mu}{c_r},\qquad \Omega=\omega-c_i\frac{\mu}{c_r},\qquad T(\lambda,\mathcal{I})=\frac{2\pi}{\Omega},\qquad \mu>0.$$
$$\text{Hopf: }\mu(\lambda,\mathcal{I})=0,\qquad \text{period homeostasis: }\frac{\partial T}{\partial\mathcal{I}}=0\ \Longleftrightarrow\ \frac{\partial}{\partial\mathcal{I}}\left(\omega-c_i\frac{\mu}{c_r}\right)=0.$$
$$T(\mathcal{I}_*+\delta)=T_*+\frac{1}{2}T_{\mathcal{I}\mathcal{I}}(\mathcal{I}_*)\delta^2+O(\delta^3),\qquad \left.\frac{\partial T}{\partial\mathcal{I}}\right|_{\mathcal{I}_*}=0.$$

Mathematical statement

Use the complex Hopf normal form \(\dot z=[\mu(\lambda,\mathcal{I})+i\omega(\lambda,\mathcal{I})]z-(c_r+i c_i)|z|^2z\), where z is the complex oscillator state, lambda is a trainable bifurcation-control parameter, I is the scalar input operating point, mu is the linear growth rate, omega is the linear angular frequency, and c_r > 0 and c_i are nonlinear coefficients. For mu > 0, the stable periodic orbit has radius r = sqrt(mu/c_r), angular frequency Omega = omega - c_i mu/c_r, and period T = 2 pi/Omega. Hopf onset is mu = 0, while infinitesimal period homeostasis is dT/dI = 0. When coefficients are locally constant, this is equivalent to d[omega - c_i mu/c_r]/dI = 0. Near a homeostatic point I_star, the linear period response vanishes and T(I_star + delta) = T_star + one-half T_II delta squared + O(delta cubed).

Implementation notes

Use this mechanism as a recurrent cell or state-space block. Represent each oscillator by two real channels x and y, corresponding to z = x + i y. Let a small projection of the current feature vector u_t produce an operating scalar I_t, while mu, omega, c_r, and c_i are learned per channel or per layer. Integrate the normal form with RK2 or RK4 at step size Delta t, then concatenate the oscillator states with ordinary features before the output projection. For each channel, compute r_squared = x squared + y squared, dx = mu x - omega y - c_r r_squared x + c_i r_squared y, and dy = omega x + mu y - c_r r_squared y - c_i r_squared x; advance x and y with the chosen integrator. Add L_homeo = alpha times the squared estimated derivative of period with respect to I to the task loss. Estimate T using unwrapped phase phi = atan2(y,x) after a warmup, or by measuring successive upward zero crossings. Estimate dT/dI by evaluating the same sequence at I + h and I - h and using [T(I + h) - T(I - h)]/(2h). The paper supplies the Hopf and homeostasis conditions; finite-difference period estimates and the loss term are engineering adaptations. First run a copy task and sine-wave phase-tracking task with a GRU baseline, an unconstrained Hopf cell, and the homeostatic Hopf cell under input-gain shifts from 0.5 to 2.0. Enforce mu > 0 and c_r > 0 with softplus parameterizations, and monitor radius growth. The quantitative prediction is that training creates an operating point with estimated dT/dI near zero, that the period-versus-gain curve has a vanishing fitted linear coefficient near that point, and that the orbit radius obeys r proportional to the square root of mu close to Hopf onset.

Verification

Mechanism confirmed, baseline not beaten

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Confirmed ✓

Stage 2 · Practical benchmark result: Significantly worse ✗

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

Stage 1 — Mechanism check agent confidence 8/10

Built a real-valued RK2 Hopf recurrent cell with softplus-positive mu and c_r, input-conditioned omega, and a differentiable finite-difference period-homeostasis penalty. Numerical integration confirmed radius slope 0.99987 versus predicted 1.0, frequency slope -0.24705 versus predicted -0.24706, and quadratic period-response coefficient 0.9548 versus predicted 0.9768; the central period derivative was numerically zero. The gain-shift toy comparison reduced mean period error from 0.2619 to 0.1123, but this is a controlled mechanism comparison rather than evidence from trained sequence-task generalization.

Agent confidence
8/10
Cell runtime check
CUDA passed; output shape [5,7,1], positive mu and c_r, finite gradients
Frequency scaling
observed dOmega/dmu -0.247050; predicted -ci/cr=-0.247059; absolute error 8.8e-6
Gain shift toy
unconstrained mean period error 0.26192; homeostatic mean period error 0.11225
Homeostatic response
observed central dT/dI max 0.0; predicted 0; observed quadratic coefficient 0.95475; predicted 0.97684
Radius scaling
observed slope 0.99987; predicted 1.0; mean relative error 7.5e-5

Limitations: The recurrent cell was smoke-tested but not trained end-to-end on copy or sine phase-tracking tasks, and no actual GRU baseline was run. The toy homeostatic comparison imposes an analytically quadratic omega-versus-gain relation rather than learning it from data; period homeostasis is therefore mechanistically verified, not yet demonstrated as a practical trained-model win.

How to run: python3 hopf_experiment.py && /home/maxwelhelp/main/bin/python3 verify_cell.py

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

Significantly WORSE than the tuned baseline (+851.3%, p=0.0081, wins 0 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0028
Idea mean
0.0264
Effect (Δ)
0.0236 (+851.3%; negative = idea better)
Wins
0 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
n/a
Mechanism
Confirmed ✓
Practical effect
Hurts
Baseline tuning
swept over 3 configs
Limitations:

The completed protocol used 400 training samples, 200 test samples, and 10 epochs because the initial 4000/1000-sample 15-epoch run exceeded the runtime budget. Only the matched dynamics track was tested.

How to run: python3 hopf_bench.py

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

Stage 2 — Benchmark latest Failed ✗

Agent confidence: 10/10

Implemented a Hopf recurrent replacement with positive Hopf parameters, RK2 integration, input-conditioned frequency, and homeostasis regularization on the structurally matched dynamics track. The analytical radius and quadratic-period predictions matched numerically, but the trained Hopf system was significantly worse than the tuned GRU: MSE 0.02641 versus 0.002776, paired delta +0.02363 with permutation p=0.0081. Therefore the idea did not produce a benchmark win.

Baseline
mean test MSE 0.0027758953, std 0.0017084856, best lr 0.01
Idea
best mean test MSE 0.0264074635, std 0.0236834881, lr 0.01 alpha 0.0; paired delta +0.0236315682, p=0.0081, 0/8 wins

Benchmark result

Significantly WORSE than the tuned baseline (+851.3%, p=0.0081, wins 0 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0028
Idea mean
0.0264
Effect (Δ)
0.0236 (+851.3%; negative = idea better)
Wins
0 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
n/a
Mechanism
Confirmed ✓
Practical effect
Hurts
Baseline tuning
swept over 3 configs
Limitations:

The completed protocol used 400 training samples, 200 test samples, and 10 epochs because the initial 4000/1000-sample 15-epoch run exceeded the runtime budget. Only the matched dynamics track was tested.

How to run: python3 hopf_bench.py

Artifacts

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