Manuscript Offprint
arXiv:2609.38166LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Recent LLMs increasingly adopt hybrid designs that replace standard attention with linear attention, such as Gated DeltaNet (GDN) and Kimi Delta Attention (KDA). Although they compress the context into a fixed-size recurrent state and substantially reduce the cost of long-context processing, repeatedly reading and updating that state remains a major inference bottleneck. Quantization offers a natural way to reduce this cost, but can significantly degrade model quality, due to the accumulation of rounding errors and the presence of outlier rows and columns in the state. To address these challenges, we propose LeapQuant, a training-free method that achieves near-lossless performance under 8-bit recurrent-state quantization. First, to mitigate error accumulation, we propose per-window quantization, which leaps over a window of tokens and quantizes the state only once at its end. Within a window, outputs are computed from the fixed low-bit state together with high-precision buffered updates. Second, to reduce the error introduced by each quantization, LeapQuant retains the state's largest outliers as a few high-precision Compensator Tokens, which share the update path of real tokens. We then smooth the remaining residual before quantization to further reduce the error. Comprehensive experiments across the Qwen, Kimi, and GLM model families show that LeapQuant substantially reduces memory and compute costs during inference. With accuracy comparable to the FP32 baseline, it achieves average speedups of at the kernel level and for end-to-end inference on NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs.
1 INTRODUCTION
Linear attention, which compresses the token history into a fixed-size recurrent state, is now widely used in long-context large language models. For instance, recent hybrid architectures in the Qwen, Kimi, and GLM model families replace many standard attention layers with recurrent linear attention layers such as Gated DeltaNet (GDN) and Kimi Delta Attention (KDA) (Qwen Team, 2025; Yang et al., 2025; Team et al., 2025). By compressing the token history, these layers reduce the computation and memory growth associated with long context, making inference more efficient.
However, the recurrent state in linear attention still imposes substantial memory bandwidth and capacity costs during inference. For each generated token, a linear-attention layer loads its state matrix from HBM, applies a lightweight update, computes the token output, and writes the updated matrix back to HBM. This full-state transfer repeats at every decoding step. Since the update and readout perform little arithmetic relative to the bytes transferred, inference throughput is bottlenecked by HBM bandwidth (Williams et al., 2009). Consequently, reading and writing the recurrent states across many linear attention layers and concurrent requests accounts for a significant fraction of decoding time, as shown in Figure 1(a). Additionally, the recurrent state consumes substantial GPU memory when prefix caching is enabled, as serving systems retain separate states for each cached prefix (Figure 1(b)) (Pan et al., 2025).
Equal contribution

(a)

(b)
Figure 1: Recurrent-state access is a major cost of LLM serving. (a) Decode-time breakdown for GLM-5.3-Flash-NVFP4 on the B200 GPU at batch size 256. The share spent on linear attention stays roughly constant as context length grows. (b) GPU memory footprint for Qwen3.5-9B with prefix caching, assuming one linear attention state per 1,024 cached tokens.
Quantizing the recurrent state is a natural way to reduce both memory traffic and footprint, but doing so in a way that preserves model accuracy is challenging. In particular, a naive approach that stores the state in a standard low-bit format and re-quantizes it after every token can substantially degrade accuracy, especially over long thinking traces. We find that accuracy degradation arises from two sources of error. First, quantization error accumulates recurrently: each update starts from an already quantized state, and quantizing the result introduces another rounding error, causing the state to deviate progressively from the FP32 trajectory over a long generation (Figure 3). Second, large outliers are often concentrated in a few rows and columns of the state. These outliers widen the quantization range and force smaller values onto coarse quantization levels, amplifying the error introduced each time the state is quantized. Accurate low-bit quantization therefore requires reducing both how often error is introduced and how much error each quantization introduces.
We propose LeapQuant, a training-free method for recurrent-state quantization that achieves near-lossless model quality. LeapQuant introduces two key ideas that directly address the above sources of error. First, per-window quantization limits error accumulation by allowing LeapQuant to leap over a window of tokens before quantizing the state again (Figure 2). At the beginning of each window, LeapQuant stores the recurrent state in low precision. Within the window, it holds this state fixed, buffers higher-precision token updates, and computes each output from the fixed state and buffered updates. Only at the end of the window does it reconstruct and quantize the full updated state for the next window. As a result, LeapQuant introduces quantization error less frequently, slowing its accumulation over long contexts.
To address quantization error caused by outliers, LeapQuant introduces Compensator Tokens, which capture the state's largest outliers in high precision and thereby reduce the error of each quantization (Figure 4). Each Compensator Token represents a high-precision outer product of two vectors, capturing large-magnitude patterns across both rows and columns and leaving a residual that is easier to quantize. Since these rank-one terms have the same form as real-token updates, LeapQuant incorporates them directly into the window's update path using only a few additional vectors and no separate recurrent state update. LeapQuant further smooths the residual across channels before quantization to reduce error. Both key techniques in LeapQuant are training-free and require no calibration data.
Our evaluation spanning the Qwen, Kimi, and GLM families demonstrates that LeapQuant substantially reduces memory costs and improves inference throughput. Across 12 model–task pairs, LeapQuant achieves accuracy comparable to the FP32 baseline while reducing state memory traffic by and end-to-end memory footprint by up to 56%. Across NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs, LeapQuant achieves average speedups of at the kernel level and for end-to-end inference.

