论文
arxiv:2609.38169
复制 Markdown
STEPQuant:在增量规则循环状态量化中,何时何地误差至关重要
发表于 9月29日
·
提交者
Haokun Lin
于 10月8日
·
浙江大学
作者:
Bingchen Yao
,
Haobo Xu
,
Haokun Lin
,
Yichen Wu
,
Ziyu Guo
,
Renrui Zhang
,
Zhichao Lu
,
Zhenan Sun
,
Ying Wei
摘要
线性注意力机制用固定大小的循环状态取代了不断增长的 KV 缓存,然而这些持久化状态在并发服务中可能成为巨大的内存瓶颈。直接对循环状态进行低精度量化通常会导致严重的精度下降,因为量化误差会在连续的状态更新过程中传播。我们发现,这些误差的影响取决于两个互补的维度:在时间维度上,长寿命记忆中的误差可以在许多解码步骤中持续存在;在空间维度上,不同键行(key rows)中的误差对模型输出的影响各不相同,且状态幅度沿行和列方向均存在显著差异。受这些观察结果的启发,我们提出了 STEPQuant,一种针对增量规则循环状态的时空后训练量化框架。STEPQuant 根据误差幅度和内存生命周期分配精度,并基于状态分布及其对输出误差的影响,联合拟合键行和值列(value columns)的缩放系数。在 Qwen3.8-27B 和 Kimi-Linear-48B-A3B-Instruct 上的长生成和短生成基准测试实验表明,STEPQuant 在名义上的 6-bit 预算下其精度接近 FP32 状态水平,并优于其 4-bit 配置下的均匀 INT8 量化。集成到带有优化 GPU 内核的 SGLang 中,6-bit STEPQuant 实现了超过 5 倍的循环状态压缩率,并将总服务内存减少了高达 68.7%。我们的代码可在 https://github.com/Dreamer-Toby/STEPQuant 获取。
查看 arXiv 页面
查看 PDF
GitHub
91
添加到收藏
社区
Felix1023
论文提交者
大约 20 小时前
•
编辑于大约 20 小时前
🚀 很高兴分享 STEPQuant:在增量规则循环状态量化中,何时何地误差至关重要!
STEPQuant 通过在时间和空间两个维度上解决量化误差,实现了线性注意力中循环状态的高效低比特量化。
✨ 关键亮点:
6-bit 状态下接近 FP32 的精度
超过 5 倍的循环状态压缩率
总服务内存减少高达 68.7%
高效的 SGLang 实现
📄 论文:https://arxiv.org/abs/2609.38169
💻 代码:https://github.com/Dreamer-Toby/STEPQuant
欢迎提供反馈和讨论!
查看翻译
回复
编辑
预览
通过拖拽、粘贴或点击此处上传图片、音频和视频。
评论
· 注册或登录以发表评论
赞成票
99
+87
在您的代理中获取此论文:
hf papers read 2609.38169
没有最新的 CLI?
引用此论文的模型
0
无链接此论文的模型
在模型的 README.md 中引用 arxiv.org/abs/2609.38169 可从本页链接它。
引用此论文的数据集
0
无链接此论文的数据集
在数据集的 README.md 中引用 arxiv.org/abs/2609.38169 可从本页链接它。
引用此论文的 Spaces
1
📄
tardellirs/paper-pulse
包含此论文的集合
3
WTF GENIUS PAPERS
集合
让我更加欣赏我的专业和生活的论文。obs=Observation(观察),innov=Innovation(创新)。大多数论文都致力于改进小型模型。
•
453 项内容
•
更新于大约 5 小时前
•
99
Attention
集合
31 项内容
•
更新于大约 4 小时前
•
2
HomeWork
集合
16 项内容
•
更新于大约 1 小时前
Papers
arxiv:2609.38169
Copy markdown
STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization
Published on Sep 29
·
Submitted by
Haokun Lin
on Oct 8
·
Zhejiang University
Authors:
Bingchen Yao
,
Haobo Xu
,
Haokun Lin
,
Yichen Wu
,
Ziyu Guo
,
Renrui Zhang
,
Zhichao Lu
,
Zhenan Sun
,
Ying Wei
Abstract
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.
View arXiv page
View PDF
GitHub
91
Add to collection
Community
Felix1023
Paper submitter
about 20 hours ago
•
edited about 20 hours ago
🚀 Excited to share STEPQuant: When and Where Errors Matter in Delta-Rule Recurrent State Quantization!
STEPQuant enables efficient low-bit quantization of recurrent states in linear attention by addressing quantization errors across both temporal and spatial dimensions.
✨ Key highlights:
Near-FP32 accuracy with 6-bit states
Over 5× recurrent-state compression
Up to 68.7% reduction in total serving memory
Efficient SGLang implementation
📄 Paper: https://arxiv.org/abs/2609.38169
💻 Code: https://github.com/Dreamer-Toby/STEPQuant
Feedback and discussions are very welcome!
See translation
Reply
Edit
Preview
Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.
Comment
· Sign up or log in to comment
Upvote
99
+87
Get this paper in your agent:
hf papers read 2609.38169
Don't have the latest CLI?
Models citing this paper
0
No model linking this paper
Cite arxiv.org/abs/2609.38169 in a model README.md to link it from this page.
Datasets citing this paper
0
No dataset linking this paper
Cite arxiv.org/abs/2609.38169 in a dataset README.md to link it from this page.
Spaces citing this paper
1
📄
tardellirs/paper-pulse
Collections including this paper
3
WTF GENIUS PAPERS
Collection
Papers that made me appreciate my major and my life a little more. obs=Observation, innov=Innovation. Most papers are abt improving tiny models.
•
453 items
•
Updated about 5 hours ago
•
99
Attention
Collection
31 items
•
Updated about 4 hours ago
•
2
HomeWork
Collection
16 items
•
Updated about 1 hour ago
首次收录 · 2026-10-09 · 10.95 分