A Log-Timescale Perturbation Bound for Selective State Space Models at Every Sequence Length
Jack Humphries, Daniel Midgley
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 about 2 of 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 first 8 steps. With Mamba's softplus timescale, whose certified lower bound is as small as 10-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.
Create a lesson
Related papers
Variable Length Diffuse Everything: Arbitrary Length Generative Modeling on Arbitrary State Spaces
Shared title terminology · Kevin Rojas, Felix X. -F. Ye, Molei Tao
BiMa-ECGSR: reconstructing the 12-lead ECG from reduced lead sets with bidirectional state-space models
Shared title terminology · Ugo Lomoio, Pierangelo Veltri, Pietro Hiram Guzzi
Learning to Undo: Transfer Reinforcement Learning under State Space Transformations
Shared title terminology · Mridul Mahajan, Aldo Pacchiano, Xuezhou Zhang
Beyond Sample Hardness: Adaptive Data Selection through Learning Dynamics
Shared title terminology · Hai Gan, Suorong Yang, Guang Li et al.
PRISM: Validation-Free Online Batch Selection for LLM Fine-Tuning via Preconditioned Conic Ghost Matching
Shared title terminology · Lin Tang, Wei Zhang, Jing Li et al.
ORION: Exact Canonical-State Supervision for Systematic Generalization in Transformers
Shared title terminology · Sibi Gokul, Jyoti Prakash Meher