(a) Per-token Quantization
(b) Per-window Quantization
Figure 2: Per-token versus per-window quantization. Per-token quantization re-quantizes the full state after every update. Per-window quantization holds the quantized boundary state fixed, buffers the updates of the window in higher precision, and reconstructs the state from them; the full state is quantized only once per window, into .
a series of works improve its expressiveness with data-dependent gating and delta-rule updates, including GLA (Yang et al., 2023), Mamba2 (Dao & Gu, 2024), DeltaNet (Schlag et al., 2021; Yang et al., 2024), Gated DeltaNet (Yang et al., 2025), and KDA (Team et al., 2025). Their chunkwise formulation (Yang et al., 2023) materializes the state in HBM only at chunk boundaries during training and prefill, and is implemented using efficient Triton kernels (Tillet et al., 2019) in libraries such as FLA (Yang & Zhang, 2024). Recent LLMs combine a few full or sparse attention layers with a majority of linear attention layers (Qwen Team, 2025; Team et al., 2026; Z.ai, 2026; Blakeman et al., 2025), and these hybrid models have become a common design for long-context and long-reasoning workloads. These works focus on the architecture and its full-precision kernels; the storage precision of the recurrent state is not their concern.
Quantization for ML models. Quantization has become a standard approach for reducing the memory requirements for LLM inference. Weight-only methods such as GPTQ (Frantar et al., 2022) and AWQ (Lin et al., 2024) compress the weights to 4 bits, and SmoothQuant (Xiao et al., 2023) further quantizes the activations by migrating their outliers into the weights. As the context grows, the KV cache becomes the dominant memory cost. KIVI (Liu et al., 2024) quantizes keys per channel and values per token, KVQuant (Hooper et al., 2024) isolates outliers into a sparse full-precision component. SVDQuant (Li et al., 2024) and GEAR (Kang et al., 2024) absorb outliers into a high-precision low-rank component and quantize the residual. For state space models, Quamba (Chiang et al., 2025b) and MambaQuant (Yue et al., 2025) quantize the weights and activations, and Quamba2 (Chiang et al., 2025a) and Q-Mamba (Tianqi et al., 2025) further quantize the cached SSM state. These methods are specialized to Mamba's selective SSM, whose state is updated differently from that of other linear attention architectures.
State management in linear attention serving. Since the recurrent state is overwritten at every token, serving systems need extra mechanisms to keep or restore earlier states. ReplaySSM (Liou & Dao, 2026) supports speculative decoding by keeping the state at a checkpoint and recomputing the recent tokens for efficient rollback of the state. Per-window quantization similarly starts from a stored boundary state and replays recent updates, but uses this structure to improve quantization accuracy. Marconi (Pan et al., 2025) enables prefix caching for hybrid models by saving the states of cached prefixes as checkpoints, at the cost of a larger memory footprint.
3 METHOD
3.1 PRELIMINARIES
We consider one head of a linear attention model with a recurrent state matrix , query , and value and output . We study recurrences whose update is a diagonal decay followed by a single rank-one delta-rule (Schlag et al., 2021) update:
Here is the diagonal decay (Team et al., 2025), is the key vector, and is a read vector ( for models without the delta rule). Appendix A shows how other linear attention models fit this form.
For state quantization, denote , where is the b-bit quantization operator, is the original state, and is its quantized representation, including scale metadata. We use for the independent trajectory of equation 1 without state quantization and for its quantization-induced deviation, where is the corresponding dequantization operator. When a quantized state participates in arithmetic below, its dequantization is implicit.
3.2 PER-WINDOW QUANTIZATION
A naïve state-quantized model quantizes and dequantizes the full state after every decode step. At step t, it first computes the full-precision updated recurrent state from the previously quantized state , then quantizes the resulting new recurrent state:
Because every update starts from an already quantized state, its rounding error is carried into subsequent steps and can accumulate over long contexts (Appendix B.1). Per-step quantization therefore introduces a new error at every token. Figure 3 tracks the error of the quantized state against the FP32 trajectory of Qwen3.5-9B over 64K decoded tokens. Under per-step quantization, the error grows steadily with the context length, even for BF16. Stochastic rounding helps little, as it only lowers the BF16 error at 64K by 3× and makes INT8 diverge. In contrast, quantizing only once per 16-token window, as introduced below (the -w variants), lowers the error at 64K by 100× for BF16 and by 39× for INT8. LeapQuant further reduces the error of each window-boundary quantization and keeps the lowest error throughout, even below per-window BF16 at half the bits.

Figure 3: State MSE over 64K decoded tokens on PG-19 (Qwen3.5-9B); -w quantizes once per window.
Motivated by the error growth in Figure 3, we propose per-window quantization (Figure 2). We write each update as a decay followed by a rank-one update whose correction vector is computed from the previous state. For every instance of equation 1, this update is described by the decay , the key vector , and the computed correction :
We now consider a sequence of consecutive tokens fed into the linear state. For simplicity, index them as tokens . We keep the quantized boundary state fixed and buffer the tuples in higher precision. For , denote the cumulative decay from step through step by , and set when . Then, for any , unrolling equation 3 from yields (Appendix B.2)
(4)
This is the chunk-level form that linear attention uses in training and prefill (Yang et al., 2024; 2025): intermediate states are expressed through the boundary state and the buffered tuples, so the full state is never re-quantized within the window. Only at do we materialize and quantize it for the next window as . This reduces the quantization frequency by a factor of and substantially lowers the state error over long contexts.

Figure 4: Per-window state reconstruction with Compensator Tokens. The FP32 state is split into a low-bit quantized residual, a few higher-precision Compensator Tokens that capture its dominant large-magnitude structure, and the buffered real-token updates of the window. The Compensator Tokens absorb dominant outliers, flattening the residual's row norms and making it easier to quantize.
3.3 COMPENSATOR TOKENS
Although per-window quantization reduces the quantization frequency, the reconstructed state can contain large-magnitude outliers concentrated in a few rows and columns (Figure 6(a)), and a few singular components carry most of its energy (Figure 5). These outliers dominate the quantization scale, forcing most entries to be represented with unnecessarily coarse quantization steps. To address this problem, we introduce Compensator Tokens (Figure 4), which reduce outlier-induced quantization error while integrating naturally with per-window quantization.
Before quantizing , we fit a rank-one matrix to capture its dominant large-magnitude structure. We subtract this matrix from and quantize only the residual . The largest values are therefore kept out of the tensor being quantized, reducing its dynamic range and alleviating the quantization pressure:
(5)
Here is the Frobenius norm. We call the pair a Compensator Token as it preserves the dominant state component in higher precision and, together with identity decay, has the same rank-one update form as a real token in equation 3. Unlike a real input token, it is not produced by the model and does not generate an output. It exists only in the window representation and is placed before the real-token updates of the next window. Since the decode kernel operates directly on rank-one updates, it processes the Compensator Token through the same path as the real tokens without any model-specific modification.
At the start of the next window, the quantized residual and the compensator tokens together represent the initial state. The decode kernel processes the compensator tokens before the real-token updates, so subsequent updates and outputs use the combined state without the need for an extra kernel.
At the end of each window, we reconstruct from the quantized residual, the current compensator tokens, and the window's real-token updates. We then discard the old compensator tokens, fit a new approximation to , and quantize the remaining residual. The new quantized residual and compensator tokens initialize the next window.
The construction extends directly to compensator tokens. Let and collect their vector pairs. Their combined contribution is
(6)


