Manuscript Offprint
arXiv:2610.13778ReplaySSM: Cache SSM Inputs, Not State
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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× over a tuned vLLM baseline across four hybrid models, and delivers about 1.8× 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.
Code: https://github.com/Johnny-Liou/ReplaySSM.
1 INTRODUCTION
Long chain-of-thought reasoning makes decoding a substantial cost in LLM inference. Agent workloads stretch it further through repeated tool calls and reasoning. Transformer attention keeps past keys and values in a key-value (KV) cache whose size and per-step memory traffic grow with sequence length, hurting both throughput and tail latency. State-space models (SSMs), such as Mamba-2 (Dao & Gu, 2024), Gated DeltaNet (GDN; Yang et al., 2025), and Kimi Delta Attention (KDA; Kimi Team, 2025), instead summarize past information into a fixed-size recurrent state. Their state storage and per-step memory traffic remain constant with sequence length, but this compression can degrade exact recall (Jelassi et al., 2024; Waleffe et al., 2024). Hybrid architectures aim to find the sweet spot in between by interleaving SSM and attention layers and are widely adopted in production models, including Nemotron-3 (NVIDIA, 2025), Qwen3.5 through Qwen3.8 (Qwen Team, 2026a;b), Kimi-K3 (Kimi Team, 2026), and GLM-5.3-Flash (Z.ai, 2026a).
A fixed-size state, however, does not make SSM decoding cheap. Current SSM decoding follows the recurrence step by step. Each step loads the state, updates it, computes the output from the updated state, and stores it back. This leads to three challenges. First, the update has low arithmetic intensity. Each step moves the full state for a decay and a rank-1 update. At serving batch sizes, this state traffic can make SSM updates the bottleneck up to 100K tokens even in hybrid models whose attention cost grows with output context length (Figure 1, bottom left). Second, an updated state has no cheap rollback. This becomes a problem for speculative decoding, which verifies multiple draft tokens together and must restore the state to the last accepted token when a suffix is rejected.
Conventional decoding
ReplaySSM


(1) Standard decoding State I/O dominates latency

Full-state writes per L steps
Conventional
ReplaySSM
(2) Speculative decoding No cheap rollback
Rollback: expensive
state memory traffic
ReplaySSM
Rollback = pointer move
No state written on most steps
(3) Low-precision state Rounding error re-enters recurrence
Conventional
Error accumulates
ReplaySSM
Breaks error propagation
Figure 1: ReplaySSM overview. Top: conventional decoding loads and stores the full state at every step. ReplaySSM unrolls the recurrence to separate output computation from checkpoint updates: it caches recent SSM inputs and folds them into the checkpoint periodically, avoiding full-state writes on most steps. Bottom: three challenges of conventional decoding, and how ReplaySSM addresses each. (1) SSM layers can bottleneck hybrid models up to 100K tokens (Nemotron-3-Super-120B-A12B-NVFP4, batch size 256, one B300); ReplaySSM roughly halves their state traffic. (2) State rollback, expensive to support in conventional speculative decoding, becomes a buffer-pointer move. (3) A low-precision checkpoint serves outputs while a high-precision one carries the recurrence, so rounding error no longer re-enters the recurrence.
(Leviathan et al., 2023). Serving systems such as vLLM (Kwon et al., 2023) therefore work around this by storing a separate recurrent-state snapshot for each draft token. These writes slow an already memory-bound kernel, and storing the snapshots caps concurrency, so speculative decoding gains little at serving batch sizes. Third, quantizing the SSM state feeds rounding error into subsequent recurrent updates, where it can accumulate over a long generation. Aggressively reducing state precision can therefore distort the output distribution and degrade downstream accuracy.
These three challenges motivate the question: Why do we store an updated state after every step? Unrolling the recurrence shows that the current state equals a decayed earlier checkpoint plus a short sum over recent inputs. ReplaySSM therefore represents the state as a checkpoint and a bounded buffer of recent SSM inputs (Figure 1, top). This representation separates output computation from checkpoint updates. On most steps (non-flush steps), ReplaySSM appends the new inputs to the buffer and computes the output from the checkpoint and the buffer without storing a state. Only when the buffer fills (flush steps) does it fold the buffered inputs into the checkpoint and start a new window. The outputs match conventional decoding up to floating-point differences.
This separation addresses all three challenges. A non-flush step writes only the new input vectors and decay factors, which are far smaller than the state, so checkpoint writes are amortized over the window and the dominant state traffic roughly halves. Keeping recent inputs also makes speculative rollback cheap. Rejected draft tokens are discarded by moving a buffer pointer, and because non-flush steps need only outputs, verification can compute them directly from the checkpoint and the cached inputs without materializing intermediate states. For low-precision states, the two roles can use different precisions: a low-precision checkpoint serves output computation on non-flush steps, while a higher-precision checkpoint carries the recurrence across flushes, so rounding error in the low-precision copy never enters later updates.
Our contributions are:
• We introduce ReplaySSM, which represents the SSM state as a checkpoint plus a buffer of recent inputs, separating output computation from checkpoint updates and avoiding full-state writes on most decoding steps (Section 4).
• We extend it to speculative decoding, where the cached inputs give pointer-based rollback and output-only verification (Section 5).
• We extend it to low-precision state storage, where the separation lets output computation and recurrent updates use different state precisions (Section 6).
• We implement ReplaySSM in vLLM for Mamba-2 and GDN. At serving batch size 256, it speeds up standard decoding by over a tuned vLLM baseline across four hybrid models, and delivers about the throughput of vLLM's speculative decoding on the two 120B-class mixture-of-experts (MoE) models. Separate state precisions also reduce output Kullback–Leibler (KL) divergence and downstream accuracy losses compared with a shared low-precision checkpoint (Section 7).
2.1 STATE-SPACE MODELS
SSMs compress the token history into a fixed-size recurrent state instead of a growing KV cache. In Mamba-2, the recurrence is
where is the state, , , and is a data-dependent scalar decay. We write for the cumulative decay, with when , and abbreviate as . Each step loads from HBM, forms and , and stores back.
Delta-rule models such as GDN and KDA modify stored information before writing new information. The GDN recurrence is
where controls the write strength. With
the same outer-product form as Mamba-2 with in place of , at the cost of computing from the previous state.
2.2 SPECULATIVE DECODING AND QUANTIZATION
Speculative decoding uses a lightweight drafter to propose multiple candidate tokens, which the target model verifies in one forward pass; how many are accepted is known only after this pass. Rejected tokens are discarded, and the KV cache or SSM state must retain only the accepted prefix (Leviathan et al., 2023). Quantization stores values in a lower-precision format to cut storage and memory traffic. Values the format cannot represent are rounded: round-to-nearest (RTN) can introduce systematic bias, while stochastic rounding (SR) is unbiased in expectation but still has nonzero variance (Gupta et al., 2015; Croci et al., 2022).
3 MOTIVATION AND KEY INSIGHT
SSMs compress an -token history into an -size state through recurrent updates. However, directly and eagerly following the recurrence, materializing the updated state at every decoding step, creates three challenges (Figure 1, bottom): low arithmetic intensity, expensive rollback, and propagation of quantization error through the recurrence.
3.1 CHALLENGE 1: LARGE STATE I/O WITH LITTLE COMPUTE
Conventional decoding reads and writes the full recurrent state at each step while doing little computation on it; Mamba-2, for example, applies only an elementwise decay and a rank-1 update. State updates are therefore memory-bound, and state I/O dominates their latency (Appendix C.1). One might expect attention to dominate hybrid-model latency because its KV-cache traffic grows with context length. However, for Nemotron-3-Super-120B-A12B-NVFP4 at batch size 256 on one B300, SSM state updates remain the largest latency component up to 100K tokens (Figure 1, bottom left). Two factors explain this. The model has five times as many SSM layers as attention layers, and each SSM layer's FP32 state is 4 MiB per sequence, the size of an attention layer's FP8 KV cache for 8K tokens. A decoding step loads and stores the state but only loads the KV cache, so the SSM layers move more bytes than the attention layers until the context reaches about 80K tokens (Appendix C.2). The measured crossover near 100K tokens is consistent with attention kernels having received more optimization effort (e.g., Dao et al., 2022).
3.2 CHALLENGE 2: RECURRENT STATE HAS NO CHEAP ROLLBACK
Conventional SSM decoding eagerly summarizes each token's inputs into the state at once, and the update has no cheap inverse. This matters for speculative decoding, where the target model must roll the state back when it rejects a suffix of draft tokens (Figure 1, bottom middle). Attention handles rollback naturally by moving the KV-cache pointer to the end of the accepted prefix. An SSM state contains no token history to point into, so serving systems such as vLLM store a state snapshot for each draft token and select the one matching the accepted prefix. Verifying T tokens costs T full-state writes per step on an already memory-bound path and reduces serving concurrency. Prior work (Wang et al., 2024a; Wu et al., 2024; 2026; Section 8) avoids the per-token snapshots but still pays extra state traffic to recover the accepted state by re-running the recurrence, and at a serving batch size none of it is more than a few percent faster than vLLM's snapshots (Appendix A). Speculative decoding therefore gives SSMs little speedup at serving batch sizes.
3.3 CHALLENGE 3: QUANTIZATION ERROR PROPAGATES THROUGH RECURRENCE
In low-precision SSM decoding, the stored quantized state both produces the current output and feeds the next recurrent update. Rounding error therefore re-enters the recurrence at every step and can accumulate with sequence length (Figure 1, bottom right). Round-to-nearest adds systematic bias; stochastic rounding is unbiased but still propagates its variance (Appendix C.6).
3.4 REPLAYSSM: CACHE SSM INPUTS, NOT STATE
All three problems come from one state-management policy: eagerly summarize each token’s inputs into the state at once and write the state to HBM at every step. The recurrence itself shows that this is unnecessary. For Mamba-2, let be the state before a window of h inputs indexed locally by . Then
The recurrent form loads the summary and applies the current inputs; the unrolled form reconstructs the same state from and the recent inputs . Delta-rule models unroll the same way (Appendix B.1) once their updates are written in outer-product form (Equation 3).
ReplaySSM therefore represents the state as a checkpoint plus a bounded buffer of recent SSM inputs; for Mamba-2 each record holds . This representation separates output computation from checkpoint updates. Conventional decoding fuses the two, because the output is read from the state it has just updated and must store for the next step. A non-flush step appends the current inputs to and computes the output from and the buffer without storing a state. When the buffer reaches its capacity, a flush step folds the buffered inputs into , computes the output, writes the new checkpoint to HBM, and clears the buffer. State writes therefore happen only on flush steps, and the outputs equal those of conventional decoding up to floating-point differences (Figure 1). Sections 4 to 6 build on this separation for standard decoding, speculative decoding, and low-precision state, and Section 8 reviews related work.
ReplaySSM decoding step (Mamba-2). Algorithm 1 is standard decoding. Algorithm 2 extends it to verify tokens per step and commits only the accepted prefix. Algorithm 3 adds a second checkpoint precision, with its changes from Algorithm 2 in color.
Algorithm 1 Standard decoding
Input: current token's and 1: 2: 3: 4: if then flush 5: ; store to HBM 6: 7: return
Notation (full definitions in Appendix B.5)
: checkpoint state in HBM (Alg. 3: ) : working state on chip : replay-buffer records to , each : is committed, ; window size : inputs and queries of tokens REPLAY: state from checkpoint and records (Eq. 5) OUTPUTONLY: outputs for without states (Eq. 6) : casts to the two checkpoint formats
Algorithm 2 Speculative decoding
Input: and of tokens 1: unchanged 2: Load from HBM into 3: 4: if then flush committed records 5: 6: 7: Store to HBM 8: Drop keep 9: return Later, given accepted length : 10: commit accepted drafts
Algorithm 3 Two-precision speculative decoding
Input: and of tokens 1: unchanged 2: , else LP 3: Load from HBM into 4: 5: if then flush committed records 6: 7: 8: Store and to HBM 9: Drop keep 10: return Later, given accepted length : 11: commit accepted drafts
4 REPLAYSSM FOR STANDARD DECODING
Standard decoding is the simplest setting in which to see how the separation reduces state memory traffic (Challenge 1). The core operation reconstructs the current state from a checkpoint and the cached inputs. For a checkpoint and replay buffer , define
Algorithm 1 applies this operation once per token. Lines 1–3 append the current inputs, reconstruct the state, and compute the output; the only full-state store is Line 5, inside the flush branch. Algorithms 2 and 3 extend it in Sections 5 and 6. For GDN, each record stores the correction in place of and the flush replays the same sum (Appendix B.2).
Conventional decoding reads and writes the full recurrent state at every step. ReplaySSM still reads at each step, since the output computation needs it, but writes the state only when the checkpoint is updated. A non-flush step only appends the current inputs to . Over an -step window, both methods perform full-state reads, while conventional decoding performs full-state writes and ReplaySSM performs one, plus the buffer reads and writes. Because the buffer is much smaller than the state, ReplaySSM roughly halves the dominant state memory traffic (Appendix C.3).
The window size balances checkpoint writes against replay overhead. A larger amortizes each checkpoint write over more steps but increases the number of buffered inputs loaded and applied at each step. We use throughout (Appendix C.5).
| Model | SSM | Weights |
|---|---|---|
| Nemotron-3-Nano-4B | Mamba-2 | BF16 |
| Nemotron-3-Super-120B-A12B | Mamba-2 | NVFP4 |
| Qwen3.5-4B | GDN | BF16 |
| Qwen3.5-122B-A10B | GDN | NVFP4 |
Table 1: Evaluated models. The 4B models run on one H100 and the 120B-class models on one B300. More details are in Table 5.

