Log-Hölder Lyapunov Trust Region
Implementation & benchmark of arXiv:2608.22157 — Log-Höder continuity at zero Lyapunov gap for finite state Markov $GL(2)$-cocycles
Source paper: Log-Höder continuity at zero Lyapunov gap for finite state Markov $GL(2)$-cocycles arXiv:2608.22157 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Treat a recurrent or state-space layer as a finite-state Markov cocycle and constrain optimizer steps using the paper's inverse-logarithmic sensitivity of Lyapunov exponents near a zero exponent gap. Instead of enforcing a crude spectral-norm bound, allow updates that are harmless for long-run growth while shrinking steps that could substantially change the recurrent stability profile.
Formulas
Mathematical statement
Let $A_i\in GL(2,\mathbb R)$ be the matrix associated with mode $i$, and let $P$ be a primitive transition matrix satisfying $P_{ij}\geq0$, $\sum_jP_{ij}=1$. Its stationary row vector satisfies $p(P)P=p(P)$ and $\sum_i p_i(P)=1$. For a stationary Markov path $(X_t)$, define the top Lyapunov exponent by $\lambda_+(A,P)=\lim_{n\to\infty}n^{-1}\mathbb E[\log\|A_{X_{n-1}}\cdots A_{X_0}\|]$ and the lower exponent using the smallest singular value, $\lambda_-(A,P)=\lim_{n\to\infty}n^{-1}\mathbb E[\log\|A_{X_{n-1}}\cdots A_{X_0}\|_{\min}]$. At parameters with zero gap $\lambda_+=\lambda_-$, the paper proves pointwise log-Hölder continuity under perturbations within a fixed transition graph: if $d=\max_i\|A_i-\widetilde A_i\|_2+\|P-\widetilde P\|_\infty$ is small, exponent changes are bounded by a constant times $|\log d|^{-1/2}$ in the general nonsplit triangular case, and by $|\log d|^{-1}$ in the conformal case. The adaptation uses this modulus as a conservative trust-region estimate for recurrent parameter updates.
Implementation notes
(1) Integration point: use a gated RNN or state-space layer with $K$ discrete modes. The recurrent update is $h_{t+1}=A_{z_t}h_t+B_{z_t}u_t$, where $z_t$ follows a learned transition matrix $P$. Apply the controller to the recurrent matrices $A_i$ and transition logits, not to the input matrix.
(2) Pseudocode:
for each optimizer step:
save A_old and P_old
compute the ordinary gradient proposal A_new, P_new
estimate l_plus_old, l_minus_old with QR products along mode paths
estimate l_plus_new, l_minus_new for the proposal
d = max_i spectral_norm(A_new[i]-A_old[i]) + max_abs(P_new-P_old)
alpha = 0.5 # general cocycle
if conformal_mode: alpha = 1.0
bound = C_hat / abs(log(max(d, d_min)))**alpha
if abs(l_plus_new-l_plus_old) > bound or l_plus_new > stability_budget:
backtrack the step, or multiply its learning rate by 0.5
otherwise accept the proposal
Parameterize $P_{ij}=\exp(q_{ij})/\sum_{k\in N(i)}\exp(q_{ik})$ over allowed neighbors $N(i)$ so the transition graph remains fixed. Use QR reorthogonalization every few time steps; accumulate the logarithms of the diagonal of $R$ for the top exponent and use inverse-transpose products for the lower exponent.
(3) The logarithmic modulus, the exponent $\alpha=1/2$, and the conformal improvement $\alpha=1$ come from the paper. The constant $C$ is estimated empirically: collect checkpoint pairs, compute $d$ and observed $|\Delta\lambda_+|$, and choose a high quantile of $|\Delta\lambda_+||\log d|^\alpha$ as $\widehat C$. Define the zero-gap regime using $g=\max(\lambda_+-\lambda_-,0)<0.05$.
(4) First cheap experiment: train a two-mode width-64 RNN on permuted MNIST using AdamW, comparing the controller with ordinary AdamW at matched FLOPs across five seeds. Record exploding-gradient frequency, training loss versus steps, validation accuracy, estimated Lyapunov exponents, and accepted/backtracked update counts. The main falsifiable target is fewer divergent runs and the ability to use at least a 2x larger base learning rate without instability, with no loss in final validation accuracy.
Verification
Stage 1 · Toy mechanism gate: Failed ✗
Stage 2 · Mechanism transferred to benchmark: Not tested
Stage 2 · Practical benchmark result: Not run
Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a two-mode conformal Markov-cocycle verifier and a small CUDA RNN trust-region comparison. The exact math checks confirmed zero Lyapunov gap and the expected local perturbation slope (observed 0.999999 versus predicted 1.0), while an inverse-log envelope held only when calibrated over the full tested range; calibration on tiny perturbations had 0/7 held-out coverage, showing it is a loose local bound rather than a reliable practical controller. In the RNN test the controller backtracked all 90 updates in every seed and reached 0.539 accuracy versus 0.983 for baseline, so the proposed adaptation did not produce a training win.
- Agent confidence
- 9/10
- Baseline
- 3-seed mean final loss 0.0453, accuracy 0.9831, 0 backtracks per seed
- Idea
- 3-seed mean final loss 0.6864, accuracy 0.5391, 90 backtracks per seed; exact cocycle gap 0.0 and local log-log slope 0.999999
Limitations: Only a tiny synthetic sequence task and three seeds were tested, not permuted MNIST or a realistic learned multi-mode recurrent model. The controller used a scalar spectral-growth proxy for the RNN matrix rather than full QR exponent estimates at every optimizer proposal, and no careful constant-estimation or FLOP-matched hyperparameter retuning was performed.
How to run: python3 verify_math.py && /home/maxwelhelp/main/bin/python3 run_experiment.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- report.md 1.6 KB View
- results.json 3.8 KB View Raw
- run_experiment.py 5.9 KB View Raw
- verification.json 3.4 KB View Raw
- verify_math.py 2.0 KB View Raw