(a) Original State Hard to quantize
(b) Residual (Compensator Tokens) Easier to quantize
(c) Residual (Smoothing) Easy to quantize
Figure 5: Energy of the top singular values in the Qwen3.5-9B model.
Figure 6: Magnitude of one Qwen3.5-9B head (layer 13, head 16) at 8K context, normalized by the median magnitude of S in (a) and (b) and of the smoothed residual in (c). Outliers up to the median (a) drop to after Compensator Tokens (b) and to after smoothing (c).
In this way, compensator tokens preserve the dominant state structure in higher precision and leave a residual that is easier to quantize. For the small values of used in practice, reconstructing the compensator tokens is fully hidden by the state memory read. At each window boundary, we refit the compensator tokens on tensor cores without materializing the old ones in the dense state, so for the exposed kernel-level overhead stays within 7% in all settings.
3.4 RESIDUAL SMOOTHING
Compensator tokens preserve the dominant low-rank structure in higher precision, but the remaining residual can still have uneven magnitudes across key rows (Figure 6(b)). A few large key- and value-channels can dominate the quantization scale, leaving smaller entries with coarse resolution. We therefore smooth the residual before quantization to balance its row magnitudes and make it easier to represent at low precision (Figure 6(c)).
Let denote the residual at the start of a window. Each entry of the smoothing vector is the square root of the corresponding key row's mean absolute value, with a small positive floor to avoid division by zero. Setting , we left-multiply by to balance the key-row magnitudes before quantization. We quantize this rescaled residual and retain the smoothing scales alongside the quantized residual. Since the distribution changes over time, these scales remain fixed within each window but are recomputed from the new residual at every boundary.
After dequantization, multiplying by C restores the original key coordinates. The transform itself is invertible; only the intervening quantization introduces approximation. Adding back the unchanged higher-precision compensator tokens recovers the initial state. Substituting this representation into equation 4 gives the reconstructed state at the end of the window (Appendix B.3 derives the corresponding readout), without changing the buffered real-token updates:
(7)
4 EVALUATION
4.1 SETUPS
Models. We evaluate LeapQuant on five hybrid linear-attention LLMs: Qwen3.5-9B, Qwen3.5-35B-A3B, and Qwen3.8-Flash use GDN (Yang et al., 2025); Kimi-Linear-48B-A3B-Instruct (Team et al., 2025) and GLM-5.3-Flash use KDA. Due to limited hardware resources, we run only 8-layer versions of Qwen3.8-Flash and GLM-5.3-Flash on a single GPU, which preserve the per-layer decode cost but not the model output, and use them only for efficiency measurements.
Datasets and Evaluation. We use AIME 2026 (Mathematical Association of America, 2026), GPQA-Diamond (Rein et al., 2023), MMLU-Pro (Wang et al., 2024), LiveCodeBench v6 (Jain et al., 2025), and GSM8K (Cobbe et al., 2021). We report downstream accuracy averaged over three
Table 1: Downstream performance (%, higher is better). Best scores in each column within the 8-bit, 6-bit, and 4-bit groups are in bold.
| Method | Qwen3.5-9B | Qwen3.5-35B-A3B | Kimi-Linear-48B-A3B | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AIME | GPQA | LCB | MMLU | AIME | GPQA | LCB | MMLU | AIME | GPQA | LCB | MMLU | ||
| FP32 | 87.9 | 81.3 | 64.1 | 83.3 | 91.5 | 84.7 | 75.6 | 85.9 | 67.5 | 70.3 | 41.4 | 72.4 | 75.5 |
| BF16 | 72.1 | 66.2 | 49.6 | 81.0 | 85.8 | 79.3 | 67.2 | 85.2 | 64.3 | 68.1 | 41.0 | 64.0 | 68.7 |
| 8-bit methods | |||||||||||||
| Ours | 87.9 | 81.8 | 64.1 | 83.8 | 91.0 | 83.9 | 76.1 | 85.8 | 68.3 | 69.8 | 41.3 | 72.1 | 75.5 |
| FP8 | 14.6 | 34.3 | 21.4 | 42.6 | 29.6 | 39.9 | 26.7 | 56.4 | 25.6 | 46.6 | 16.0 | 57.0 | 34.2 |
| INT8 | 7.1 | 26.8 | 9.2 | 44.3 | 0.0 | 0.0 | 3.1 | 6.8 | 52.8 | 65.8 | 35.5 | 64.5 | 26.3 |
| KVQuant | 74.6 | 70.2 | 59.5 | 82.4 | 76.3 | 69.7 | 44.3 | 83.5 | 66.6 | 69.7 | 42.1 | 65.0 | 67.0 |
| QuaRot | 49.6 | 57.1 | 38.2 | 73.1 | 32.9 | 36.4 | 15.3 | 56.0 | 63.3 | 69.2 | 36.6 | 73.1 | 50.1 |
| TurboQuant | 70.8 | 61.1 | 45.0 | 80.5 | 10.4 | 22.7 | 15.3 | 52.7 | 57.5 | 69.2 | 41.2 | 69.0 | 49.6 |
| 6-bit methods | |||||||||||||
| Ours | 85.8 | 79.8 | 59.5 | 81.7 | 88.8 | 83.8 | 68.7 | 79.5 | 66.1 | 66.2 | 35.9 | 73.4 | 72.4 |
| TurboQuant | 27.5 | 29.8 | 16.0 | 61.2 | 0.4 | 5.1 | 4.6 | 16.1 | 48.8 | 64.7 | 35.9 | 72.7 | 31.9 |
| NVFP6 | 0.4 | 18.7 | 12.2 | 28.3 | 13.8 | 34.3 | 25.2 | 46.3 | 30.8 | 52.0 | 25.2 | 67.4 | 29.6 |
| 4-bit methods | |||||||||||||
| Ours | 58.1 | 65.7 | 34.0 | 80.2 | 59.2 | 57.6 | 37.4 | 81.4 | 67.9 | 69.2 | 40.5 | 73.4 | 60.4 |
| TurboQuant | 3.3 | 26.8 | 13.0 | 47.4 | 0.0 | 0.0 | 0.0 | 0.3 | 24.2 | 63.1 | 26.7 | 69.5 | 22.9 |
| MXFP4 | 0.0 | 5.1 | 0.0 | 7.4 | 0.0 | 4.5 | 0.8 | 5.5 | 4.2 | 26.9 | 8.7 | 53.1 | 9.7 |
random seeds. For each model, all methods use the same prompts and the sampling parameters from its official model card (Appendix E). For decode and end-to-end efficiency, we compare against the FP32-state implementation of vLLM with CUDA graphs enabled.
Implementation. We implement LeapQuant in vLLM (Kwon et al., 2023) and write the linear attention decode kernels in TileLang (Wang et al., 2025). All other components (e.g., MoE layers) stay in the baseline precision. At each window boundary, the compensator tokens are fitted with power iteration. For all models and tasks, we use a window of tokens, FP16 Compensator Tokens ( at 4 bits), and FP32 smoothing scales (Section 4.4 studies and ). All experiments run on NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs.
Baselines. We compare LeapQuant with the FP32 and BF16 states, the default and optional formats in vLLM and SGLang, and with state quantization baselines that re-quantize the state after every decode step. At 8 bits, we evaluate FP8 and INT8 at their best granularities. Given the lack of existing recurrent state quantization methods, we also evaluate three methods originally designed for the KV cache or activations, which we adapt to the recurrent state: KVQuant (Hooper et al., 2024), QuaRot (Ashkboos et al., 2024), and TurboQuant (Zandieh et al., 2026). At 6 and 4 bits, we evaluate NVFP6, MXFP6, and INT6, and NVFP4, MXFP4, and per-channel INT4, together with low-bit variants of the three adapted methods. Table 1 reports the best direct and adapted methods at each of these bit widths, and Appendix C lists all of them.
4.2 ACCURACY RESULTS
Downstream tasks. Table 1 shows the downstream accuracy of the three models. With 8-bit quantization, LeapQuant achieves accuracy on par with the FP32 baseline across the 12 model–task pairs. In contrast, per-step quantization leads to poor accuracy even at 16 bits: storing the Qwen3.5-9B state in BF16 lowers its AIME score from 87.9% to 72.1%, whereas LeapQuant keeps 87.9% with half as many bits. This gap is especially clear on long generations: Qwen3.5-9B's AIME reasoning traces can run to tens of thousands of tokens, and per-step FP8 achieves only 14.6% on AIME, versus 87.9% for FP32. Kimi-Linear-48B-A3B-Instruct produces shorter outputs and is less sensitive to per-step 8-bit storage; on AIME, GPQA, and LiveCodeBench, BF16, KVQuant, and QuaRot remain within 5% of FP32.