Figure 2: Standard-decoding speedup over tuned conventional vLLM (B = 256, L = 16, FP32 state). Kernel numbers include flush costs.
5 REPLAYSSM FOR SPECULATIVE DECODING
In speculative decoding, ReplaySSM keeps the traffic saving of standard decoding (Section 4) and changes how the target model verifies draft tokens in two further ways: cached inputs make rollback cheap, and output-only evaluation avoids materializing intermediate recurrent states.
5.1 CHEAP ROLLBACK WITH CACHED INPUTS
The accepted-prefix length is known only after target-model verification (Section 2.2). ReplaySSM therefore appends the SSM inputs of all tokens of the verification pass to the replay buffer first and commits only the accepted prefix after verification by moving the buffer pointer. Algorithm 2 gives the procedure for Mamba-2. The draft records are written after the committed records (Line 1), and all records feed the output computation (Line 3). The accepted length is known only after the outputs are returned (Line 9), and it then advances (Line 10). Rejected records lie beyond position and are overwritten by the next append. The flush branch (Lines 4–8) folds only committed inputs into the checkpoint, so it can run before acceptance is known. Non-flush steps write only the small input records, and only flush steps write the checkpoint. Appendix A compares the per-step state traffic with vLLM's per-draft snapshots and with the prior recovery methods of Section 3.2.
We implement as a circular buffer with capacity , room for committed records and drafts, so dropping the committed prefix (Line 8) advances the ring origin instead of copying the draft records forward. Flushing when keeps the committed length at most after verification (Appendix D.1). Unlike the fixed -step interval of standard decoding, the flush frequency now depends on acceptance, since higher acceptance fills the buffer faster.
5.2 OUTPUT-ONLY VERIFICATION
The separation also lets a non-flush step avoid materializing the state as well as storing it. Conventional decoding must produce the updated state because the next step consumes it. Under ReplaySSM no later step reads the state of a non-flush step, so that step needs only the output. For a single Mamba-2 update from a zero state, the product of , , and can be bracketed two ways, : the left side materializes the state, while the right side forms the scalar and scales . We call the right-hand form output-only evaluation.
For verification, let and hold the buffered values and keys as columns, committed records first, and let . The same idea gives
where is diagonal with , is the elementwise product, and holds cumulative decays under a causal mask, for and 0 otherwise. The mask restricts each draft query to the committed history and the drafts up to its own position. The output-only form has two benefits. It never materializes a state, so it needs fewer FLOPs (Appendix C.4), and is computed once for every group of value heads that share keys and queries. Both matter more

Figure 3: Speculative serving throughput ( , , FP32 state, one B300 per model).

Figure 4: Speculative kernel latency ( , , FP32 state), flushes included.
in speculative decoding, where verifying T tokens multiplies the arithmetic per step. The outputs match recurrent evaluation up to floating-point differences. GDN admits the same form. Its draft corrections depend on the earlier drafts in the window, and Appendix B.3 obtains all T of them from one triangular solve. Equation 6 also has the chunkwise form of prefill and training kernels, with the buffered inputs followed by the drafts as the chunk (Section 8).
6 REPLAYSSM FOR LOW-PRECISION STATE
Lower-precision state storage reduces memory traffic and can reduce latency in memory-bound SSM kernels. In conventional decoding the same stored state computes the output and feeds the next update, so its rounding error re-enters the recurrence at every step (Section 3.3). The separation changes this in two ways. It quantizes the state once per window instead of once per step, though with a single low-precision checkpoint that rounding error still enters later updates. More important, non-flush steps read the state only to compute outputs, while flush steps update the checkpoint that carries the recurrence forward, so the two roles can use different precisions.
We therefore keep a high-precision checkpoint for recurrent updates and a low-precision copy for non-flush output computation. Both represent the same checkpoint history; and denote the casts from accumulation precision. Algorithm 3 extends Algorithm 2 by choosing which checkpoint to load (Lines 2–3). Non-flush steps read the low-precision copy. Flush steps read the high-precision checkpoint, reconstruct the committed state, and cast it independently into both formats (Lines 7–8). The extra low-precision write on flush steps lets every non-flush step read the smaller checkpoint. Acceptance, rollback, and buffer management are unchanged.
Separate precisions break the feedback loop of Section 3.3. Each flush starts from the high-precision checkpoint and writes a fresh high-precision checkpoint; the low-precision copy is derived from it and never read back into the recurrence, so its rounding error does not accumulate. Rounding error in the high-precision path remains, and non-flush outputs still depend on the approximate copy. Appendix C.6 provides the analysis, and Section 7.4 measures the resulting output error as KL divergence. GDN needs one adjustment. The corrections u cached on non-flush steps come from the low-precision checkpoint (Equation 3), so we also cache v and recompute the corrections from the high-precision state at flush time, keeping low-precision error out of the recurrence (Appendix B.4).
7 EVALUATION
7.1 SETUP
We evaluate four hybrid models from two families, Nemotron-3 with Mamba-2 layers and Qwen3.5 with GDN layers (Table 1), each on one GPU without tensor parallelism. We implement Re-

Figure 5: Output KL from conventional FP32-state decoding under teacher forcing on PG-19.

