arXiv cs.AI· Yi Pan, Haocheng Xi, Kan Zhu, Xingyang Li, Yibo Wu, Mayank Mishra, Hongtao Zhang, William X. Zheng, Baris Kasikci, Song Han, Kurt Keutzer, Rishabh Iyer, Ion Stoica·· 10 小时前AI 评分38
LeapQuant:面向线性注意力精准循环状态量化的高效推理方法
LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization
AI 导读
LeapQuant 是一种无需训练的 8-bit 循环状态量化方法,在 Qwen、Kimi、GLM 系列模型上实现接近 FP32 基线的精度。它通过按窗口量化避免误差累积,并用高精度 Compensator Tokens 保留状态中的离群值。在 NVIDIA B200、RTX PRO 6000 和 RTX 5090 上,内核级平均加速 2.05–3.70 倍,端到端推理加速 1.47 倍。
正文 · 原文
Authors:Yi Pan, Haocheng Xi, Kan Zhu, Xingyang Li, Yibo Wu, Mayank Mishra, Hongtao Zhang, William X. Zheng, Baris Kasikci, Song Han, Kurt Keutzer, Rishabh Iyer, Ion Stoica
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 2.05--3.70$\times$ at the kernel level and 1.47$\times$ for end-to-end inference on NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs.
| Comments: | 18 pages, 11 figures |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2609.38166 [cs.LG] |
| (or arXiv:2609.38166v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2609.38166 arXiv-issued DOI via DataCite |
Submission history
From: Yi Pan [view email]
[v1]
Tue, 29 Sep 2026 17:59:34 UTC (782 KB)
[v2]
Tue, 10 Nov 2026 10:10:42 UTC (733 KB)
来源:arXiv cs.AI · arxiv.org