Figure 7: Kernel throughput of one linear attention layer.

Figure 8: Decode-step throughput in vLLM at context length 4K. On the RTX PRO 6000, the largest batch size is 256 where 512 does not fit, and Qwen3.5-35B-A3B uses 2K instead of 4K at this batch size.
Lower bit widths. The gap between per-window and per-step quantization widens as the bit width decreases. At 6 bits, the best baselines, NVFP6 and TurboQuant, average only 29.6% and 31.9%, and both collapse on the Qwen models, while LeapQuant averages 72.4%, close to FP32's 75.5%. At 4 bits, MXFP4 and TurboQuant average 9.7% and 22.9% and collapse on the Qwen models, while LeapQuant still averages 60.4% and stays within 1.1% of FP32 on every task of Kimi-Linear-48B-A3B. These results show that LeapQuant retains substantially more downstream accuracy than the baselines even under aggressive 4-bit state quantization.
4.3 EFFICIENCY RESULTS
Kernel speedup. Figure 7 compares one linear attention layer (32 heads, ) with the FP32 kernel in FLA. At batch size 512, LeapQuant is , , and faster on GDN and , , and on KDA on the B200, RTX PRO 6000, and RTX 5090. The larger gains on the RTX PRO 6000 and RTX 5090 are consistent with recurrent-state traffic being a stronger bottleneck on these GPUs.
Decode speedup. Figure 8 measures pure decode steps on five hybrid models at context length 4K. At batch size 512 on the B200, LeapQuant improves decode throughput by ; at the largest batch size that fits on the RTX PRO 6000, the gain is . The gain increases with batch size as linear attention takes a larger share of each step. Appendix D reports other context lengths, up to 128K.
Memory reduction. LeapQuant stores each window-boundary state at 1.19 bytes per element instead of 4, including the INT8 residual, the smoothing scales, and the Compensator Tokens, a reduction. At a window length of 16, the FP16 update buffer requires only around 8 KiB per head per layer for states and is allocated once per active request, making its overhead marginal. When prefix caching is enabled in the default mode in vLLM and SGLang, a checkpoint is kept per 1K cached tokens. In this setting, LeapQuant reduces the end-to-end memory by 41%,