Figure 6: GPQA-Diamond accuracy by FP32 reference-length quartile.
playSSM in vLLM (Appendix D) and compare against tuned conventional vLLM decoding with CUDA graphs. All performance experiments store the recurrent state in FP32, the default for all four models. Section 7.4 lowers only the state precision and leaves weights as released (Table 1). We write B for batch size, L for the replay window size, T for the verification length, the tokens verified per step (T = 1 is standard decoding), a for the number of those tokens it commits, , and N for generation length. Standard decoding reports whole-model latency per decode step and standalone SSM-kernel latency. Speculative decoding reports serving throughput in generated tokens per second, prefill included, and standalone kernel latency for verification. The low-precision experiments measure the KL divergence from conventional FP32-state decoding under teacher forcing on PG-19 (Rae et al., 2019) for N up to 128K tokens, and generated-answer accuracy on MMLU-Pro (Wang et al., 2024b), GPQA-Diamond (Rein et al., 2023), and the Level 5 subset of MATH (Hendrycks et al., 2021), Math-L5. Details are in Appendix E.1.
7.2 STANDARD DECODING
The baseline uses the fastest kernel launch configuration for each model, which beats the shipped Mamba-2 defaults (Appendix E.2.1). At and , ReplaySSM speeds up the SSM kernel by and the whole decode step by across the four models (Figure 2). The kernel gain is the traffic reduction of Section 4 and appears where the conventional kernel is memory-bound. Appendix E.2.1 sweeps the batch size from 1 to 512 and reports the HBM bandwidth the conventional kernel reaches. At , the kernel is latency-bound, and ReplaySSM ends within a few percent of the baseline end to end. From there the speedup grows with batch size until the conventional kernel saturates the bandwidth. The end-to-end gain is bounded by the SSM share of the decode step, since attention and the rest of the model are unchanged, and it also grows with batch size because that share grows. We use because it gives the lowest amortized kernel latency for all four models at in the window sweep of Appendix E.2.2, which the traffic analysis of Appendix C.5 also predicts.
7.3 SPECULATIVE DECODING
We evaluate the two 120B-class models, which run with NVFP4 weights (Table 1), at L = 16 and T = 4, drafting with each model's MTP head on GSM8K prompts (Cobbe et al., 2021) with 256 generated tokens per request. Figure 3 compares serving throughput with conventional vLLM standard and speculative decoding. Storing a state snapshot per draft token adds state writes per step and caps the concurrency that GPU memory allows, so conventional speculation stops gaining beyond B = 128 and on Qwen3.5-122B-A10B at B = 512 falls below standard decoding. ReplaySSM keeps improving with batch size. At B = 512 it delivers and the throughput of conventional speculation, and and that of standard decoding, with matched acceptance lengths. Appendix E.3 gives the serving setup, the throughput over the full grid of B and T, and the acceptance lengths. The faster verification kernel is the other source of the gain. Figure 4
Table 2: Downstream accuracy. Bold: mean change from FP32 over the four models, in percentage points (FP32 row: accuracy). Gray: per-model values, Nemotron-3-Nano-4B / Nemotron-3-Super-120B-A12B-NVFP4 / Qwen3.5-4B / Qwen3.5-122B-A10B-NVFP4. Red: losses 5 points.
| Checkpoint configuration | MMLU-Pro | GPQA-Diamond | Math-L5 |
|---|---|---|---|
| Conventional FP32 (reference) | 77.6%(67.2/81.4/79.0/82.9) | 73.7%(56.7/79.3/76.3/82.7) | 92.3%(89.5/95.5/93.7/90.7) |
| Shared FP16+SR | -0.09(-0.3/+0.3/-0.5/+0.1) | -2.02(-2.2/-3.4/-1.5/-1.0) | 0.00(-1.1/+0.2/-0.3/+1.2) |
| Shared FP8+SR | -0.24(-0.6/+0.2/-0.4/-0.1) | -1.05(-1.0/+0.0/-0.5/-2.7) | +0.01(-1.0/+0.7/-0.5/+0.9) |
| Shared NVFP4+SR | -5.88(-21.0/-0.9/-1.1/-0.5) | -13.05(-31.3/-12.5/-3.2/-5.2) | -10.92(-41.7/-2.9/-1.7/+2.5) |
| Separate FP8 / FP16+SR | -0.04(-0.6/+0.2/-0.4/+0.6) | -0.25(-3.5/+0.2/+2.4/+0.0) | -0.12(-0.6/+0.3/-0.3/+0.1) |
| Separate NVFP4 / FP16+SR | -0.15(-1.7/+0.5/-0.2/+0.8) | -2.36(-6.7/-1.4/+0.7/-2.0) | -0.10(-1.5/-0.1/-0.1/+1.3) |
| Separate NVFP4 / FP8+SR | -0.40(-2.1/+0.2/-0.6/+0.8) | -1.77(-5.6/-1.4/+1.5/-1.7) | -0.38(-2.8/+0.1/-0.3/+1.5) |
shows its cost on Nemotron-3-Super-120B-A12B at . Conventional verification stores one snapshot per token, so its latency grows with and reaches a standard-decoding step at . ReplaySSM verifies eight tokens for of a standard step, flushes included. The band spans all drafts rejected to all accepted, since higher acceptance fills the buffer and flushes more often. The GDN kernel shows the same trend (Appendix E.3.2).
7.4 LOW-PRECISION STATE
A low-precision state reduces latency (Appendix E.4.2) but can distort the output distribution and degrade downstream accuracy. We compare a shared checkpoint (FP32, FP16, FP8, or NVFP4) that serves both output computation and recurrent updates against separate read and recurrence checkpoints (FP8 or NVFP4 reads with FP32 or FP16 recurrence under stochastic rounding, SR), all at and with the formats of Appendix E.4.1. Quantization applies to decoding only, and pre-fill computes the state at full precision. These runs use standard decoding. Speculative decoding changes how many tokens a step verifies, and acceptance sets when flushes occur. Neither changes which values are rounded, so the error mechanism is the same. Figure 5 shows the output KL from FP32-state decoding on Qwen3.5-4B. Shared FP8 and NVFP4 checkpoints accumulate error with generation length, as Section 3.3 describes, and keeping the recurrence in FP32 removes most of it. At 128K tokens, NVFP4 reads with FP32 recurrence reduce KL from 0.136 to 0.0038, about . What remains is the read error itself, which does not grow with but keeps NVFP4 reads several times above the FP32 floor. FP16+SR recurrence tracks FP32 recurrence closely, so a half-precision recurrence checkpoint suffices, and we use it in the accuracy evaluation. Appendix E.4.3 gives the KL protocol and the curves of the other three models, which show the same separation by model-dependent amounts. Appendix E.4.4 varies . A shared checkpoint is requantized once per window, so its error falls as grows (Section 6), while the separate configurations are nearly unchanged.
Table 2 shows the downstream consequence, with separate rows listing read / recurrence precision. A shared NVFP4+SR checkpoint loses 13.05 points of GPQA-Diamond accuracy on average over the four models, and 5.88 and 10.92 points on MMLU-Pro and Math-L5. NVFP4 reads with FP16+SR recurrence cut these losses to 2.36, 0.15, and 0.10 points, and with FP8+SR recurrence to 1.77, 0.40, and 0.38. Shared FP16 and FP8 checkpoints stay within the benchmark noise of FP32 even though their KL sits above the floor, so accuracy resolves only the larger KL gaps. Appendix E.4.6 gives the per-model table with output lengths. The loss concentrates in long generations, consistent with error that accumulates over a generation. GPQA-Diamond has the longest generations of the three benchmarks, and on Nemotron-3-Super-120B-A12B its top reference-length quartile has a median of 61K tokens, against about 8K on MMLU-Pro and Math-L5. There, the gap between shared NVFP4+SR and FP32 grows from 0–2 points in the two shorter quartiles to 20.9 and 28.2 points in the two longer ones, while NVFP4 reads with FP8+SR recurrence keep the latter gaps at 2.0 and 3.4 points (Figure 6). Appendix E.4.7 repeats this for all models and benchmarks.
8 RELATED WORK
Chunkwise SSM algorithms and prefix caching. Mamba (Gu & Dao, 2023) makes the SSM recurrence input dependent and keeps linear complexity with a hardware-aware parallel scan. Mamba-2 (Dao & Gu, 2024) restricts the decay to a scalar per head and, through structured state-space duality, organizes chunkwise computation around matrix multiplications. GDN (Yang et al., 2025) combines that decay with the targeted updates of the delta rule (Schlag et al., 2021), and KDA (Kimi Team, 2025) makes the decay channelwise. These recurrences keep chunkwise parallelism through the WY representation (Bischof & Van Loan, 1987) and the UT transform (Joffrain et al., 2006), following the DeltaNet algorithm of Yang et al. (2024). All of this work optimizes compute throughput in training and prefill. ReplaySSM targets memory-bound autoregressive decoding instead and separates output computation from checkpoint updates, so that the state is written only at flushes. Because non-flush steps compute outputs directly from the checkpoint and the cached recent inputs, they can reuse these chunkwise algorithms, with the buffered inputs followed by the current token, or by the tokens to verify, as the chunk. Marconi (Pan et al., 2025) adds prefix caching for hybrid models, with admission and eviction policies that weigh the reuse and storage cost of recurrent states. Prefix caching avoids repeated prefill computation and ReplaySSM reduces state traffic during decoding, so the two address different phases and can be used together.
SSM speculative decoding. Attention handles rollback by moving the sequence pointer of the KV cache backward, and the rejected keys and values are never read again. An SSM cannot, since once the draft tokens have been eagerly summarized into the state, recovering the previous state is expensive. Serving systems such as vLLM (Kwon et al., 2023) therefore work around this by storing a snapshot of the state after every verified token and selecting the one that matches the accepted prefix. This costs one read and T writes per step against the one read and one write of standard decoding, and the T snapshots per request cap the concurrency that GPU memory allows. Prior work avoids the per-token snapshots but still pays extra state traffic to recover the accepted state, and at a serving batch size none of it is more than a few percent faster than the snapshots (Appendix A). The Mamba in the Llama (Wang et al., 2024a) fuses recovery into the verification kernel, which replays the committed tokens from cached inputs onto a checkpoint and stores both the checkpoint and the end state, one read and two writes per step. Snakes and Ladders (Wu et al., 2024) re-runs the state update on the accepted prefix in one of two ways. Activation Replay does so in a separate launch from cached inputs. Joint Attainment appends a padded backtracking sequence to the next verification, whose variable length also requires one captured CUDA graph per possible acceptance outcome. Both schemes copy between a checkpoint and a working state, three reads and three or four writes per step. STree (Wu et al., 2026) extends the replay to tree-structured drafts. Each step first replays the accepted tokens in place on the checkpoint, one read and one write, then verifies the drafts with a masked tree scan that reads that state and writes nothing, two reads and one write per step. This overhead means that speculative decoding, a reliable speedup for Transformers, barely helps SSMs at serving batch sizes (Figure 3), creating a major disadvantage.
ReplaySSM also caches inputs rather than states, but it does not use the cache to recover a state after verification. The checkpoint plus the buffer of recent inputs is the state representation itself, in standard as well as speculative decoding, and it separates output computation from checkpoint updates. The checkpoint together with any prefix of the buffer is the state after that many accepted tokens, so recovery never re-runs a recurrence. Rollback moves a buffer pointer, verification reads the checkpoint once and computes the outputs from the buffer without materializing a state, and the checkpoint is written only at a flush, once per window of L committed tokens. Most steps therefore read the state once and write nothing. Appendix A compares the state traffic and kernel latency of all methods on one layer shape.
SSM state quantization. Q-Mamba (Tianqi et al., 2025) quantizes Mamba weights, activations, and the recurrent state after training. For the state it proposes Decoupled Scale Quantization, separate scales along the state and channel dimensions that absorb outliers in the state, and Efficient Selectivity Reconstruction, which fine-tunes about two percent of the parameters on calibration.
data. Its error analysis includes the term that carries the previous step's rounding error through the decay, but its training simulation drops that term as small, and at inference the quantized state still feeds the next update. Its evaluation stops at 2048 tokens. The Nemotron 3 Ultra report (NVIDIA, 2026), to which authors of this paper contributed, quantizes the Mamba state cache to FP16 or 8-bit with stochastic rounding and explores periodic cache checkpointing, which stores and quantizes the state only every CC steps and replays cached input activations to advance it in between. This is the first benefit of ReplaySSM (Section 6), fewer quantization events per token, and the report finds the same round-to-nearest bias that Appendix E.4.5 measures. It keeps one quantized state that both produces the outputs and feeds the next update, so rounding error still enters the recurrence, only less often. ReplaySSM removes the term from the recurrence. The separation of output computation from the checkpoint update lets the two roles use different precisions, so the high-precision checkpoint carries the recurrence while the low-precision copy is read only for outputs. What remains is the rounding of the read copy in each output, which Section 7.4 measures out to 128K tokens. The decoupled scales of Q-Mamba could further reduce that remaining read error, and they apply to either checkpoint.
9 CONCLUSION AND FUTURE WORK
Conventional SSM decoding reads and writes the state at every step, fusing output computation with the state update. ReplaySSM unrolls the recurrence to represent the state as a checkpoint plus a buffer of recent inputs, which separates output computation from checkpoint updates. Most steps compute outputs and write no state, and the checkpoint is written once per window. This separation roughly halves the dominant state traffic, turns speculative rollback into a buffer-pointer move with output-only verification, and keeps a low-precision read checkpoint out of the recurrence, so its rounding error does not accumulate with generation length. In vLLM at serving batch sizes, where the conventional kernel is memory-bound, ReplaySSM speeds up standard decoding by 1.20–1.47× and gives about 1.8× the throughput of vLLM's speculative decoding on two 120B-class models, and separate precisions reduce the output KL of an NVFP4 checkpoint by 13–36× at the longest measured generation length. ReplaySSM is adopted in large-scale production models and integrated into LLM serving systems (Appendix G).
Every step still reads the checkpoint, and that read is the next target. The checkpoint enters each step scaled by a per-head cumulative decay, so a head whose decay has become negligible can skip the read on non-flush steps and turn its flush into a pure write. Appendix F outlines this direction.
REFERENCES
Christian Bischof and Charles Van Loan. The wy representation for products of householder matrices. SIAM Journal on Scientific and Statistical Computing, 8(1):s2–s13, 1987.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
Matteo Croci, Massimiliano Fasi, Nicholas J Higham, Theo Mary, and Mantas Mikaitis. Stochastic rounding: implementation, error analysis and applications. Royal Society Open Science, 9(3):211631, 2022.
Tri Dao and Albert Gu. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060, 2024.
Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344–16359, 2022.
Dao AI Lab. ReplaySSM: Cache SSM inputs, not state. Dao AI Lab blog, June 2026. URL https://dao-lab.ai/blog/2026/replayssm/. Accessed: 2026-09-30.
Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. In International conference on machine learning, pp. 1737–1746. PMLR, 2015.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. Ruler: What's the real context size of your long-context language models? arXiv preprint arXiv:2404.06654, 2024.
Samy Jelassi, David Brandfonbrener, Sham M Kakade, and Eran Malach. Repeat after me: Transformers are better than state space models at copying. arXiv preprint arXiv:2402.01032, 2024.
Thierry Joffrain, Tze Meng Low, Enrique S Quintana-Ortí, Robert van de Geijn, and Field G Van Zee. Accumulating householder transformations, revisited. ACM Transactions on Mathematical Software (TOMS), 32(2):169–179, 2006.
Kimi Team. Kimi linear: An expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692, 2025.
Kimi Team. Kimi K3: Open frontier intelligence. arXiv preprint arXiv:2607.24653, 2026.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles, pp. 611–626, 2023.
Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International conference on machine learning, pp. 19274–19286. PMLR, 2023.
NVIDIA. NVIDIA Nemotron 3: Efficient and open intelligence. arXiv preprint arXiv:2512.20856, 2025.
NVIDIA. Nemotron 3 Ultra: Open, efficient mixture-of-experts hybrid Mamba-Transformer model for agentic reasoning. arXiv preprint arXiv:2606.15007, 2026.
NVIDIA Corporation. NVIDIA H100 Tensor Core GPU. https://www.nvidia.com/en-us/data-center/h100/, 2022.
Rui Pan, Zhuang Wang, Zhen Jia, Can Karakus, Luca Zancato, Tri Dao, Yida Wang, and Ravi Netravali. Marconi: Prefix caching for the era of hybrid llms. Proceedings of Machine Learning and Systems, 7, 2025.
Qwen Team. Qwen3.5: Accelerating productivity with native multimodal agents, February 2026a. URL https://qwen.ai/blog?id=qwen3.5.
Qwen Team. Qwen3.8-Max: A new bar for coding and cowork, August 2026b. URL https://qwen.ai/blog?id=qwen3.8.
Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. arXiv preprint arXiv:1911.05507, 2019.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Di-rani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.
Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. Linear transformers are secretly fast weight programmers. In International conference on machine learning, pp. 9355–9366. PMLR, 2021.
Chen Tianqi, Yuanteng Chen, Peisong Wang, Weixiang Xu, Zeyu Zhu, and Jian Cheng. Q-mamba: Towards more efficient mamba models via post-training quantization. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 10594–10610, 2025.
Roger Waleffe, Wonmin Byeon, Duncan Riach, Brandon Norick, Vijay Korthikanti, Tri Dao, Albert Gu, Ali Hatamizadeh, Sudhakar Singh, Deepak Narayanan, et al. An empirical study of mamba-based language models. arXiv preprint arXiv:2406.07887, 2024.
Junxiong Wang, Daniele Paliotta, Avner May, Alexander M Rush, and Tri Dao. The mamba in the llama: Distilling and accelerating hybrid models. In Advances in Neural Information Processing Systems, volume 37, 2024a.
Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, et al. Mmlu-pro: A more robust and challenging multitask language understanding benchmark. Advances in Neural Information Processing Systems, 37:95266–95290, 2024b.
Yangchao Wu, Yonatan Dukler, Matthew Trager, Alessandro Achille, Wei Xia, and Stefano Soatto. Snakes and ladders: Accelerating state space model inference with speculative decoding. In Proceedings of the 4th NeurIPS Efficient Natural Language and Speech Processing Workshop, volume 262 of Proceedings of Machine Learning Research, pp. 292–304, 2024.
Yangchao Wu, Zongyue Qin, Alex Wong, and Stefano Soatto. Stree: Speculative tree decoding for hybrid state space models. Advances in Neural Information Processing Systems, 38:115588–115608, 2026.
Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, and Yoon Kim. Parallelizing linear transformers with the delta rule over sequence length. Advances in neural information processing systems, 37:115491–115522, 2024.
Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving mamba2 with delta rule. In International Conference on Learning Representations, volume 2025, pp. 29687–29707, 2025.
Z.ai. GLM-5.3-Flash: Frontier intelligence, flash cost. Z.ai blog, August 2026a. URL https://z.ai/blog/glm-5.3-flash. Accessed: 2026-09-19.
Z.ai. Toward recursive self-improvement: How GLM built its own inference infrastructure. Z.ai blog, September 2026b. URL https://z.ai/blog/glm-built-its-inference-infrastructure. Accessed: 2026-09-30.
APPENDIX CONTENTS
A Speculative decoding compared with prior methods 15
A.1 Per-step operations and state traffic 15
A.2 Results 16
B GDN derivations and algorithms 16
B.1 Outer-product and unrolled forms 16
B.2 Standard decoding 17
B.3 Speculative decoding 18
B.4 Low-precision state 19
B.5 Notation for the algorithms 20
C Cost and numerical error analysis 21
C.1 Arithmetic intensity of conventional decoding 21
C.2 SSM and attention traffic in a hybrid model 21
C.3 Memory traffic 21
C.4 FLOPs for output-only computation 22
C.5 Replay-window tradeoff 23
C.6 Quantization error propagation 23
D Serving implementation 24
D.1 Flush rule under speculative decoding 24
D.2 CUDA graphs 25
E Additional evaluation details and results 25
E.1 Evaluation setup 25
E.2 Standard decoding 26
E.3 Speculative decoding 27
E.4 Low-precision state 28
F Future work: skipping checkpoint reads by decay 35
G Adoption 35
A SPECULATIVE DECODING COMPARED WITH PRIOR METHODS
This appendix compares the kernel-level cost of ReplaySSM verification with four prior ways of handling the SSM state during verification. These are vLLM's per-token snapshots, The Mamba in the Llama (Wang et al., 2024a), the two variants of Snakes and Ladders (Wu et al., 2024), and STree (Wu et al., 2026). Every method runs on one B300 at the Mamba-2 layer shape of Nemotron-3-Super-120B-A12B with an FP32 state, batched over requests with one draft chain per request. One state, one request in one layer, is 4.2 MB, so the batch holds 1.07 GB of state per layer. T counts the tokens processed per verification step and a the committed tokens. Tree drafting is outside this comparison, so STree runs with a single chain and its tree mask reduces to a causal mask.
The prior kernels come from the authors’ repositories, STree at commit b9a0c24 and The Mamba in the Llama at commit b702a3e , with only the changes needed to run them at this shape under the current Triton. Snakes and Ladders has no repository of its own. The STree repository, which shares its first author, implements both variants, and we use that implementation. For each method we time the kernel launches its implementation issues in one verification step.
All baselines are tuned. Both prior repositories hard-code one launch configuration and vLLM's kernel picks its own from a heuristic, so we sweep the launch configuration of every kernel and report each at its best. STree is also measured as its algorithm, the masked replay plus a read-only tree scan, rather than as its released path, which adds two state copies that are identities for one chain and would make it slower. It runs with a chunk size of 16 instead of its default of 256, which would pad the T-token window to 256 positions.
A.1 PER-STEP OPERATIONS AND STATE TRAFFIC
R and W denote one full read and one full write of the state.
• vLLM. One launch. The kernel loads the state once and stores the state after each of the T tokens to that token's slot, so the accepted token's snapshot is the next state and no recovery pass is needed. , independent of acceptance.
• The Mamba in the Llama. One fused launch. It loads the checkpoint, or the end state when every draft was accepted, replays the tokens committed by the previous step from cached inputs, stores the new checkpoint, runs the T current tokens, and stores the end state. at every acceptance, since the checkpoint store is issued even when the replay is skipped, and a serial chain of up to steps.
• Snakes and Ladders, Activation Replay. Three launches. A multi-step scan re-runs the committed tokens in place on the checkpoint, the checkpoint is copied to a working buffer, and the same kernel verifies in place on that buffer. Each use of the kernel loads and stores the state, so . The masked replay always runs T steps, so the cost does not depend on acceptance. This path is the STree paper’s “Vanilla SD” baseline.
• Snakes and Ladders, Joint Attainment. The same kernel without an activation cache. Each request contributes two rows to one launch, a padded backtracking row that reprocesses the committed tokens and a draft row that continues into the drafts, both starting from the state verified two steps earlier. A gather then copies the backtracking row's state into both rows. , and serial steps once the batch is padded to one length.
• STree. Two launches. The masked replay runs in place on the checkpoint, then a chunk-scan kernel verifies the drafts, reading the state as its initial state and storing none. , independent of acceptance. The released path adds a beam-select self-copy and a checkpoint-to-working copy, in total.
https://github.com/wyc1997/stree
https://github.com/itsdaniele/speculative_mamba
At and , tuning lowers the per-step kernel latency of STree from 1856 to 1085 s, The Mamba in the Llama from 2261 to 923, Snakes and Ladders from 2955 to 1417 (Activation Replay) and from 4898 to 2304 (Joint Attainment), and vLLM's kernel from 1043 to 831. Across to 8 the gain is 1.4–3.0× for the prior kernels and 1.2–1.4× for vLLM's. STree's released path takes 2079 s at against 1085 for its algorithm.
Table 3: SSM-state traffic per layer per verification step at , where one state is 4.2 MB and the batch holds 1.07 GB. Model: reads and writes times 1.07 GB. Nsight: DRAM bytes at base clock with a cold L2, summed over the launches of one step, for to 8. The two state copies of the released STree path are memory copies rather than kernels, so their bytes are taken from the model.
| Method | R/W | Model (GB) | Nsight (GB) | Note |
|---|---|---|---|---|
| vLLM snapshots | 1R + TW | 3.2–9.7 | 3.22–9.73 | grows with T |
| The Mamba in the Llama | 1R + 2W | 3.2 | 3.23–3.45 | one fused launch |
| Snakes and Ladders, Activation Replay | 3R + 3W | 6.4 | 6.37–6.55 | replay, copy, verify |
| Snakes and Ladders, Joint Attainment | 3R + 4W | 7.5 | 7.46–7.70 | two rows, then a gather |
| STree, algorithm | 2R + 1W | 3.2 | 3.22–3.35 | replay, read-only verify |
| STree, released path | 5R + 4W | 9.7 | 9.67–9.79 | two extra copies |
| ReplaySSM, non-flush | 1R | 1.1 | 1.18–1.28 | no state store |
| ReplaySSM, flush | 1R + 1W | 2.1 | 2.22–2.30 | once per ~ L/a steps |
- ReplaySSM. A non-flush step reads the checkpoint once and computes the outputs from it and the input buffer (1R). A flush step, once per about steps, also writes the new checkpoint (1R + 1W).
Table 3 sets these counts against the bytes Nsight measures for one step.
A.2 RESULTS
Figure 7 adds STree and The Mamba in the Llama to Figure 4. Neither beats vLLM's snapshots at this batch size. STree costs the vLLM kernel at and at , and The Mamba in the Llama is below it by about only at its cheapest acceptance for . Both variants of Snakes and Ladders are slower still, the vLLM kernel for Activation Replay and for Joint Attainment, so they are left out of the figure. Joint Attainment is the faster of the two at batch size one in its paper, but here the second row per request doubles the state bytes of the verify launch and lengthens its serial chain. ReplaySSM is faster than STree and faster than The Mamba in the Llama when every token is committed, and and with one token committed.
The prior papers report their speedups at small batch sizes against conventional standard decoding. At small batch the decode step is dominated by loading the model weights, and verifying tokens per step amortizes that load over several tokens. This gain belongs to speculative decoding itself and does not depend on how the SSM state is handled. At a serving batch size the weights are already amortized and the state traffic is the bottleneck (Section 3.1), so the cost of state recovery decides whether speculation pays off, and there none of the prior methods pays off against vLLM's snapshots.
Table 3 also shows that fewer bytes do not buy these methods lower latency. At STree and The Mamba in the Llama move fewer state bytes than vLLM's kernel, yet they are not faster. Their recovery kernels are serial recurrences that hold the state tile in registers for or steps, which limits occupancy and leaves most of the DRAM bandwidth idle, more so as grows.
B GDN DERIVATIONS AND ALGORITHMS
B.1 OUTER-PRODUCT AND UNROLLED FORMS
We derive Equation 3 from Equation 2 and unroll it over a replay window, the form the GDN algorithms in this appendix use.
Nemotron-3-Super-120B-A12B · Mamba-2 · 1×B300
B = 256 · L = 16 · FP32 state · baselines at their best swept launch configuration

