STEPQuant compresses recurrent states: nominal 6-bit accuracy near FP32

STEPQuant combines lifetime-aware bit allocation and dual-axis fitting to approach FP32-state accuracy in Qwen3.8-27B and Kimi Linear tests. Its reported 68.7% memory reduction is reserved serving-capacity accounting for a specified configuration, not measured peak usage.
6-bit denotes a nominal precision budget; FP16-protected units and scales incur additional storage overhead. Near-FP32 performance refers to accuracy on the listed models and tasks, not bitwise losslessness. The 68.7% figure is an accounting of serving-memory capacity under the paper's specified reserved state-slot configuration, not a measured reduction in peak memory usage. The memory accounting and decoding-throughput tests use different parallel configurations.
The two best-known entries in the memory budget for large-model inference are weights and the KV cache. Linear attention changes the latter: it compresses historical information into a fixed-size recurrent state, which no longer grows as the sequence gets longer.
New-generation hybrid models such as Qwen3.8 and Kimi Linear have already incorporated Delta-rule linear attention into their backbones.
But "fixed-size" does not mean "free."
In highly concurrent serving, each request needs its own persistent state. The state pool's memory therefore grows linearly with concurrency, regardless of context length. In the paper's accounting for an SGLang configuration that reserves five state slots per request, Qwen3.8-27B's FP32 state pool already exceeds the memory occupied by the BF16 weights themselves at around 70 concurrent requests. Worse, directly quantizing the states to low bit widths causes accuracy to drop sharply.
To address this, researchers from Zhejiang University, the Institute of Automation of the Chinese Academy of Sciences, and other institutions propose STEPQuant: a joint spatiotemporal post-training quantization framework for Delta-rule recurrent states. It tackles two dimensions of error—when it accumulates and where it lands. With a nominal 6-bit budget, it almost matches FP32-state accuracy and achieves over 5-fold state compression in SGLang. Under the paper's specified configuration, the calculated reserved serving-memory capacity falls by as much as 68.7%.

- Paper title: STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization
- Paper: https://arxiv.org/abs/2609.38169
- Project repository: https://github.com/Dreamer-Toby/STEPQuant
1. The problem
Why does quantization error snowball?
Errors from weight quantization are static; recurrent states are different. At every decoding step, the Delta rule reads the old state, writes new information, and stores the result again. Once the state is stored at low precision, each step updates an old state that already contains errors and then quantizes it once more: old errors carry into the next step, while new errors continue to accumulate.
Across seven long-reasoning tasks on Qwen3.8-27B, uniform INT6 reduces average accuracy from 80.60% to 45.04%. INT4 leaves just 12.73%, and even INT8 has a gap of nearly 9 percentage points.
The paper separates the impact of errors into two complementary questions:
- When:
How long does an error remain in the state?
- Where:
Where in the state matrix does the error occur?
2. The temporal dimension
Longer-lived memories merit higher precision
The theoretical analysis shows that accumulated errors dissipate through two mechanisms: retention-gate decay and Delta updates that correct the current key direction. For directions rarely hit by subsequent keys, errors can only rely on gate decay. When retention is close to 1, they survive for many steps.
The researchers verify this across Qwen3.8-27B's 2,304 recurrent heads: the longer the gate half-life, the larger the accumulated state error, with a Spearman correlation of approximately 0.80.
On this basis, the paper proposes Lifetime-aware Bit Allocation:
- Allocate precision using lifetime weights:
During offline calibration, estimate each state unit's distortion at different bit widths and its memory lifetime. Under a fixed average bit budget, allocate more bits to units with large errors and long lifetimes.
- Sparse pivot protection:
A very small number of high-risk units are difficult to quantize even with mixed precision and are retained directly in FP16. On Qwen, protecting just 1.39% of the heads adds almost no storage pressure.
The allocation is determined offline and stays fixed for all requests, introducing no additional allocation overhead during inference.
3. The spatial dimension
Rows differ in importance, and outliers span both axes
Besides how long errors persist, where they land is equally important. The paper makes two observations about the spatial structure of the state matrix.

