STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization

Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu, Ziyu Guo, Renrui Zhang, Zhichao Lu, Zhenan Sun, Ying WeiarXiv 2026

TL;DR

STEPQuant is a spatial-temporal post-training quantization framework designed to compress the recurrent states of linear attention models. By intelligently allocating bits based on memory lifetime and spatial importance, it achieves over 5× state compression with negligible accuracy loss, reducing total serving memory by up to 68.7% and speeding up state updates by nearly 3×.

What Problem Does This Paper Address?

While traditional Transformers suffer from KV caches that grow linearly with sequence length, linear attention models (like Qwen-2.7B and Kimi-Linear-48B) use fixed-size recurrent states to summarize past tokens. However, these "fixed-size" states still present a massive memory bottleneck during concurrent serving. As shown in Figure 1(a), at high concurrency, the memory footprint of these states can actually exceed the memory required for the model weights themselves.

State memory footprint and error analysis

Directly quantizing these states to low precision (e.g., INT4 or INT8) typically leads to catastrophic accuracy degradation. This is because recurrent states are updated at every decoding step; a small quantization error introduced now is fed back into the next update, causing errors to propagate and accumulate over time. The authors set out to understand when and where these errors matter most to enable efficient, low-bit compression.

Methods

The authors propose STEPQuant, which tackles quantization error across two dimensions:

  1. Temporal Dimension (Lifetime-aware Bit Allocation): The researchers discovered that the impact of quantization depends heavily on how long a piece of information stays in memory. Units with high "gate retention" (longer half-lives) accumulate significantly more error over time. STEPQuant uses a mixed-precision approach, allocating more bits to these long-lived, high-risk units while using fewer bits for short-lived ones.
  2. Spatial Dimension (Key-Row-Aware Dual-axis Fitting): Spatially, not all parts of the state matrix are equally sensitive. The authors found that errors in specific "key rows" have a much larger impact on the model's output. Furthermore, the state matrix exhibits large-magnitude outliers along both rows and columns. STEPQuant employs a dual-axis scaling method that fits separate scales for rows and columns, specifically weighting the fit to protect high-impact rows.

To make this practical for real-world serving, the authors integrated STEPQuant into the SGLang framework using optimized GPU kernels. These kernels fuse state reconstruction, the Delta update, and the readout into a single pass, overlapping quantization overhead with other model computations.

Datasets

The framework was calibrated and evaluated using several standard benchmarks:

  • Calibration: 32 segments from the WikiText-2 training set.
  • Long-generation Reasoning: A suite of seven tasks including LiveCodeBench, EvalPlus, AIME 2026, MATH-500, HMMT, GPQA Diamond, and IFBench.
  • Short-generation Understanding: Six tasks including MMLU, ARC-C, OpenBookQA, HellaSwag, WinoGrande, and LAMBADA.

Key Insights and Ideas

  • The Feedback Loop of Error: Quantization in recurrent models isn't a static problem. Because the state is updated recursively ($S_t = A_t S_{t-1} + B_t$), errors are effectively "re-quantized" at every step. This makes the "memory lifetime" a primary predictor of quantization risk.
  • Outliers are Everywhere: Unlike model weights, which often have outliers along a single axis, recurrent states show prominent outliers along both key rows and value columns. This necessitates dual-axis scaling rather than standard row-wise or column-wise quantization.
  • Sensitivity is Non-Uniform: As illustrated in Figure 2(a), quantizing high-impact key rows leads to much higher perplexity increases than quantizing low-impact ones. Identifying these "sensitive" rows is crucial for maintaining accuracy at 4 or 6 bits.
Spatial structure and outliers in recurrent states

Key Results

  • Accuracy Preservation: Under a nominal 6-bit budget, STEPQuant closely matches the accuracy of full-precision (FP32) states across both Qwen and Kimi models. Even at 4 bits, it outperforms uniform INT8 quantization.
  • Massive Memory Savings: For Qwen3.8-27B, 6-bit STEPQuant achieves 5.03× compression of the recurrent state. In a serving scenario with a batch size of 512, this translates to a 68.7% reduction in total serving memory (including weights).
  • Throughput Gains: By reducing memory traffic and using optimized kernels, STEPQuant improves full-model decode throughput by up to 20.53% on Qwen and 11.80% on KDA at high batch sizes.
  • Speed: State updates are up to 2.91× faster compared to the FP32 baseline.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Simplified Lifetime Modeling: The lifetime weight is an approximation and doesn't fully capture time-varying, key-dependent state transitions.
  • 4-bit Degradation: While 6-bit performance is excellent, a noticeable accuracy gap remains for the Kimi model on long-generation tasks when pushed down to 4 bits.
  • Scope: The current evaluation is limited to GDN/KDA architectures. Future work could explore how these insights apply to other recurrent architectures or dynamic, unpredictable serving workloads.

Summary updated

BibTeX
@misc{yao2026stepquant,
  author = {Bingchen Yao and Haobo Xu and Haokun Lin and Yichen Wu and Ziyu Guo and Renrui Zhang and Zhichao Lu and Zhenan Sun and Ying Wei},
  title = {{STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization}},
  year = {2026},
  eprint = {2609.38169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38169},
}
Figure