Figure 7: Per-step speculative kernel latency against prior methods on Nemotron-3-Super-120B-A12B (Mamba-2; B = 256, L = 16, FP32 state, one B300), normalized to conventional standard decoding (T = 1). STree is measured as its algorithm, replay plus read-only tree scan without the released path's two state copies, and every kernel runs at its best swept launch configuration. STree does not depend on acceptance. Each band starts at the all-rejected cost (a = 1) and ends at the most expensive outcome, a = T for ReplaySSM, whose bars include flushes, and a = T - 1 for The Mamba in the Llama, whose replay is skipped when every draft is accepted.
Outer-product form. Distributing the product in Equation 2 gives
(7)
The second line uses , and the third collects the two rank-one terms that share the factor . Setting recovers Equation 3. Here is the value the decayed state returns for the key , so is the part of that the state does not already hold, scaled by the write strength .
ReplaySSM caches in the replay-buffer record, so this state-dependent computation runs once (Appendix B.2); the two-precision variant also keeps (Appendix B.4).
Unrolled form. Index steps within a replay window by , with the checkpoint. Substituting each into the update for , as in Equation 4, gives
Each depends on , which is Equation 8 at , so the corrections are determined by and the window's inputs alone. Once they are cached, the right-hand side at is REPLAY( ) from Equation 5 over the records , and it matches the result of conventional GDN steps up to floating-point rounding.
B.2 STANDARD DECODING
Algorithm 4 is the GDN counterpart of Algorithm 1. The two differ in the order of the first steps. Mamba-2 appends the record and then reconstructs the state, because is known before the step. GDN reconstructs first (Line 1), since the correction in Line 2 needs , and only then appends and advances the state (Lines 3–4). By Equation 8, Line 4 equals REPLAY( ) over the updated buffer, so the flush branch is unchanged.
The correction is computed in FP32 from the reconstructed state. With BF16 activations we cache it in FP16 rather than BF16, since FP16 keeps 10 mantissa bits of that result against 7 for BF16 at the same storage cost.
Algorithm 4 ReplaySSM standard decoding step for GDN
Input: current token's and
1: state before this token
2: Equation 3
3:
4:
5:
6: if then flush
7: ; store to HBM
8:
9: return
B.3 SPECULATIVE DECODING
GDN verifies drafts with the output-only evaluation of Section 5.2 and keeps the buffer handling of Algorithm 2: draft records are written behind the committed ones and the accepted prefix is committed by moving . The difficulty is that a draft's correction depends on the state just before it (Equation 3), which includes the effect of the earlier drafts in the window. Output-only verification still applies: the draft corrections follow from one triangular solve, after which Equation 6 applies with corrections in place of values. Algorithm 5 assembles the step.
Let draft sit at window position . Equation 8 at gives
The terms with use cached corrections; those with involve earlier drafts, whose corrections are unknown. Let hold the committed corrections and keys, the draft values and keys, and . Substituting Equation 9 into for all drafts and collecting the unknowns as the columns of gives
where for and 0 otherwise, is the diagonal decay matrix of Equation 6, and is the first rows of the matrix of Equation 6. The known part has the shape of Equation 6 with the draft keys in place of the queries. is unit upper triangular, so one triangular solve yields ; this is the UT transform used to parallelize delta-rule training (Yang et al., 2024). With , the outputs are Equation 6 with in place of :
enters only through and , which one pass over the checkpoint computes together.
Algorithm 5 ReplaySSM speculative verification step for GDN
Input: and of tokens
1: Load from HBM into
2: solve Equation 10 from , , and draft corrections
3: unchanged
4: Equation 11
5: if then flush committed records
6:
7: ; store to HBM
8: Drop ; keep
9: return
Later, given accepted length :
10: commit accepted drafts
Algorithm 6 Two-precision speculative verification step for GDN
Input: and of tokens
1:
2: Load from HBM into
3:
4:
5:
6: if then
7:
8:
9: Store and to HBM
10: Drop
11: return
Later, given accepted length :
12:
▷ commit accepted drafts
Algorithm 5 differs from Algorithm 2 only in its first three lines. The draft records hold corrections rather than values, so they can be appended only after Equation 10 is solved (Lines 2–3), which in turn needs the checkpoint loaded first (Line 1). Line 4 is Equation 11. Flush, acceptance, and commit are unchanged: each accepted correction depends only on the checkpoint and the records before it, so it remains a valid record, and the flush replays committed records only. In our kernel, Lines 2, 4, and 6 share one pass over the checkpoint.
B.4 LOW-PRECISION STATE
Algorithm 3 keeps low-precision error out of the recurrence because Mamba-2 records hold raw inputs: a flush replays records from the high-precision checkpoint, and nothing read from the low-precision copy is written back. GDN records hold corrections, and each correction is computed from the state its step read (Equation 3). On non-flush steps that state comes from the low-precision checkpoint, so the cached carry its rounding error. If a flush folds these corrections into the high-precision checkpoint, the error enters the recurrence, and each flush cycle adds its own: the checkpoint error becomes a sum over all past cycles, finite for any decay below one but growing without bound as the decay approaches one. Folding cached corrections is therefore stable only under a data-dependent condition.
We avoid this by caching the raw inputs as well. In the two-precision variant a GDN record holds . Non-flush steps use as before. A flush ignores the cached corrections and re-derives them from the high-precision checkpoint along Equation 8, with on the high-precision path. The low-precision copy then never enters the recurrence, and the high-precision path is exact up to its own rounding, as for Mamba-2. The two flush paths differ only when the read checkpoint is low precision. A cached correction carries the rounding of the state it was computed from, so folding it writes that error into the checkpoint, where every later window inherits it. Re-deriving it from the high-precision checkpoint and the cached raw inputs folds a clean value, so the error stays in the outputs computed before the flush. With an FP32 checkpoint the sole difference is that a cached correction is stored in the FP16 record format while a re-derived one is formed in FP32 on the fly. Our FP32 speedup measurements therefore fold the cached corrections, and all low-precision results re-derive them.
Algorithm 6 extends Algorithm 5 the way Algorithm 3 extends Algorithm 2. The changes, shown in color, are the precision choice and load (Lines 1–2), the extended record (Line 4), the re-derivation at flush (Line 7), and the two casts and stores (Lines 8–9). Acceptance, rollback, and buffer management are unchanged.
B.5 NOTATION FOR THE ALGORITHMS
Table 4 defines the symbols of Algorithms 1–6. The last column states how GDN departs from Mamba-2; “same” means the symbol is unchanged.
Table 4: Symbols in Algorithms 1–6.
| Symbol | Meaning (Mamba-2) | GDN |
|---|---|---|
| Checkpoint state in HBM; the recurrent state at the end of the last flushed window. | same | |
| High- and low-precision copies of the checkpoint. HP carries the recurrence across flushes; LP serves non-flush output computation. | same | |
| Working state on chip; written to HBM only at a flush, as the new checkpoint. | same | |
| SSM inputs of one token: decay, value, key, and query (Eq. 1). | Inputs are with write strength (Eq. 2). Records store the correction in place of ; two-precision records are . | |
| - | Correction (Eq. 3); committed and draft corrections as matrix columns (Eq. 10). | |
| Replay buffer and its records at positions to ; position 1 is the oldest record since the last flush. | same | |
| Number of committed records . Standard decoding commits on append; speculative decoding commits drafts after verification. | same | |
| Replay window size, the maximum committed history before a flush: in standard decoding, in speculative decoding. | same | |
| Number of tokens per verification step, ; their records and queries . | includes . | |
| Number of tokens committed after verification, . | same | |
| State after applying records 1 to to (Eq. 5). | Records supply (Eq. 8); a two-precision flush first recomputes from on the HP path. | |
| The outputs for from and the records, without intermediate states (Eq. 6). | Eq. 11 with in place of , after solving Eq. 10 for . | |
| Checkpoint precision loaded this step: HP on flush steps, LP otherwise. | same | |
| Casts from accumulation precision to the two checkpoint formats. | same |
C COST AND NUMERICAL ERROR ANALYSIS
C.1 ARITHMETIC INTENSITY OF CONVENTIONAL DECODING
Taking Mamba-2 as the example, we count the bytes moved and the FLOPs performed by one head in one conventional decoding step (Equation 1). The state is stored with bytes per element ( for FP32, for FP16 or BF16).
Memory traffic. The step loads and stores , moving bytes. It also reads , , , and and writes , but these are vectors of length or , negligible against the state.
FLOPs. A multiplication and an addition count as two FLOPs. The decay , the outer product , their sum, and the readout cost , , , and FLOPs, so the step performs FLOPs.
Arithmetic intensity. The ratio of FLOPs to bytes is
about 0.63 for an FP32 state and 1.25 for FP16. Batching does not raise it, because every sequence brings its own state and no state element is reused, so traffic and FLOPs scale together. An H100 needs about 20 FLOP per byte of HBM traffic to keep its FP32 CUDA cores busy, and about 300 for its BF16 tensor cores (NVIDIA Corporation, 2022). Conventional SSM decoding runs at under 1, so the step is bottlenecked by moving the state through HBM, not by arithmetic.
C.2 SSM AND ATTENTION TRAFFIC IN A HYBRID MODEL
Section 3.1 states that the SSM layers of Nemotron-3-Super-120B-A12B-NVFP4 move more bytes per decoding step than its attention layers until the context reaches about 80K tokens. We count the bytes here from the shapes in the released model configuration. Table 5 lists the SSM shapes.
State size. Each Mamba-2 layer has 128 value heads with and and stores its state in FP32, so the state is bytes, or 4 MiB per sequence. A decoding step loads and stores it, moving 8 MiB per sequence per layer.
KV cache size. Each attention layer has 2 key-value heads of dimension 128 and stores keys and values in FP8, so one token's entry is bytes, or 0.5 KiB. One SSM state therefore equals the KV cache for 4 MiB/0.5 KiB = 8192 tokens. A decoding step at context length N loads the N entries, about 0.5N KiB per sequence per layer.
Crossover. With 40 Mamba-2 layers and 8 attention layers, the SSM layers move MiB per sequence per step and the attention layers move KiB. The totals are equal at tokens, the layer ratio of five times 8K tokens times two for the load and the store. Batching does not move the crossover, since both totals scale with the number of sequences. The measured crossover in Figure 1 (bottom left) comes later, near 100K tokens, which is consistent with attention kernels having received more optimization effort (e.g., Dao et al., 2022).
C.3 MEMORY TRAFFIC
We compare the HBM traffic of conventional decoding and ReplaySSM standard decoding (Algorithm 1) for one Mamba-2 head over one replay window of L steps, with an FP32 state, BF16 values and keys, and an FP32 decay. The window has L - 1 non-flush steps and one flush step. Both methods read the current token's , , , and and write at every step; this traffic is identical on both sides and negligible (Appendix C.1), so we omit it from both totals. The buffer traffic that ReplaySSM adds is counted.
https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4/blob/main/config.json
Traffic per window. Conventional decoding loads and stores the -byte state at every step, so one window moves bytes. ReplaySSM loads the checkpoint at every step and stores it once, at the flush, bytes, and adds the buffer traffic. A record holds and in BF16 and in FP32, bytes. The -th non-flush step, , loads the buffered records and stores the current input as one record; the flush step loads all records and folds the current input into the checkpoint directly, storing no record. Over the window, reads total records and writes total , so record transfers in all. The two totals are
The checkpoint term alone gives the ratio , just above one half for any ; the buffer term grows quadratically in and sets the window-size tradeoff of Appendix C.5.
Nemotron-3-Super-120B-A12B. Its Mamba-2 layers have and . With , Equation 13 gives , a reduction in memory traffic. The figure is conservative. Mamba-2 shares each key across the 16 heads of a group, so the per-head key traffic is smaller than the record size counts.
Speculative decoding. Table 3 in Appendix A extends this count to verification steps and compares it with vLLM's snapshots and the prior recovery methods, as read and write counts and as Nsight bytes.
C.4 FLOPS FOR OUTPUT-ONLY COMPUTATION
Section 5.2 introduced output-only evaluation, which computes without materializing the state. Because and are shared by the heads of a group, is also computed once per group rather than once per head. Here we count the FLOPs.
FLOPs do not set the latency of a memory-bound kernel in standard decoding with an FP32 state (Appendix C.1), but they matter as arithmetic intensity rises. A lower-precision state moves fewer bytes per step, and speculative decoding multiplies the arithmetic per step by the number of tokens verified. Not materializing the state also saves on-chip memory. We count per head with the rule of Appendix C.1 and keep only the leading term of each count in and .
Standard decoding. Algorithm 1 materializes the state before the readout, and the main text presents only that route for standard decoding. Output-only evaluation applies there as well, so we count both routes. With h buffered records and the current input, a step applies value-key pairs. The state-and-output route (Algorithm 1) costs
• decayed checkpoint plus weighted outer products, summed: ;
• readout : ;
about in total. The output-only route evaluates
and costs
• checkpoint readout : ;
• inner products : , once per group;
• weighted sum of the values: ;
about in total. Both routes share the checkpoint readout. The term that materializes the state, , becomes , smaller by a factor , about 43 for the shapes of Appendix C.3.
Speculative decoding. Equation 6 verifies T tokens against h committed records. Its three terms cost
• checkpoint readout against T queries: ;
• inner products in : , once per group;
• weighted sum : ;
about in total, which per token is the standard-decoding count with replaced by . Materializing states instead would replay the committed state, about , and then run conventional steps of each (Appendix C.1), about . For , a full window of , and the shapes above, output-only verification needs over fewer FLOPs. Its only remaining -scale term is the single readout of the checkpoint against the queries, and becomes one small GEMM per group.
C.5 REPLAY-WINDOW TRADEOFF
A larger window amortizes each checkpoint write over more tokens but makes every step load more records. We extend the traffic analysis of Appendix C.3 to speculative decoding and solve for the window that minimizes traffic per committed token, treating the kernel as purely memory-bound. In practice the FLOPs and on-chip buffer storage of Appendix C.4 also enter, so the result is an approximation. Let be the state size in bytes, the record size, the tokens per step, and the mean number of tokens committed per step. One flush cycle commits tokens over steps and moves
• checkpoint reads, one per step: ;
• checkpoint write, one per cycle: ;
• buffer reads: at the -th step of the cycle the buffer holds committed records, , so ;
• buffer writes: T records per step, written before verification so rejected drafts are paid for too, and none at the flush step: .
Dividing by L gives the traffic per committed token,
which for equals of Equation 13. Setting gives
The optimum grows with the state-to-record size ratio and with the square root of the acceptance rate, since higher acceptance commits more tokens per checkpoint read. The model also treats a cycle as exactly steps. The flush fires when , so a cycle commits between and tokens depending on where the last acceptance lands, and flushes come somewhat more often than the model assumes.
Nemotron-3-Super-120B-A12B. With the shapes of Appendix C.3, . Standard decoding ( ) gives , and speculative decoding with and gives . The sweep in Appendix E.2.2 finds best among 8, 16, and 32 for all four models, the sampled value nearest the standard-decoding prediction. Accounting for the key shared within a group would raise , but FLOPs and on-chip storage also grow with .
C.6 QUANTIZATION ERROR PROPAGATION
Rounding modes. Storing the state in a low-precision format rounds each element to one of its two representable neighbours, which lie a distance apart that depends on the element's magnitude. Round-to-nearest (RTN) picks the closer one. Its error is at most , but its sign depends on the value, so the errors of similar values share a direction and add up. Stochastic rounding (SR) uses the position of the value within the gap. If the value lies a fraction p of the way from the lower neighbour to the upper one, SR rounds up with probability p and down with probability 1 - p, so the rounded value equals the original in expectation. SR removes the bias but not the error. Each rounding is a zero-mean error with variance , at most . The analysis below models these two behaviours as a per-element bias b and variance .
Propagation through the recurrence. Let follow Equation 1 exactly, and let be the stored state, which is rounded by after every update: with . The rounding error of step is , and the accumulated deviation of the stored state from the exact one is . Subtracting the two recurrences gives
so each step’s rounding error is decayed by later steps but never removed, and the output error is . To see the scaling, take a constant decay and errors that are independent across steps with bias and variance per element. The mean deviation converges to and the variance to , both reached after a number of steps on the order of . RTN contributes through the first term and SR only through the second. Both limits are finite for and grow without bound as . Since is a per-head, data-dependent quantity, the saturation level is head dependent. Heads with slow decay, which hold information over long horizons, accumulate the most error under this analysis.
Effect of ReplaySSM. With a single low-precision checkpoint, rounding occurs once per window rather than once per step, and the deviation decays by between injections. The limits become and , lower than the conventional ones because , but still growing as . With separate precisions, the recurrence runs on the high-precision checkpoint and the low-precision copy is read only for outputs, so its rounding error never enters Equation 17. The output error at a non-flush step is a single rounding, independent of and of the sequence length.
Limits of the analysis. The analysis predicts how error scales with decay and window size, not its magnitude. It assumes independent errors with fixed bias and variance, whereas real rounding errors depend on the values being rounded and can partly cancel. We therefore measure the error directly as the KL divergence between the next-token distributions of low-precision and FP32-state decoding; Appendix E.4.3 defines the measurement and Section 7.4 reports it.
D SERVING IMPLEMENTATION
We implement ReplaySSM in vLLM for Mamba-2 and GDN, but nothing in the design depends on vLLM. The released source code records the buffer layout, its placement in the paged state, and the cursor bookkeeping. This appendix covers the two decisions that determine how the kernels behave inside a serving engine, the flush rule under speculative decoding and execution under CUDA graphs.
D.1 FLUSH RULE UNDER SPECULATIVE DECODING
In standard decoding the buffer holds L records, each token is committed when it is appended, and the flush fires when the buffer is full (Algorithm 1). Speculative decoding appends T records per step and commits only a of them, and a is known only after the step, so the rule changes. The ring has capacity , and we keep the invariant that at most L committed records are in the buffer at the start of a step, so the T records of the step always fit behind them. Suppose a step with h committed records does not flush and all T tokens are accepted. The committed length becomes , and the next step appends T more records at positions up to . When this exceeds the capacity , and in a ring the new records overwrite committed ones. Algorithm 2 therefore flushes exactly when . The flush folds the h committed records into the checkpoint before
Table 5: Layer counts and SSM-layer shapes. Each key head serves the value heads of its group.
| Model | Weights | SSM / Attn. layers | Key heads | Value heads | ||
|---|---|---|---|---|---|---|
| Nemotron-3-Nano-4B | BF16 | 21 / 4 | 8 | 96 | 128 | 80 |
| Nemotron-3-Super-120B-A12B | NVFP4 | 40 / 8 | 8 | 128 | 128 | 64 |
| Qwen3.5-4B | BF16 | 24 / 8 | 16 | 32 | 128 | 128 |
| Qwen3.5-122B-A10B | NVFP4 | 36 / 12 | 16 | 64 | 128 | 128 |
acceptance is known, which is valid because they stay committed whatever the verifier returns, and the committed length after the step is , so the invariant holds.
The rule depends only on and , both known before the step runs, so the decision never waits on sampling. It is an early flush in the sense that it may fire when a partial acceptance would have left room. The flush interval is therefore not fixed at steps as in standard decoding but roughly steps, and higher acceptance flushes more often. This is the band in Figures 4 and 10.
D.2 CUDA GRAPHS
Serving engines capture the decode step as a CUDA graph and replay it, which removes the CPU launch overhead of the many small kernels in a step. A captured graph fixes the launch sequence for a batch size, so any decision that varies within a batch has to be made on the device. ReplaySSM needs two such decisions.
The first is whether a row flushes. Under continuous batching the rows of a batch were admitted at different times and sit at different buffer positions, so they reach their flush steps at different times. Speculative decoding adds a second source of divergence, because each row commits its own . At a given step some rows flush and others do not, and one graph has to serve them all. ReplaySSM therefore treats the flush decision as per-row data that the kernels read at run time rather than a compile-time constant. The flush work is either a branch inside the decode kernel or a separate launch specialized for flushing, from which non-flushing rows exit at once. Either way one captured graph per batch size covers both kinds of rows, and the inactive rows of a padded batch exit the same way.
The second is the commit after verification. The accepted count is known only after sampling and differs across rows. Reading it back to the host would add a device-to-host synchronization at every step and stall the pipeline. Instead a small commit kernel runs on the device. It advances each row's buffer pointer by that row's , moves the ring origin past the flushed records on a flush step, and sets the flush flags of the next step, since the rule of Appendix D.1 depends only on the resulting and on . Every cursor update stays inside the captured work.
E ADDITIONAL EVALUATION DETAILS AND RESULTS
E.1 EVALUATION SETUP
Models. Table 5 adds the layer counts and the SSM-layer shape of each model to Table 1; the kernel benchmarks in this appendix run at these shapes. Nemotron-3-Super-120B-A12B and both Qwen3.5 models ship a multi-token-prediction (MTP) head; the speculative-decoding experiments use it as the drafter on the two 120B-class models. Throughout the paper, “FP32 state” refers to the SSM state only; weights keep their released precision (Table 1) and activations are BF16. FP32 is also the SSM state precision all four models default to in vLLM. The Qwen3.5 models set mamba_ssm_dtype and Nemotron-3-Super-120B-A12B sets mamba_ssm_cache_dtype to float32 in their released configurations, and Nemotron-3-Nano-4B leaves it unset, so vLLM applies its float32 default for NemotronH models.
Configuration files of https://huggingface.co/Qwen/Qwen3.5-4B, https://huggingface.co/nvidia/Qwen3.5-122B-A10B-NVFP4, and https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4; the NemotronH default is set in vllm/model_executor/models/config.py of the vLLM repository.
Table 6: End-to-end per-step speedup over tuned conventional vLLM standard decoding (, FP32 state). Inflated by the B300 power cap, which throttles the conventional kernel inside the full model but not ReplaySSM; the kernel speedups in Table 7 are unaffected.
| Model | Weights | B=1 | B=8 | B=32 | B=128 | B=256 | B=512 |
|---|---|---|---|---|---|---|---|
| Nemotron-3-Nano-4B | BF16 | 0.98× | 1.03× | 1.16× | 1.38× | 1.47× | 1.51× |
| Nemotron-3-Super-120B-A12B | NVFP4 | 0.96× | 1.01× | 1.06× | 1.24× | 1.42× | 1.72× |
| Qwen3.5-4B | BF16 | 0.99× | 1.03× | 1.08× | 1.21× | 1.27× | 1.30× |
| Qwen3.5-122B-A10B | NVFP4 | 0.96× | 1.03× | 1.09× | 1.16× | 1.20× | 1.22× |
Table 7: Isolated SSM-kernel speedup over tuned conventional vLLM standard decoding (, FP32 state).
| Model | Weights | B=1 | B=8 | B=32 | B=128 | B=256 | B=512 |
|---|---|---|---|---|---|---|---|
| Nemotron-3-Nano-4B | BF16 | 0.73× | 1.36× | 1.69× | 1.78× | 1.80× | 1.80× |
| Nemotron-3-Super-120B-A12B | NVFP4 | 0.41× | 1.02× | 1.20× | 1.46× | 1.53× | 1.56× |
| Qwen3.5-4B | BF16 | 0.88× | 1.34× | 1.54× | 1.66× | 1.68× | 1.67× |
| Qwen3.5-122B-A10B | NVFP4 | 0.51× | 1.16× | 1.37× | 1.44× | 1.46× | 1.49× |
Hardware and software. The 4B models run on one H100 with 80 GB of HBM3, and the 120B-class models on one B300 under a 1100 W power cap, all without tensor parallelism. The performance experiments run the ReplaySSM kernels inside vLLM against vLLM's own kernels, both in the same build with CUDA graphs enabled. The low-precision experiments use emulated quantization. The KL and accuracy measurements run a Triton kernel that implements Algorithm 3 with quantized checkpoints inside the same vLLM integration, and the low-precision latency measurements (Appendix E.4.2) use separate CuTe DSL kernels.
Measurement protocol. Unless a figure states otherwise, performance measurements use an FP32 state, , and greedy decoding. Kernel latencies are standalone measurements at the model's SSM shape, after warmup and with a cold L2, and each ReplaySSM measurement covers full replay windows. Conventional kernels are timed at the best launch configuration found by a sweep (Appendix E.2.1). Reported latencies are medians over repeated launches.
E.2 STANDARD DECODING
E.2.1 BATCH-SIZE SWEEP
The baseline is vLLM's kernel at the best launch configuration found by a sweep, not at its shipped default. vLLM picks its Mamba-2 configuration from a heuristic with no tuned entry for either shape we evaluate, while the shipped GDN configuration is already the swept optimum. ReplaySSM speeds up standard decoding at serving batch sizes, where the conventional kernel is memory-bound, and not at small batches, where it is not. Figure 8 sweeps the batch size on Nemotron-3-Nano-4B, and Tables 6 and 7 give the end-to-end and kernel speedups for all four models. At the speedup is below parity (0.41–0.88× for the kernel, 0.96–0.99× for the decode step), because the conventional kernel reaches only 21.6% of peak DRAM bandwidth on H100 and 9.3% on B300, so reducing its memory traffic saves nothing. From the baseline saturates at 84–86% of peak and the kernel speedup levels off at 1.4–1.8×, while the end-to-end speedup keeps growing because the SSM layers take a larger share of the decode step as the batch grows. The end-to-end gain is also largest at short and medium sequence lengths; at long sequences attention dominates the step, since its KV-cache traffic grows linearly with sequence length (Figure 1, bottom left).
Against the shipped Mamba-2 default, the speedups at would read end-to-end and for the kernel on Nemotron-3-Nano-4B, and and on Nemotron-3-Super-120B-A12B, instead of the 1.47/1.80 and 1.42/1.53 we report.
Nemotron-3-Nano-4B · Mamba-2 · BF16 · 1×H100 · FP32 state · L = 16

