STEPQuant: 델타 규칙 순환 상태 양자화에서 오류는 언제, 어디서 중요한가

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 캐시를 고정 크기의 순환 상태로 대체하지만, 이러한 지속 상태는 동시 서빙 상황에서 상당한 메모리 병목이 될 수 있다. 순환 상태를 낮은 정밀도로 직접 양자화하면 양자화 오류가 연속적인 상태 업데이트를 통해 전파되므로 정확도가 심각하게 저하되는 경우가 많다. 우리는 이러한 오류의 영향이 두 가지 상호 보완적인 차원에 달려 있음을 발견한다. 시간적으로는 오래 지속되는 메모리의 오류가 많은 디코딩 단계에 걸쳐 남아 있을 수 있고, 공간적으로는 서로 다른 키 행의 오류가 모델 출력에 서로 다르게 영향을 미치는 반면, 상태 크기는 행과 열 모두를 따라 상당히 변한다. 이러한 관찰에 착안하여, 우리는 델타 규칙 순환 상태를 위한 시공간적 학습 후 양자화 프레임워크인 STEPQuant를 제안한다. 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.
PDF1001October 9, 2026