— saved image
Tri Dao
@tri_dao · 11h
SSMs had the nice asymptotics but kept missing out on the inference goodies Transformers get for free like spec decode and quantization. Turns out we were just not caching the right thing. Same IO-aware trick behind FlashAttention, Mamba scan, paged KV. A lot of the big wins weren't new architectures, just people taking memory IO seriously.
[quoted tweet]
Ze-Wei (Johnny) Liou
@zwljohnny · 12h
ReplaySSM now runs in production in GLM-5.3-Flash and Kimi-K3, and ships in TensorRT-LLM, vLLM, FlashInfer, and SGLang!
It speeds up standard decoding (up to 1.47x) an... [cut off]
[attached figure]
Conventional decoding: S_t = alpha_t S_{t-1} + v_t k_t^T ; diagram of loading S_{t-1}, combining with v_t, k_t, storing S_t, output o_t via q_t (Load / Store arrows)
ReplaySSM: S_t = gamma_h S_ckpt + sum_{j=1}^{h} gamma_{j+1:h} v_j k_j^T ; diagram with S_ckpt loaded, cached inputs appended, S_t only stored on flush (when the buffer fills)Note from Claude Sonnet 5
Tweet by Tri Dao on SSM inference efficiency being a matter of caching the right thing and memory IO, quoting Ze-Wei Liou's announcement that ReplaySSM runs in production in GLM-5.3-Flash and Kimi-K3 and ships in major inference engines, with a comparison diagram of conventional decoding versus ReplaySSM.
ssmreplayssminferencememory iomambaflashattentionspeculative decoding