Figure 8: Standard decoding across batch size on Nemotron-3-Nano-4B ( , FP32 state, one H100). Left: DRAM bandwidth of the conventional kernel as a fraction of peak. Middle and right: isolated kernel and end-to-end per-step speedup over tuned conventional vLLM.
Replay-window sweep · B = 256 · FP32 state

Figure 9: Amortized kernel speedup over tuned conventional vLLM across replay-window sizes, amortized over one replay cycle (B = 256, FP32 state). L = 16 is best in all four settings. The vertical axis starts at 0.5.
E.2.2 REPLAY-WINDOW SWEEP
The window size trades flush frequency against per-step work. A shorter window flushes more often and pays for more checkpoint writes; a longer window flushes less often, but every step reads more from the buffer. Figure 9 sweeps at . The amortized kernel latency is lowest at for all four models. The traffic analysis of Appendix C.5 predicts an optimum near for standard decoding, and is the nearest power of two.
E.3 SPECULATIVE DECODING
Both models draft with their MTP head. The acceptance length is the mean number of tokens committed per step. Requests are GSM8K prompts (Cobbe et al., 2021) served at a fixed batch size B; every request generates 256 tokens with end-of-sequence ignored, and the timed window covers the whole request, prefill included, after warmup. Throughput is the total number of generated tokens divided by the wall time.
Table 8: ReplaySSM speculative decoding over conventional speculative decoding, Nemotron-3-Super-120B-A12B-NVFP4, .
| T | Batch size B | ||||
|---|---|---|---|---|---|
| 1 | 32 | 128 | 256 | 512 | |
| 2 | 0.88× | 1.15× | 1.24× | 1.34× | 1.78× |
| 4 | 1.04× | 1.13× | 1.29× | 1.77× | 1.85× |
| 6 | 1.05× | 1.03× | 1.48× | 1.91× | 2.11× |
| 8 | 1.17× | 1.38× | 1.90× | 2.09× | 2.34× |
Table 9: ReplaySSM speculative decoding over conventional speculative decoding, Qwen3.5-122B-A10B-NVFP4, .
| T | Batch size B | ||||
|---|---|---|---|---|---|
| 1 | 32 | 128 | 256 | 512 | |
| 2 | 1.00× | 1.05× | 1.35× | 1.36× | 1.73× |
| 4 | 1.12× | 1.22× | 1.43× | 1.79× | 2.10× |
| 6 | 0.87× | 1.17× | 1.42× | 1.99× | OOM |
| 8 | 0.96× | 1.12× | 1.84× | 2.09× | OOM |
Table 10: Mean acceptance length at .
| Nemotron-3-Super-120B-A12B-NVFP4 | Qwen3.5-122B-A10B-NVFP4 | |||
|---|---|---|---|---|
| Conventional | ReplaySSM | Conventional | ReplaySSM | |
| T=2 | 1.95 | 1.95 | 1.95 | 1.95 |
| T=4 | 3.43 | 3.44 | 3.56 | 3.57 |
| T=6 | 4.24 | 4.20 | 4.73 | 4.76 |
| T=8 | 4.40 | 4.44 | 5.52 | 5.53 |
E.3.1 SERVING THROUGHPUT ACROSS BATCH SIZE AND VERIFICATION LENGTH
Tables 8 and 9 give the throughput of ReplaySSM speculative decoding relative to conventional vLLM speculative decoding over the full grid of and , and Table 10 the acceptance lengths at . Three points hold on both models. At the two methods are close (0.88–1.17× on Nemotron-3-Super-120B-A12B-NVFP4, 0.87–1.12× on Qwen3.5-122B-A10B-NVFP4), because at small batch the state traffic that ReplaySSM removes is not the bottleneck. At larger batch the speedup grows with both and , and it has two sources. Conventional speculation stores one state snapshot per draft token, so its state traffic and storage grow with and together; the storage caps the concurrency that GPU memory allows, and its throughput saturates from and at large falls below standard decoding. ReplaySSM writes the state only on flush steps and verifies with the faster kernel of Figure 4, so it keeps scaling. Acceptance lengths agree within 0.05 tokens in every cell (Table 10), so the gain does not come from a different acceptance behavior.
E.3.2 KERNEL LATENCY ON GDN
Figure 10 repeats Figure 4 for Qwen3.5-122B-A10B. GDN shows the same trend as Mamba-2. The conventional kernel costs a standard decoding step at and at , while ReplaySSM stays at up to and at , flushes included, with each band spanning to (Appendix D.1). The step between and comes from tiling. Some kernel internals pad the verification window to a multiple of four tokens, so pays for eight.
E.4 LOW-PRECISION STATE
E.4.1 FORMATS AND QUANTIZATION
We store checkpoints in four formats. FP32 and FP16 are unscaled. FP8 uses E4M3 elements with one FP32 scale per block of 128 contiguous elements along the key dimension, which is one scale per state row since for all four models. NVFP4 uses E2M1 elements with one E4M3 scale per block of 16 elements and one FP32 scale per state. A flush accumulates the new checkpoint in FP32 from the recurrence checkpoint and the buffered inputs and casts that FP32 result into each stored copy independently, never one copy from another. The cast into the recurrence
On Nemotron-3-Super-120B-A12B-NVFP4 at B = 256, conventional speculation peaks at T = 2 with 9,551 tokens/s and drops to 5,644 at T = 8, below standard decoding at 6,807.
Qwen3.5-122B-A10B · GDN · 1×B300
B = 256 · L = 16 · FP32 state

