TL;DR
LeapQuant is a training-free quantization method that enables near-lossless 8-bit storage of recurrent states in linear attention models. By combining "per-window" quantization to slow error accumulation with high-precision "Compensator Tokens" to handle outliers, it achieves up to 3.7x kernel speedups and reduces end-to-end memory footprints by over 50%.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly shifting toward hybrid architectures that use linear attention (e.g., Gated DeltaNet or Kimi Delta Attention) to handle long contexts efficiently. Unlike standard attention, which scales quadratically with sequence length, linear attention compresses history into a fixed-size recurrent state.
However, a new bottleneck has emerged: memory bandwidth. During decoding, the model must read the entire state matrix from memory, update it with the new token, and write it back for every single generated token. This constant data transfer limits throughput. While quantizing these states to lower precision (like 8-bit) seems like an obvious fix, it usually destroys model accuracy. The authors identify two culprits:
- Recurrent Error Accumulation: Small rounding errors at each step compound over thousands of tokens, causing the state to drift far from its intended trajectory.
- State Outliers: Recurrent states often contain extreme values concentrated in specific rows or columns, which force quantization scales to be too coarse for the rest of the data.
Methods
LeapQuant introduces three key techniques to make low-bit quantization viable without requiring any retraining or calibration data:
- Per-Window Quantization: Instead of re-quantizing the state after every token, LeapQuant "leaps" over a window (e.g., 16 tokens). It stores the state in low precision at the start of the window, buffers high-precision updates for the intervening tokens, and only materializes and re-quantizes the full state at the window's end. This significantly reduces the frequency of rounding operations.
- Compensator Tokens: To manage outliers, LeapQuant extracts the most dominant components of the state (using a rank-$r$ approximation) and stores them in high precision. These are called "Compensator Tokens" because they are mathematically integrated into the model's update path exactly like real input tokens. This allows the remaining "residual" state to be quantized much more accurately.
- Residual Smoothing: Before quantizing the residual, LeapQuant applies a smoothing transformation to balance the magnitudes across different channels, further reducing quantization noise.
Datasets
The authors evaluated LeapQuant across several state-of-the-art hybrid model families, including Qwen3.5, Kimi-Linear, and GLM-5.3. They tested these models on a diverse battery of benchmarks:
- AIME 2026 & GSM8K: Mathematical reasoning.
- GPQA-Diamond: Graduate-level science questions.
- MMLU-Pro: General knowledge across various disciplines.
- LiveCodeBench v6: Coding and programming tasks.
Key Insights and Ideas
- The "Aha!" of Recurrent Drift: The paper demonstrates that per-step quantization error grows linearly with context length. By simply moving to a window-based approach, the error growth is drastically flattened, as shown in Figure 3.
- Outliers are Low-Rank: The authors discovered that the "energy" of the recurrent state is often concentrated in just a few singular values. This justifies the use of a small number of Compensator Tokens (typically $r=4$) to capture the vast majority of outlier behavior.
- Implementation Elegance: Because Compensator Tokens share the same mathematical form as standard token updates, they can be processed by existing optimized kernels with minimal overhead. Reconstructing the state from these tokens is effectively "hidden" behind the time it takes to read the state from memory.
Key Results
- Near-Lossless Accuracy: At 8-bit quantization, LeapQuant matches the performance of the full FP32 baseline across all 12 model-task pairs. Even at 6-bit, it remains highly competitive, while standard quantization baselines often collapse to zero accuracy.
- Massive Speedups: LeapQuant achieves average kernel speedups of 2.05–3.70x across NVIDIA B200, RTX PRO 6000, and RTX 5090 GPUs. For end-to-end inference, this translates to a 1.47x throughput increase.
- Memory Efficiency: It reduces state memory traffic by 3.4x. In systems using prefix caching (where many states are stored for different prompts), LeapQuant reduces the total GPU memory footprint by up to 56%.
Limitations and Future Work
- Extreme Compression: While LeapQuant excels at 8-bit and 6-bit, accuracy begins to degrade more noticeably at 4-bit for some models (e.g., Qwen). The authors suggest that while LeapQuant is training-free, combining it with quantization-aware training (QAT) might be necessary to push into ultra-low bit widths.
- Window Size Trade-offs: There is a balancing act between window size and shared memory usage. Very large windows might improve accuracy further but could eventually bottleneck the compute kernels due to the size of the update buffer.
- Hardware Evolution: The benefits of LeapQuant are most significant on current HBM-bottlenecked architectures. As hardware evolves, the optimal balance between window size and compensator count may shift.
Summary updated