Near-lossless 8-bit recurrent states, training-free. LeapQuant quantizes the recurrent state of linear attention models in the Qwen, Kimi, and GLM families, achieving average speedups of 2.05–3.70× at the kernel level and 1.51× end to end.
- [2026/11] LeapQuant is open-sourced!
Recent LLMs replace many standard attention layers with linear attention, such as Gated DeltaNet (GDN) and Kimi Delta Attention (KDA). Linear attention compresses the context into a fixed-size recurrent state, but reading and updating that state at every decoding step remains a major inference bottleneck.
Quantization is a natural way to reduce this cost, but it can significantly degrade model quality. Rounding errors accumulate across decoding steps, and outlier rows and columns in the state make each quantization step inaccurate. LeapQuant addresses both problems with three training-free techniques:
- Per-window quantization limits error accumulation by quantizing the state only once per window of tokens.
- Compensator Tokens keep the state's largest outliers in high precision.
- Residual smoothing balances the remaining residual before quantization.
To limit error accumulation, LeapQuant leaps over a window of tokens and quantizes the state only once, at the end of the window. Within the window, the low-bit state stays fixed, token updates are buffered in high precision, and each output is computed from the fixed state together with the buffered updates.
To reduce the error of each quantization step, LeapQuant keeps the state's largest outliers in high precision as a few Compensator Tokens. Each one is a rank-one outer product, the same form as a real-token update, so it shares the window's update path at almost no extra cost.
After the Compensator Tokens are removed, the residual can still have uneven magnitudes across key channels. LeapQuant rescales each key row before quantization to balance these magnitudes. The smoothing scales are recomputed at every window boundary.
With accuracy comparable to the FP32 baseline, LeapQuant achieves average speedups of 2.05–3.70× at the kernel level and 1.51× for end-to-end inference on NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs.
🎯 Accuracy (%) on AIME 2026, BeyondAIME (Beyond), GPQA-Diamond (GPQA), and LiveCodeBench v6 (LCB):
| Method | Qwen3.5-9B | GLM-5.3-Flash | Qwen3.8-Flash-Next | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AIME | Beyond | GPQA | LCB | AIME | Beyond | GPQA | LCB | AIME | Beyond | GPQA | LCB | ||
| FP32 | 87.9 | 63.3 | 81.3 | 64.1 | 92.2 | 80.7 | 92.1 | 85.2 | 98.5 | 85.1 | 91.4 | 86.8 | 84.0 |
| BF16 | 72.1 | 33.7 | 66.2 | 49.6 | 76.7 | 57.2 | 90.6 | 74.6 | 96.8 | 78.8 | 90.2 | 84.0 | 72.5 |
| 8-bit methods | |||||||||||||
| LeapQuant | 87.9 | 64.0 | 81.8 | 64.1 | 91.1 | 83.2 | 91.2 | 87.5 | 99.0 | 85.3 | 91.6 | 85.8 | 84.4 |
| KVQuant | 70.3 | 39.9 | 66.8 | 55.5 | 87.9 | 72.8 | 90.6 | 83.0 | 94.7 | 74.2 | 87.2 | 79.9 | 75.2 |
| TurboQuant | 67.9 | 43.2 | 62.0 | 42.2 | 83.8 | 67.3 | 89.9 | 73.8 | 95.4 | 78.4 | 89.9 | 84.7 | 73.2 |
| QuaRot | 11.4 | 7.4 | 38.2 | 35.6 | 91.0 | 76.2 | 90.9 | 78.6 | 88.3 | 61.0 | 84.7 | 72.0 | 61.3 |
| INT8 | 3.9 | 1.8 | 17.2 | 10.7 | 87.4 | 66.8 | 90.4 | 67.4 | 67.5 | 41.8 | 61.3 | 56.0 | 47.7 |
| FP8 | 0.0 | 0.1 | 2.2 | 5.9 | 69.6 | 44.2 | 82.0 | 53.2 | 82.5 | 52.8 | 76.8 | 71.5 | 45.1 |
| 6-bit methods | |||||||||||||
| LeapQuant | 87.9 | 63.6 | 81.0 | 65.4 | 92.9 | 82.7 | 91.2 | 86.3 | 98.8 | 85.8 | 89.9 | 86.8 | 84.4 |
| TurboQuant | 19.3 | 7.2 | 33.2 | 13.0 | 88.1 | 66.8 | 88.0 | 66.2 | 94.4 | 73.1 | 88.2 | 83.7 | 60.1 |
| MXFP6 | 0.0 | 0.0 | 0.8 | 0.5 | 71.4 | 44.8 | 82.7 | 53.4 | 59.2 | 34.6 | 63.3 | 58.0 | 39.1 |
| NVFP6 | 0.0 | 0.1 | 1.5 | 7.6 | 39.2 | 17.1 | 67.8 | 36.9 | 80.4 | 52.9 | 73.7 | 67.4 | 37.1 |
| 4-bit methods | |||||||||||||
| LeapQuant | 85.0 | 60.1 | 80.0 | 61.3 | 85.0 | 67.6 | 91.6 | 72.8 | 92.5 | 72.6 | 90.6 | 79.9 | 78.3 |
| TurboQuant | 3.5 | 1.4 | 26.8 | 11.5 | 59.7 | 43.2 | 77.9 | 49.4 | 79.3 | 49.8 | 74.9 | 62.8 | 45.0 |
| MXFP4 | 0.0 | 0.0 | 3.7 | 0.3 | 25.3 | 18.6 | 70.9 | 29.3 | 1.7 | 2.8 | 25.4 | 22.6 | 16.7 |
⚙️ Kernel throughput of one linear attention layer:
⚡ Decode throughput in vLLM at context length 4K:
🌐 End-to-end throughput in vLLM:
LeapQuant is integrated into vLLM 0.30.0 as a plugin and supports the Qwen (Gated DeltaNet) and GLM (Kimi Delta Attention) models.
git clone https://github.com/leapquant/LeapQuant.git
cd LeapQuant && pip install -e .
bash serve.sh <model>serve.sh starts an OpenAI-compatible vLLM server with 8-bit recurrent states; extra arguments are passed to vllm serve.
@article{pan2026leapquant,
title = {LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization},
author = {Pan, Yi and Xi, Haocheng and Zhu, Kan and Li, Xingyang and Wu, Yibo and Mishra, Mayank and
Zhang, Hongtao and Zheng, William X. and Kasikci, Baris and Han, Song and Keutzer, Kurt and
Iyer, Rishabh and Stoica, Ion},
journal = {arXiv preprint arXiv:2609.38166},
year = {2026}
}LeapQuant is built on vLLM, TileLang, and Flash Linear Attention. We also extend our thanks to the Kernel Design Agents (KDA) team for co-evolving the kernels for LeapQuant.