Figure 10: Speculative kernel latency on Qwen3.5-122B-A10B (GDN; B = 256, L = 16, FP32 state), normalized to conventional standard decoding (T = 1). ReplaySSM bands span all drafts rejected to all drafts accepted and include flush costs.
Non-flush SSM kernel · 1×B300 · B = 256 · L = 16
under each bar: read checkpoint, then recurrence checkpoint

Figure 11: Non-flush kernel speedup over an FP32 state by read-checkpoint precision (B = 256, L = 16, one B300).
checkpoint uses stochastic rounding when that checkpoint is FP16 or FP8, and the cast into the read checkpoint uses round-to-nearest. A shared checkpoint is a single copy written with stochastic rounding; Appendix E.4.5 shows what happens when it is written with round-to-nearest instead. Quantization applies to decoding only. Prefill computes the state at full precision, and rounding enters only through checkpoint writes during generation. All low-precision results use L = 16 and standard decoding. Speculative decoding changes how many tokens a step verifies, and acceptance sets when flushes occur. Neither changes which values are rounded, so the error mechanism is the same.
E.4.2 LATENCY OF LOW-PRECISION READS
The point of the separate checkpoints in Section 6 is to keep rounding error out of the recurrence. A lower-precision read checkpoint also moves fewer bytes on every non-flush step, so it can lower latency as well, and Figure 11 quantifies that gain. It measures the non-flush kernel of standard decoding at B = 256 with CuTe DSL kernels, varying only the read checkpoint while the FP16+SR recurrence checkpoint, which a non-flush step never touches, stays fixed. Relative to an FP32 state, an FP16 read runs faster on Mamba-2 and on GDN, an FP8 read and , and an NVFP4 read and . These are non-flush ratios. Over a full window the gain is smaller, since flush steps still read and write the higher-precision checkpoint; on Mamba-2 at B = 512 the NVFP4 read gives on non-flush steps and over the window. Under

