STEPQuant: Delta-Ruleリカレント状態量子化において誤差がいつ、どこで重要になるか
STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization
September 29, 2026
著者: Bingchen Yao, Haobo Xu, Haokun Lin, Yichen Wu, Ziyu Guo, Renrui Zhang, Zhichao Lu, Zhenan Sun, Ying Wei
cs.AI
要旨
線形アテンションは、増大するKVキャッシュを固定サイズの再帰状態に置き換えるが、これらの永続的な状態は、同時サービング下では無視できないメモリボトルネックになり得る。再帰状態を直接低精度に量子化すると、量子化誤差が連続する状態更新を通じて伝播するため、精度が大幅に劣化することが多い。我々は、これらの誤差の影響が相補的な2つの次元に依存することを見出した。時間的には、長寿命メモリ内の誤差が多くのデコードステップにわたって持続し得る。空間的には、異なるキー行の誤差はモデル出力に異なる影響を与え、また状態の大きさは行方向と列方向の両方に沿って大きく変動する。これらの観察に動機づけられ、我々はSTEPQuantを提案する。これはDeltaルール再帰状態のための空間的・時間的訓練後量子化フレームワークである。STEPQuantは誤差の大きさとメモリ寿命に応じて精度を割り当て、状態分布と出力誤差へのキー行の影響に基づいてキー行スケールとバリュー列スケールを同時にフィットさせる。長生成と短生成の両方のベンチマークにおけるQwen3.8-27BおよびKimi-Linear-48B-A3B-Instructでの実験は、STEPQuantが公称6ビット予算の下でFP32状態の精度にほぼ匹敵し、その4ビット構成では一様INT8を上回ることを示す。最適化されたGPUカーネルとともにSGLangに統合された6ビットSTEPQuantは、5倍超の再帰状態圧縮を達成し、総サービングメモリを最大68.7%削減する。コードは https://github.com/Dreamer-Toby/STEPQuant で公開している。
English
Linear attention replaces growing KV caches with fixed-size recurrent states, yet these persistent states can become a substantial memory bottleneck under concurrent serving. Directly quantizing recurrent states to low precision often leads to severe accuracy degradation, as quantization errors propagate through successive state updates. We discover that the impact of these errors depends on two complementary dimensions: temporally, errors in long-lived memory can persist across many decoding steps; spatially, errors in different key rows affect model outputs differently, while state magnitudes vary substantially along both rows and columns. Motivated by these observations, we propose STEPQuant, a spatial-temporal post-training quantization framework for Delta-rule recurrent states. STEPQuant allocates precision according to error magnitude and memory lifetime, and jointly fits key-row and value-column scales based on state distributions and key-row impact on output error. Experiments on Qwen3.8-27B and Kimi-Linear-48B-A3B-Instruct across both long- and short-generation benchmarks show that STEPQuant closely matches FP32-state accuracy under a nominal 6-bit budget and outperforms uniform INT8 in its 4-bit configuration. Integrated into SGLang with optimized GPU kernels, 6-bit STEPQuant achieves over 5x recurrent-state compression and reduces total serving memory by up to 68.7%. Our code is available at https://github.com/Dreamer-Toby/STEPQuant.