Mamba选择性状态空间模型的对数尺度扰动界:任意序列长度均成立
A Log-Timescale Perturbation Bound for Selective State Space Models at Every Sequence Length
针对Mamba模型在流式数据上运行超出训练序列长度的问题,该研究改用对数尺度度量输入微小变化对隐藏状态的影响,证明选择性扫描单元从同一初始状态出发的两次运行在任意长度下均保持有界,且无需时间尺度下界。该界在变化较小时与最优值相差约2倍,并扩展至Mamba官方代码所用更新。在订单簿数据训练的两个小模型上,现有分析构建的界最多仅前8步更紧,而梯度攻击所发现的变化仍比该界低五个数量级以上。
arXiv:2611.21952v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org