Shared checkpoint: FP32 (replay floor) FP16 + SR FP8 + SR NVFP4 + SR
Separate (read / recurrence): FP8 / FP32 FP8 / FP16+SR NVFP4 / FP32 NVFP4 / FP16+SR
Figure 12: Output KL from conventional FP32-state decoding under teacher forcing on PG-19 ( ), the three models outside Figure 5, on one shared vertical axis. Nemotron-3-Nano-4B stops at 32K (see text). Arrows mark the gap between a shared NVFP4 checkpoint and NVFP4 reads with FP32 recurrence at the last plotted N.
speculative decoding it is smaller still, since flushes are more frequent and each step carries more arithmetic.
E.4.3 OUTPUT KL ACROSS MODELS
Setting. We decode four streams, each one book from the PG-19 test split (Rae et al., 2019), from a 512-token prompt under teacher forcing. At every step we record the model’s logits and replace the sampled token with the book’s next token, so all configurations consume the same token sequence and only the recurrent state differs. The metric is over the full vocabulary, averaged over the four streams and the 256 positions ending at N, where is conventional FP32-state decoding with CUDA graphs. One seed per configuration.
Results. Figure 12 shows the three models not in Figure 5, and three points hold across all four. First, a shared low-precision checkpoint accumulates error with N, while a separate recurrence removes most of the growth. At the last plotted N, NVFP4 reads with FP32 recurrence sit 13–29× below a shared NVFP4 checkpoint (arrows in Figure 12), and FP16+SR recurrence tracks FP32 recurrence within 1.25× at every point but one. The growth is reduced rather than removed, since on the two Nemotron models the curves with a separate recurrence still rise a few times over the range. Second, a lower read precision raises the starting point of a curve. On Nemotron-3-Nano-4B at N = 16, an FP8 read sits at and an NVFP4 read at , against a floor of . Third, Nemotron-3-Super-120B-A12B-NVFP4 and Qwen3.5-122B-A10B-NVFP4 have floors about two orders of magnitude above the 4B models, at . They differ from the 4B models in size, weight precision, and expert routing at once, and our data do not attribute the floor to any one of these. Two conventional FP32 runs that differ only in execution path, eager against CUDA graph, are already this far apart on these models, so the floor is numerical noise rather than error that ReplaySSM introduces, and each configuration should be judged by its distance above the floor of its panel. Nemotron-3-Nano-4B is plotted only to 32K, because beyond that its FP32 reference becomes nearly one-hot on the end-of-turn token, which deflates every configuration’s KL.
The mean probability of the end-of-turn token is 0.76 at 64K and 0.88 at 128K. The other three models place no measurable probability on that token at any N.
Qwen3.5-4B · GDN · BF16 · 1×H100 · replay-window sweep