Figure 9: End-to-end inference throughput on different datasets.
51%, and 56% on Qwen3.5-9B, Qwen3.5-35B-A3B, and Kimi-Linear-48B-A3B. This allows up to more concurrent requests when serving the Qwen3.5-9B model on one B200 GPU.
End-to-end inference speedup. We run offline inference on GSM8K, MMLU-Pro, and GPQA with the input and output lengths of the original model. Since Kimi-Linear is a non-reasoning model, we use the distribution of Qwen3.5-9B for it to simulate the real workload of production KDA models. With more concurrent requests and faster decode steps, LeapQuant improves the output throughput by on the B200 and on the RTX PRO 6000 (Figure 9).
4.4 ABLATION STUDY
We ablate the design choices of LeapQuant on Qwen3.5-9B, using AIME 2026 and LiveCodeBench v6 as the most sensitive tasks in Table 1; kernel speedups are over the FP32 kernel at batch size 256.
Effectiveness of each design. Table 2 adds the designs one at a time to an INT8 state, with BF16 as a higher-precision reference. Per-step INT8 drops AIME from to and LiveCodeBench from to . Per-window quantization improves AIME and LiveCodeBench accuracy to and , respectively; with BF16, it also raises AIME from to . Compensator Tokens then improve the INT8 scores to and , while smoothing closes the remaining gap to FP32 at kernel speedup. Each stage improves quality while the complete 8-bit method retains a substantial efficiency advantage. For efficiency, we compare against the FP32 and BF16 per-step FLA kernels and the BF16 ReplaySSM kernel in the official repository (Liou & Dao, 2026). With all three components, LeapQuant matches FP32 accuracy at a kernel speedup.
Table 2: Ablation of individual LeapQuant components on Qwen3.5-9B.
| Method | AIME | LCB | Kernel |
|---|---|---|---|
| FP32 per-step | 87.9 | 64.1 | 1.00× |
| BF16 per-step | 72.1 | 49.6 | 1.64× |
| + Per-window | 87.8 | 62.9 | 1.71× |
| INT8 per-step | 7.1 | 9.2 | 2.43× |
| + Per-window | 82.4 | 60.6 | 2.64× |
| + Comp. Tokens | 86.6 | 61.5 | 2.56× |
| + Smoothing | 87.9 | 64.1 | 2.52× |
Window length. Table 3 (left) varies the window size with . Longer windows quantize less often, so accuracy improves up to and then saturates. The kernel is fastest at : shorter windows reconstruct the state more often, while longer ones enlarge the record buffer read at every step and leave less shared memory for pipelining. gives no further accuracy gain, but its kernel speedup drops from to due to the increased memory traffic.
Table 3: Ablations of window length and Compensator Token count on Qwen3.5-9B.
| p | AIME | LCB | Kernel | r | AIME | LCB | Kernel |
|---|---|---|---|---|---|---|---|
| 4 | 86.2 | 62.8 | 1.59× | 2 | 85.7 | 63.4 | 2.57× |
| 8 | 87.1 | 63.2 | 2.13× | 4 | 87.9 | 64.1 | 2.52× |
| 16 | 87.9 | 64.1 | 2.52× | 8 | 88.1 | 64.0 | 2.37× |
| 32 | 87.9 | 64.2 | 2.20× | 16 | 87.9 | 62.8 | 0.74× |
Number of Compensator Tokens. Table 3 (right) varies with . Accuracy saturates at , consistent with the energy concentrated in a few singular values (Figure 5). Efficiency-wise, the power iteration and reconstruction work of up to four compensator tokens is fully overlapped with the memory reads on the B200 GPU, but it becomes exposed for larger and makes the kernel even slower than FP32 at . We therefore use , which matches the accuracy of larger at nearly the kernel speed of .
5 CONCLUSION
We present LeapQuant, a training-free method for near-lossless quantization of recurrent states in linear attention. LeapQuant mitigates error accumulation by quantizing the state only once per window, and captures state outliers in a few high-precision compensator tokens before smoothing the residual. With an 8-bit state, LeapQuant matches FP32 accuracy on long reasoning and code generation while reducing the state memory and accelerating decoding on both GDN and KDA models. As hybrid models devote more of their layers to linear attention, we believe LeapQuant can make low-precision recurrent states a practical default for serving them.
ACKNOWLEDGEMENT
This research is supported by NSF (IFML) CCF-2019844 and gifts from Accenture, AMD, Anyscale, Broadcom Inc., Google, IBM, Intel, Intesa Sanpaolo, Lambda, Mibura Inc., Samsung SDS, and SAP.
REFERENCES
Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. Quarot: Outlier-free 4-bit inference in rotated llms. Advances in Neural Information Processing Systems, 37:100213–100240, 2024.
Aaron Blakeman, Aarti Basant, Abhinav Khattar, Adithya Renduchintala, Akhiad Bercovich, Aleksander Ficek, Alexis Bjorlin, Ali Taghibakhshi, Amala Sanjay Deshmukh, Ameya Sunil Mahabaleshwarkar, et al. Nemotron-h: A family of accurate and efficient hybrid mamba-transformer models. arXiv preprint arXiv:2504.03624, 2025.
Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, Mohamed S Abdelfattah, and Diana Marculescu. Quamba2: A robust and scalable post-training quantization framework for selective state space models. arXiv preprint arXiv:2503.22879, 2025a.
Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, and Diana Marculescu. Quamba: A post-training quantization recipe for selective state space models. In International Conference on Learning Representations, volume 2025, pp. 101328–101354, 2025b.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
Tri Dao and Albert Gu. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060, 2024.
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323, 2022.
Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W Mahoney, Yakun S Shao, Kurt Keutzer, and Amir Gholami. Kvquant: Towards 10 million context length llm inference with kv cache quantization. Advances in Neural Information Processing Systems, 37:1270–1303, 2024.
Naman Jain, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations, volume 2025, pp. 58791–58831, 2025.
Hao Kang, Qingru Zhang, Souvik Kundu, Geonhwa Jeong, Zaoxing Liu, Tushar Krishna, and Tuo Zhao. GEAR: An efficient KV cache compression recipe for near-lossless generative inference of LLM. arXiv preprint arXiv:2403.05527, 2024.
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International conference on machine learning, pp. 5156–5165. PMLR, 2020.
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.
Muyang Li, Yujun Lin, Zhekai Zhang, Tianle Cai, Xiuyu Li, Junxian Guo, Enze Xie, Chenlin Meng, Jun-Yan Zhu, and Song Han. Svdquant: Absorbing outliers by low-rank components for 4-bit diffusion models. arXiv preprint arXiv:2411.05007, 2024.
Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of machine learning and systems, 6:87–100, 2024.
Ze-Wei Liou and Tri Dao. Replayssm: Cache ssm inputs, not state. https://tridao.me/blog/2026/replayssm/, June 2026.
Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen, and Xia Hu. Kivi: A tuning-free asymmetric 2bit quantization for kv cache. arXiv preprint arXiv:2402.02750, 2024.
Mathematical Association of America. The 44th annual American Invitational Mathematics Examination. Competition Examination, February 2026. URL https://maa.org/maa-invitational-competitions/.
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.
Bo Peng, Daniel Goldstein, Quentin Anthony, Alon Albalak, Eric Alcaide, Stella Biderman, Eugene Cheah, Xingjian Du, Teddy Ferdinan, Haowen Hou, et al. Eagle and finch: Rwkv with matrix-valued states and dynamic recurrence. arXiv preprint arXiv:2404.05892, 2024.
Bo Peng, Ruichong Zhang, Daniel Goldstein, Eric Alcaide, Xingjian Du, Haowen Hou, Jiaju Lin, Jiaxing Liu, Janna Lu, William Merrill, et al. Rwkv-7" goose" with expressive dynamic state evolution. arXiv preprint arXiv:2503.14456, 2025.
Zhen Qin, Songlin Yang, Weixuan Sun, Xuyang Shen, Dong Li, Weigao Sun, and Yiran Zhong. Hgrn2: Gated linear rnns with state expansion. arXiv preprint arXiv:2404.07904, 2024.
Qwen Team. Qwen3-next: Towards ultimate training & inference efficiency. Qwen Blog, September 2025. URL https://qwen.ai/blog?id=4074cca80393150c248e508aa62983f9cb7d27cd.
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.
Julien Siems, Timur Carstensen, Arber Zela, Frank Hutter, Massimiliano Pontil, and Riccardo Grazzi. Deltaproduct: Improving state-tracking in linear rnns via householder products, 2025. URL https://arxiv.org/abs/2502.10297.
Yutao Sun, Li Dong, Shaohan Huang, Shuming Ma, Yuqing Xia, Jilong Xue, Jianyong Wang, and Furu Wei. Retentive network: A successor to transformer for large language models. arXiv preprint arXiv:2307.08621, 2023.
Kimi Team, Yu Zhang, Zongyu Lin, Xingcheng Yao, Jiaxi Hu, Fanqing Meng, Chengyin Liu, Xin Men, Songlin Yang, Zhiyuan Li, et al. Kimi linear: An expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692, 2025.
Kimi Team, Tongtong Bai, Yifan Bai, Yiping Bao, Jianfeng Cai, Xinyuan Cai, Peizhou Cao, Yuxuan Cao, Ziwei Chai, Y Charles, et al. Kimi k3: Open frontier intelligence. arXiv preprint arXiv:2607.24653, 2026.
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.
Philippe Tillet, H. T. Kung, and David Cox. Triton: an intermediate language and compiler for tiled neural network computations. In Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, MAPL 2019, pp. 10–19, New York, NY, USA, 2019. Association for Computing Machinery. ISBN 9781450367196. doi:10.1145/3315508.3329973. URL https://doi.org/10.1145/3315508.3329973.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
Lei Wang, Yu Cheng, Yining Shi, Zhengju Tang, Zhiwen Mo, Wenhao Xie, Lingxiao Ma, Yuqing Xia, Jilong Xue, Fan Yang, et al. Tilelang: A composable tiled programming model for ai systems. arXiv preprint arXiv:2504.17577, 2025.
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, 2024.
Samuel Williams, Andrew Waterman, and David Patterson. Roofline: an insightful visual performance model for multicore architectures. Communications of the ACM, 52(4):65–76, 2009.
Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. Smoothquant: Accurate and efficient post-training quantization for large language models. In International conference on machine learning, pp. 38087–38099. PMLR, 2023.
Songlin Yang and Yu Zhang. Fla: A triton-based library for hardware-efficient implementations of linear attention mechanism, January 2024. URL https://github.com/fla-org/flash-linear-attention.
Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, and Yoon Kim. Gated linear attention transformers with hardware-efficient training. arXiv preprint arXiv:2312.06635, 2023.
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.
Yuxuan Yue, Xing Hu, Dawei Yang, Zhihang Yuan, Zixu Jiang, Zhixuan Chen, Jiangyong Yu, and Sifan Zhou. Mambaquant: Quantizing the mamba family with variance aligned rotation methods. In International Conference on Learning Representations, volume 2025, pp. 33231–33250, 2025.
Z.ai. Glm-5.3-flash: Frontier intelligence, flash cost. Z.ai Blog, August 2026. URL https://z.ai/blog/glm-5.3-flash.
Amir Zandieh, Majid Daliri, Majid Hadian, and Vahab Mirrokni. Turboquant: Online vector quantization with near-optimal distortion rate. In International Conference on Learning Representations, volume 2026, pp. 56418–56439, 2026.
A INSTANCES OF THE GENERAL UPDATE
For the model-specific expansions and recurrence derivations below, , , and denote the main text's , , and , respectively, with . This notation separates the general recurrence coefficients from the raw keys and scalar gates in each model's native update. Section 3.1 thus writes every model we consider in the form
with a diagonal decay , a write key and a read vector . Table 4 lists common instances: linear attention (Katharopoulos et al., 2020), RetNet (Sun et al., 2023), Mamba2 (Dao & Gu, 2024), GLA (Yang et al., 2023), RWKV6 (Peng et al., 2024), HGRN2 (Qin et al., 2024), DeltaNet (Yang et al., 2024), Gated DeltaNet (Yang et al., 2025), KDA (Team et al., 2025) and DeltaProduct (Siems et al., 2025). The decay may be the identity, a constant scalar, a data-dependent scalar or a data-dependent vector. The term reads the previous state, and the write subtracts it from along the same direction ; this is the delta rule. Plain and gated linear attention have .
Table 4: Instances of equation 1. DeltaProduct applies delta-rule sub-steps per token, each of which is an instance of equation 1. The last column gives the number of values in one buffered update .
| Model | Record size | |||
|---|---|---|---|---|
| Linear Attention | ||||
| RetNet | ||||
| Mamba2 | ||||
| GLA / RWKV6 / HGRN2 | ||||
| DeltaNet | ||||
| Gated DeltaNet | ||||
| KDA | ||||
| DeltaProduct, sub-step |
Gated DeltaNet and KDA. Expanding the original updates recovers the rows of Table 4:
GDN:
KDA:
In both cases the erase direction coincides with the write key, so each token contributes a single rank-one record. In this convention the step size is carried by the write key; placing it in the correction instead, and , is equivalent.
Models with a separate erase direction. The form equation 1 requires the erase direction to coincide with the write key. A model whose erase direction differs from its write key still fits by splitting each token into two sub-steps of equation 1. For RWKV7 (Peng et al., 2025), whose transition is , the two sub-steps are an erase with and a pure write with and :
Each token then contributes two rank-one records, the same treatment as a DeltaProduct token with .
B DERIVATIONS
B.1 PROPAGATION OF THE QUANTIZATION-INDUCED DEVIATION
For this recurrence-level analysis, we fix the layer-input sequence and supply the FP32 reference and the quantized recurrence with the same coefficients :
Subtracting the two, the value cancels:
Adding to both sides gives
Unrolling it, each error is carried to step by the same decay and erase steps that act on memories written at step , and it reaches the output through . Under per-window quantization, is nonzero only at window boundaries. Because each update is small relative to the state, per-step rounding discards part of it at every step, so these errors are correlated and add up coherently. Per-window quantization rounds the accumulated updates only once, which reduces the error by far more than the factor of in quantization frequency.
B.2 WINDOW UNROLLING AND STATE READOUT
Restoring an arbitrary window-start index , equation 4 follows from equation 3 by induction on the window length: applying one more record multiplies every existing term by and appends , and . Transposing the unrolled state at step and multiplying by gives, for ,
using for diagonal . The first term costs , and each of the records costs : one inner product and one scaled vector . The diagonal products are cumulative decays and can be maintained incrementally, so the read never forms a intermediate state.
B.3 READOUT WITH A SMOOTHED QUANTIZED RESIDUAL
For per-value-channel symmetric INT8 quantization, let denote the integer payload and the diagonal scale matrix, so that . Therefore, for any read vector and cumulative diagonal decay ,
C and act on the key coordinates, while B rescales the quantized residual's value-side projection. Neither scale is applied to the real or Compensator Token records, whose contributions are already expressed in the original state coordinates.
For the Compensator Token component , the corresponding read is
Adding these rank-one records and the real records to the quantized-residual read gives the readout form of equation 7:
(10)
At a boundary, the sum is reconstructed in the original state coordinates before fitting the new factors and recomputing the residual scales.
C FULL DOWNSTREAM RESULTS
Table 5 extends Table 1 with GSM8K and with every direct quantization format and adapted method we evaluate at 8, 6, and 4 bits. Direct quantization formats are listed before the adapted methods in each group, and all baselines re-quantize the state at every decode step. LeapQuant uses the configurations of Section 4.1 at each bit width.
Table 5: Full downstream performance (% , higher is better). Best scores in each column within each bit width are in bold.
| Method | Qwen3.5-9B | Qwen3.5-35B-A3B | Kimi-Linear-48B-A3B | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GSM | ANME | GPQA | LCB | MMLU | GSM | ANME | GPQA | LCB | MMLU | GSM | ANME | GPQA | LCB | MMLU | |
| FP32 | 96.1 | 87.9 | 81.3 | 64.1 | 83.3 | 96.7 | 91.5 | 84.7 | 75.6 | 85.9 | 92.1 | 67.5 | 70.3 | 41.4 | 72.4 |
| BF16 | 94.9 | 72.1 | 66.2 | 49.6 | 81.0 | 96.6 | 85.8 | 79.3 | 67.2 | 85.2 | 92.1 | 64.3 | 68.1 | 41.0 | 64.0 |
| 8-bit methods | |||||||||||||||
| Ours | 96.3 | 87.9 | 81.8 | 64.1 | 83.8 | 96.5 | 91.0 | 83.9 | 76.1 | 85.8 | 92.0 | 68.3 | 69.8 | 41.3 | 72.1 |
| FP8 per-tensor | 79.2 | 14.6 | 34.3 | 21.4 | 42.6 | 86.7 | 29.6 | 39.9 | 26.7 | 56.4 | 91.8 | 25.6 | 46.6 | 16.0 | 57.0 |
| FP8 per-channel | 84.2 | 0.8 | 13.6 | 11.5 | 46.6 | 76.9 | 0.0 | 5.6 | 8.4 | 36.6 | 91.6 | 35.4 | 57.6 | 16.5 | 65.5 |
| FP8 per-group | 71.2 | 0.0 | 2.5 | 2.3 | 25.8 | 67.2 | 0.0 | 1.5 | 2.3 | 24.9 | 91.7 | 25.3 | 47.6 | 15.8 | 63.5 |
| MXFP8 | 67.9 | 7.1 | 24.2 | 15.3 | 32.2 | 80.6 | 29.6 | 36.4 | 29.8 | 45.5 | 91.4 | 43.5 | 50.3 | 23.4 | 67.0 |
| INT8 per-tensor | 38.5 | 0.0 | 3.0 | 3.1 | 25.1 | 10.2 | 0.0 | 3.5 | 1.5 | 8.5 | 89.9 | 5.3 | 31.3 | 8.4 | 54.8 |
| INT8 per-channel | 53.5 | 7.1 | 26.8 | 9.2 | 44.3 | 16.5 | 0.0 | 0.0 | 3.1 | 6.8 | 91.8 | 52.8 | 65.8 | 35.5 | 64.5 |
| KVQuant | 95.1 | 74.6 | 70.2 | 59.5 | 82.4 | 95.8 | 76.3 | 69.7 | 44.3 | 83.5 | 92.0 | 66.6 | 69.7 | 42.1 | 65.0 |
| QuaRot | 93.1 | 49.6 | 57.1 | 38.2 | 73.1 | 80.7 | 32.9 | 36.4 | 15.3 | 56.0 | 92.6 | 63.3 | 69.2 | 36.6 | 73.1 |
| TurboQuant | 94.8 | 70.8 | 61.1 | 45.0 | 80.5 | 82.9 | 10.4 | 22.7 | 15.3 | 52.7 | 92.3 | 57.5 | 69.2 | 41.2 | 69.0 |
| 6-bit methods | |||||||||||||||
| Ours | 95.5 | 85.8 | 79.8 | 59.5 | 81.7 | 95.2 | 88.8 | 83.8 | 68.7 | 79.5 | 91.8 | 66.1 | 66.2 | 35.9 | 73.4 |
| NVFP6 | 66.7 | 0.4 | 18.7 | 12.2 | 28.3 | 75.4 | 13.8 | 34.3 | 25.2 | 46.3 | 92.5 | 30.8 | 52.0 | 25.2 | 67.4 |
| MXFP6 | 15.9 | 0.0 | 1.0 | 3.1 | 8.7 | 37.1 | 0.0 | 7.1 | 9.2 | 23.6 | 91.8 | 37.1 | 53.5 | 19.1 | 66.7 |
| INT6 per-channel | 50.6 | 0.0 | 5.6 | 1.5 | 23.5 | 1.0 | 0.0 | 3.0 | 0.0 | 3.9 | 91.3 | 22.9 | 50.0 | 13.7 | 64.2 |
| KVQuant | 79.3 | 4.2 | 23.2 | 13.7 | 40.5 | 59.8 | 0.0 | 10.1 | 2.3 | 21.6 | 91.9 | 55.0 | 66.2 | 29.8 | 71.8 |
| QuaRot | 51.9 | 0.0 | 10.1 | 3.1 | 26.6 | 8.8 | 0.0 | 0.5 | 0.0 | 2.9 | 92.5 | 25.4 | 43.9 | 17.6 | 64.2 |
| TurboQuant | 87.5 | 27.5 | 29.8 | 16.0 | 61.2 | 54.1 | 0.4 | 5.1 | 4.6 | 16.1 | 92.7 | 48.8 | 64.7 | 35.9 | 72.7 |
| 4-bit methods | |||||||||||||||
| Ours | 95.9 | 58.1 | 65.7 | 34.0 | 80.2 | 96.0 | 59.2 | 57.6 | 37.4 | 81.4 | 92.0 | 67.9 | 69.2 | 40.5 | 73.4 |
| NVFP4 | 0.4 | 0.0 | 0.0 | 0.0 | 2.0 | 0.4 | 0.0 | 0.0 | 0.0 | 0.3 | 85.1 | 0.0 | 6.4 | 0.8 | 9.7 |
| MXFP4 | 4.6 | 0.0 | 5.1 | 0.0 | 7.4 | 3.9 | 0.0 | 4.5 | 0.8 | 5.5 | 87.7 | 4.2 | 26.9 | 8.7 | 53.1 |
| INT4 per-channel | 0.2 | 0.0 | 6.6 | 0.0 | 5.8 | 0.2 | 0.0 | 0.0 | 0.0 | 0.7 | 78.1 | 0.0 | 7.1 | 0.8 | 28.8 |
| KVQuant | 1.1 | 0.0 | 0.0 | 0.0 | 1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 89.6 | 4.2 | 19.7 | 2.3 | 46.9 |
| QuaRot | 0.6 | 0.0 | 0.5 | 0.0 | 1.6 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 84.3 | 0.8 | 15.2 | 1.5 | 38.2 |
| TurboQuant | 41.6 | 3.3 | 26.8 | 13.0 | 47.4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.3 | 90.3 | 24.2 | 63.1 | 26.7 | 69.5 |
D ADDITIONAL EFFICIENCY EVALUATION
Figure 10 reports the decode-step throughput on the B200 at context lengths from 1K to 8K, complementing the 4K results in Figure 8. Each bar stacks the FP32 throughput (lighter shade) and the gain of LeapQuant (darker shade). For models that pair linear attention with dense full attention, the gain shrinks slightly as the context grows, since the full attention layers take a growing share of each step. It remains substantial at 8K, where LeapQuant still accelerates Kimi-Linear-48B-A3B by at batch size 512. Recent models increasingly combine linear attention with sparse attention rather than full attention, which keeps the attention cost nearly constant as the context grows. Figure 11 evaluates two such models, GLM-5.3-Flash and Qwen3.8-Flash, up to 128K and 96K at batch size 256. LeapQuant accelerates them by and at 4K and still by and at the longest context. We therefore expect LeapQuant to perform equally well at very long contexts on upcoming hybrid models.

Figure 10: Decode-step throughput in vLLM on the B200 at context lengths 1K–8K. Each bar stacks the FP32 throughput (lighter) and the gain of LeapQuant (darker).

Figure 11: Decode-step throughput of the two sparse-attention models on the B200 at batch size 256 and long contexts.
E EVALUATION DETAILS
Sampling parameters. Table 6 lists the generation settings. All methods of a model share the same settings, prompts, and sample set. For the Qwen3.5 models, we follow the benchmark settings of the official model cards with thinking enabled; Kimi-Linear-48B-A3B-Instruct is an instruction model without a thinking mode. The maximum model length is set to the output limit plus 8,192 tokens, so that no generation is truncated by the context window before reaching the output limit.
Table 6: Generation settings of the downstream evaluation.
| Model | Temp. | Top-p | Top-k | Presence | Thinking | Max output |
|---|---|---|---|---|---|---|
| Qwen3.5-9B | 1.0 | 0.95 | 20 | 1.5 | on | 81,920 |
| Qwen3.5-35B-A3B | 1.0 | 0.95 | 20 | 1.5 | on | 81,920 |
| Kimi-Linear-48B-A3B | 1.0 | 1.0 | - | 0 | - | 65,536 |