✗ Failed on benchmark 2026

Periodic Lyapunov Guard for Cyclic Training

Implementation & benchmark of arXiv:2608.19975 — Harmonic Stability of Power Systems: A Control-Theoretic Definition and Assessment Criteria

Usefulness8/10
Difficulty6/10
Novelty7/10

Source paper: Harmonic Stability of Power Systems: A Control-Theoretic Definition and Assessment Criteria arXiv:2608.19975 ⓘ · analyzed Sep 1, 2026

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

Idea description

Model one period of a cyclic optimizer or periodically modulated recurrent network as a discrete-time linear time-periodic system obtained by linearizing the update around its current trajectory. Estimate a periodic Lyapunov matrix sequence and scale the next learning-rate or modulation amplitude so that every phase contracts according to a certified energy decrease. This should prevent delayed divergence caused by resonance with the schedule, even when individual phase Jacobians are temporarily expansive.

Formulas

$$\delta z_{k+1}=J_k\delta z_k,\qquad J_k=\left.\frac{\partial F_k(z)}{\partial z}\right|_{z=\bar z_k},\qquad J_{k+M}=J_k.$$
$$J_k^{\top}P_{k+1}J_k-P_k\preceq-Q_k,\qquad P_k=P_k^{\top}\succ0,\quad Q_k=Q_k^{\top}\succ0.$$
$$\Phi=J_{M-1}J_{M-2}\cdots J_0,\qquad \rho(\Phi)<1,$$
$$J_k^{\top}P_{k+1}J_k\preceq\gamma^2P_k\ \forall k\quad\Longrightarrow\quad V_{k+M}\le\gamma^{2M}V_k.$$

Mathematical statement

Let the neural state be $z_k$, comprising parameters, hidden state, or both, and let one schedule period have $M$ phases. Linearization at phase $k$ gives $\delta z_{k+1}=J_k\delta z_k$, where $J_k=\partial F_k/\partial z$ and $J_{k+M}=J_k$. A periodic quadratic Lyapunov function is $V_k(\delta z)=\delta z^\top P_k\delta z$, with symmetric positive-definite $P_k=P_k^\top\succ0$ and $P_{k+M}=P_k$. The paper's LTP stability mechanism becomes the discrete periodic LMI $J_k^\top P_{k+1}J_k-P_k\preceq-Q_k$, where $Q_k\succ0$. It implies $V_{k+1}-V_k\le-\delta z_k^\top Q_k\delta z_k$, hence local exponential stability. Over one period, the monodromy matrix is $\Phi=J_{M-1}\cdots J_0$; feasibility implies $\rho(\Phi)<1$, where $\rho$ is spectral radius. For a scalar safety margin $\gamma$, enforce $J_k^\top P_{k+1}J_k\preceq\gamma^2P_k$; then perturbations contract by at least $\gamma$ per phase in the certified metric and by at most $\gamma^M$ per period.

Implementation notes

1. Integration point: use this as a controller around a cyclic learning-rate optimizer, momentum optimizer, or recurrent inference loop. Define the phase-specific update $z_{k+1}=F_k(z_k)$; for ordinary training, $z_k$ can concatenate flattened parameters and optimizer momentum, while for an RNN it can concatenate hidden state and a local parameter subset. At the end of every schedule period, freeze a minibatch and estimate the Jacobians $J_k$ with forward-mode JVPs or finite differences on a low-dimensional random subspace. 2. Pseudocode: collect $J_0,\ldots,J_{M-1}$; solve an SDP for $P_0,\ldots,P_{M-1}\succ\epsilon I$ minimizing $\gamma$ subject to $J_k^\top P_{k+1}J_k\preceq\gamma^2P_k$ and $P_M=P_0$; if $\gamma>\gamma_{\max}$, multiply the learning rate and schedule amplitude by $\gamma_{\max}/\gamma$ and retry; otherwise perform the next period. For large models, use diagonal or block-diagonal $P_k$ and Jacobian sketches instead of a full SDP. 3. Computed from the paper's mechanism: the periodic Lyapunov inequalities, phase-dependent energy, and monodromy stability criterion. Estimated empirically: the Jacobians, local trajectory, and SDP margin. 4. First cheap experiment: train a two-layer MLP on MNIST with cosine learning rate of period $M=20$, comparing SGD, gradient clipping, and the Lyapunov guard using a diagonal $P_k$ on a 100-dimensional parameter projection. Sweep the base learning rate and measure the largest stable rate. Prediction: divergence begins near the measured boundary $\rho(\Phi)=1$; below it, squared perturbation energy should decay approximately as $\gamma^{2t}$, and the guarded run should maintain $\gamma<0.95$ while unguarded runs become unstable when $\rho(\Phi)>1$.

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 deterministic two-phase periodic Lyapunov guard with diagonal periodic certificates and adaptive scalar-rate scaling. The mechanism manifested: the predicted rho(Phi)=1 boundary was alpha=0.833333 versus a sweep observation of 0.835, predicted and certified gamma matched to floating-point precision, and period-energy ratios matched the certified gamma^(2M) bounds. At requested alpha=1.0, the unguarded system diverged to norm 2.32e7 while the guard selected alpha=0.809835 and reduced the final norm to 0.0461. This validates the toy mechanism, but not a neural-training win.