Figure 13: Output KL across replay-window sizes on Qwen3.5-4B. requantizes the state at every step, as conventional decoding does, and exists only for a shared checkpoint. Separate configurations use FP32 recurrence. The grey band is the FP32-state ReplaySSM floor over .
E.4.4 WINDOW-SIZE SENSITIVITY OF KL
Figure 13 repeats the KL measurement on Qwen3.5-4B at for two shared and two separate configurations; the separate ones use FP32 recurrence here. is conventional decoding, where the state is written and downcast at every step. It exists only for a shared checkpoint, since the separate configurations need the non-flush steps that a window of creates.
The two kinds of configuration respond to in the two ways Section 6 describes. A shared checkpoint is requantized at every flush, so a longer window means fewer rounding events and a lower KL. From to 64 the number of checkpoint writes falls . Over the same range the KL of the shared FP8 checkpoint falls at and at , and that of the shared NVFP4 checkpoint falls and . The gain is less than proportional to the number of rounding events, as Appendix C.6 predicts. At the we use, the shared FP8 and NVFP4 checkpoints sit and below conventional per-step quantization at , which is the first benefit of ReplaySSM for a low-precision state. The separate configurations barely change across . They move by between and 64, the same as the scatter of the FP32-state floor itself (). Their read checkpoint is regenerated from the unquantized recurrence at every flush and never fed back, so each output sees one rounding of a clean state however many flushes preceded it, and barely affects it.
E.4.5 STOCHASTIC ROUNDING AGAINST ROUND-TO-NEAREST
Appendix E.4.1 writes the recurrence checkpoint with stochastic rounding and the read copy with round-to-nearest. Table 11 gives the reason. It compares the two rounding modes on a shared checkpoint at through the ratio of the RTN KL to the SR KL at matched precision, which cancels the FP32 floor. At short generation lengths RTN is close to or below SR. At it gives the SR error for NVFP4 and for FP8 across the four models, because SR's random error is present at full size from the first rounding and grows only in quadrature, while RTN's bias is small per step but adds linearly and overtakes it once enough steps have accumulated (Appendix C.6). The ratio then rises with and crosses one by 16K tokens for FP8 on every model, and on the two GDN models RTN drives the FP8 and NVFP4 state non-finite by 128K and 64K tokens while SR stays finite everywhere. FP16, not tabulated, shows the same crossover on the two Mamba-2 models, where RTN reaches SR on Nemotron-3-Nano-4B at 32K and on Nemotron-3-Super-120B-A12B at 128K, and stays within on the GDN models. A checkpoint
On GDN the corrections u cached on non-flush steps are computed from the low-precision read checkpoint and enter the outputs of the rest of the window, which leaves a small dependence on L. The flush re-derives them from the high-precision path (Appendix B.4), so this error does not reach the recurrence.
Table 11: Output KL of a shared checkpoint with round-to-nearest divided by that with stochastic rounding, at matched precision and . Above one, RTN is worse. div.: the RTN state became non-finite before this . Nemotron-3-Nano-4B is read to 32K (Appendix E.4.3).
| Model | Precision | Generation length N | |||
|---|---|---|---|---|---|
| 1K | 8K | 32K | 128K | ||
| Nemotron-3-Nano-4B | FP8 | 0.59 | 1.3 | 6.6 | - |
| NVFP4 | 0.51 | 0.67 | 0.90 | - | |
| Nemotron-3-Super-120B-A12B | FP8 | 1.1 | 1.4 | 2.0 | 2.2 |
| NVFP4 | 0.44 | 0.45 | 1.4 | 0.95 | |
| Qwen3.5-4B | FP8 | 0.76 | 1.2 | 2.2 | div. |
| NVFP4 | 0.40 | 1.0 | 4.1 | div. | |
| Qwen3.5-122B-A10B | FP8 | 0.94 | 0.85 | 1.7 | div. |
| NVFP4 | 0.50 | 1.4 | 13 | div. | |
that is read back into the recurrence therefore needs SR, and a copy that is rounded once and never fed back is better served by RTN.
E.4.6 DOWNSTREAM ACCURACY
Protocol. MMLU-Pro has 12,032 questions, GPQA-Diamond 198 questions with three repetitions, and Math-L5 1,324 questions. Each model uses its recommended sampling settings. The Nemotron models use temperature 1.0 and top-p 0.95; Qwen3.5-4B uses temperature 1.0, top-p 0.95, top-k 20, and a presence penalty of 1.5; Qwen3.5-122B-A10B uses temperature 0.6, top-p 0.95, and top-k 20. The output budget of each model and benchmark is set near the 99th percentile of the lengths at which FP32 decoding finishes, and a generation that hits the budget counts as wrong, since lenient grading would favor the configurations that truncate most. Every configuration of a model shares the budget, batch size, sampling settings, and per-question seed, and the change from FP32 is computed on the questions the two runs share, so the comparison is paired.
Results. Table 12 gives the per-model changes behind Table 2 together with the mean and 90th-percentile output length of each cell. Shared FP16+SR and FP8+SR checkpoints stay within benchmark noise of FP32 on every model. The loss of a shared NVFP4+SR checkpoint follows generation length. On every model, GPQA-Diamond has the longest generations of the three benchmarks and also the largest loss, 31.3 points on Nemotron-3-Nano-4B, 12.5 on Nemotron-3-Super-120B-A12B, 3.2 on Qwen3.5-4B, and 5.2 on Qwen3.5-122B-A10B, against at most 2.9 points on MMLU-Pro and Math-L5 for the three larger models. Nemotron-3-Nano-4B, the smallest model, loses 21 to 42 points on all three. Part of the GPQA-Diamond loss is failure to finish. On Nemotron-3-Super-120B-A12B, of the shared-NVFP4 generations hit the budget against for FP32, the loss among pairs that both finished is 2.8 points, and the length columns show the same with a mean of 28.3K tokens and a 90th percentile at the budget. This is consistent with error that accumulates over a generation (Section 3.3), and Appendix E.4.7 confirms it within each benchmark, where length is not confounded with the benchmark. Separate checkpoints recover most of the loss. With an NVFP4 read and FP16+SR or FP8+SR recurrence, the three larger models stay within 2 points of FP32 on every benchmark, and Nemotron-3-Nano-4B still loses 5.6 to 6.7 points on GPQA-Diamond and 1.5 to 2.8 elsewhere. GPQA-Diamond has 594 generations per cell and a question-clustered standard error of 2.5 to 3 points, so only its larger changes are resolved.
Table 12: Downstream accuracy for every model, configuration, and benchmark. is the change from that model's FP32 reference in percentage points, and the FP32 row gives its absolute accuracy. Tokens are the mean and 90th percentile of output length in thousands.
| Configuration | MMLU-Pro | GPQA-Diamond | Math-L5 | |||
|---|---|---|---|---|---|---|
| Δ (pp) | Tokens (K) | Δ (pp) | Tokens (K) | Δ (pp) | Tokens (K) | |
| Nemotron-3-Nano-4B | ||||||
| FP32 accuracy (%) | 67.2 | 2.9 / 6.9 | 56.7 | 10.3 / 26.7 | 89.5 | 2.1 / 4.5 |
| Shared FP16+SR | -0.3 | 2.9 / 6.8 | -2.2 | 10.7 / 29.9 | -1.1 | 2.2 / 4.9 |
| Shared FP8+SR | -0.6 | 3.0 / 6.9 | -1.0 | 10.7 / 29.0 | -1.0 | 2.2 / 4.9 |
| Shared NVFP4+SR | -21.0 | 2.1 / 3.6 | -31.3 | 4.3 / 5.0 | -41.7 | 1.7 / 3.2 |
| Separate FP8 / FP16+SR | -0.6 | 2.9 / 6.7 | -3.5 | 10.6 / 28.8 | -0.6 | 2.2 / 4.5 |
| Separate NVFP4 / FP16+SR | -1.7 | 3.1 / 7.2 | -6.7 | 12.0 / 33.0 | -1.5 | 2.2 / 4.7 |
| Separate NVFP4 / FP8+SR | -2.1 | 3.0 / 7.0 | -5.6 | 11.7 / 31.3 | -2.8 | 2.3 / 4.9 |
| Nemotron-3-Super-120B-A12B | ||||||
| FP32 accuracy (%) | 81.4 | 3.7 / 10.4 | 79.3 | 19.6 / 66.1 | 95.5 | 4.2 / 9.4 |
| Shared FP16+SR | +0.3 | 3.7 / 10.4 | -3.4 | 19.5 / 64.4 | +0.2 | 4.2 / 9.6 |
| Shared FP8+SR | +0.2 | 3.7 / 10.2 | 0.0 | 19.5 / 68.4 | +0.7 | 4.2 / 10.0 |
| Shared NVFP4+SR | -0.9 | 3.7 / 10.5 | -12.5 | 28.3 / 93.2 | -2.9 | 5.0 / 10.2 |
| Separate FP8 / FP16+SR | +0.2 | 3.7 / 10.3 | +0.2 | 18.8 / 65.5 | +0.3 | 4.2 / 10.1 |
| Separate NVFP4 / FP16+SR | +0.5 | 3.8 / 10.8 | -1.4 | 20.2 / 72.7 | -0.1 | 4.5 / 10.1 |
| Separate NVFP4 / FP8+SR | +0.2 | 3.7 / 10.5 | -1.4 | 19.4 / 64.9 | +0.1 | 4.3 / 9.6 |
| Qwen3.5-4B | ||||||
| FP32 accuracy (%) | 79.0 | 12.5 / 27.4 | 76.3 | 29.5 / 61.0 | 93.7 | 15.9 / 31.3 |
| Shared FP16+SR | -0.5 | 12.5 / 27.1 | -1.5 | 29.9 / 62.2 | -0.3 | 15.9 / 32.4 |
| Shared FP8+SR | -0.4 | 12.5 / 27.1 | -0.5 | 29.5 / 58.0 | -0.5 | 16.0 / 31.8 |
| Shared NVFP4+SR | -1.1 | 11.8 / 25.9 | -3.2 | 27.8 / 60.4 | -1.7 | 16.2 / 32.9 |
| Separate FP8 / FP16+SR | -0.4 | 12.5 / 27.3 | +2.4 | 29.7 / 58.8 | -0.3 | 16.2 / 32.5 |
| Separate NVFP4 / FP16+SR | -0.2 | 12.4 / 27.1 | +0.7 | 29.6 / 58.0 | -0.1 | 15.9 / 31.3 |
| Separate NVFP4 / FP8+SR | -0.6 | 12.4 / 27.3 | +1.5 | 29.4 / 60.6 | -0.3 | 16.1 / 32.3 |
| Qwen3.5-122B-A10B | ||||||
| FP32 accuracy (%) | 82.9 | 8.2 / 17.0 | 82.7 | 15.2 / 27.8 | 90.7 | 12.2 / 23.7 |
| Shared FP16+SR | +0.1 | 8.1 / 16.7 | -1.0 | 15.3 / 28.3 | +1.2 | 12.0 / 22.7 |
| Shared FP8+SR | -0.1 | 8.3 / 17.1 | -2.7 | 15.5 / 29.2 | +0.9 | 12.1 / 23.4 |
| Shared NVFP4+SR | -0.5 | 7.2 / 13.9 | -5.2 | 12.9 / 33.8 | +2.5 | 9.8 / 16.4 |
| Separate FP8 / FP16+SR | +0.6 | 7.9 / 16.2 | 0.0 | 15.3 / 28.4 | +0.1 | 12.4 / 24.4 |
| Separate NVFP4 / FP16+SR | +0.8 | 7.8 / 15.8 | -2.0 | 15.5 / 30.4 | +1.3 | 12.0 / 22.6 |
| Separate NVFP4 / FP8+SR | +0.8 | 7.9 / 16.1 | -1.7 | 15.7 / 30.2 | +1.5 | 11.9 / 22.6 |
Long input context. The three benchmarks above test long context on the output side, with prompts of about 1K tokens and generations that reach tens of thousands. RULER-128K (Hsieh et al., 2024) tests it on the input side, with prompts of about 130K tokens and answers of 18 to 81 tokens. Table 13 gives the RULER score of every configuration on its 13 tasks with 100 examples each, under RULER's protocol of greedy decoding with thinking disabled. Every configuration is within 0.3 points of FP32 on every model, a shared NVFP4+SR checkpoint included. This is expected. Quantization applies to decoding only (Section 7.4), so a request here quantizes its post-prefill state once and flushes at most five times, against hundreds to nearly two thousand flushes per request on the reasoning benchmarks. The accuracy loss of a shared low-precision checkpoint therefore appears with long outputs, not with long inputs.
E.4.7 ACCURACY BY GENERATION LENGTH
A single accuracy number does not show where a configuration loses. Figure 14 therefore extends Figure 6 to all four models and three benchmarks and plots accuracy against generation length for the FP32 reference, the shared NVFP4+SR checkpoint, and NVFP4 reads with FP8+SR recurrence. Within each model and benchmark, the bins are quartiles of FP32 output length per question. Each generation is binned by the length of its FP32 counterpart, not its own, since a degraded configuration rambles and would otherwise look long. The FP32 curve comes from a separate FP32 run, because the run that defines the bins puts all of its own truncated generations in the top bin. Each bin is
Table 13: RULER-128K score for every model and configuration. The FP32 row gives the absolute score and the other rows the change from it in percentage points.
| Configuration | Nemotron-3-Nano-4B | Nemotron-3-Super-120B-A12B-NVFP4 | Qwen3.5-4B | Qwen3.5-122B-A10B-NVFP4 |
|---|---|---|---|---|
| FP32 score | 90.4 | 96.9 | 95.2 | 96.8 |
| Shared FP16+SR | +0.1 | -0.1 | +0.1 | -0.1 |
| Shared FP8+SR | 0.0 | -0.1 | +0.1 | 0.0 |
| Shared NVFP4+SR | -0.3 | 0.0 | 0.0 | +0.1 |
| Separate FP8 / FP16+SR | +0.1 | -0.1 | +0.2 | +0.1 |
| Separate NVFP4 / FP16+SR | +0.2 | -0.1 | +0.1 | +0.1 |
| Separate NVFP4 / FP8+SR | +0.2 | -0.2 | +0.1 | +0.2 |

Reference length N (median of the FP32 bin)
FP32 (reference)
NVFP4 + SR (shared)
NVFP4 read / FP8+SR recurrence
Figure 14: Accuracy by quartile of FP32 reference generation length, all models and benchmarks. Bins are defined by the FP32 run. Within each benchmark row the three larger models share one vertical range; the Math-L5 row starts at .
plotted at its median reference length. FP32 accuracy itself falls by 21 to 50 points across the bins on MMLU-Pro and GPQA-Diamond, since longer generations come from harder questions, so the quantity to read is the gap between a configuration and FP32 within a bin, not the absolute accuracy.
Wherever the shared NVFP4 checkpoint loses accuracy, its gap to FP32 grows with length. On the three larger models it matches FP32 in the short bins and loses in the top bin, by up to 28.2 points on Nemotron-3-Super-120B-A12B GPQA-Diamond, and every such top-bin loss comes with more truncation than FP32. On Nemotron-3-Nano-4B it is below FP32 in every bin, with a deficit that grows from 5 to 29 points on MMLU-Pro and from 8 to 66 on Math-L5. NVFP4 reads with FP8+SR recurrence stay within the FP32 interval in 41 of the 48 bins.
F FUTURE WORK: SKIPPING CHECKPOINT READS BY DECAY
ReplaySSM removes the state write from non-flush steps but still reads the checkpoint at every step, because output computation needs it (Section 4). The checkpoint enters each step only through the cumulative decay. On a non-flush step with h buffered records the output is
and at a flush the new checkpoint is (Equation 5). Both checkpoint terms are scaled by a cumulative decay that is data dependent and differs across heads. A head with fast decay reaches a negligible within a few steps of a window, while a slow-decaying head, which carries information over long horizons, does not.
Once falls below what the output precision resolves, the checkpoint term can be dropped for that head. A non-flush step then moves only the buffer reads and the record write, and a flush no longer depends on the old checkpoint and becomes a pure write. In the traffic analysis of Appendix C.3, the L checkpoint reads per window disappear for such a head and leave one checkpoint write plus the buffer traffic, so the state traffic of that head falls well below half of conventional decoding. Since the checkpoint term is scaled by , a head whose decay is small but not negligible could read a coarser copy of the checkpoint instead of skipping it: the low-precision read checkpoint of Section 6 already provides such a copy, and its rounding error enters the output scaled by .
G ADOPTION
ReplaySSM is adopted in large-scale production models and open-source inference software. GLM-5.3-Flash uses ReplaySSM in its production serving stack (Z.ai, 2026a), and the Z.ai infrastructure report (Z.ai, 2026b) describes adding it to the KDA decode kernel. Kimi-K3 (Kimi Team, 2026) caches the SSM inputs of draft tokens for verification in its KDA layers and cites ReplaySSM as a concurrent approach. ReplaySSM is also integrated into the open-source serving systems TensorRT-LLM, vLLM, and SGLang and into the kernel library FlashInfer.
The authors of this paper contributed the blog post (Dao AI Lab, 2026) and implementations in TensorRT-LLM, vLLM, and FlashInfer, covering standard and speculative decoding for Mamba-2 and GDN.
https://github.com/NVIDIA/TensorRT-LLM/pull/14203
https://github.com/vllm-project/vllm/pull/48018,
https://github.com/vllm-project/vllm/pull/52506, and
https://github.com/vllm-project/vllm/pull/52928.
https://github.com/flashinfer-ai/flashinfer/pull/3975 and https://github.com/flashinfer-ai/flashinfer/pull/4081.