arXiv cs.AI· Ze-Wei Liou, Harris Nover, Amey Naik, Andrii Skliar, Igor Shovkun, Ido Shahaf, Tri Dao·· 6 天前AI 评分32
ReplaySSM:缓存 SSM 输入而非状态
ReplaySSM: Cache SSM Inputs, Not State
AI 导读
ReplaySSM 将 SSM 的循环展开为「检查点 + 近期输入缓冲区」,把输出计算与检查点更新分离,从而在多数解码步上避免状态写入,将主要状态内存流量减少约一半。
正文 · 原文
Abstract:State-space models (SSMs) maintain a fixed-size recurrent state, but reading and writing it at every decoding step can bottleneck hybrid models. This eager state management causes large state I/O with low arithmetic intensity, leaves speculative decoding no cheap rollback, and feeds state quantization error into subsequent recurrent updates. We introduce ReplaySSM, which unrolls the recurrence to represent the state as a checkpoint and a buffer of recent SSM inputs. This separates output computation from checkpoint updates. By updating the checkpoint periodically, ReplaySSM avoids state writes on most steps and roughly halves the dominant state memory traffic. Keeping recent inputs also makes speculative rollback a buffer-pointer operation and enables output-only verification without materializing intermediate states. The same separation allows a low-precision checkpoint to serve output computation on most steps while a higher-precision checkpoint serves recurrent updates, so rounding error in the low-precision copy never enters later updates. We implement ReplaySSM in vLLM for Mamba-2 and Gated DeltaNet. At serving batch size 256, it accelerates standard decoding by $1.20$--$1.47\times$ over a tuned vLLM baseline across four hybrid models, and delivers about $1.8\times$ the throughput of vLLM's speculative decoding on the two 120B-class models. Separate state precisions also reduce output KL divergence and downstream accuracy losses compared with a shared low-precision checkpoint.
| Comments: | 11 pages (35 pages counting references and appendix), 6 figures, 2 tables. Code: this https URL |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.13778 [cs.LG] |
| (or arXiv:2610.13778v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.13778 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Ze-Wei Liou [view email]
[v1]
Fri, 9 Oct 2026 15:59:40 UTC (691 KB)
来源:arXiv cs.AI · arxiv.org