Sound stochastic Lyapunov certificates for high‑dimensional physical systems, via invertible latent transports
Welcome!
T, the certified
η-region (green) and the noise ball promised by the certificate. Generated by
tools/gifgen.py from the committed arm4 checkpoint.
Generated by tools/viz3d.py.stochastic-latent-bounds turns a stochastic physical system into coordinates where a Lyapunov certificate is searchable: a learned, exactly invertible transport factors the state into a low‑dimensional certified factor and a transversal residual, and the certificate is verified by interval branch‑and‑bound — never assumed from samples.
stochastic Lyapunovinterval arithmeticinvertible transportsbranch & boundworld models
Classical certification does not scale: sum‑of‑squares and SMT methods collapse
under the curse of dimensionality, while neural Lyapunov functions are usually
validated only at sampled points. Every number published on this site is rendered
from committed results/*.json produced by the committed code —
the site cannot drift from what the experiments actually did.
git clone https://github.com/sehajr-singhs/stochastic-latent-bounds
cd stochastic-latent-bounds
pip install torch pytest
# soundness + tightness test suite (CPU, float64)
python -m pytest tests/ -q
python experiments/exp1_main.py # factor vs full scaling (N-link arms)
python experiments/exp2_shadow.py # gated hot-swap under plant drift
python experiments/exp3_tightness.py # tight trace vs Cauchy-Schwarz
python experiments/exp4_realtrend.py # NASA C-MAPSS fleet (Kaggle)
python experiments/exp5_airquality.py # Beijing air quality (Kaggle)
python experiments/exp6_grid.py # ETTm2 electricity transformer (Kaggle)
python experiments/exp7_baselines.py # PCA / random-projection baselines, real data
python experiments/exp8_validation.py # identification floors, CIs, ablations, seeds
python experiments/exp9_nonlinear.py # learned vs fixed maps on the nonlinear plant
python tools/figures.py # regenerate figures from results/
An exactly invertible transport T (affine coupling layers,
T(x*)=0 at the equilibrium) maps the physical state x to
latent coordinates y=(eta, rho) — nothing is discarded, the map is a
diffeomorphism. A certificate
is then verified over a region by worst‑first branch‑and‑bound. Factor mode searches only the d‑dimensional η‑box (the ρ‑side is handled by the Lyapunov metric in closed form); full mode searches all D coordinates. The soundness of the bound is what makes the difference a theorem, not a tune:
L W + α W, green boxes are certified against
β+tol, grey boxes are resolved. Generated by
tools/gifgen.py from the same committed checkpoint.
The bound on L W + α W is computed with sound enclosures: an exact
interval Ito trace ½ tr(BBᴹ Hess W), centered (mean‑value) drift
forms whose residual enclosure is a cascade (exact zeros on transversal
columns, remainder quadratic in box radius), and outward rounding everywhere. Both
choices make the bound converge under subdivision; the interval trace even converges
to the exact generator on degenerate boxes, which is what makes certification near
the origin possible at all.
With additive process noise the origin is not an equilibrium of the SDE:
paths leave it immediately, so L W(0) = β > 0 and the classical
condition certifies the empty set, always. The attainable statement is the
thresholded certificate
i.e. exponential practical stability to an explicit noise ball of stationary radius
(β+tol)/α. β is evaluated exactly at the origin;
tol is explicit slack, reported rather than hidden.
tests/test_soundness.py).Two real datasets, one pipeline, zero domain‑specific code:
Full tables — scaling, hot‑swap traces, the effort ladder, the reactor and D=200 experiments — are on the results page. The full manuscript narrative is on the paper page. The mathematics (including the d‑vs‑D effort proposition) is in mathematics — now with the formal supplement: soundness of the certificate (Theorem 1), the noise‑floor lemma, convergence of the search (Theorem 2), robustness to plant mismatch (Theorem 3), and the d‑not‑D scaling law (Theorem 4), each with proof. The module map is in the API page.
The certificate, the sound‑bound constructions and the counterexample‑guided retraining loop are documented in mathematics; module‑by‑module roles in the API map. Source: github.com/sehajr-singhs/stochastic-latent-bounds.