Princeton's ReplaySSM Boosts AI Serving Speed 1.8x by Slashing Memory Traffic
Dao AI Lab and NVIDIA show that caching SSM inputs instead of recurrent state cuts memory traffic and unlocks quantization for hybrid models.
- Dao AI Lab and NVIDIA release ReplaySSM, caching SSM inputs instead of recurrent state during decoding.
- Standard decoding runs 1.20 to 1.47x faster than tuned vLLM across four hybrid models at batch 256.
- Speculative decoding reaches ~1.8x vLLM's throughput on 120B-class hybrid models via pointer-based rollback.
- Separate precisions for output reads and recurrence cut 128K-token KL divergence by 36x versus shared NVFP4 state.
- Integrated in TensorRT-LLM, vLLM, FlashInfer; production in GLM-5.3-Flash and Kimi-K3.
- Joint blog post details how decoupling output computation from state updates breaks the quantization error loop.
ReplaySSM cuts recurrent-state traffic during decoding
State-space models (SSMs) and recurrent linear-attention layers can decode long sequences without an attention key-value (KV) cache that grows with every token. Each layer compresses prior tokens into a fixed-size recurrent state, keeping per-token storage and computation constant as context length grows. Hybrid models built with Mamba-2 or Gated DeltaNet still face a costly operation: every decoding step reads and rewrites that state in high-bandwidth memory (HBM), which can make recurrent layers the latency bottleneck.
Researchers from Princeton’s Dao AI Lab and NVIDIA propose ReplaySSM in a new arXiv paper. The method caches a short window of layer inputs in a ring buffer, reconstructs the current state when producing outputs, and commits buffered inputs to the recurrent state periodically. The authors report integrations with NVIDIA TensorRT-LLM, vLLM, and FlashInfer, plus production use in GLM-5.3-Flash and Kimi-K3.
Fixed state, expensive traffic
Conventional recurrent decoding eagerly commits every token to state. A fused kernel loads the previous state, applies the new input, computes the layer output, and writes the updated state to HBM. The state stays constant in size, but transferring it across many layers and concurrent sequences consumes substantial memory bandwidth.
- State updates are memory-bound. Each step moves the full state while performing relatively little arithmetic. In the hybrid architectures studied, SSM layers outnumber attention layers by roughly five to one, so their aggregate traffic dominates at many practical context lengths.
- Speculative rollback is expensive. Speculative decoding proposes several tokens and verifies them together. When verification rejects a suffix, an eagerly updated SSM state already includes those tokens, requiring restoration of an earlier state or recomputation.
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.