Agent confidence
9/10
Baseline
alpha=1.0; gamma=1.32665; final norm=2.319e7 after 60 phase updates; max norm=2.899e7
Idea
guarded alpha=0.809835; gamma=0.95; final norm=0.0461; max norm=1.9935; predicted/observed rho=1 boundary=0.833333/0.835

Limitations: Only a 2D diagonal linear time-periodic toy system was tested. No MNIST/MLP training, stochastic minibatches, momentum, Jacobian estimation error, non-normal dynamics, SDP solver, runtime, FLOPs, or GPU experiment was evaluated.

How to run: python3 periodic_guard_experiment.py

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

No significant difference vs. the tuned baseline (+20.5%, p=0.1569, wins 3 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0
Idea mean
0.0001
Effect (Δ)
0 (+20.5%; negative = idea better)
Wins
3 / 8 paired seeds
p-value
0.1569 (permutation test, 20 000 shuffles)
Smallest detectable effect
±34.4%
Mechanism
Not confirmed ✗
Practical effect
Inconclusive
Baseline tuning
swept over 3 configs
Limitations:

Only the built-in dynamics track, rnn_small model, 8 epochs, batch size 64, and three shared learning rates were tested. The practical guard used a low-rank random-probe approximation rather than an SDP or full parameter Jacobian; wall-clock speed and larger models were not evaluated.

How to run: python3 stage2_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

Implemented a cyclic-Adam periodic Lyapunov guard around the bench rnn_small model on the structurally matched dynamics track. Across 8 paired seeds, the guard was worse: baseline MSE 4.3824e-05 versus idea MSE 5.2815e-05, paired delta +8.9906e-06, permutation p=0.1569, with 3/8 idea wins. The empirical local update gains were near 1.0 rather than the target 0.95, so there is no demonstrated neural-network training win.

Baseline
Constant-rate Adam, best lr=0.01; 8-seed mean dynamics MSE 4.3824038e-05, std 8.7441e-06
Idea
Cyclic Adam with periodic guard, best lr=0.01 and target gamma=0.95; 8-seed mean dynamics MSE 5.2814643e-05, std 1.6132e-05; signature-run final scale 0.9025067

Benchmark result

No significant difference vs. the tuned baseline (+20.5%, p=0.1569, wins 3 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0
Idea mean
0.0001
Effect (Δ)
0 (+20.5%; negative = idea better)
Wins
3 / 8 paired seeds
p-value
0.1569 (permutation test, 20 000 shuffles)
Smallest detectable effect
±34.4%
Mechanism
Not confirmed ✗
Practical effect
Inconclusive
Baseline tuning
swept over 3 configs
Limitations:

Only the built-in dynamics track, rnn_small model, 8 epochs, batch size 64, and three shared learning rates were tested. The practical guard used a low-rank random-probe approximation rather than an SDP or full parameter Jacobian; wall-clock speed and larger models were not evaluated.

How to run: python3 stage2_bench.py

Artifacts

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