A Log-Timescale Perturbation Bound for Selective State Space Models at Every Sequence Length
Summary
The paper proves a log-timescale perturbation bound for selective state space models (Mamba) that holds at every sequence length, shrinks to zero with the input change, and requires no lower bound on the timescale, outperforming prior additive bounds especially under Mamba's softplus timescale with tiny certified lower bounds.
View Cached Full Text
Cached at: 11/19/26, 03:35 AM
# A Log-Timescale Perturbation Bound for SelectiveState Space Models at Every Sequence Length
Source: [https://arxiv.org/html/2611.21952](https://arxiv.org/html/2611.21952)
Jack HumphriesDaniel MidgleyDepartment of Computer ScienceDepartment of MathematicsUniversity of SurreyUniversity of Surreyjh02956@surrey\.ac\.ukdm01602@surrey\.ac\.uk
###### Abstract
Mamba models deployed on streaming data, such as limit order book updates, run far past the sequence lengths they were trained on\. A guarantee on how much a small change of input can move the hidden state therefore has to hold at every length\. The closest existing bound we know of measures the change of the timescale additively, and it grows linearly with the sequence length unless the timescale is bounded away from zero\. In this paper, we measure the change on a log scale instead\. The key observation is that the decay factor of each step then moves by at most a fixed fraction of that step’s input weight, so the per\-step errors cannot pile up\. Using this, we prove that two runs of a selective\-scan cell from a common start stay within a bound that holds at every length, shrinks to zero with the size of the change and needs no lower bound on the timescale\. We give a construction showing that, for small changes, this bound is within a factor of about22of the best possible, and we extend it to the update used in Mamba’s released code when the timescale is bounded above\. We then evaluate block\-level bounds built from the theorem on two small models trained on one day of order book data\. With a bounded timescale, a bound built on the existing analysis is tighter than ours for at most the first88steps\. With Mamba’s softplus timescale, whose certified lower bound is as small as10−2110^\{\-21\}, it is looser at every length\. Our bounds hold for every input to a block, but they remain more than five orders of magnitude above the changes that gradient attacks find\.
## 1Introduction
Limit order book updates arrive as an unbounded stream\. A selective state space model such as Mamba\[[11](https://arxiv.org/html/2611.21952#bib.bib1)\]can carry its state along such a stream far beyond its training windows\. A bound on how far a small change of input moves that state then has to hold at every length\. We prove such a bound for one cell, a scalar recurrence inside the selective scan, and measure how tight it is\.
The closest bound we know of, Cao et al\.’s Theorem 3\.3\(ii\)\[[6](https://arxiv.org/html/2611.21952#bib.bib7)\], grows linearly with the position\. The growth comes from its time\-warp term, which accounts for the change of the timescale, the step size that the model computes from each input\. Their Remark 3\.4 caps the growth under a floor, a positive lower boundΔlo\\Delta\_\{\\mathrm\{lo\}\}on the timescale, but the cap scales like1/Δlo1/\\Delta\_\{\\mathrm\{lo\}\}as the floor shrinks\. Mamba’s softplus timescale has a floor only when its pre\-activations are bounded below, and on one of our trained models we certify a floor of about10−2110^\{\-21\}\.
We measure the change of the timescale on a log scale, whereas Cao et al\. measure it additively\. In their bound, both the linear growth and the need for a floor come from the additive measure\. We require the timescalesΔt\\Delta\_\{t\}andΔ~t\\tilde\{\\Delta\}\_\{t\}of a nominal and a perturbed run to differ by at most a factoreρe^\{\\rho\}at every step, that is,\|logΔt−logΔ~t\|≤ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|\\leq\\rho\. We call this the log condition\.
With an exact zero\-order hold, which our models use, each step of the cell replaces the state by a weighted average of itself and an input\-dependent equilibrium\. The weight on the equilibrium, which we call the input weight, tends to zero with the timescale\. Under the log condition, the two runs’ weights on the previous state differ by at mosteρ−1e^\{\\rho\}\-1times the input weight \(Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2)\)\. Under an additive bound, this difference does not shrink with the input weight and can exceed it at small timescales \(Figure[1](https://arxiv.org/html/2611.21952#S3.F1)\)\.
With Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2), the gap between the two runs obeys an inequality of the same form as the update of the state, with a bounded equilibrium\. The standard invariant argument for convex recursions, which Horbatko states for a Mamba channel\[[14](https://arxiv.org/html/2611.21952#bib.bib8), Lemma 4\.4\], bounds this gap at every length, as it bounds the state\. From a common start, the variation\-of\-constants argument of Cao et al\.’s Lemma B\.2 also gives this bound after a change of time variable \(Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\.
Our main result, Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3), assumes the log condition, a boundη\\etaon the change of the equilibrium and a boundMMon the equilibrium of the perturbed run\. Two runs that start from the same state in\[−M,M\]\[\-M,M\]then stay withinη\+2M\(eρ−1\)\\eta\+2M\(e^\{\\rho\}\-1\)of each other at every step, with no floor on the timescale\. For everyMM,η\\etaandρ\\rho, Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)constructs such runs whose gaps come arbitrarily close toη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)\. From a common start, the theorem’s constant is therefore within a factoreρ\+1e^\{\\rho\}\+1of the best possible, a factor that tends to22asρ→0\\rho\\to 0\.
Ifρ\\rhois derived from Cao et al\.’s additive bound and floor, our time\-warp term2M\(eρ−1\)2M\(e^\{\\rho\}\-1\)is no larger in each cell than that of their Remark 3\.4\. It is also no smaller than the limit, as the length grows, of a slightly sharper form of their bound, and the three are close when the floor is small \(Section[3\.3](https://arxiv.org/html/2611.21952#S3.SS3)and Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\. The gain in our experiments comes instead from boundinglogΔ\\log\\Deltadirectly from the bound on the timescale’s pre\-activation\.
A gradient search in one cell, with both runs started from00, finds no gap above the value that the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)approaches \(Section[5\.2](https://arxiv.org/html/2611.21952#S5.SS2)\)\. From random initial sequences it comes within0\.40\.4per cent of that value at the longest lengths searched, and closer still from initial sequences shaped like the construction\.
We then train a small two\-block model on one day of limit order book data, once with a timescale bounded to a fixed range and once with Mamba’s softplus timescale\. From the theorem we build a bound for each block on how far its output can move when its normalised input changes \(Section[4](https://arxiv.org/html/2611.21952#S4)\)\. With the bounded timescale, the same bound with an additive time\-warp term of Cao et al\.’s form in place of ours is tighter for at most the first88steps\. Without a floor, it then grows linearly with the length\. Under the floor that we certify, it levels off at a multiple of ours that is set mainly by the chosen timescale range \(Section[5\.3](https://arxiv.org/html/2611.21952#S5.SS3)\)\. With the softplus timescale, it is looser than ours at every length, and the certified floor is too small to stop its linear growth at any length we test\.
Gradient attacks give lower bounds on the true sensitivity, and our block bounds, which hold for every input of a block, lie far above them\. Along a given input the realised timescale is known, and the log and additive bounds on its change agree to first order\. The log scale therefore matters for bounds that hold for every input, where no realised timescale is available \(Section[5\.4](https://arxiv.org/html/2611.21952#S5.SS4)\)\. Code and the recorded runs are at[https://github\.com/jackdoesjava/mamba\-v\-lob](https://github.com/jackdoesjava/mamba-v-lob)\.
Section[2](https://arxiv.org/html/2611.21952#S2)sets up the cell\. Section[3](https://arxiv.org/html/2611.21952#S3)proves the theorem, states the lower bound and extends the theorem to the exponential\-Euler step of the released Mamba implementations, with the proofs of the lower bound and the extension in Appendix[A](https://arxiv.org/html/2611.21952#A1)\. Section[4](https://arxiv.org/html/2611.21952#S4)builds the block bounds, and Section[5](https://arxiv.org/html/2611.21952#S5)reports the measurements\.
## 2Setting
### 2\.1The selective cell
A selective state space model computes a timescaleΔt\>0\\Delta\_\{t\}\>0and matricesBtB\_\{t\}andCtC\_\{t\}from the layer input at every positiontt\. It uses the timescale to discretise a fixed diagonal matrixAAwith negative diagonal entries\[[11](https://arxiv.org/html/2611.21952#bib.bib1)\]\. We certify a Mamba block that uses the exact zero\-order hold for this discretisation\. The block applies a layer normalisation, an input projection, a causal depthwise convolution with a SiLU, the projections that produceΔ\\Delta,BBandCC, and the scan\. A SiLU gate, an output projection and a residual connection follow, and Appendix[A\.4](https://arxiv.org/html/2611.21952#A1.SS4)gives the block in full\.
BecauseAAis diagonal, the scan splits into independent scalar recurrences, one for each channeliiand state indexnn\. We call each of them a cell\. A cell updates a scalar statehth\_\{t\}from the inpututu\_\{t\}of its channel, and we writeλ=\|Ai,n\|\>0\\lambda=\|A\_\{i,n\}\|\>0for its decay rate\. We state our results on the scan for one cell\.
We consider two maps from the timescale pre\-activationzztoΔ\\Delta\. The bounded mapΔ=Δmin\(Δmax/Δmin\)sigmoid\(z\)\\Delta=\\Delta\_\{\\min\}\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)^\{\\operatorname\{sigmoid\}\(z\)\}keepsΔ\\Deltain\[Δmin,Δmax\]\[\\Delta\_\{\\min\},\\Delta\_\{\\max\}\]\. Mamba’s mapΔ=softplus\(z\)\\Delta=\\mathrm\{softplus\}\(z\)is positive, but it has no positive lower bound over realzz\. We call a positive lower bound on the timescale a floor\.
Under the exact zero\-order hold, one step of a cell uses
A¯t=e−λΔt,B¯t=e−λΔt−1−λBt=\(1−A¯t\)Btλ,\\bar\{A\}\_\{t\}=e^\{\-\\lambda\\Delta\_\{t\}\},\\qquad\\bar\{B\}\_\{t\}=\\frac\{e^\{\-\\lambda\\Delta\_\{t\}\}\-1\}\{\-\\lambda\}\\,B\_\{t\}=\(1\-\\bar\{A\}\_\{t\}\)\\,\\frac\{B\_\{t\}\}\{\\lambda\},\(1\)and withct=Btut/λc\_\{t\}=B\_\{t\}u\_\{t\}/\\lambdathe updateht=A¯tht−1\+B¯tuth\_\{t\}=\\bar\{A\}\_\{t\}h\_\{t\-1\}\+\\bar\{B\}\_\{t\}u\_\{t\}becomes
ht=A¯tht−1\+\(1−A¯t\)ct\.h\_\{t\}=\\bar\{A\}\_\{t\}\\,h\_\{t\-1\}\+\(1\-\\bar\{A\}\_\{t\}\)\\,c\_\{t\}\.\(2\)SinceA¯t∈\(0,1\)\\bar\{A\}\_\{t\}\\in\(0,1\)for every input, each step is a convex combination of the previous state andctc\_\{t\}\. We callctc\_\{t\}the equilibrium and1−A¯t1\-\\bar\{A\}\_\{t\}the input weight of steptt\. Gu and Dao\[[11](https://arxiv.org/html/2611.21952#bib.bib1), Theorem 1\]give \([2](https://arxiv.org/html/2611.21952#S2.E2)\) as a gated recurrence forλ=1\\lambda=1andBt=1B\_\{t\}=1with a softplus timescale\.
The released implementations of Mamba use a different input term, which we treat in Section[3\.4](https://arxiv.org/html/2611.21952#S3.SS4)\.
### 2\.2The forward invariant
Because each step is a convex combination, a bound on the equilibria and on the initial state bounds the state at every step\.
###### Proposition 1\(Forward invariant\)\.
If\|ct\|≤M\|c\_\{t\}\|\\leq Mfor everyt≥0t\\geq 0, then\|ht\|≤max\(\|h−1\|,M\)\|h\_\{t\}\|\\leq\\max\(\|h\_\{\-1\}\|,M\)for everyt≥0t\\geq 0\.
###### Proof\.
We argue by induction ontt: if\|ht−1\|≤max\(\|h−1\|,M\)\|h\_\{t\-1\}\|\\leq\\max\(\|h\_\{\-1\}\|,M\), then\|ht\|≤A¯t\|ht−1\|\+\(1−A¯t\)\|ct\|≤max\(\|h−1\|,M\)\|h\_\{t\}\|\\leq\\bar\{A\}\_\{t\}\|h\_\{t\-1\}\|\+\(1\-\\bar\{A\}\_\{t\}\)\|c\_\{t\}\|\\leq\\max\(\|h\_\{\-1\}\|,M\)\. ∎
Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1)is Lemma 4\.4 of Horbatko\[[14](https://arxiv.org/html/2611.21952#bib.bib8)\], stated there for a diagonal Mamba channel\. Forh−1=0h\_\{\-1\}=0it also follows from the state bound of Cao et al\.’s Theorem 3\.3\(i\) and Lemma B\.1\[[6](https://arxiv.org/html/2611.21952#bib.bib7)\]\. The reading of a convex gated update as a leaky integrator with a learned step goes back to Tallec and Ollivier\[[27](https://arxiv.org/html/2611.21952#bib.bib14)\]and Gu et al\.\[[12](https://arxiv.org/html/2611.21952#bib.bib13)\]\.
SinceBtB\_\{t\}andutu\_\{t\}are activations, the hypothesis\|ct\|≤M\|c\_\{t\}\|\\leq Mhas to hold for every input the model can receive\. Within the scan and the readoutyt=Ctht\+Duty\_\{t\}=C\_\{t\}h\_\{t\}\+Du\_\{t\}that follows it, onlyAAand the skip weightDDare fixed parameters\. The timescaleΔt\\Delta\_\{t\}, the matricesBtB\_\{t\}andCtC\_\{t\}and the scan inpututu\_\{t\}are all computed from the block input\.
Each block opens with a layer normalisation\. By the Laguerre–Samuelson inequality\[[18](https://arxiv.org/html/2611.21952#bib.bib22),[26](https://arxiv.org/html/2611.21952#bib.bib21)\], the output of the normalisation lies in a bounded set fixed by its own parameters \(Lemma[9](https://arxiv.org/html/2611.21952#Thmproposition9)in Appendix[C](https://arxiv.org/html/2611.21952#A3)\)\. Interval arithmetic carries this set through the projections, the convolution and the activations\. For the projection that follows the normalisation, we use the fused bound of Proposition[10](https://arxiv.org/html/2611.21952#Thmproposition10)in Appendix[C](https://arxiv.org/html/2611.21952#A3), which follows from the geometry of layer normalisation that Riechers\[[25](https://arxiv.org/html/2611.21952#bib.bib23)\]describes\. The result is a box, with one interval per coordinate, for the output of each of these stages, includingBB,uuandzz\. We call these the certified boxes\. The boxes ofBBanduugive the radiusM=sup\|Bu\|/λM=\\sup\|Bu\|/\\lambdaof each cell\. The boxZZof the timescale pre\-activation of a channel gives its certified floorΔ\(infZ\)\\Delta\(\\inf Z\)and certified ceilingΔ\(supZ\)\\Delta\(\\sup Z\), the smallest and largest timescales that the box allows\.
We have machine\-checked \([1](https://arxiv.org/html/2611.21952#S2.E1)\), Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1), Lemma[9](https://arxiv.org/html/2611.21952#Thmproposition9)and the first part of Proposition[10](https://arxiv.org/html/2611.21952#Thmproposition10)in Isabelle/HOL\[[22](https://arxiv.org/html/2611.21952#bib.bib6)\], and the theory is in our repository\. Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2), Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)and Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)are not machine\-checked\. We computeMMfor a trained model by interval propagation in Python code, which we test but have not formally verified\.
## 3A sensitivity bound at every length
We bound how far apart two runs of one cell can be at any length\. The bound holds when their equilibria are bounded and their timescales differ by at most a factoreρe^\{\\rho\}at every step\. The nominal run has timescalesΔt\>0\\Delta\_\{t\}\>0, equilibriactc\_\{t\}, transitionsA¯t=e−λΔt\\bar\{A\}\_\{t\}=e^\{\-\\lambda\\Delta\_\{t\}\}and stateshth\_\{t\}given by \([2](https://arxiv.org/html/2611.21952#S2.E2)\)\. The perturbed run hasΔ~t\>0\\tilde\{\\Delta\}\_\{t\}\>0,c~t\\tilde\{c\}\_\{t\},A¯~t=e−λΔ~t\\tilde\{\\bar\{A\}\}\_\{t\}=e^\{\-\\lambda\\tilde\{\\Delta\}\_\{t\}\}andh~t\\tilde\{h\}\_\{t\}\. We writeet=ht−h~te\_\{t\}=h\_\{t\}\-\\tilde\{h\}\_\{t\}for the error and call\|et\|\|e\_\{t\}\|the gap\. The hypothesis on the timescales is\|logΔt−logΔ~t\|≤ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|\\leq\\rhofor everytt, whereρ≥0\\rho\\geq 0andlog\\logis the natural logarithm\. We writeη=supt\|ct−c~t\|\\eta=\\sup\_\{t\}\|c\_\{t\}\-\\tilde\{c\}\_\{t\}\|for the change of the equilibrium\.
### 3\.1The ratio lemma
Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2)shows that a relative change of the timescale moves the transition by at most a fixed fraction of the input weight\.
###### Lemma 2\(Relative perturbation of the transition\)\.
Forx\>0x\>0,s∈ℝs\\in\\mathbb\{R\}andx~=xes\\tilde\{x\}=xe^\{s\}we have\|e−x−e−x~\|≤\|es−1\|\(1−e−x\)\|e^\{\-x\}\-e^\{\-\\tilde\{x\}\}\|\\leq\|e^\{s\}\-1\|\(1\-e^\{\-x\}\)\. In particular the left\-hand side is at most\(eρ−1\)\(1−e−x\)\(e^\{\\rho\}\-1\)\(1\-e^\{\-x\}\)whenever\|s\|≤ρ\|s\|\\leq\\rho\.
###### Proof\.
We compare chord slopes of the concave functiony↦1−e−yy\\mapsto 1\-e^\{\-y\}, which vanishes at00and whose chord slope from the origin,m\(y\)=\(1−e−y\)/ym\(y\)=\(1\-e^\{\-y\}\)/y, is therefore decreasing on\(0,∞\)\(0,\\infty\)\. Fors≥0s\\geq 0we havex~≥x\\tilde\{x\}\\geq x, and the decrease ofmmgives0≤e−x−e−x~=x~m\(x~\)−xm\(x\)≤\(x~−x\)m\(x\)=\(es−1\)\(1−e−x\)0\\leq e^\{\-x\}\-e^\{\-\\tilde\{x\}\}=\\tilde\{x\}\\,m\(\\tilde\{x\}\)\-x\\,m\(x\)\\leq\(\\tilde\{x\}\-x\)\\,m\(x\)=\(e^\{s\}\-1\)\(1\-e^\{\-x\}\)\.
Fors<0s<0we havex~<x\\tilde\{x\}<xandm\(x~\)≥m\(x\)m\(\\tilde\{x\}\)\\geq m\(x\), hence0≤e−x~−e−x=xm\(x\)−x~m\(x~\)≤\(x−x~\)m\(x\)=\(1−es\)\(1−e−x\)0\\leq e^\{\-\\tilde\{x\}\}\-e^\{\-x\}=x\\,m\(x\)\-\\tilde\{x\}\\,m\(\\tilde\{x\}\)\\leq\(x\-\\tilde\{x\}\)\\,m\(x\)=\(1\-e^\{s\}\)\(1\-e^\{\-x\}\), which together with\|es−1\|≤e\|s\|−1\|e^\{s\}\-1\|\\leq e^\{\|s\|\}\-1proves both bounds\. ∎
Withx=λΔtx=\\lambda\\Delta\_\{t\}ands=log\(Δ~t/Δt\)s=\\log\(\\tilde\{\\Delta\}\_\{t\}/\\Delta\_\{t\}\), Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2)gives
\|A¯t−A¯~t\|≤\(eρ−1\)\(1−A¯t\),\\bigl\|\\bar\{A\}\_\{t\}\-\\tilde\{\\bar\{A\}\}\_\{t\}\\bigr\|\\leq\\bigl\(e^\{\\rho\}\-1\\bigr\)\\bigl\(1\-\\bar\{A\}\_\{t\}\\bigr\),\(3\)and with the runs exchanged it gives the same bound with1−A¯~t1\-\\tilde\{\\bar\{A\}\}\_\{t\}on the right\. Cao et al\.’s Lemma B\.3 bounds the same change byλ\|Δt−Δ~t\|\\lambda\|\\Delta\_\{t\}\-\\tilde\{\\Delta\}\_\{t\}\|, which lacks the factor1−A¯t1\-\\bar\{A\}\_\{t\}\. Under an additive bound on\|Δt−Δ~t\|\|\\Delta\_\{t\}\-\\tilde\{\\Delta\}\_\{t\}\|, the term that each step adds to a bound on the gap does not shrink with the input weight\. The later transitions damp these terms, but their sum grows likettunless a floor makes the damping geometric\.
Figure[1](https://arxiv.org/html/2611.21952#S3.F1)\(a\) shows the two cases at a single step\. WhenlogΔ\\log\\Deltachanges by a fixed amount, the change of the transition vanishes with the input weight asλΔ→0\\lambda\\Delta\\to 0\. WhenλΔ\\lambda\\Deltachanges by a fixed amount, the change of the transition does not vanish, and for smallλΔ\\lambda\\Deltait exceeds the whole input weight\.
Figure 1:\(a\) Change of the transitione−λΔe^\{\-\\lambda\\Delta\}againstλΔ\\lambda\\DeltawhenlogΔ\\log\\Deltachanges by0\.10\.1and whenλΔ\\lambda\\Deltachanges by0\.010\.01, with the input weight1−A¯1\-\\bar\{A\}\. The two changes ofλΔ\\lambda\\Deltaare equal atλΔ≈0\.095\\lambda\\Delta\\approx 0\.095, where the two curves of the change of the transition cross\. The first change stays belowe0\.1−1≈0\.105e^\{0\.1\}\-1\\approx 0\.105times the input weight\. The second exceeds the whole input weight forλΔ\\lambda\\Deltabelow about0\.00990\.0099\. AtλΔ=10−4\\lambda\\Delta=10^\{\-4\}it is99\.599\.5times the input weight\. \(b\) The gap\|ht−h~t\|\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|in the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)forρ=0\.5\\rho=0\.5,M=1M=1andη=0\\eta=0\. The nominalλΔt\\lambda\\Delta\_\{t\}alternates between0\.05e0\.50\.05\\,e^\{0\.5\}and0\.050\.05\. The gap settles at about0\.48950\.4895, just below the value2Mtanh\(ρ/2\)≈0\.48982M\\tanh\(\\rho/2\)\\approx 0\.4898that it approaches as the timescales tend to00\. The panel shows the boundE≈1\.297E\\approx 1\.297of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)and the trivial bound2M\+η=22M\+\\eta=2\.
### 3\.2The cell theorem
Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)bounds the gap at every step by a constant that depends only onη\\eta,MMandρ\\rho, or by the initial gap if that is larger\.
###### Theorem 3\(Cell bound\)\.
Suppose that\|logΔt−logΔ~t\|≤ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|\\leq\\rhoand\|c~t\|≤M\|\\tilde\{c\}\_\{t\}\|\\leq Mfor everyt≥0t\\geq 0, and that\|h~−1\|≤M\|\\tilde\{h\}\_\{\-1\}\|\\leq M\. Withη=supt\|ct−c~t\|\\eta=\\sup\_\{t\}\|c\_\{t\}\-\\tilde\{c\}\_\{t\}\|,E=η\+2M\(eρ−1\)E=\\eta\+2M\(e^\{\\rho\}\-1\)andPt=∏k=0tA¯kP\_\{t\}=\\prod\_\{k=0\}^\{t\}\\bar\{A\}\_\{k\}, for everyt≥0t\\geq 0
\|ht−h~t\|≤Pt\|h−1−h~−1\|\+\(1−Pt\)E≤max\(\|h−1−h~−1\|,E\)\.\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|\\leq P\_\{t\}\\,\|h\_\{\-1\}\-\\tilde\{h\}\_\{\-1\}\|\+\(1\-P\_\{t\}\)\\,E\\leq\\max\\bigl\(\|h\_\{\-1\}\-\\tilde\{h\}\_\{\-1\}\|,\\ E\\bigr\)\.
###### Proof\.
We write the error as a convex recursion of the form \([2](https://arxiv.org/html/2611.21952#S2.E2)\) with a bounded equilibrium and then argue as for Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1), which also gives\|h~t\|≤M\|\\tilde\{h\}\_\{t\}\|\\leq Mfor everyt≥−1t\\geq\-1\. Adding and subtractingA¯th~t−1\\bar\{A\}\_\{t\}\\tilde\{h\}\_\{t\-1\}and\(1−A¯t\)c~t\(1\-\\bar\{A\}\_\{t\}\)\\tilde\{c\}\_\{t\}inht−h~th\_\{t\}\-\\tilde\{h\}\_\{t\}gives
et=A¯tet−1\+\(1−A¯t\)\(ct−c~t\)\+\(A¯t−A¯~t\)\(h~t−1−c~t\)\.e\_\{t\}=\\bar\{A\}\_\{t\}\\,e\_\{t\-1\}\+\(1\-\\bar\{A\}\_\{t\}\)\(c\_\{t\}\-\\tilde\{c\}\_\{t\}\)\+\(\\bar\{A\}\_\{t\}\-\\tilde\{\\bar\{A\}\}\_\{t\}\)\(\\tilde\{h\}\_\{t\-1\}\-\\tilde\{c\}\_\{t\}\)\.\(4\)Since\|h~t−1−c~t\|≤2M\|\\tilde\{h\}\_\{t\-1\}\-\\tilde\{c\}\_\{t\}\|\\leq 2M, the bound \([3](https://arxiv.org/html/2611.21952#S3.E3)\) gives\|et\|≤A¯t\|et−1\|\+\(1−A¯t\)E\|e\_\{t\}\|\\leq\\bar\{A\}\_\{t\}\\,\|e\_\{t\-1\}\|\+\(1\-\\bar\{A\}\_\{t\}\)\\,E\. Unrolling this inequality gives\|et\|≤Pt\|e−1\|\+E∑k=0t\(1−A¯k\)∏r=k\+1tA¯r\|e\_\{t\}\|\\leq P\_\{t\}\|e\_\{\-1\}\|\+E\\sum\_\{k=0\}^\{t\}\(1\-\\bar\{A\}\_\{k\}\)\\prod\_\{r=k\+1\}^\{t\}\\bar\{A\}\_\{r\}, where the sum telescopes to1−Pt1\-P\_\{t\}\. ∎
The passage from the one\-step inequality to the bound of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)is a standard contraction estimate, sampled at the end of each step\. In the accumulated timeτt=∑s≤tΔs\\tau\_\{t\}=\\sum\_\{s\\leq t\}\\Delta\_\{s\}, the cell contracts at the constant rateλ\\lambda\(Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\. The estimate compares a system that contracts at a constant rateμ\\muwith the same system plus a disturbancedd\[[20](https://arxiv.org/html/2611.21952#bib.bib28),[5](https://arxiv.org/html/2611.21952#bib.bib29)\]\. After a timeσ\\sigma, the distance between their trajectories is at moste−μσe^\{\-\\mu\\sigma\}times its initial value plus\(1−e−μσ\)sup\|d\|/μ\(1\-e^\{\-\\mu\\sigma\}\)\\sup\|d\|/\\mu\. Withμ=λ\\mu=\\lambda,\|d\|≤λE\|d\|\\leq\\lambda Eandσ=τt\\sigma=\\tau\_\{t\}, this is the bound of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\.
Per step, the cell contracts by the factorA¯t=e−λΔt\\bar\{A\}\_\{t\}=e^\{\-\\lambda\\Delta\_\{t\}\}, and without a floor the rateλΔt\\lambda\\Delta\_\{t\}has no positive lower bound\. The bound is still uniform intt, because the disturbance at each step carries the same factor1−A¯t1\-\\bar\{A\}\_\{t\}as the contraction, so their ratio stays bounded asΔt→0\\Delta\_\{t\}\\to 0\. A bound that treats the transition and the input gain separately loses this cancellation \(Appendix[C](https://arxiv.org/html/2611.21952#A3)\)\.
The proof uses the hypotheses one step at a time\. The boundsρ\\rhoandη\\etamay therefore depend ontt, withEEreplaced bymaxs≤t\(ηs\+2M\(eρs−1\)\)\\max\_\{s\\leq t\}\(\\eta\_\{s\}\+2M\(e^\{\\rho\_\{s\}\}\-1\)\)\.
If\|h−1\|≤M\+η\|h\_\{\-1\}\|\\leq M\+\\eta, Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1)applied to both runs gives\|ht\|≤M\+η\|h\_\{t\}\|\\leq M\+\\etaand\|h~t\|≤M\|\\tilde\{h\}\_\{t\}\|\\leq M, hence the trivial bound\|et\|≤2M\+η\|e\_\{t\}\|\\leq 2M\+\\eta\. ForM\>0M\>0, the trivial bound exceedsEEexactly whenρ<log2\\rho<\\log 2\.
###### Proposition 4\(Lower bound\)\.
Letλ\>0\\lambda\>0,M\>0M\>0,η≥0\\eta\\geq 0andρ\>0\\rho\>0\. For everyε\>0\\varepsilon\>0there are timescalesΔt,Δ~t\>0\\Delta\_\{t\},\\tilde\{\\Delta\}\_\{t\}\>0with\|logΔt−logΔ~t\|=ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|=\\rhoand equilibria with\|c~t\|=M\|\\tilde\{c\}\_\{t\}\|=Mandct−c~t=ηc\_\{t\}\-\\tilde\{c\}\_\{t\}=\\etafor everyt≥0t\\geq 0such that the two runs fromh−1=h~−1=0h\_\{\-1\}=\\tilde\{h\}\_\{\-1\}=0satisfy\|ht−h~t\|\>η\+2Mtanh\(ρ/2\)−ε\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|\>\\eta\+2M\\tanh\(\\rho/2\)\-\\varepsilonat some steptt\.
The runs in the proof of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)\(Appendix[A\.1](https://arxiv.org/html/2611.21952#A1.SS1)\) satisfy the hypotheses of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\. The perturbed equilibriumc~t\\tilde\{c\}\_\{t\}alternates betweenMMand−M\-M\. The perturbed timescale ise−ρe^\{\-\\rho\}times the nominal one on the steps withc~t=M\\tilde\{c\}\_\{t\}=Mandeρe^\{\\rho\}times it on the others\. The nominal run therefore has the larger input weight on the steps withc~t=M\\tilde\{c\}\_\{t\}=Mand the smaller one on the others\. Ast→∞t\\to\\inftyand then the timescales tend to00, the gap after a step withc~t=M\\tilde\{c\}\_\{t\}=Mtends toη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)\. Figure[1](https://arxiv.org/html/2611.21952#S3.F1)\(b\) shows the gap forρ=0\.5\\rho=0\.5,M=1M=1andη=0\\eta=0\. It settles close to2Mtanh\(ρ/2\)2M\\tanh\(\\rho/2\), below the boundEEof Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\.
Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)limits how far Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)can be improved\. Every bound on the gap from a common start that holds under the hypotheses of the theorem and depends only onMM,η\\etaandρ\\rhois at leastη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)\. Sincetanh\(ρ/2\)=\(eρ−1\)/\(eρ\+1\)\\tanh\(\\rho/2\)=\(e^\{\\rho\}\-1\)/\(e^\{\\rho\}\+1\), the term2M\(eρ−1\)2M\(e^\{\\rho\}\-1\)ofEEiseρ\+1e^\{\\rho\}\+1times2Mtanh\(ρ/2\)2M\\tanh\(\\rho/2\)\. The boundEEis therefore within a factoreρ\+1e^\{\\rho\}\+1of the smallest such bound, and this factor tends to22asρ→0\\rho\\to 0\.
From a common start in\[−M,M\]\[\-M,M\], the largest possible gap thus lies betweenη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)andmin\(E,2M\+η\)\\min\(E,2M\+\\eta\)\. We do not prove thatη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)is the largest possible gap\. The numerical search of Section[5\.2](https://arxiv.org/html/2611.21952#S5.SS2), from the common start00, finds none above it\.
### 3\.3Comparison with Cao et al\.
We replace the bound onlogΔ\\log\\Deltaby an additive bound\|Δt−Δ~t\|≤ηΔ\|\\Delta\_\{t\}\-\\tilde\{\\Delta\}\_\{t\}\|\\leq\\eta\_\{\\Delta\}and keep the other hypotheses of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\. We also assume a lower boundΔlo≥0\\Delta\_\{\\mathrm\{lo\}\}\\geq 0on both timescales, which is a floor when it is positive\. By the mean value theorem, the transitions then satisfy\|A¯t−A¯~t\|≤λe−λΔloηΔ\|\\bar\{A\}\_\{t\}\-\\tilde\{\\bar\{A\}\}\_\{t\}\|\\leq\\lambda e^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\\eta\_\{\\Delta\}\. We carry the last term of \([4](https://arxiv.org/html/2611.21952#S3.E4)\) forward with a factor of at moste−λΔloe^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}per step\. From a common start in\[−M,M\]\[\-M,M\], this gives
\|hL−1−h~L−1\|≤η\+2Mλe−λΔloηΔ∑k=0L−1e−kλΔlo\.\|h\_\{L\-1\}\-\\tilde\{h\}\_\{L\-1\}\|\\leq\\eta\+2M\\lambda e^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\\eta\_\{\\Delta\}\\sum\_\{k=0\}^\{L\-1\}e^\{\-k\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\.\(5\)
We call \([5](https://arxiv.org/html/2611.21952#S3.E5)\) the additive baseline\. It has the structure of Cao et al\.’s Theorem 3\.3\(ii\) and Remark 3\.4\. It keeps the factore−λΔloe^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}that their Lemma B\.3 drops, which makes it slightly smaller than their constant\. As Cao et al\. do, we call the term of a bound that comes from the change of the timescale its time\-warp term\. InEEthis term is2M\(eρ−1\)2M\(e^\{\\rho\}\-1\), and in \([5](https://arxiv.org/html/2611.21952#S3.E5)\) it is the term with the sum\.
Without a floor the sum equalsLL, so the additive baseline grows linearly in the lengthLL\. With a floor it saturates atη\+2MληΔ/\(eλΔlo−1\)\\eta\+2M\\lambda\\eta\_\{\\Delta\}/\(e^\{\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\-1\)asL→∞L\\to\\infty\. Its time\-warp term is then the one\-step cost2Mλe−λΔloηΔ2M\\lambda e^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\\eta\_\{\\Delta\}times1/\(1−e−λΔlo\)1/\(1\-e^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\)\. This factor is of order1/\(λΔlo\)1/\(\\lambda\\Delta\_\{\\mathrm\{lo\}\}\)as the floor shrinks\.
Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)needs neither a floor nor an additive bound on the timescales, only a bound on the change oflogΔ\\log\\Delta\. Both timescale maps give one from a bound on the change of the pre\-activationzz\. By Lemma[6](https://arxiv.org/html/2611.21952#Thmproposition6)in Appendix[A](https://arxiv.org/html/2611.21952#A1),dlogΔ/dzd\\log\\Delta/dzis at most11for the softplus map and at most14log\(Δmax/Δmin\)\\tfrac\{1\}\{4\}\\log\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)for the bounded map\. Cao et al\. derive the Lipschitz constant ofΔ\\Deltathat they assume from the same bound onzz\.
With a floor, the additive bound alone also bounds the change oflogΔ\\log\\Delta, byρ=log\(1\+ηΔ/Δlo\)\\rho=\\log\(1\+\\eta\_\{\\Delta\}/\\Delta\_\{\\mathrm\{lo\}\}\)\. With thisρ\\rho, our time\-warp term lies between the time\-warp term of the additive baseline asL→∞L\\to\\inftyand that of Cao et al\.’s Remark 3\.4\. This follows from1−e−x≤x≤ex−11\-e^\{\-x\}\\leq x\\leq e^\{x\}\-1forx=λΔlox=\\lambda\\Delta\_\{\\mathrm\{lo\}\}\(Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\. In our experiments, the gain over the additive baseline comes from boundinglogΔ\\log\\Deltadirectly from the bound onzz, not through an additive bound onΔ\\Delta\.
For the bounded map, Remark[5](https://arxiv.org/html/2611.21952#Thmproposition5)compares the two time\-warp terms in one cell once the additive baseline has saturated\.
### 3\.4The exponential\-Euler step
The released implementations of Mamba keep the transitionA¯t=e−λΔt\\bar\{A\}\_\{t\}=e^\{\-\\lambda\\Delta\_\{t\}\}but replace the input termB¯tut\\bar\{B\}\_\{t\}u\_\{t\}byΔtBtut\\Delta\_\{t\}B\_\{t\}u\_\{t\}\[[19](https://arxiv.org/html/2611.21952#bib.bib12), Section 3\.1\]\. This exponential\-Euler step combines the exact transition with Euler’s rule for the input integral\. It differs from the exponential Euler method of the literature on exponential integrators, which for this cell gives \([1](https://arxiv.org/html/2611.21952#S2.E1)\)\.
The update of this step is still a convex combination of the previous state and an equilibrium\. The equilibrium is now enlarged by the factorΨ\(λΔt\)\\Psi\(\\lambda\\Delta\_\{t\}\), whereΨ\(x\)=x/\(1−e−x\)\\Psi\(x\)=x/\(1\-e^\{\-x\}\)lies in\(1,1\+x\)\(1,1\+x\)forx\>0x\>0\. This factor grows without bound inΔt\\Delta\_\{t\}\. The analogues of Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1)and Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)for this step therefore need an upper boundΔhi\\Delta\_\{\\mathrm\{hi\}\}on the timescale, but they still need no floor\. Corollary[7](https://arxiv.org/html/2611.21952#Thmproposition7)in Appendix[A](https://arxiv.org/html/2611.21952#A1)gives the analogue of the theorem for a common zero start\. WithG=Ψ\(λΔhi\)G=\\Psi\(\\lambda\\Delta\_\{\\mathrm\{hi\}\}\), the boundEEholds for this cell withη\\etareplaced byGηbG\\eta^\{b\},MMbyGMGMand the factor22by33\. Hereηb\\eta^\{b\}bounds the change ofbt=Btut/λb\_\{t\}=B\_\{t\}u\_\{t\}/\\lambda\.
## 4From the cell to a certificate
Corollary[8](https://arxiv.org/html/2611.21952#Thmproposition8)in Appendix[A\.4](https://arxiv.org/html/2611.21952#A1.SS4)turns Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)into a bound on the change of a whole block’s output\. The bound holds in real arithmetic for every input of the block, and we call such a bound a certificate\. It needs no input data, so we also call it data\-free\.
The corollary follows a perturbation of the normalised input through the stages of the block in order\. It composes Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)with sup\-norm Lipschitz constants of the other stages, taken over the certified boxes that also give the radiusMM\. The input projection, the convolution and the SiLU bound the change of the scan inputuu\. The projections that follow bound the changes ofBB, ofCCand of the timescale pre\-activationzz\. Lemma[6](https://arxiv.org/html/2611.21952#Thmproposition6)\(Appendix[A](https://arxiv.org/html/2611.21952#A1)\) turns the bound onzzintoρ\\rho\. A product rule gives the boundη\\etaon the change of the equilibriumct=Btut/λc\_\{t\}=B\_\{t\}u\_\{t\}/\\lambda\. Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)then bounds the change of the state in each cell\. We carry this bound through the readoutCtht\+DutC\_\{t\}h\_\{t\}\+Du\_\{t\}, the gate and the output projection\.
Every stage of the certificate takes the worst case over its box and ignores the dependence between its inputs\. Section[5\.4](https://arxiv.org/html/2611.21952#S5.SS4)bounds from above how much is lost up to each stage\.
## 5Experiments
### 5\.1Setup
Our data are the Databento MBP\-10 records of SPY on 28 January 2021\. After feature construction they give about4\.554\.55million rows and4343model inputs\. We train a small model on windows of100100ticks\. From each window it predicts the log return of the mid\-price over the next100100ticks\.
We divide the records chronologically into a training split of7070per cent and validation and test splits of1515per cent each\. We purge each boundary by the prediction horizon of100100ticks\. We winsorise every feature at the0\.0010\.001and0\.9990\.999quantiles of its training values, in training and at inference alike\.
The model maps the4343inputs to widthdmodel=64d\_\{\\mathrm\{model\}\}=64with a linear layer, a SiLU and a layer normalisation\. Two Mamba blocks follow, each withdinner=128d\_\{\\mathrm\{inner\}\}=128channels anddstate=16d\_\{\\mathrm\{state\}\}=16state indices per channel\. Each block has a convolution of width44and a timescale projection of rank44\. A final layer normalisation and a two\-layer head read the prediction at the last position\.
We train two versions of this model, with set\-ups that differ only in the timescale map\. We call each of the two trained models an arm\. The bounded arm uses the bounded map of Section[2\.1](https://arxiv.org/html/2611.21952#S2.SS1)withΔ\\Deltain\[10−3,10−1\]\[10^\{\-3\},10^\{\-1\}\], the range from which Mamba initialises its timescales\[[11](https://arxiv.org/html/2611.21952#bib.bib1)\]\. The softplus arm uses Mamba’s mapΔ=softplus\(z\)\\Delta=\\mathrm\{softplus\}\(z\)\. Both arms use the exact zero\-order hold \([1](https://arxiv.org/html/2611.21952#S2.E1)\), not the exponential\-Euler input term of the released implementations \(Section[3\.4](https://arxiv.org/html/2611.21952#S3.SS4)\)\. After training, the decay ratesλ\\lambdaof the bounded arm lie between0\.9120\.912and17\.1417\.14\.
We score predictions by the rank information coefficient, the Spearman correlation between predicted and realised returns\. For each arm we keep the checkpoint with the best rank information coefficient on a fixed slice of12,80012\{,\}800windows of the validation split\. Training ran for at most30003000steps, and the kept checkpoints come from step750750on the bounded arm and step20002000on the softplus arm\.
Each arm is a single training run, and the two kept checkpoints come from different training steps, so we draw no conclusion about the timescale maps from differences between the arms\. We keep the softplus arm to show what a very small certified floor does to the additive baseline\.
On the first25,60025\{,\}600windows of the test split the bounded arm has a rank information coefficient of0\.130\.13\. Its block bootstrap9595per cent interval is\[0\.075,0\.197\]\[0\.075,0\.197\], so this arm has learned some signal\. We do not compare it with other architectures\.
We bound how much a perturbation of a block’s input changes the block’s output before the residual connection\. This output isF=out\_proj\(y⊙SiLU\(g\)\)F=\\mathrm\{out\\\_proj\}\(y\\odot\\mathrm\{SiLU\}\(g\)\), whereyyis the readout andggthe gate pre\-activation \(Appendix[A\.4](https://arxiv.org/html/2611.21952#A1.SS4)\)\. The perturbation moves the normalised input of the block by at mostδ\\deltain sup\-norm at every position\. We divide each bound, and each change that an attack finds, byδ\\deltaand call the quotient a slope\. For a certificate we take the limit of this quotient asδ→0\\delta\\to 0\.
When we compare a certificate with an attack, we compute the certificate on boxes widened to cover every point withinδ\\deltaof a normalised vector \(Appendix[A\.4](https://arxiv.org/html/2611.21952#A1.SS4)\)\. The widening is needed because an attacked point need not be a normalised vector\. Atδ=10−2\\delta=10^\{\-2\}it raises the certificate by less than5\.25\.2per cent\.
We compute the boxes and radii of the certificate by interval arithmetic in float32, and the rest of the certificate in round\-to\-nearest float64\. No stage uses outward rounding\. The relative rounding error per operation is of order10−710^\{\-7\}in float32 and10−1610^\{\-16\}in float64\.
Each attack runs sign\-gradient ascent in float64, and we re\-evaluate the change it finds with a reference forward pass\. Every attack value is therefore a lower bound on the true sensitivity\. We call the largest slope that an attack finds the attack slope\. The ratio of a certificate’s slope to the attack slope is an upper bound on the certificate’s looseness\.
### 5\.2One cell
We test the tightness of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)on a single cell by searching numerically for the largest gap between two runs\. The cell hasλ=1\\lambda=1andM=1M=1, and both runs start from00\. The gap afterTTsteps is\|hT−1−h~T−1\|\|h\_\{T\-1\}\-\\tilde\{h\}\_\{T\-1\}\|\. The search runs gradient ascent with Adam in float64 for600600steps from6464random initial sequences and from initial sequences shaped like the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)\. In the shaped sequences, the perturbed equilibriumc~t\\tilde\{c\}\_\{t\}follows a square wave with runs of11,22,44,88or1616steps\. We re\-run the best sequence found with the plain recursion \([2](https://arxiv.org/html/2611.21952#S2.E2)\)\. Every gap we report is therefore attained by two admissible runs and is a lower bound on the true worst case\.
We first search the hypothesis class of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3), with the nominal timescaleλΔt\\lambda\\Delta\_\{t\}free in\[10−4,10\]\[10^\{\-4\},10\]\. We takeρ∈\{0\.01,0\.03,0\.1,0\.3,0\.6\}\\rho\\in\\\{0\.01,0\.03,0\.1,0\.3,0\.6\\\}andη∈\{0,0\.1\}\\eta\\in\\\{0,0\.1\\\}at lengthsTTfrom1010to10001000\.
No gap found at any searched length exceedsη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\), the value that the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)approaches\. ForT≥300T\\geq 300Adam from the initial sequences shaped like the construction comes within0\.010\.01per cent of this value at everyρ\\rhoandη\\eta\. At the same lengths, Adam from the6464random initial sequences comes within0\.40\.4per cent of it\. AtT=10T=10the largest gap found lies less than1\.11\.1per cent below the value\.
Forη=0\\eta=0andT≥300T\\geq 300, the theorem’s boundE=η\+2M\(eρ−1\)E=\\eta\+2M\(e^\{\\rho\}\-1\)equalseρ\+1e^\{\\rho\}\+1times the largest gap found, to four significant figures\. This factor is about2\.02\.0atρ=0\.01\\rho=0\.01and about2\.82\.8atρ=0\.6\\rho=0\.6\(Figure[2](https://arxiv.org/html/2611.21952#S5.F2), right\)\.
We then setη=0\\eta=0and search the perturbation model of our certificates\. In this model each timescale is the image of a pre\-activation under the timescale map\. The nominal pre\-activationztz\_\{t\}lies in a boxZZ, and the perturbed one lies inZZwithinζ\\zetaofztz\_\{t\}\. For the bounded map we takeΔ∈\[10−3,10−1\]\\Delta\\in\[10^\{\-3\},10^\{\-1\}\]andZ=\[−8,8\]Z=\[\-8,8\]\. For the softplus map we takeZ=\[−48,2\]Z=\[\-48,2\]\. On both maps we chooseζ\\zetaso that the bound on the change oflogΔ\\log\\Deltaisρ=ζsupZ\|\(logΔ\)′\|=0\.01\\rho=\\zeta\\sup\_\{Z\}\|\(\\log\\Delta\)^\{\\prime\}\|=0\.01\. The additive baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) withL=TL=Tuses the boundηΔ=ζsupZ\|Δ′\|\\eta\_\{\\Delta\}=\\zeta\\sup\_\{Z\}\|\\Delta^\{\\prime\}\|on the change ofΔ\\Delta, and its floored form uses the floorΔlo=Δ\(infZ\)\\Delta\_\{\\mathrm\{lo\}\}=\\Delta\(\\inf Z\)\. We search at lengthsTTfrom33to30003000\.
On both maps the largest gap found grows withTTand levels off at about half of the theorem’s bound \(Figure[2](https://arxiv.org/html/2611.21952#S5.F2), left and middle\)\. This is the value that the search over the hypothesis class gives forρ=0\.01\\rho=0\.01andη=0\\eta=0\.
SinceM=1M=1andη=0\\eta=0here, every gap between two admissible runs is at most the trivial bound2M\+η=22M\+\\eta=2of Section[3](https://arxiv.org/html/2611.21952#S3)\. This bound does not tend to zero with the perturbation, so it gives no finite slope and plays no part in the block certificates of Section[5\.3](https://arxiv.org/html/2611.21952#S5.SS3)\.
For the bounded map the additive baseline is above the theorem’s bound fromT=39T=39without the floor and fromT=40T=40with it\. Both lengths are about inversely proportional toλ\\lambda\. With the same box andζ\\zeta, atλ=17\.14\\lambda=17\.14, the largest decay rate of the trained bounded arm, the baseline would be above the theorem’s bound fromT=3T=3\. Without the floor the baseline keeps growing linearly\. With the floor it tends to about25\.625\.6times the theorem’s bound asT→∞T\\to\\infty, below the value25\.825\.8of Remark[5](https://arxiv.org/html/2611.21952#Thmproposition5)\. Both forms of the baseline stay below the trivial bound at every searched length\.
For the softplus map the floorΔ\(infZ\)\\Delta\(\\inf Z\)is about1\.4×10−211\.4\\times 10^\{\-21\}\. At every searched length the baseline with this floor coincides with the one without it\. The baseline is above the theorem’s bound fromT=2T=2and above the trivial bound fromT=114T=114\. It grows linearly to more than26002600times the theorem’s bound atT=3000T=3000\.
Figure 2:Largest gap found by numerical search in one cell withλ=1\\lambda=1andM=1M=1, with both runs started from00\. The left and middle panels show the largest gap found against the lengthTTfor the bounded and the softplus map, atρ=0\.01\\rho=0\.01andη=0\\eta=0\. They also show the bound of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3), the additive baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) with and without the floorΔ\(infZ\)\\Delta\(\\inf Z\), and the trivial bound2M\+η=22M\+\\eta=2\. The gap levels off at about half of the theorem’s bound\. On the softplus map the two forms of the baseline coincide at every length shown\. The right panel shows the largest gap found atT=1000T=1000, divided by the theorem’s boundEE, againstρ\\rhoforη=0\\eta=0andη=0\.1\\eta=0\.1\. The curve for eachη\\etais the valueη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)that the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)approaches, divided byEE\. Every point lies less than0\.010\.01per cent below the curve, and none lies above it\.
### 5\.3Comparison with the additive baseline
Table[1](https://arxiv.org/html/2611.21952#S5.T1)and Figure[3](https://arxiv.org/html/2611.21952#S5.F3)compare our data\-free certificate with one that uses the additive baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) in place of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)in each cell\. Our certificate does not depend on the lengthLL, while the baseline without a floor grows linearly withLL\. On the bounded arm the baseline passes our certificate after about88steps, the crossingLLin Table[1](https://arxiv.org/html/2611.21952#S5.T1)\. It grows by about0\.110\.11times our certificate per step\. AtL=5000L=5000it is about540540times ours on both blocks\. On the softplus arm the baseline is looser at every length\. It grows by about3\.93\.9times our certificate per step, and atL=5000L=5000it is about2×1042\\times 10^\{4\}times ours\. These ratios atL=5000L=5000depend on the chosen length, whereas the crossingLLand the growth per step are properties of the trained model\.
Our certificate, the flat line in Figure[3](https://arxiv.org/html/2611.21952#S5.F3), uses the constantEEof the theorem in every cell\. The theorem also gives the finite\-horizon bound\(1−Pt\)E\(1\-P\_\{t\}\)E, which is smaller thanEE, so the baseline passes this bound no later than it passesEE\. We also compare the two time\-warp terms cell by cell, with our finite\-horizon term at its worst over admissible timescales\. Over the cells of the bounded arm, the baseline’s term reaches ours after a median of55steps \(n∗n^\{\\ast\}in Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\.
With the certified floor the baseline levels off asL→∞L\\to\\infty\. On the bounded arm its limit is2323times our certificate on block 0 and2222times on block 1\. This ratio is set mainly by our choice ofΔmax/Δmin=100\\Delta\_\{\\max\}/\\Delta\_\{\\min\}=100for the bounded map\. On the bounded arm every certified floor is below1\.1×10−31\.1\\times 10^\{\-3\}and every certified ceiling is above0\.0950\.095\. Since the bounded map is increasing and givesΔ=10−2\\Delta=10^\{\-2\}atz=0z=0, every boxZZcontains00\. Remark[5](https://arxiv.org/html/2611.21952#Thmproposition5)then bounds the ratio of the two time\-warp terms in each cell by25\.825\.8, a cap that depends only onΔmax/Δmin\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\. Over the cells of the trained model the ratio lies between24\.124\.1and25\.825\.8\.
The ratio for the block is slightly below the ratio for a single cell\. The two certificates differ only in the time\-warp term, and the terms they share make up0\.110\.11to0\.130\.13of ours at its largest output coordinate\.
With a floor taken from an attack on the block’s input, the baseline on the bounded arm is still8\.58\.5to1212times our certificate \(Appendix[B](https://arxiv.org/html/2611.21952#A2)\)\. This floor, which we call the empirical floor, is the smallest timescale that the attack reaches in a channel\. Any valid floor of a channel is at most its empirical floor, and a larger floor lowers the baseline\. The empirical floor is therefore at least as favourable to the baseline as any valid floor\.
On the softplus arm the certified floors are too small to matter at the lengths we test\. The smallest are1\.3×10−211\.3\\times 10^\{\-21\}on block 0 and1\.9×10−171\.9\\times 10^\{\-17\}on block 1\. Up toL=5000L=5000the baseline with these floors stays within11per cent of the baseline without one\. Its limit asL→∞L\\to\\inftyis2\.1×10192\.1\\times 10^\{19\}times our certificate on block 0 and2\.8×10152\.8\\times 10^\{15\}times on block 1\.
Figure 3:Data\-free output slopes of block 0 of each arm against the sequence lengthLL\. The flat line, labelled log\-timescale, is our certificate, which uses the constantEEof Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)in every cell\. Without a floor the additive baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) grows linearly, and with the certified floor it levels off asL→∞L\\to\\infty\. On the bounded arm both forms of the baseline pass the flat line nearL=8L=8\. On the softplus arm the smallest certified floor is about10−2110^\{\-21\}, and the two forms of the baseline overlap at every length shown\.Table 1:Data\-free output slopes of each block of the two arms, maximised over output coordinates and rounded up\. The additive columns use the baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) without a floor atL=5000L=5000and with the certified floor asL→∞L\\to\\infty\. Each ratio divides the unrounded additive slope to its left by the unrounded slope in the Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)column\. The crossingLLis the length at which the affine baseline without a floor reaches the flat bound of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\. A crossing of none means that the baseline is the larger bound at every length\.
### 5\.4Comparison with gradient attacks
We attack each block on four held\-out windows at each of the lengthsL=10L=10,100100,10001000and50005000\. The windows of all four lengths end at the same rows, and the two longest are1010and5050times as long as the training windows\. FromL=10L=10toL=5000L=5000atδ=10−6\\delta=10^\{\-6\}, the attack slope grows by a factor of1\.41\.4to7\.37\.3, while the baseline without a floor grows by a factor of at least445445\. The largest change found lies at the last position in only11of the1616combinations of arm, block and length\. At the last position alone, the attack slope grows by a factor of1\.061\.06to2\.32\.3\. The growth therefore comes partly from searching more positions and partly from the longer history before a single position\.
No attack value exceeds a certificate, and our data\-free certificate lies far above what the attacks find\. Atδ=10−6\\delta=10^\{\-6\}it is3\.06×1053\.06\\times 10^\{5\}to3\.23×1063\.23\\times 10^\{6\}times the attack slope\. We also compare the certified bound after each stage of the block with the largest change that random perturbations of the block input produce there\. Random perturbations do not search for the worst case, so each such ratio is an upper bound on the looseness after its stage\. On block 0 of the bounded arm the ratio is8\.28\.2after the scan inputuu,134134afterBB,537537after the equilibriumcc,1\.54×1041\.54\\times 10^\{4\}after the statehh,3\.24×1053\.24\\times 10^\{5\}after the readoutyyand4\.65×1074\.65\\times 10^\{7\}at the output\. At the output this ratio exceeds the ratio to the attack slope\.
The factor of a stage is the ratio after it divided by the ratio before it\. In every block the gate and the output projection together have the largest factor,9898to147147\. The scan follows with1818to3939, and then the readout with1414to2929\. The step that forms the equilibrium fromBtB\_\{t\}andutu\_\{t\}has a factor of only44to77\. Each factor mixes the slack of its stage with how far the random samples fall short of that stage’s worst case\.
Most of this slack comes from taking the worst case over the certified boxes\. Around the realised input of each window, we also propagate the perturbation through every stage of the block\. In the scan we apply the triangle inequality to the error identity \([4](https://arxiv.org/html/2611.21952#S3.E4)\) with the two runs exchanged\. The realised distance\|ht−1−ct\|\|h\_\{t\-1\}\-c\_\{t\}\|then takes the place of the bound2M2Mthat the proof uses, and we take the result at the worst transition that the perturbed run can have\. That transition lies in the intersection of the intervals given by the log\-timescale bound and by the additive bound on\|Δt−Δ~t\|\|\\Delta\_\{t\}\-\\tilde\{\\Delta\}\_\{t\}\|\. Forδ≤10−4\\delta\\leq 10^\{\-4\}this local bound is at most12\.712\.7times the attack slope, and dropping the log\-timescale interval from the intersection changes it by at most0\.0340\.034per cent\. The local bound and its code are in our repository\.
To first order in the perturbation, the choice between the log and the additive metric matters only for the data\-free certificate\. A bound on the change of the timescale pre\-activationztz\_\{t\}bounds the change ofΔt\\Delta\_\{t\}through the derivativeΔ′\\Delta^\{\\prime\}and that oflogΔt\\log\\Delta\_\{t\}through\(logΔ\)′\(\\log\\Delta\)^\{\\prime\}\. SinceΔ′=Δ\(logΔ\)′\\Delta^\{\\prime\}=\\Delta\\,\(\\log\\Delta\)^\{\\prime\}, the first bound isΔt\\Delta\_\{t\}times the second to first order\. Along a given input the realised timescaleΔt\\Delta\_\{t\}is known at every step, so either bound gives the other and the two agree to first order\. The data\-free certificate has no realised timescale to use, and there the two metrics give the different certificates of Section[5\.3](https://arxiv.org/html/2611.21952#S5.SS3)\.
## 6Related work
#### Bounds on selective scans\.
Stability analyses of selective scans differ in how they treat the input\-dependent timescale\. Halloran, Gulati and Roysdon\[[13](https://arxiv.org/html/2611.21952#bib.bib10)\]show that the maximal Lyapunov exponent of the Mamba recurrence is nonpositive whenΔt\\Delta\_\{t\},BtB\_\{t\}andCtC\_\{t\}are held at their nominal values\. Zubić and Scaramuzza\[[31](https://arxiv.org/html/2611.21952#bib.bib9)\]work in continuous time under a common quadratic Lyapunov function\. Cao et al\.\[[6](https://arxiv.org/html/2611.21952#bib.bib7)\]keep the timescale input\-dependent and treat one layer without normalisation, for inputs in a known bounded set\. Section[3\.3](https://arxiv.org/html/2611.21952#S3.SS3)compares their bound with ours\.
Analyses of training and generalisation for selective state space models also rely on a floor\. Piaseczny et al\.\[[24](https://arxiv.org/html/2611.21952#bib.bib30)\]bound parameter gradients uniformly in the length under a floor on the softplus timescale\. The robustness bound of Tang et al\.\[[28](https://arxiv.org/html/2611.21952#bib.bib19), Theorem 1\]takes its decay factor from a floor on the timescale\.
#### Incremental stability of gated recurrences\.
A factor that plays the role of a floor also appears in incremental stability results for gated recurrent networks\. The incremental stability conditions of Bonassi et al\.\[[2](https://arxiv.org/html/2611.21952#bib.bib5)\]for networks of gated recurrent units contain the inverse of one minus an upper bound on the retention gate\. The incremental gains of De Carli et al\.\[[7](https://arxiv.org/html/2611.21952#bib.bib17),[8](https://arxiv.org/html/2611.21952#bib.bib18)\]contain the inverse of one minus a contraction bound, which includes an upper bound on the forget gate\.
Orvieto et al\.\[[23](https://arxiv.org/html/2611.21952#bib.bib15), Section 4\]observe that the factorΔ\\Deltain the input gain cancels the growth of order1/Δ1/\\Deltathat the transition alone would produce\. Zucchet and Orvieto\[[32](https://arxiv.org/html/2611.21952#bib.bib20)\]use logarithmic timescale coordinates to control the parameter sensitivity of diagonal linear recurrences\. Their coordinates describe the fixed eigenvalues of the recurrence, whereas the timescale of our cell changes at every step with the input\.
The nearest argument we know is that of Matsubara et al\.\[[21](https://arxiv.org/html/2611.21952#bib.bib32), Lemma A\.5\]\. They bound the error between two exponential smoothers through a recursion like \([4](https://arxiv.org/html/2611.21952#S3.E4)\), with a constant proportional to the relative difference of their smoothing parameters\. Each cell is such a smoother on the irregular grid of accumulated times\[[9](https://arxiv.org/html/2611.21952#bib.bib31), Section 4\.1\], but its input weight varies from step to step\. Lemma[2](https://arxiv.org/html/2611.21952#Thmproposition2)bounds the difference of the two transitions at each step by a multiple of that step’s input weight, which keeps these differences from accumulating\.
#### Verification of recurrent models\.
Verifiers for recurrent networks either propagate an input set through a fixed number of steps or search for an invariant\. Propagation certifies one length at a time, whether it unrolls the network into a feed\-forward one or proceeds step by step with star sets\[[30](https://arxiv.org/html/2611.21952#bib.bib4)\]\. A search for an inductive invariant may iterate the transition up to a depth limit\[[15](https://arxiv.org/html/2611.21952#bib.bib11)\]or check candidates with Marabou\[[16](https://arxiv.org/html/2611.21952#bib.bib2),[17](https://arxiv.org/html/2611.21952#bib.bib3)\]\. It succeeds only if it finds an invariant\. For state space models, Thapliyal\[[29](https://arxiv.org/html/2611.21952#bib.bib16)\]propagates intervals exactly through a linear time\-invariant classifier and observes that the analysis does not carry over to Mamba\.
Brucker and Stell\[[4](https://arxiv.org/html/2611.21952#bib.bib25)\]give Isabelle/HOL proofs for feed\-forward classifiers, and George et al\.\[[10](https://arxiv.org/html/2611.21952#bib.bib26)\]give Lean proofs for unrolled recurrent computation\. Our Isabelle theory is narrower than both\.
## 7Limitations
Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)concerns one scalar cell, so it requires a diagonalAA\. It also needs a real transitionA¯t\\bar\{A\}\_\{t\}in\(0,1\)\(0,1\), which makes each step a convex combination\. The theorem therefore does not cover the complex\-valued state update of Mamba\-3\[[19](https://arxiv.org/html/2611.21952#bib.bib12), Section 3\.2\], whose transition is not a real number in\(0,1\)\(0,1\)\.
We do not prove that the largest gap from a common start equalsη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)\. The search of Section[5\.2](https://arxiv.org/html/2611.21952#S5.SS2)gives only lower bounds on this gap\. Forη\>0\\eta\>0, the construction of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)puts the nominal equilibrium outside\[−M,M\]\[\-M,M\], atct=M\+ηc\_\{t\}=M\+\\etaon half of the steps\. When the equilibria of both runs are restricted to\[−M,M\]\[\-M,M\], so are both states, and the gap is at most2M2M\. Under this restriction no gap can approachη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)onceη\>4M/\(eρ\+1\)\\eta\>4M/\(e^\{\\rho\}\+1\), because this value then exceeds2M2M\. Withc~t\\tilde\{c\}\_\{t\}alternating betweenM−ηM\-\\etaand−M\-Minstead, the construction satisfies the restriction and gives gaps that approachη\+\(2M−η\)tanh\(ρ/2\)\\eta\+\(2M\-\\eta\)\\tanh\(\\rho/2\)\. We do not know the largest gap under this restriction\.
Our certificates bound one block at a time, with respect to its normalised input\. We do not compose them through the residual stream and the head\. A certificate with respect to the raw input of a block would also have to pass through its layer normalisation \(Lemma[9](https://arxiv.org/html/2611.21952#Thmproposition9)\)\. This normalisation is globally Lipschitz because its variance offsetε\\varepsilonis positive\. In the sup\-norm of our certificates, its Jacobian on the blocks of the bounded arm has norm at most3\.93\.9at realised inputs but about653653at a constant input\. Because a certificate holds for every input, one with respect to the raw input would carry the global Lipschitz constant, which is at least the norm of about653653at a constant input\. We do not compute one\.
Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)and its corollaries hold in real arithmetic, and we evaluate our certificates without outward rounding \(Section[5\.1](https://arxiv.org/html/2611.21952#S5.SS1)\)\. A scan computed in float32 adds a rounding error at every step\. In a cell this error decays at the rateA¯\\bar\{A\}, so it accumulates to at most about1/\(1−supA¯\)1/\(1\-\\sup\\bar\{A\}\)times the error added per step\. On the bounded arm this factor is about11001100\. One run there accumulates an error of at most about2×10−4M2\\times 10^\{\-4\}M, whereMMis the invariant radius of the cell\. Atδ=10−6\\delta=10^\{\-6\}, the errors of the two runs together exceed the certified change of the state in4949and6161per cent of the cells of the two blocks\. A float32 scan is therefore covered only once a rounding term is added to the bound\.
A transition can also round to exactly11\. In bfloat16 this happens to the slowest transitions of the bounded arm\. In float32 it happens to the slowest transitions of the softplus arm, whereλΔ\\lambda\\Deltareaches10−2110^\{\-21\}on the certified boxes\. Where this happens, the computed update is not a convex combination, and the theorem does not apply to the scan as computed\.
Our order book data come from one instrument on one trading day, and our attacks are heuristic searches on four windows\. The two arms come from one training set\-up with one learning rate\. They use the exact zero\-order hold rather than the exponential\-Euler step of the released implementations\. We do not certify a released language model here\.
## 8Conclusion
We have shown that measuring timescale perturbations inlogΔ\\log\\Deltarather than inΔ\\Deltagives a sensitivity bound for a selective\-scan cell that holds at every sequence length and needs no floor on the timescale \(Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\)\. From a common start, its constant is within a factoreρ\+1e^\{\\rho\}\+1of the best possible \(Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)\)\.
How much this helps in practice depends on the timescale map\. With the bounded map, the additive baseline is tighter than our certificate only over the first88steps or fewer, and once it uses its certified floor, the chosen timescale range caps its ratio to ours in each cell \(Remark[5](https://arxiv.org/html/2611.21952#Thmproposition5)\)\. With Mamba’s softplus map, the certified floor is the only thing that limits the baseline, and on our model it is too small to matter at any length we test\. Along a single input, the log and additive ways of measuring the change agree to first order, so the gain shows up only in bounds that must hold for every input of a block\.
This paper does not settle whetherη\+2Mtanh\(ρ/2\)\\eta\+2M\\tanh\(\\rho/2\)is the largest possible gap from a common start, although our search finds none larger, nor what the largest gap is when the equilibria of both runs lie in\[−M,M\]\[\-M,M\]\(Section[7](https://arxiv.org/html/2611.21952#S7)\)\. Natural next steps are to extend the theorem to the complex\-valued transitions of Mamba\-3 and to tighten the block certificate, which remains far above what attacks find\.
## Use of generative AI
Claude \(Anthropic\), a large language model, assisted the authors throughout this project\. It assisted with searching and summarising the related literature, drafting and checking proofs, writing and debugging code, running experiments, and drafting and revising the text\. It was also used to review the paper, including tracing every reported number to the code and the recorded runs in our repository\. The authors reviewed all AI\-assisted material and take full responsibility for the content of this paper\.
## References
- \[1\]\(1999\)Convergence of probability measures\.Second edition,Wiley Series in Probability and Statistics,Wiley,New York\.External Links:ISBN 978\-0\-471\-19745\-4,[Document](https://dx.doi.org/10.1002/9780470316962)Cited by:[Appendix B](https://arxiv.org/html/2611.21952#A2.SS0.SSS0.Px1.p4.1)\.
- \[2\]F\. Bonassi, M\. Farina, and R\. Scattolini\(2021\)On the stability properties of gated recurrent units neural networks\.Systems & Control Letters157,pp\. 105049\.External Links:[Document](https://dx.doi.org/10.1016/j.sysconle.2021.105049)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p1.1)\.
- \[3\]S\. Brody, U\. Alon, and E\. Yahav\(2023\)On the expressivity role of LayerNorm in transformers’ attention\.InFindings of the Association for Computational Linguistics: ACL 2023,Toronto, Canada,pp\. 14211–14221\.Note:arXiv:2305\.02582External Links:[Document](https://dx.doi.org/10.18653/v1/2023.findings-acl.895)Cited by:[§C\.2](https://arxiv.org/html/2611.21952#A3.SS2.p4.1)\.
- \[4\]A\. D\. Brucker and A\. Stell\(2023\)Verifying feedforward neural networks for classification in Isabelle/HOL\.InFormal Methods: 25th International Symposium, FM 2023,Lecture Notes in Computer Science, Vol\.14000,pp\. 427–444\.External Links:[Document](https://dx.doi.org/10.1007/978-3-031-27481-7%5F24)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p2.1)\.
- \[5\]F\. Bullo\(2026\)Contraction theory for dynamical systems\.Kindle Direct Publishing\.Note:Edition 1\.3External Links:ISBN 979\-8836646806,[Link](https://fbullo.github.io/ctds)Cited by:[§3\.2](https://arxiv.org/html/2611.21952#S3.SS2.p3.1)\.
- \[6\]L\. Cao, W\. Liu, Z\. Chen, and Y\. Qin\(2026\)A control\-theoretic view of Mamba on stability and robustness\.InProceedings of the 43rd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.306,pp\. 11350–11364\.Cited by:[Appendix B](https://arxiv.org/html/2611.21952#A2.SS0.SSS0.Px1.p1.1),[§1](https://arxiv.org/html/2611.21952#S1.p2.1),[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p3.1),[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px1.p1.1)\.
- \[7\]S\. De Carli, D\. Previtali, M\. Mazzoleni, and F\. Previdi\(2026\)Chaos\-free networks are stable recurrent neural networks\.IEEE Control Systems Letters10,pp\. 751–756\.Note:arXiv:2603\.14106External Links:[Document](https://dx.doi.org/10.1109/LCSYS.2026.3702800)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p1.1)\.
- \[8\]S\. De Carli, D\. Previtali, M\. Mazzoleni, and F\. Previdi\(2026\)Stability properties of Minimal Gated Unit neural networks\.arXiv preprint arXiv:2603\.03017\.Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p1.1)\.
- \[9\]A\. Eckner\(2019\)Algorithms for unevenly spaced time series: moving averages and other rolling operators\.Note:Working paperFirst version January 2010; current version 10 April 2019External Links:[Link](http://www.eckner.com/papers/Algorithms%20for%20Unevenly%20Spaced%20Time%20Series.pdf)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p3.1)\.
- \[10\]R\. J\. George, J\. Cruden, W\. Adkisson, X\. Zhong, H\. Zhang, and A\. Anandkumar\(2026\)TorchLean: formalizing neural networks in Lean\.arXiv preprint arXiv:2602\.22631\.Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p2.1)\.
- \[11\]A\. Gu and T\. Dao\(2024\)Mamba: linear\-time sequence modeling with selective state spaces\.InFirst Conference on Language Modeling \(COLM\),Note:arXiv:2312\.00752Cited by:[§1](https://arxiv.org/html/2611.21952#S1.p1.1),[§2\.1](https://arxiv.org/html/2611.21952#S2.SS1.p1.1),[§2\.1](https://arxiv.org/html/2611.21952#S2.SS1.p4.3),[§5\.1](https://arxiv.org/html/2611.21952#S5.SS1.p4.1)\.
- \[12\]A\. Gu, I\. Johnson, K\. Goel, K\. Saab, T\. Dao, A\. Rudra, and C\. Ré\(2021\)Combining recurrent, convolutional, and continuous\-time models with linear state space layers\.InAdvances in Neural Information Processing Systems,Vol\.34,pp\. 572–585\.Note:arXiv:2110\.13985Cited by:[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p3.1)\.
- \[13\]J\. T\. Halloran, M\. Gulati, and P\. F\. Roysdon\(2025\)Mamba state\-space models are Lyapunov\-stable learners\.Transactions on Machine Learning Research\.Note:arXiv:2406\.00209External Links:ISSN 2835\-8856,[Link](https://openreview.net/forum?id=wzsYQYs3dO)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px1.p1.1)\.
- \[14\]L\. Horbatko\(2026\)Sessa: selective state space attention\.arXiv preprint arXiv:2604\.18580\.Cited by:[§1](https://arxiv.org/html/2611.21952#S1.p5.1),[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p3.1)\.
- \[15\]M\. Hosseini, A\. Lomuscio, and N\. Paoletti\(2025\)LTL verification of memoryful neural agents\.InProceedings of the 24th International Conference on Autonomous Agents and Multiagent Systems \(AAMAS 2025\),Detroit, Michigan, USA,pp\. 978–987\.Note:arXiv:2503\.02512Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p1.1)\.
- \[16\]Y\. Jacoby, C\. Barrett, and G\. Katz\(2020\)Verifying recurrent neural networks using invariant inference\.InAutomated Technology for Verification and Analysis \(ATVA\),Lecture Notes in Computer Science, Vol\.12302,pp\. 57–74\.Note:Full version: arXiv:2004\.02462Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p1.1)\.
- \[17\]G\. Katz, D\. A\. Huang, D\. Ibeling, K\. Julian, C\. Lazarus, R\. Lim, P\. Shah, S\. Thakoor, H\. Wu, A\. Zeljić, D\. L\. Dill, M\. J\. Kochenderfer, and C\. Barrett\(2019\)The Marabou framework for verification and analysis of deep neural networks\.InComputer Aided Verification \(CAV\),Lecture Notes in Computer Science, Vol\.11561,pp\. 443–452\.Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p1.1)\.
- \[18\]E\. Laguerre\(1880\)Sur une méthode pour obtenir par approximation les racines d’une équation algébrique qui a toutes ses racines réelles\.Nouvelles Annales de Mathématiques, 2e série19,pp\. 161–171\.External Links:[Link](https://www.numdam.org/item/NAM_1880_2_19__161_1/)Cited by:[§C\.2](https://arxiv.org/html/2611.21952#A3.SS2.p2.1),[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p5.1)\.
- \[19\]A\. Lahoti, K\. Y\. Li, B\. Chen, C\. Wang, A\. Bick, J\. Z\. Kolter, T\. Dao, and A\. Gu\(2026\)Mamba\-3: improved sequence modeling using state space principles\.InInternational Conference on Learning Representations \(ICLR\),Note:arXiv:2603\.15569External Links:[Link](https://openreview.net/forum?id=HwCvaJOiCj)Cited by:[§3\.4](https://arxiv.org/html/2611.21952#S3.SS4.p1.1),[§7](https://arxiv.org/html/2611.21952#S7.p1.1)\.
- \[20\]W\. Lohmiller and J\. E\. Slotine\(1998\)On contraction analysis for non\-linear systems\.Automatica34\(6\),pp\. 683–696\.External Links:[Document](https://dx.doi.org/10.1016/S0005-1098%2898%2900019-3)Cited by:[§3\.2](https://arxiv.org/html/2611.21952#S3.SS2.p3.1)\.
- \[21\]T\. Matsubara, P\. Jiang, W\. Y\. Chen, and M\. Tran\(2026\)Exponential smoothing for time series of random objects\.arXiv preprint arXiv:2609\.20274\.External Links:2609\.20274Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p3.1)\.
- \[22\]T\. Nipkow, L\. C\. Paulson, and M\. Wenzel\(2002\)Isabelle/hol: a proof assistant for higher\-order logic\.Lecture Notes in Computer Science, Vol\.2283,Springer\.Cited by:[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p6.1)\.
- \[23\]A\. Orvieto, S\. L\. Smith, A\. Gu, A\. Fernando, C\. Gulcehre, R\. Pascanu, and S\. De\(2023\)Resurrecting recurrent neural networks for long sequences\.InProceedings of the 40th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.202,pp\. 26670–26698\.Note:arXiv:2303\.06349Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p2.1)\.
- \[24\]A\. Piaseczny, M\. K\. C\. Shisher, S\. Wang, and C\. G\. Brinton\(2026\)Distributed learning with selective state space models: architecture\-aware convergence analysis\.arXiv preprint arXiv:2610\.02659\.External Links:2610\.02659Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px1.p2.1)\.
- \[25\]P\. M\. Riechers\(2024\)Geometry and dynamics of LayerNorm\.arXiv preprint arXiv:2405\.04134\.Cited by:[§C\.2](https://arxiv.org/html/2611.21952#A3.SS2.p4.1),[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p5.1)\.
- \[26\]P\. A\. Samuelson\(1968\)How deviant can you be?\.Journal of the American Statistical Association63\(324\),pp\. 1522–1525\.External Links:[Document](https://dx.doi.org/10.1080/01621459.1968.10480944)Cited by:[§C\.2](https://arxiv.org/html/2611.21952#A3.SS2.p2.1),[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p5.1)\.
- \[27\]C\. Tallec and Y\. Ollivier\(2018\)Can recurrent neural networks warp time?\.InInternational Conference on Learning Representations \(ICLR\),Note:arXiv:1804\.11188External Links:[Link](https://openreview.net/forum?id=SJcKhk-Ab)Cited by:[§2\.2](https://arxiv.org/html/2611.21952#S2.SS2.p3.1)\.
- \[28\]A\. Tang, M\. E\. Ildiz, B\. Kurt, S\. Oymak, and N\. Ozay\(2026\)On the generalization properties of selective state\-space models for filtering tasks for unknown systems\.arXiv preprint arXiv:2604\.23818\.Note:Accepted to the 65th IEEE Conference on Decision and Control \(CDC 2026\)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px1.p2.1)\.
- \[29\]O\. Thapliyal\(2026\)Bounded reachability & jailbreak detection via contraction\-constrained state space models\.arXiv preprint arXiv:2610\.02853\.Note:Accepted at the First Workshop in AI Measurement Science \(AIMS\), COLM 2026Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p1.1)\.
- \[30\]H\. Tran, S\. W\. Choi, X\. Yang, T\. Yamaguchi, B\. Hoxha, and D\. Prokhorov\(2023\)Verification of recurrent neural networks with star reachability\.InHybrid Systems: Computation and Control \(HSCC\),External Links:[Document](https://dx.doi.org/10.1145/3575870.3587128)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px3.p1.1)\.
- \[31\]N\. Zubić and D\. Scaramuzza\(2026\)Regularity and stability properties of selective SSMs with discontinuous gating\.Transactions on Machine Learning Research\.Note:arXiv:2505\.11602External Links:ISSN 2835\-8856,[Link](https://openreview.net/forum?id=7Vav53cDeN)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px1.p1.1)\.
- \[32\]N\. Zucchet and A\. Orvieto\(2024\)Recurrent neural networks: vanishing and exploding gradients are not the end of the story\.InAdvances in Neural Information Processing Systems,Vol\.37,pp\. 139402–139443\.Note:arXiv:2405\.21064External Links:[Document](https://dx.doi.org/10.52202/079017-4425)Cited by:[§6](https://arxiv.org/html/2611.21952#S6.SS0.SSS0.Px2.p2.1)\.
## Appendix AThe lower bound, the corollaries and their proofs
### A\.1Proof of the lower bound
###### Proof of Proposition[4](https://arxiv.org/html/2611.21952#Thmproposition4)\.
PutQ=eρ\>1Q=e^\{\\rho\}\>1, fixτ\>0\\tau\>0and puta=e−Qτa=e^\{\-Q\\tau\}andb=e−τb=e^\{\-\\tau\}, so that0<a<b<10<a<b<1\. On the even steps we takec~t=M\\tilde\{c\}\_\{t\}=M,λΔt=Qτ\\lambda\\Delta\_\{t\}=Q\\tauandΔ~t=Δt/Q\\tilde\{\\Delta\}\_\{t\}=\\Delta\_\{t\}/Q, and on the odd stepsc~t=−M\\tilde\{c\}\_\{t\}=\-M,λΔt=τ\\lambda\\Delta\_\{t\}=\\tauandΔ~t=QΔt\\tilde\{\\Delta\}\_\{t\}=Q\\Delta\_\{t\}\. On every stepct=c~t\+ηc\_\{t\}=\\tilde\{c\}\_\{t\}\+\\eta\. Then\|logΔt−logΔ~t\|=ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|=\\rho,\|c~t\|=M\|\\tilde\{c\}\_\{t\}\|=Mandct−c~t=ηc\_\{t\}\-\\tilde\{c\}\_\{t\}=\\etafor everytt\. The nominal transitions area,b,a,b,…a,b,a,b,\\dotsand the perturbed onesb,a,b,a,…b,a,b,a,\\dots, starting att=0t=0\.
Leth^\\hat\{h\}be the run on the nominal timescales with the equilibria of the perturbed run,h^t=A¯th^t−1\+\(1−A¯t\)c~t\\hat\{h\}\_\{t\}=\\bar\{A\}\_\{t\}\\hat\{h\}\_\{t\-1\}\+\(1\-\\bar\{A\}\_\{t\}\)\\tilde\{c\}\_\{t\}withh^−1=0\\hat\{h\}\_\{\-1\}=0, and splitht−h~t=\(ht−h^t\)\+\(h^t−h~t\)h\_\{t\}\-\\tilde\{h\}\_\{t\}=\(h\_\{t\}\-\\hat\{h\}\_\{t\}\)\+\(\\hat\{h\}\_\{t\}\-\\tilde\{h\}\_\{t\}\)\. The first partdt=ht−h^td\_\{t\}=h\_\{t\}\-\\hat\{h\}\_\{t\}satisfiesdt=A¯tdt−1\+\(1−A¯t\)ηd\_\{t\}=\\bar\{A\}\_\{t\}d\_\{t\-1\}\+\(1\-\\bar\{A\}\_\{t\}\)\\etawithd−1=0d\_\{\-1\}=0, soη−dt=A¯t\(η−dt−1\)\\eta\-d\_\{t\}=\\bar\{A\}\_\{t\}\(\\eta\-d\_\{t\-1\}\)anddt=η\(1−Pt\)d\_\{t\}=\\eta\(1\-P\_\{t\}\), withPtP\_\{t\}as in Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)\. SincePt≤bt\+1P\_\{t\}\\leq b^\{t\+1\},dtd\_\{t\}tends toη\\eta\.
For the second part we putXk=h^2kX\_\{k\}=\\hat\{h\}\_\{2k\}andX~k=h~2k\\tilde\{X\}\_\{k\}=\\tilde\{h\}\_\{2k\}fork≥0k\\geq 0, so thatX0=\(1−a\)MX\_\{0\}=\(1\-a\)MandX~0=\(1−b\)M\\tilde\{X\}\_\{0\}=\(1\-b\)M\. Step2k−12k\-1hasc~=−M\\tilde\{c\}=\-Mand step2k2khasc~=M\\tilde\{c\}=M, so fork≥1k\\geq 1
Xk=a\(bXk−1−\(1−b\)M\)\+\(1−a\)M=abXk−1\+M\(1−2a\+ab\),X\_\{k\}=a\\bigl\(b\\,X\_\{k\-1\}\-\(1\-b\)M\\bigr\)\+\(1\-a\)M=ab\\,X\_\{k\-1\}\+M\(1\-2a\+ab\),and in the same way, with the two transitions exchanged,X~k=b\(aX~k−1−\(1−a\)M\)\+\(1−b\)M=abX~k−1\+M\(1−2b\+ab\)\\tilde\{X\}\_\{k\}=b\\bigl\(a\\,\\tilde\{X\}\_\{k\-1\}\-\(1\-a\)M\\bigr\)\+\(1\-b\)M=ab\\,\\tilde\{X\}\_\{k\-1\}\+M\(1\-2b\+ab\)\. Since0<ab<10<ab<1, both sequences converge to the fixed points of these affine maps, and
limk→∞\(h^2k−h~2k\)=M\(1−2a\+ab\)−M\(1−2b\+ab\)1−ab=2Me−τ−e−Qτ1−e−\(Q\+1\)τ\.\\lim\_\{k\\to\\infty\}\\bigl\(\\hat\{h\}\_\{2k\}\-\\tilde\{h\}\_\{2k\}\\bigr\)=\\frac\{M\(1\-2a\+ab\)\-M\(1\-2b\+ab\)\}\{1\-ab\}=2M\\,\\frac\{e^\{\-\\tau\}\-e^\{\-Q\\tau\}\}\{1\-e^\{\-\(Q\+1\)\\tau\}\}\.Asτ→0\\tau\\to 0the numerator of the last fraction is\(Q−1\)τ\+O\(τ2\)\(Q\-1\)\\tau\+O\(\\tau^\{2\}\)and its denominator\(Q\+1\)τ\+O\(τ2\)\(Q\+1\)\\tau\+O\(\\tau^\{2\}\), so the limit tends to2M\(Q−1\)/\(Q\+1\)=2Mtanh\(ρ/2\)2M\(Q\-1\)/\(Q\+1\)=2M\\tanh\(\\rho/2\)\.
Givenε\>0\\varepsilon\>0, we chooseτ\\tausuch that2M\(b−a\)/\(1−ab\)\>2Mtanh\(ρ/2\)−ε/22M\(b\-a\)/\(1\-ab\)\>2M\\tanh\(\\rho/2\)\-\\varepsilon/2\. Sinceh2k−h~2k=d2k\+\(Xk−X~k\)h\_\{2k\}\-\\tilde\{h\}\_\{2k\}=d\_\{2k\}\+\(X\_\{k\}\-\\tilde\{X\}\_\{k\}\)tends toη\+2M\(b−a\)/\(1−ab\)\\eta\+2M\(b\-a\)/\(1\-ab\)ask→∞k\\to\\infty, somekkgivesh2k−h~2k\>η\+2M\(b−a\)/\(1−ab\)−ε/2h\_\{2k\}\-\\tilde\{h\}\_\{2k\}\>\\eta\+2M\(b\-a\)/\(1\-ab\)\-\\varepsilon/2\. Att=2kt=2kwe then have\|ht−h~t\|\>η\+2Mtanh\(ρ/2\)−ε\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|\>\\eta\+2M\\tanh\(\\rho/2\)\-\\varepsilon\. ∎
### A\.2The log\-timescale slopes
###### Lemma 6\(Log\-timescale slopes\)\.
\(i\) ForΔ=softplus\(z\)\\Delta=\\mathrm\{softplus\}\(z\), the slopeddzlogΔ\\frac\{d\}\{dz\}\\log\\Delta, which equalssigmoid\(z\)/softplus\(z\)\\operatorname\{sigmoid\}\(z\)/\\mathrm\{softplus\}\(z\), lies in\(0,1\)\(0,1\), is strictly decreasing inzzand tends to11asz→−∞z\\to\-\\infty\. Hence\|logΔ\(z\)−logΔ\(z~\)\|≤\|z−z~\|\|\\log\\Delta\(z\)\-\\log\\Delta\(\\tilde\{z\}\)\|\\leq\|z\-\\tilde\{z\}\|, and forz,z~≥zloz,\\tilde\{z\}\\geq z\_\{\\mathrm\{lo\}\}the constant11may be replaced bysigmoid\(zlo\)/softplus\(zlo\)\\operatorname\{sigmoid\}\(z\_\{\\mathrm\{lo\}\}\)/\\mathrm\{softplus\}\(z\_\{\\mathrm\{lo\}\}\)\. \(ii\) ForΔ=Δmin\(Δmax/Δmin\)sigmoid\(z\)\\Delta=\\Delta\_\{\\min\}\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)^\{\\operatorname\{sigmoid\}\(z\)\}, the slopeddzlogΔ=sigmoid′\(z\)log\(Δmax/Δmin\)\\frac\{d\}\{dz\}\\log\\Delta=\\operatorname\{sigmoid\}^\{\\prime\}\(z\)\\log\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)lies in\(0,14log\(Δmax/Δmin\)\]\(0,\\tfrac\{1\}\{4\}\\log\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)\], with the maximum atz=0z=0\.
###### Proof\.
For \(i\) we puty=ezy=e^\{z\}, for whichsigmoid\(z\)=y/\(1\+y\)\\operatorname\{sigmoid\}\(z\)=y/\(1\+y\)andsoftplus\(z\)=log\(1\+y\)\\mathrm\{softplus\}\(z\)=\\log\(1\+y\)\. Sincelog\(1\+y\)−y/\(1\+y\)\\log\(1\+y\)\-y/\(1\+y\)vanishes aty=0y=0and has derivativey/\(1\+y\)2\>0y/\(1\+y\)^\{2\}\>0, the ratio lies in\(0,1\)\(0,1\)\. Its derivative has the sign of\(1−sigmoid\)softplus−sigmoid=\(log\(1\+y\)−y\)/\(1\+y\)<0\(1\-\\operatorname\{sigmoid\}\)\\,\\mathrm\{softplus\}\-\\operatorname\{sigmoid\}=\(\\log\(1\+y\)\-y\)/\(1\+y\)<0, and asz→−∞z\\to\-\\inftyboth functions equalez\(1\+o\(1\)\)e^\{z\}\(1\+o\(1\)\)\.
For \(ii\),logΔ=logΔmin\+sigmoid\(z\)log\(Δmax/Δmin\)\\log\\Delta=\\log\\Delta\_\{\\min\}\+\\operatorname\{sigmoid\}\(z\)\\log\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\)andsigmoid′=sigmoid\(1−sigmoid\)\\operatorname\{sigmoid\}^\{\\prime\}=\\operatorname\{sigmoid\}\(1\-\\operatorname\{sigmoid\}\), which lies in\(0,1/4\]\(0,1/4\]\. ∎
Our float32 implementation clampsΔ\\Deltato\[Δmin,Δmax\]\[\\Delta\_\{\\min\},\\Delta\_\{\\max\}\]on the bounded arm\. In the reals the clamp is inactive, and it never increases\|logΔ−logΔ~\|\|\\log\\Delta\-\\log\\tilde\{\\Delta\}\|\.
### A\.3The exponential\-Euler cell
Withxt=λΔtx\_\{t\}=\\lambda\\Delta\_\{t\},bt=Btut/λb\_\{t\}=B\_\{t\}u\_\{t\}/\\lambdaandΨ\\Psias in Section[3\.4](https://arxiv.org/html/2611.21952#S3.SS4)we havext=\(1−A¯t\)Ψ\(xt\)x\_\{t\}=\(1\-\\bar\{A\}\_\{t\}\)\\Psi\(x\_\{t\}\), and the exponential\-Euler updateht=A¯tht−1\+ΔtBtuth\_\{t\}=\\bar\{A\}\_\{t\}h\_\{t\-1\}\+\\Delta\_\{t\}B\_\{t\}u\_\{t\}is the convex combination
ht=A¯tht−1\+\(1−A¯t\)ctee,ctee=Ψ\(xt\)bt\.h\_\{t\}=\\bar\{A\}\_\{t\}h\_\{t\-1\}\+\(1\-\\bar\{A\}\_\{t\}\)\\,c^\{\\mathrm\{ee\}\}\_\{t\},\\qquad c^\{\\mathrm\{ee\}\}\_\{t\}=\\Psi\(x\_\{t\}\)\\,b\_\{t\}\.
###### Corollary 7\(Exponential\-Euler cell\)\.
Suppose thatΔt,Δ~t∈\(0,Δhi\]\\Delta\_\{t\},\\tilde\{\\Delta\}\_\{t\}\\in\(0,\\Delta\_\{\\mathrm\{hi\}\}\],\|logΔt−logΔ~t\|≤ρ\|\\log\\Delta\_\{t\}\-\\log\\tilde\{\\Delta\}\_\{t\}\|\\leq\\rho,\|b~t\|≤M\|\\tilde\{b\}\_\{t\}\|\\leq Mand\|bt−b~t\|≤ηb\|b\_\{t\}\-\\tilde\{b\}\_\{t\}\|\\leq\\eta^\{b\}for everytt, and thath−1=h~−1=0h\_\{\-1\}=\\tilde\{h\}\_\{\-1\}=0\. WithG=Ψ\(λΔhi\)G=\\Psi\(\\lambda\\Delta\_\{\\mathrm\{hi\}\}\), the exponential\-Euler cell satisfies\|ht−h~t\|≤Gηb\+3GM\(eρ−1\)\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|\\leq G\\eta^\{b\}\+3GM\(e^\{\\rho\}\-1\)for everyt≥0t\\geq 0\.
###### Proof\.
SincelogΨ\(x\)=logx−log\(1−e−x\)\\log\\Psi\(x\)=\\log x\-\\log\(1\-e^\{\-x\}\), we havedlogΨ\(x\)/dlogx=1−x/\(ex−1\)d\\log\\Psi\(x\)/d\\log x=1\-x/\(e^\{x\}\-1\), which lies in\(0,1\)\(0,1\)forx\>0x\>0\. HenceΨ\\Psiis increasing and\|logΨ\(x\)−logΨ\(x~\)\|≤\|logx−logx~\|\|\\log\\Psi\(x\)\-\\log\\Psi\(\\tilde\{x\}\)\|\\leq\|\\log x\-\\log\\tilde\{x\}\|\. Withxt,x~t≤λΔhix\_\{t\},\\tilde\{x\}\_\{t\}\\leq\\lambda\\Delta\_\{\\mathrm\{hi\}\}this gives\|c~tee\|=Ψ\(x~t\)\|b~t\|≤GM\|\\tilde\{c\}^\{\\mathrm\{ee\}\}\_\{t\}\|=\\Psi\(\\tilde\{x\}\_\{t\}\)\|\\tilde\{b\}\_\{t\}\|\\leq GMandΨ\(xt\)≤G\\Psi\(x\_\{t\}\)\\leq G, and Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)applies withGMGMin place ofMM\.
The same bound gives\|Ψ\(xt\)−Ψ\(x~t\)\|≤\(eρ−1\)Ψ\(xt\)\|\\Psi\(x\_\{t\}\)\-\\Psi\(\\tilde\{x\}\_\{t\}\)\|\\leq\(e^\{\\rho\}\-1\)\\Psi\(x\_\{t\}\), hence\|ctee−c~tee\|≤Ψ\(xt\)\|bt−b~t\|\+\|Ψ\(xt\)−Ψ\(x~t\)\|\|b~t\|≤Gηb\+\(eρ−1\)GM\|c^\{\\mathrm\{ee\}\}\_\{t\}\-\\tilde\{c\}^\{\\mathrm\{ee\}\}\_\{t\}\|\\leq\\Psi\(x\_\{t\}\)\\,\|b\_\{t\}\-\\tilde\{b\}\_\{t\}\|\+\|\\Psi\(x\_\{t\}\)\-\\Psi\(\\tilde\{x\}\_\{t\}\)\|\\,\|\\tilde\{b\}\_\{t\}\|\\leq G\\eta^\{b\}\+\(e^\{\\rho\}\-1\)GM\. Adding the time\-warp term2GM\(eρ−1\)2GM\(e^\{\\rho\}\-1\)gives the claim\. ∎
### A\.4The block and the data\-free block certificate
We certify a block that computes
ξ^\\displaystyle\\hat\{\\xi\}=LN\(ξ\),\[u0,g\]=in\_proj\(ξ^\),u=SiLU\(DepthwiseCausalConv1d\(u0\)\),\\displaystyle=\\mathrm\{LN\}\(\\xi\),\\quad\[u\_\{0\},g\]=\\mathrm\{in\\\_proj\}\(\\hat\{\\xi\}\),\\quad u=\\mathrm\{SiLU\}\\\!\\left\(\\mathrm\{DepthwiseCausalConv1d\}\(u\_\{0\}\)\\right\),\[p,B,C\]\\displaystyle\[p,B,C\]=x\_proj\(u\),Δ=Δmin\(Δmax/Δmin\)sigmoid\(dt\_proj\(p\)\),\\displaystyle=\\mathrm\{x\\\_proj\}\(u\),\\qquad\\Delta=\\Delta\_\{\\min\}\\left\(\\Delta\_\{\\max\}/\\Delta\_\{\\min\}\\right\)^\{\\operatorname\{sigmoid\}\(\\mathrm\{dt\\\_proj\}\(p\)\)\},A\\displaystyle A=−exp\(Alog\),A¯t=exp\(ΔtA\),B¯t=A−1\(exp\(ΔtA\)−I\)Bt,\\displaystyle=\-\\exp\(A\_\{\\log\}\),\\qquad\\bar\{A\}\_\{t\}=\\exp\(\\Delta\_\{t\}A\),\\qquad\\bar\{B\}\_\{t\}=A^\{\-1\}\\\!\\left\(\\exp\(\\Delta\_\{t\}A\)\-I\\right\)B\_\{t\},ht\\displaystyle h\_\{t\}=A¯tht−1\+B¯tut,h−1=0,yt=∑nCt,nht,:,n\+Dut,\\displaystyle=\\bar\{A\}\_\{t\}\\,h\_\{t\-1\}\+\\bar\{B\}\_\{t\}\\,u\_\{t\},\\quad h\_\{\-1\}=0,\\qquad y\_\{t\}=\\textstyle\\sum\_\{n\}C\_\{t,n\}\\,h\_\{t,:,n\}\+D\\,u\_\{t\},out\\displaystyle\\mathrm\{out\}=out\_proj\(y⊙SiLU\(g\)\)\+ξ,\\displaystyle=\\mathrm\{out\\\_proj\}\\\!\\left\(y\\odot\\mathrm\{SiLU\}\(g\)\\right\)\+\\xi,with all products elementwise and broadcast over the state axis; on the softplus armΔ=softplus\(dt\_proj\(p\)\)\\Delta=\\mathrm\{softplus\}\(\\mathrm\{dt\\\_proj\}\(p\)\)\. BothA=−exp\(Alog\)<0A=\-\\exp\(A\_\{\\log\}\)<0andΔ\>0\\Delta\>0hold by construction, for every checkpoint of the architecture\.
WithLN\\mathrm\{LN\}the layer normalisation of Lemma[9](https://arxiv.org/html/2611.21952#Thmproposition9), of widthdd, gainγ\\gammaand offsetβ\\beta, we write𝒵=\{β\+γ⊙r:𝟏⊤r=0,∥r∥2≤d\}\\mathcal\{Z\}=\\\{\\beta\+\\gamma\\odot r:\\mathbf\{1\}^\{\\top\}r=0,\\ \\\|r\\\|\_\{2\}\\leq\\sqrt\{d\}\\\}for the set on which the boxes of Section[2](https://arxiv.org/html/2611.21952#S2)are certified, which containsLN\(ξ\)\\mathrm\{LN\}\(\\xi\)for everyξ\\xi, and\|W\|\|W\|for the entrywise absolute value of a matrixWW\. We writeu^i\\hat\{u\}\_\{i\},B^n\\hat\{B\}\_\{n\},C^n\\hat\{C\}\_\{n\}ands^i\\hat\{s\}\_\{i\}for the suprema of\|ui\|\|u\_\{i\}\|,\|Bn\|\|B\_\{n\}\|,\|Cn\|\|C\_\{n\}\|and\|SiLU\(gi\)\|\|\\mathrm\{SiLU\}\(g\_\{i\}\)\|over the certified boxes,Mi,nM\_\{i,n\}for the invariant radius of cell\(i,n\)\(i,n\), andy^i=∑nC^nMi,n\+\|Di\|u^i\\hat\{y\}\_\{i\}=\\sum\_\{n\}\\hat\{C\}\_\{n\}M\_\{i,n\}\+\|D\_\{i\}\|\\hat\{u\}\_\{i\}\. We writesius^\{u\}\_\{i\}andsigs^\{g\}\_\{i\}for the suprema of\|SiLU′\|\|\\mathrm\{SiLU\}^\{\\prime\}\|over the boxes of the convolution output and the gate pre\-activation of channelii, andℓi\\ell\_\{i\}for the supremum ofdlogΔi/dzid\\log\\Delta\_\{i\}/dz\_\{i\}over the box ofziz\_\{i\}\(Lemma[6](https://arxiv.org/html/2611.21952#Thmproposition6)\)\. EachΛ\\Lambdabelow is a sup\-norm Lipschitz constant of the named stage over its certified box \(Λiu\\Lambda^\{u\}\_\{i\}, for example, bounds the change ofuiu\_\{i\}per unit change of the normalised input\)\.
###### Corollary 8\(Block\)\.
Letξ\\xiandξ~\\tilde\{\\xi\}be two input sequences of the block, both runs starting fromh−1=0h\_\{\-1\}=0, and let‖LN\(ξt\)−LN\(ξ~t\)‖∞≤δ\\\|\\mathrm\{LN\}\(\\xi\_\{t\}\)\-\\mathrm\{LN\}\(\\tilde\{\\xi\}\_\{t\}\)\\\|\_\{\\infty\}\\leq\\deltafor everytt\. Letwi,⋅w\_\{i,\\cdot\}be the convolution kernel of channelii, letWBW^\{B\},WCW^\{C\}andWpW^\{p\}be the blocks ofx\_proj\\mathrm\{x\\\_proj\}that produceBB,CCandpp, letWinW^\{\\mathrm\{in\}\},WdtW^\{\\mathrm\{dt\}\}andWoutW^\{\\mathrm\{out\}\}be the weights ofin\_proj\\mathrm\{in\\\_proj\},dt\_proj\\mathrm\{dt\\\_proj\}andout\_proj\\mathrm\{out\\\_proj\}, and define
Λiu\\displaystyle\\Lambda^\{u\}\_\{i\}=siu‖wi,⋅‖1∑j\|Wijin\|,\\displaystyle=s^\{u\}\_\{i\}\\,\\\|w\_\{i,\\cdot\}\\\|\_\{1\}\\textstyle\\sum\_\{j\}\|W^\{\\mathrm\{in\}\}\_\{ij\}\|,Λig\\displaystyle\\Lambda^\{g\}\_\{i\}=∑j\|Wdinner\+i,jin\|,\\displaystyle=\\textstyle\\sum\_\{j\}\|W^\{\\mathrm\{in\}\}\_\{d\_\{\\mathrm\{inner\}\}\+i,\\,j\}\|,ΛB\\displaystyle\\Lambda^\{B\}=\|WB\|Λu,\\displaystyle=\|W^\{B\}\|\\,\\Lambda^\{u\},ΛC\\displaystyle\\Lambda^\{C\}=\|WC\|Λu,\\displaystyle=\|W^\{C\}\|\\,\\Lambda^\{u\},Λz\\displaystyle\\Lambda^\{z\}=\|WdtWp\|Λu,\\displaystyle=\|W^\{\\mathrm\{dt\}\}W^\{p\}\|\\,\\Lambda^\{u\},ρi\\displaystyle\\rho\_\{i\}=ℓiΛizδ,\\displaystyle=\\ell\_\{i\}\\Lambda^\{z\}\_\{i\}\\,\\delta,ηi,n\\displaystyle\\eta\_\{i,n\}=\(B^nΛiu\+u^iΛnB\)δ/λi,n,\\displaystyle=\\bigl\(\\hat\{B\}\_\{n\}\\Lambda^\{u\}\_\{i\}\+\\hat\{u\}\_\{i\}\\Lambda^\{B\}\_\{n\}\\bigr\)\\,\\delta/\\lambda\_\{i,n\},Ei,n\\displaystyle E\_\{i,n\}=ηi,n\+2Mi,n\(eρi−1\),\\displaystyle=\\eta\_\{i,n\}\+2M\_\{i,n\}\\bigl\(e^\{\\rho\_\{i\}\}\-1\\bigr\),Yi\\displaystyle Y\_\{i\}=∑n\(C^nEi,n\+Mi,nΛnCδ\)\+\|Di\|Λiuδ,\\displaystyle=\\textstyle\\sum\_\{n\}\\bigl\(\\hat\{C\}\_\{n\}E\_\{i,n\}\+M\_\{i,n\}\\Lambda^\{C\}\_\{n\}\\delta\\bigr\)\+\|D\_\{i\}\|\\,\\Lambda^\{u\}\_\{i\}\\,\\delta,Oi\\displaystyle O\_\{i\}=y^isigΛigδ\+s^iYi,\\displaystyle=\\hat\{y\}\_\{i\}\\,s^\{g\}\_\{i\}\\Lambda^\{g\}\_\{i\}\\,\\delta\+\\hat\{s\}\_\{i\}\\,Y\_\{i\},Γk\\displaystyle\\Gamma\_\{k\}=∑i\|Wkiout\|Oi\.\\displaystyle=\\textstyle\\sum\_\{i\}\|W^\{\\mathrm\{out\}\}\_\{ki\}\|\\,O\_\{i\}\.Then for everyt≥0t\\geq 0, channelii, statennand output coordinatekk,\|logΔt,i−logΔ~t,i\|≤ρi\|\\log\\Delta\_\{t,i\}\-\\log\\tilde\{\\Delta\}\_\{t,i\}\|\\leq\\rho\_\{i\},\|ct,i,n−c~t,i,n\|≤ηi,n\|c\_\{t,i,n\}\-\\tilde\{c\}\_\{t,i,n\}\|\\leq\\eta\_\{i,n\},\|ht,i,n−h~t,i,n\|≤Ei,n\|h\_\{t,i,n\}\-\\tilde\{h\}\_\{t,i,n\}\|\\leq E\_\{i,n\},\|yt,i−y~t,i\|≤Yi\|y\_\{t,i\}\-\\tilde\{y\}\_\{t,i\}\|\\leq Y\_\{i\}and\|outt,k−out~t,k\|≤Γk\+\|ξt,k−ξ~t,k\|\|\\mathrm\{out\}\_\{t,k\}\-\\widetilde\{\\mathrm\{out\}\}\_\{t,k\}\|\\leq\\Gamma\_\{k\}\+\|\\xi\_\{t,k\}\-\\tilde\{\\xi\}\_\{t,k\}\|\.
###### Proof\.
We follow the perturbation through the stages in order\. Since both normalised sequences lie in𝒵\\mathcal\{Z\}, every intermediate quantity of both runs, and every segment between corresponding values, then lies in its certified box\. Through the input projection,ui0u^\{0\}\_\{i\}moves by at most∑j\|Wijin\|δ\\sum\_\{j\}\|W^\{\\mathrm\{in\}\}\_\{ij\}\|\\,\\deltaandgig\_\{i\}by at mostΛigδ\\Lambda^\{g\}\_\{i\}\\delta\. With zero left padding in both runs, the convolution multiplies that bound by‖wi,⋅‖1\\\|w\_\{i,\\cdot\}\\\|\_\{1\}, and the mean value theorem forSiLU\\mathrm\{SiLU\}givesΛiuδ\\Lambda^\{u\}\_\{i\}\\delta\.
Linearity ofx\_proj\\mathrm\{x\\\_proj\}anddt\_proj\\mathrm\{dt\\\_proj\}givesΛnBδ\\Lambda^\{B\}\_\{n\}\\delta,ΛnCδ\\Lambda^\{C\}\_\{n\}\\deltaandΛizδ\\Lambda^\{z\}\_\{i\}\\delta, and Lemma[6](https://arxiv.org/html/2611.21952#Thmproposition6)givesρi\\rho\_\{i\}\. WritingBnui−B~nu~i=Bn\(ui−u~i\)\+u~i\(Bn−B~n\)B\_\{n\}u\_\{i\}\-\\tilde\{B\}\_\{n\}\\tilde\{u\}\_\{i\}=B\_\{n\}\(u\_\{i\}\-\\tilde\{u\}\_\{i\}\)\+\\tilde\{u\}\_\{i\}\(B\_\{n\}\-\\tilde\{B\}\_\{n\}\)givesηi,n\\eta\_\{i,n\}, and Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)givesEi,nE\_\{i,n\}\. The same product rule applied toCnhi,nC\_\{n\}h\_\{i,n\}with\|h~i,n\|≤Mi,n\|\\tilde\{h\}\_\{i,n\}\|\\leq M\_\{i,n\}givesYiY\_\{i\}\. The gate, the output projection and the residual then giveOiO\_\{i\},Γk\\Gamma\_\{k\}and the term\|ξt,k−ξ~t,k\|\|\\xi\_\{t,k\}\-\\tilde\{\\xi\}\_\{t,k\}\|\. ∎
As a function ofδ\\delta,Γk/δ\\Gamma\_\{k\}/\\deltaincreases througheρi−1e^\{\\rho\_\{i\}\}\-1and tends, asδ→0\\delta\\to 0, to the value withρi\\rho\_\{i\}in place ofeρi−1e^\{\\rho\_\{i\}\}\-1\. Perturbations that leave𝒵\\mathcal\{Z\}need the boxes widened to𝒵\+\[−δ,δ\]d\\mathcal\{Z\}\+\[\-\\delta,\\delta\]^\{d\}\(Section[5\.1](https://arxiv.org/html/2611.21952#S5.SS1)gives the effect on our model\)\.
## Appendix BRelation to Cao et al\. in detail
#### A derivation from their lemmas\.
In the setting of Cao et al\.\[[6](https://arxiv.org/html/2611.21952#bib.bib7)\],AAis Hurwitz with‖eσA‖≤MAe−ασ\\\|e^\{\\sigma A\}\\\|\\leq M\_\{A\}e^\{\-\\alpha\\sigma\}, one timescale per step is shared by the whole state, and by their Lemma 3\.1 the scan samples a continuous flow at the grid of accumulated times\. We follow their argument for one cell of \([2](https://arxiv.org/html/2611.21952#S2.E2)\), whose flow ish˙=−λh\+w\\dot\{h\}=\-\\lambda h\+wwith the forcingws=λcsw\_\{s\}=\\lambda c\_\{s\}on stepss\. We take both runs from the same state with\|h~−1\|≤M\|\\tilde\{h\}\_\{\-1\}\|\\leq M\. Withτ−1=τ~−1=0\\tau\_\{\-1\}=\\tilde\{\\tau\}\_\{\-1\}=0,τt=∑s≤tΔs\\tau\_\{t\}=\\sum\_\{s\\leq t\}\\Delta\_\{s\}andτ~t=∑s≤tΔ~s\\tilde\{\\tau\}\_\{t\}=\\sum\_\{s\\leq t\}\\tilde\{\\Delta\}\_\{s\}we haveht=h\(τt\)h\_\{t\}=h\(\\tau\_\{t\}\)andh~t=h~\(τ~t\)\\tilde\{h\}\_\{t\}=\\tilde\{h\}\(\\tilde\{\\tau\}\_\{t\}\), wherehhandh~\\tilde\{h\}solveh˙=−λh\+w\\dot\{h\}=\-\\lambda h\+wandh~˙=−λh~\+w~\\dot\{\\tilde\{h\}\}=\-\\lambda\\tilde\{h\}\+\\tilde\{w\}from the common start, with forcingwsw\_\{s\}on\[τs−1,τs\)\[\\tau\_\{s\-1\},\\tau\_\{s\}\)andw~s=λc~s\\tilde\{w\}\_\{s\}=\\lambda\\tilde\{c\}\_\{s\}on\[τ~s−1,τ~s\)\[\\tilde\{\\tau\}\_\{s\-1\},\\tilde\{\\tau\}\_\{s\}\)\.
We map each interval\[τ~s−1,τ~s\)\[\\tilde\{\\tau\}\_\{s\-1\},\\tilde\{\\tau\}\_\{s\}\)linearly onto\[τs−1,τs\)\[\\tau\_\{s\-1\},\\tau\_\{s\}\)and letg^\(σ\)\\hat\{g\}\(\\sigma\)be the value ofh~\\tilde\{h\}at the corresponding time, which givesg^\(τt\)=h~t\\hat\{g\}\(\\tau\_\{t\}\)=\\tilde\{h\}\_\{t\}and, on\[τs−1,τs\)\[\\tau\_\{s\-1\},\\tau\_\{s\}\),
g^˙=rs\(w~s−λg^\)=−λg^\+w~s\+\(rs−1\)\(w~s−λg^\),rs=Δ~s/Δs\.\\dot\{\\hat\{g\}\}=r\_\{s\}\\bigl\(\\tilde\{w\}\_\{s\}\-\\lambda\\hat\{g\}\\bigr\)=\-\\lambda\\hat\{g\}\+\\tilde\{w\}\_\{s\}\+\(r\_\{s\}\-1\)\\bigl\(\\tilde\{w\}\_\{s\}\-\\lambda\\hat\{g\}\\bigr\),\\qquad r\_\{s\}=\\tilde\{\\Delta\}\_\{s\}/\\Delta\_\{s\}\.With the two runs now on one grid, their forcings differ byϖs=ws−w~s−\(rs−1\)\(w~s−λg^\)\\varpi\_\{s\}=w\_\{s\}\-\\tilde\{w\}\_\{s\}\-\(r\_\{s\}\-1\)\(\\tilde\{w\}\_\{s\}\-\\lambda\\hat\{g\}\)\. Since\|ws−w~s\|≤λη\|w\_\{s\}\-\\tilde\{w\}\_\{s\}\|\\leq\\lambda\\eta,\|rs−1\|≤eρ−1\|r\_\{s\}\-1\|\\leq e^\{\\rho\}\-1,\|w~s\|≤λM\|\\tilde\{w\}\_\{s\}\|\\leq\\lambda Mand\|g^\|≤M\|\\hat\{g\}\|\\leq M, we have\|ϖs\|≤λη\+2λM\(eρ−1\)\|\\varpi\_\{s\}\|\\leq\\lambda\\eta\+2\\lambda M\(e^\{\\rho\}\-1\)\. The bound\|g^\|≤M\|\\hat\{g\}\|\\leq Mholds because between grid pointsh~\\tilde\{h\}is a convex combination ofh~s−1\\tilde\{h\}\_\{s\-1\}andc~s\\tilde\{c\}\_\{s\}, with\|h~s−1\|≤M\|\\tilde\{h\}\_\{s\-1\}\|\\leq Mby Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1)\. The mismatch depends ong^\\hat\{g\}itself, but that is admissible becauseg^\\hat\{g\}takes the values ofh~\\tilde\{h\}\.
By variation of constants \(the argument of their Lemma B\.2, which applies to any bounded measurable forcing\), two solutions ofh˙=−λh\+w\\dot\{h\}=\-\\lambda h\+wfrom a common start differ at timeσ\\sigmaby at most\(1−e−λσ\)/λ\(1\-e^\{\-\\lambda\\sigma\}\)/\\lambdatimes the supremum of the difference of their forcings\. Sincee−λτt=Pte^\{\-\\lambda\\tau\_\{t\}\}=P\_\{t\}, this gives\|ht−h~t\|≤\(1−Pt\)\(η\+2M\(eρ−1\)\)\|h\_\{t\}\-\\tilde\{h\}\_\{t\}\|\\leq\(1\-P\_\{t\}\)\(\\eta\+2M\(e^\{\\rho\}\-1\)\)for everytt, which is Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)for a common initial state\.
In the proof of their Theorem 3\.3, Cao et al\. state that a direct bound on the forcing mismatch is unavailable because the two forcings are piecewise constant on different grids, but our change of time variable aligns the grids\. Its size, the largest\|logrs\|\|\\log r\_\{s\}\|, has the form of the norm that Billingsley\[[1](https://arxiv.org/html/2611.21952#bib.bib27), Section 12\]assigns to a time change of\[0,1\]\[0,1\]in the Skorokhod topology, here for a map between intervals of different lengths\.
#### Comparison regime by regime\.
Their time\-warp argument assumes one timescale shared by the whole state, which holds for each channel of the block separately\. Treating a diagonalAAone cell at a time is the most favourable form of their bound, since their statement for the whole state usesα=minλ\\alpha=\\min\\lambdaand‖A‖=maxλ\\\|A\\\|=\\max\\lambda\. On the bounded arm, for example, the decay rates lie between0\.9120\.912and17\.1417\.14, while a statement for the whole state replaces all of them by the two extremes\. Both the additive baseline \([5](https://arxiv.org/html/2611.21952#S3.E5)\) and Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)pass through the readout in the same way, which lets us compare them at the level of the state\.
Without a floor, the additive time\-warp term grows linearly in the number of steps and ours does not, although for short sequences ours can be the larger\. Letn∗n^\{\\ast\}be the smallestn≥1n\\geq 1at which the additive time\-warp term without a floor afternnsteps,2MληΔn2M\\lambda\\eta\_\{\\Delta\}n, is at least our finite\-horizon term at its worst over admissible timescales,2M\(eρ−1\)\(1−e−λΔhin\)2M\(e^\{\\rho\}\-1\)\(1\-e^\{\-\\lambda\\Delta\_\{\\mathrm\{hi\}\}n\}\), to first order in the size of the perturbation, whereΔhi\\Delta\_\{\\mathrm\{hi\}\}is the certified ceiling\. For fewer thann∗n^\{\\ast\}steps the additive term is the smaller\. Because the finite\-horizon term is at most2M\(eρ−1\)2M\(e^\{\\rho\}\-1\),n∗n^\{\\ast\}is never later than the step at which the additive term passes the flat bound of Theorem[3](https://arxiv.org/html/2611.21952#Thmproposition3)in the same cell\. Over the cells of the bounded armn∗n^\{\\ast\}ranges from33to4242with median55, while on the softplus arm it is at most22\.
With a floor and only the additive informationηΔ\\eta\_\{\\Delta\}, the admissible valueρ=log\(1\+ηΔ/Δlo\)\\rho=\\log\(1\+\\eta\_\{\\Delta\}/\\Delta\_\{\\mathrm\{lo\}\}\)turns our time\-warp term into2λMηΔ/x2\\lambda M\\eta\_\{\\Delta\}/xwithx=λΔlox=\\lambda\\Delta\_\{\\mathrm\{lo\}\}\. This lies between the additive baseline2λMηΔ/\(ex−1\)2\\lambda M\\eta\_\{\\Delta\}/\(e^\{x\}\-1\)and the form2λMηΔ/\(1−e−x\)2\\lambda M\\eta\_\{\\Delta\}/\(1\-e^\{\-x\}\)of their Remark 3\.4\. Under their hypotheses our term is thus no larger than theirs, and the ratios of the three terms tend to11asx→0x\\to 0\. At the certified floors of our trained model, wherexxis below0\.0180\.018, they differ by less than22per cent\.
We obtain the ratio of Remark[5](https://arxiv.org/html/2611.21952#Thmproposition5)from the two terms directly\. Ifzzchanges by at mostζ\\zetaon the certified boxZZof its channel, thenηΔ=ζsupZ\|Δ′\|\\eta\_\{\\Delta\}=\\zeta\\sup\_\{Z\}\|\\Delta^\{\\prime\}\|andρ=ζsupZ\|\(logΔ\)′\|\\rho=\\zeta\\sup\_\{Z\}\|\(\\log\\Delta\)^\{\\prime\}\|are admissible\. The limit2MληΔ/\(ex−1\)2M\\lambda\\eta\_\{\\Delta\}/\(e^\{x\}\-1\)of the additive time\-warp term, divided by our2M\(eρ−1\)=2Mρ\+O\(ζ2\)2M\(e^\{\\rho\}\-1\)=2M\\rho\+O\(\\zeta^\{2\}\), gives the ratio of the remark\. Its numeratorsupZ\|Δ′\|\\sup\_\{Z\}\|\\Delta^\{\\prime\}\|is the counterpart, restricted to the box, of the factor that multiplies‖WΔ‖\\\|W\_\{\\Delta\}\\\|in the Lipschitz constant ofΔ\\Deltathat Cao et al\. assume \(their Assumption 3\.2\(A4\), bounded in their Proposition 4\.6 and Remark 4\.7 with the supremum over allzz\)\. WhenZZexcludes00the argument of the remark does not apply\. SinceΔ\\Deltaincreases inzz, onZZwe have\|Δ′\|=Δ\|\(logΔ\)′\|≤Δ\(supZ\)\|\(logΔ\)′\|\|\\Delta^\{\\prime\}\|=\\Delta\\,\|\(\\log\\Delta\)^\{\\prime\}\|\\leq\\Delta\(\\sup Z\)\\,\|\(\\log\\Delta\)^\{\\prime\}\|, so with the floorΔlo=Δ\(infZ\)\\Delta\_\{\\mathrm\{lo\}\}=\\Delta\(\\inf Z\)that the box itself certifies, the first factor of the ratio is at mostΔ\(supZ\)/Δ\(infZ\)\\Delta\(\\sup Z\)/\\Delta\(\\inf Z\), a bound that tends to11as the box narrows\. For the bounded map withR=100R=100andZ=\[3,4\]Z=\[3,4\]the first factor itself equals11, becausesupZ\|Δ′\|\\sup\_\{Z\}\|\\Delta^\{\\prime\}\|andsupZ\|\(logΔ\)′\|\\sup\_\{Z\}\|\(\\log\\Delta\)^\{\\prime\}\|are both attained atz=3z=3\(Δ′\\Delta^\{\\prime\}peaks atz≈1\.57z\\approx 1\.57\)\. The whole ratio is thenx/\(ex−1\)<1x/\(e^\{x\}\-1\)<1, and the floored baseline is the tighter bound in such a cell\.
At the empirical floor of Section[5\.3](https://arxiv.org/html/2611.21952#S5.SS3)\(the smallest timescale in a channel that an attack on the block’s input reaches\) the baseline is8\.58\.5to1212times our bound at the output of a bounded block\. Per cell, however, the ratio there ranges from0\.160\.16to2525, and in about a tenth of the cells an exact per\-channel floor could make the additive term smaller than ours\.
For the softplus arm the leading factor is about1/Δlo1/\\Delta\_\{\\mathrm\{lo\}\}when the floor is small\. With the certified floors of the trained softplus arm the per\-cell ratio, which compares the limits asL→∞L\\to\\infty, lies between1\.3×1041\.3\\times 10^\{4\}and7\.9×10207\.9\\times 10^\{20\}, with medians of9\.1×10109\.1\\times 10^\{10\}and4\.0×10104\.0\\times 10^\{10\}on the two blocks\.
## Appendix CInterval arithmetic and the normalisation bounds
### C\.1The separated bound
A verifier handed the update without \([1](https://arxiv.org/html/2611.21952#S2.E1)\) boundsA¯\\bar\{A\}andB¯\\bar\{B\}separately and obtains the geometric boundsup\|B¯u\|/\(1−supA¯\)\\sup\|\\bar\{B\}u\|/\(1\-\\sup\\bar\{A\}\)\. In the true update the input term and the contraction cancel, because the same factor1−A¯t1\-\\bar\{A\}\_\{t\}multiplies the one and defines the other\. A separated bound instead takes the input term at the ceilingΔhi\\Delta\_\{\\mathrm\{hi\}\}of the timescale box and the contraction at its floorΔlo\\Delta\_\{\\mathrm\{lo\}\}, which gives the per\-cell ratio to the invariant
gap\(λ\)=1−e−λΔhi1−e−λΔlo\.\\mathrm\{gap\}\(\\lambda\)=\\frac\{1\-e^\{\-\\lambda\\Delta\_\{\\mathrm\{hi\}\}\}\}\{1\-e^\{\-\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\}\.\(6\)This ratio is at least11, with equality only for a one\-point box\. AsΔlo→0\\Delta\_\{\\mathrm\{lo\}\}\\to 0it grows like\(1−e−λΔhi\)/\(λΔlo\)\(1\-e^\{\-\\lambda\\Delta\_\{\\mathrm\{hi\}\}\}\)/\(\\lambda\\Delta\_\{\\mathrm\{lo\}\}\)while the invariant does not move, and since\(1−e−y\)/y\(1\-e^\{\-y\}\)/yis decreasing it never exceedsΔhi/Δlo\\Delta\_\{\\mathrm\{hi\}\}/\\Delta\_\{\\mathrm\{lo\}\}\. It decreases inλ\\lambda, becausey↦y/\(ey−1\)y\\mapsto y/\(e^\{y\}\-1\)is decreasing and the log\-derivative of \([6](https://arxiv.org/html/2611.21952#A3.E6)\) inλ\\lambdaisΔhi/\(eλΔhi−1\)−Δlo/\(eλΔlo−1\)<0\\Delta\_\{\\mathrm\{hi\}\}/\(e^\{\\lambda\\Delta\_\{\\mathrm\{hi\}\}\}\-1\)\-\\Delta\_\{\\mathrm\{lo\}\}/\(e^\{\\lambda\\Delta\_\{\\mathrm\{lo\}\}\}\-1\)<0\.
Interval arithmetic meets the same loss when it checks the induction step of Proposition[1](https://arxiv.org/html/2611.21952#Thmproposition1)\. Because the variableaaoccurs twice inah\+\(1−a\)cah\+\(1\-a\)c, an interval evaluator given a candidate boxMhM\_\{h\}on the state and the boundMcM\_\{c\}onctc\_\{t\}returnssupA¯Mh\+\(1−infA¯\)Mc\\sup\\bar\{A\}\\,M\_\{h\}\+\(1\-\\inf\\bar\{A\}\)\\,M\_\{c\}\. This check passes exactly whenMh≥\(1−infA¯\)Mc/\(1−supA¯\)M\_\{h\}\\geq\(1\-\\inf\\bar\{A\}\)\\,M\_\{c\}/\(1\-\\sup\\bar\{A\}\), that is, for boxes at least the geometric fixed point\. For the invariant’s own box,Mh=Mc\>0M\_\{h\}=M\_\{c\}\>0, it fails whenever the timescale box is not a single point\.
Withaakept as one variable, the supremum overa∈\[0,1\]a\\in\[0,1\]ofaMh\+\(1−a\)McaM\_\{h\}\+\(1\-a\)M\_\{c\}ismax\(Mh,Mc\)\\max\(M\_\{h\},M\_\{c\}\)\. The box is then preserved exactly whenMc≤MhM\_\{c\}\\leq M\_\{h\}\(our implementation checks the residualmax\(Mh,Mc\)−Mh\\max\(M\_\{h\},M\_\{c\}\)\-M\_\{h\}\)\.
On the bounded arm of our order book model, generic interval propagation iterated to convergence agrees with the geometric fixed point, which is95\.695\.6and95\.295\.2times the invariant radius on the two blocks\.
### C\.2The normalisation bounds
###### Lemma 9\(Coordinate bound\)\.
LetLN\(x\)=γ⊙\(x−μ\)/σ2\+ε\+β\\mathrm\{LN\}\(x\)=\\gamma\\odot\(x\-\\mu\)/\\sqrt\{\\sigma^\{2\}\+\\varepsilon\}\+\\betaonℝd\\mathbb\{R\}^\{d\}, withd≥2d\\geq 2,ε\>0\\varepsilon\>0andσ2\\sigma^\{2\}the variance with divisordd\. Then\|LN\(x\)i−βi\|≤\|γi\|d−1\|\\mathrm\{LN\}\(x\)\_\{i\}\-\\beta\_\{i\}\|\\leq\|\\gamma\_\{i\}\|\\sqrt\{d\-1\}for everyxxand everyii\.
###### Proof\.
Withz=\(x−μ\)/σ2\+εz=\(x\-\\mu\)/\\sqrt\{\\sigma^\{2\}\+\\varepsilon\}we have∑jzj=0\\sum\_\{j\}z\_\{j\}=0and∑jzj2=dσ2/\(σ2\+ε\)<d\\sum\_\{j\}z\_\{j\}^\{2\}=d\\sigma^\{2\}/\(\\sigma^\{2\}\+\\varepsilon\)<d\. Cauchy–Schwarz on∑j≠izj=−zi\\sum\_\{j\\neq i\}z\_\{j\}=\-z\_\{i\}gives∑j≠izj2≥zi2/\(d−1\)\\sum\_\{j\\neq i\}z\_\{j\}^\{2\}\\geq z\_\{i\}^\{2\}/\(d\-1\), henced\>zi2d/\(d−1\)d\>z\_\{i\}^\{2\}\\,d/\(d\-1\)andzi2<d−1z\_\{i\}^\{2\}<d\-1\. ∎
Withε=0\\varepsilon=0, Lemma[9](https://arxiv.org/html/2611.21952#Thmproposition9)is the Laguerre–Samuelson inequality\[[18](https://arxiv.org/html/2611.21952#bib.bib22),[26](https://arxiv.org/html/2611.21952#bib.bib21)\], which bounds one coordinate at a time, whereas the fused bound of Proposition[10](https://arxiv.org/html/2611.21952#Thmproposition10)combines the zero\-mean and norm constraints with the following linear map and equals the supremum over all inputs\.
###### Proposition 10\(Fused bound\)\.
LetWkW\_\{k\}be rowkkof the linear map applied to the normalised output, letvk=Wk⊙γv\_\{k\}=W\_\{k\}\\odot\\gammawithv¯k\\bar\{v\}\_\{k\}the mean of its entries, and letS=\{z:𝟏⊤z=0,∥z∥2≤d\}S=\\\{\\,z:\\mathbf\{1\}^\{\\top\}z=0,\\ \\\|z\\\|\_\{2\}\\leq\\sqrt\{d\}\\,\\\}\. Thensupz∈S⟨vk,z⟩=‖vk−v¯k𝟏‖2d\\sup\_\{z\\in S\}\\langle v\_\{k\},z\\rangle=\\\|v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\}\\\|\_\{2\}\\sqrt\{d\}, attained, whenvkv\_\{k\}is not constant, atz∗=d\(vk−v¯k𝟏\)/‖vk−v¯k𝟏‖2z^\{\\ast\}=\\sqrt\{d\}\\,\(v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\}\)/\\\|v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\}\\\|\_\{2\}\. Forε\>0\\varepsilon\>0the supremum over the normalised vectors of all inputs is the same value, but whenvkv\_\{k\}is not constant it is not attained\.
###### Proof\.
Since𝟏⊤z=0\\mathbf\{1\}^\{\\top\}z=0, Cauchy–Schwarz over‖z‖2≤d\\\|z\\\|\_\{2\}\\leq\\sqrt\{d\}applied to⟨vk,z⟩=⟨vk−v¯k𝟏,z⟩\\langle v\_\{k\},z\\rangle=\\langle v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\},\\,z\\ranglegives the bound, whichz∗∈Sz^\{\\ast\}\\in Sattains\. Every normalised vector has‖z‖22=dσ2/\(σ2\+ε\)<d\\\|z\\\|\_\{2\}^\{2\}=d\\sigma^\{2\}/\(\\sigma^\{2\}\+\\varepsilon\)<d, and whenvkv\_\{k\}is not constant Cauchy–Schwarz then gives⟨vk,z⟩≤‖vk−v¯k𝟏‖2‖z‖2<‖vk−v¯k𝟏‖2d\\langle v\_\{k\},z\\rangle\\leq\\\|v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\}\\\|\_\{2\}\\,\\\|z\\\|\_\{2\}<\\\|v\_\{k\}\-\\bar\{v\}\_\{k\}\\mathbf\{1\}\\\|\_\{2\}\\sqrt\{d\}for every normalised vectorzz, and the value is not attained\. For the inputx=tz∗x=tz^\{\\ast\}the normalised vector istz∗/t2\+εtz^\{\\ast\}/\\sqrt\{t^\{2\}\+\\varepsilon\}, which tends toz∗z^\{\\ast\}ast→∞t\\to\\inftyand shows that the supremum is the same value\. ∎
Riechers\[[25](https://arxiv.org/html/2611.21952#bib.bib23)\]and Brody et al\.\[[3](https://arxiv.org/html/2611.21952#bib.bib24)\]describe this geometry of layer normalisation \(a projection onto the hyperplane orthogonal to𝟏\\mathbf\{1\}followed by a scaling\)\. Bounding the normalisation and the linear map separately gives‖vk‖1d−1\\\|v\_\{k\}\\\|\_\{1\}\\sqrt\{d\-1\}instead, anℓ1\\ell\_\{1\}quantity where anℓ2\\ell\_\{2\}one suffices\. This difference carries over directly to the radiussup\|Bu\|/λ\\sup\|Bu\|/\\lambda, which is why our certificates use the fused bound\.Similar Articles
PIMSM: Physics-Informed Multi-Scale Mamba for Stable Neural Representations under Distribution Shift
This paper proposes Physics-Informed Multi-Scale Mamba (PIMSM), a state-space architecture that aligns model memory with physical timescales to improve robustness under distribution shift in scientific time series, demonstrating improvements on fMRI and weather forecasting tasks.
Looped State-Space Language Models with Adaptive Exit-State Selection
This paper explores looped (recurrent) state-space language models using Mamba and hybrid Mamba-Transformer backbones, showing they outperform non-looped baselines on reasoning tasks and remain competitive under iso-parameter and iso-FLOPs pretraining, with adaptive exit-state selection improving intermediate-depth performance.
Mamba-Assisted Non-Markovian Closure for Reduced-Order Modeling
Proposes the Mamba-Assisted Closure (MAC) framework, a Mamba-based sequence model for non-Markovian closure in reduced-order modeling of high-dimensional dynamical systems, outperforming GRU-based and Markovian methods on Burgers' equation and Lorenz '96 systems.
Time-Varying Deep State Space Models for Sequences with Switching Dynamics
The paper proposes a class of time-varying deep state-space models where dynamics are learned via a basis function expansion, enabling adaptive modeling of switching systems. The approach outperforms time-invariant counterparts on synthetic switching data and a speech denoising task.
The Attention Within: Consensus Dynamics in Selective State Space Models
This paper investigates whether the recurrence in selective state space models drives tokens to consensus similar to attention in transformers, using dynamical systems theory to analyze stability and attraction domains for time-varying weight matrices.