LeapQuant:
Efficient Linear Attention with Accurate Recurrent State Quantization

1 University of California, Berkeley 2 University of Washington 3 Massachusetts Institute of Technology 4 Perplexity AI 5 NVIDIA
*Indicates Equal Contribution

TL;DR

LeapQuant is a training-free method that quantizes the recurrent state of linear attention to 8 bits with near-lossless model quality. With accuracy comparable to the FP32 baseline, it achieves average speedups of 2.05–3.70× at the kernel level and 1.57× for end-to-end inference on NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs.

Overview

Recent LLMs in the Qwen, Kimi, and GLM model families 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, which reduces the cost of long-context processing.

However, the recurrent state still imposes substantial memory bandwidth and capacity costs. For each generated token, a linear attention layer loads its state from HBM, applies a lightweight update, and writes it back, so decoding is bottlenecked by memory bandwidth. The state also takes a large share of GPU memory when prefix caching is enabled, as serving systems keep a separate state for each cached prefix.

Recurrent-state access is a major cost of LLM serving

(a) Linear attention takes a large share of decoding time. (b) Recurrent states take a large share of GPU memory under prefix caching.

Why Recurrent State Quantization is Challenging

Quantizing the recurrent state is a natural way to reduce both memory traffic and footprint, but it can significantly degrade model quality. The state is updated recurrently at every decoding step, so the rounding error introduced by each quantization is carried into all later states and accumulates over long contexts. In addition, the state contains outlier rows and columns that widen the quantization range and force smaller values onto coarse quantization levels, amplifying the error of each quantization.

Accurate low-bit quantization therefore requires reducing both how often error is introduced and how much error each quantization introduces. LeapQuant addresses both with three training-free techniques.

Per-Window Quantization

To limit error accumulation, LeapQuant leaps over a window of tokens before quantizing the state again. 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 the buffered updates. Only at the end of the window does it reconstruct and quantize the full updated state for the next window, so quantization error is introduced far less often.

Per-token versus per-window quantization

Compensator Tokens

To reduce the error of each quantization, LeapQuant captures the state's largest outliers in high precision as a few Compensator Tokens. Each Compensator Token is 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 state update.

Per-window state reconstruction with Compensator Tokens

Residual Smoothing

After the Compensator Tokens are removed, the residual can still have uneven magnitudes across key channels, and a few large channels can dominate the quantization scale. LeapQuant smooths the residual before quantization to balance its row magnitudes. The smoothing scales stay fixed within each window and are recomputed at every window boundary. In a Qwen3.5-9B head, Compensator Tokens and smoothing reduce outliers from 176× the median magnitude to 5.3×.

State magnitude before and after Compensator Tokens and smoothing

Key Results

We evaluate LeapQuant on models from the Qwen, Kimi, and GLM families. At 8 bits, LeapQuant achieves accuracy comparable to the FP32 baseline, while reducing state memory traffic by 3.4× and end-to-end memory footprint by up to 56%.

Accuracy

Downstream accuracy (%, higher is better, averaged over three seeds) on AIME 2026, BeyondAIME, GPQA-Diamond, and LiveCodeBench v6. Naive FP8/INT8 state quantization collapses on Qwen3.5-9B, and even BF16 loses 11.5 points on average, while LeapQuant matches FP32 at 8 and 6 bits and stays within 3.4 points at 4 bits.

MethodQwen3.5-9BGLM-5.3-FlashQwen3.8-Flash-NextAvg.
AIMEBeyondGPQALCBAIMEBeyondGPQALCBAIMEBeyondGPQALCB
FP3287.963.381.364.192.280.792.185.298.585.191.486.884.0
BF1672.133.766.249.676.757.290.674.696.878.890.284.072.5
8-bit methods
LeapQuant87.964.081.864.191.183.291.287.599.085.391.685.884.4
FP80.00.12.25.969.644.282.053.282.552.876.871.545.1
INT83.91.817.210.787.466.890.467.467.541.861.356.047.7
KVQuant70.339.966.855.587.972.890.683.094.774.287.279.975.2
QuaRot11.47.438.235.691.076.290.978.688.361.084.772.061.3
TurboQuant67.943.262.042.283.867.389.973.895.478.489.984.773.2
6-bit methods
LeapQuant87.963.681.065.492.982.791.286.398.885.889.986.884.4
TurboQuant19.37.233.213.088.166.888.066.294.473.188.283.760.1
MXFP60.00.00.80.571.444.882.753.459.234.663.358.039.1
NVFP60.00.11.57.639.217.167.836.980.452.973.767.437.1
4-bit methods
LeapQuant85.060.180.061.385.769.091.475.398.683.891.685.880.6
TurboQuant3.51.426.811.559.743.277.949.479.349.874.962.845.0
MXFP40.00.03.70.325.318.670.929.31.72.825.422.616.7

Best score in each column within the 8-bit, 6-bit, and 4-bit groups is in bold. Beyond = BeyondAIME, LCB = LiveCodeBench v6. Full results on more models and tasks are in the paper.

Kernel Throughput

On one linear attention layer, LeapQuant achieves average speedups of 2.05–3.70× over the FP32 state across GDN and KDA layers on B200, RTX PRO 6000, and RTX 5090 GPUs.

Kernel throughput of one linear attention layer

Decode Throughput

On pure decode steps in vLLM at 4K context, LeapQuant improves throughput by 1.22–1.29× at the largest batch size on B200 and by 1.22–1.57× on RTX PRO 6000. The gain grows with batch size, as linear attention takes a larger share of each step.

Decode-step throughput in vLLM at 4K context

Decode-step throughput in vLLM at context length 4K. On the RTX PRO 6000, which has limited memory, we use a smaller maximum batch size and context length, and only 8 layers of GLM-5.3-Flash and Qwen3.8-Flash-Next.

End-to-End Inference

Integrated into vLLM, LeapQuant achieves an average end-to-end speedup of 1.57×.

End-to-end inference throughput

BibTeX

@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}
}