1. Key rows are not equally important
Errors of the same magnitude affect the output differently when they occur in different key rows. The paper defines an influence score for each row and divides the key rows into eight groups by this score, quantizing only one group to INT4 at a time. The results show that higher-scoring groups cause a larger increase in perplexity.
2. Outliers occur in both rows and columns
Conventional LLM quantization generally only needs to handle outliers along one axis, but recurrent states are different. Along the key-row and value-column directions, the ratios of maximum to median magnitude reach 10.3 and 19.4, respectively, and persist throughout decoding. Scaling along only one axis inevitably neglects the other.
To address this, the paper proposes Key-Row-Aware Dual-Axis Fitting: each row and column receives its own scale, and each state element is reconstructed as "row scale × column scale × low-bit integer."
- Row scales
Account for both magnitude and importance. Rows with large magnitudes receive wider quantization ranges, while rows with greater influence receive finer quantization steps.
- Column scales:
Are fitted after the row scales have been determined, with reconstruction errors on high-influence rows penalized more heavily.
4. From algorithm to system
Integrating fused kernels into SGLang
Simulated quantization alone does not save actual device memory. The team implements STEPQuant as packed-state kernels and integrates it into SGLang's recurrent state pool:
- Fused computation:
State reconstruction, Delta updates, and the readout for the current token are fused into one kernel, avoiding an additional pass over the entire state solely for reconstruction.
- Asynchronous writeback:
After the readout is complete, subsequent layers continue processing the token, while scale fitting and packed writeback run on a separate CUDA stream.
The state remains compressed between tokens. For Qwen, for example, the recurrent state per request shrinks from 144 MiB to 28.6 MiB.
5. Experimental results
Almost no accuracy loss at 6 bits; 4 bits outperform INT8
The experiments cover two models, Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct, with seven long-reasoning tasks—including LiveCodeBench, AIME 2026, and GPQA Diamond, with up to 65,536 generated tokens per example—and six short-generation tasks. Calibration requires only 32 passages from WikiText-2. The table below shows average accuracy (%) across the seven long-reasoning tasks:

- Accuracy:
6-bit STEPQuant is less than 0.1 percentage points behind FP32 states. The 4-bit configuration outperforms uniform INT8 on both models. Combined with 4-bit AWQ weight quantization, the 6-bit configuration still incurs almost no accuracy loss.
- Ablation:
Both modules are indispensable. In the Qwen ablation on three tasks—AIME 2026, GPQA Diamond, and LiveCodeBench v6—with a 4-bit budget, using only the spatial module scores 73.95%, while using only the temporal module scores 12.87%. Combining the two reaches 84.72%, close to FP32's 84.61%.
- Generation length:
Uniform quantization makes the model "think longer and longer." Kimi's AIME outputs under INT4 average 63.4K tokens, approaching the limit, yet accuracy is 0. STEPQuant's output lengths remain essentially consistent with FP32.
- Efficiency:
In the accounting configuration with eight A800-80GB GPUs, TP8, and five reserved state slots per request, at a batch size of 512, Qwen's reserved serving-memory capacity with 4-bit weights drops from 419.73 GiB to 131.18 GiB, a 68.7% reduction. Recurrent-state memory is compressed by 5.03 times, and state updates are 2.91 times faster. In a separate decoding test with four A800 GPUs, TP4, BF16 weights, and a batch size of 512, overall decoding throughput rises by approximately 20%.

6. Conclusions and outlook
STEPQuant highlights an easily overlooked fact: linear attention removes the KV cache that grows with sequence length, but shifts memory pressure to a state pool that grows with concurrency. The paper's contributions can be summarized in three points:
- Error analysis:
Explains why quantization errors are amplified during Delta updates from the perspectives of memory lifetime and spatial structure.
- Quantization method:
Lifetime-aware bit allocation combined with key-row-aware dual-axis fitting brings 6-bit states close to FP32 accuracy.
- System implementation:
Fused kernels integrated into SGLang turn the compression ratio into actual memory and speed benefits.
As more models adopt hybrid architectures combining linear attention with a small amount of full attention, state compression could join weight and KV-cache quantization as a standard method for optimizing inference memory.
Further reading and resources
STEPQuant's code is open source on GitHub. If you follow linear attention, model quantization, or high-performance inference, consider bookmarking this link:
- https://github.com/Dreamer-Toby/STEPQuant
Star the repository to follow its progress, and try it in your own models and serving scenarios!
This article is from "Jiqizhixin," by "Jiqizhixin."
Related topics
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




