arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.15259cs.AI
收藏

RECAP:对推理模型所读取的历史进行低比特校准

RECAP: Calibrating Low-Bit Reasoning Models on the History They Read

SpinEntropy(自旋熵);ETH Zurich(苏黎世联邦理工学院);PolyU(香港理工大学)

Chi Ruan, Yujie Chen, Zixiang Zhao, Jingcai Guo, Haotong Qin

AI总结:

本文提出针对推理模型所读取历史进行校准的后训练量化方法RECAP,通过动态前缀校准与前缀读取几何优化,在W4A4KV4设置下显著提升了DeepSeek-R1-Distill-Qwen-1.5B和Qwen3-4B等模型在MATH500、AIME-120数据集上的推理准确率。

摘要:

低比特量化可降低推理模型的部署成本,但会严重损害长思维链的性能。推理的每一步都会读取包含数千个token的缓存键值对,量化误差会沿推理轨迹不断累积。标准校准方法仅在短片段上进行,忽略了后续推理步骤所需的早期上下文;即便保留了该上下文,仅缓存重建误差也无法反映量化误差对后续注意力机制的影响。本文提出RECAP,这是一种针对推理模型所读取历史进行校准的后训练量化方法。动态前缀校准将长历史上下文与短块重建分离,用当前量化器重新生成前缀键值对,并旋转激活块以监督轨迹上的每个位置;前缀读取几何则根据历史缓存误差对注意力输出的影响进行监督,非对称地加权键误差与值误差。仅在校准阶段应用这两个组件,RECAP在多种推理模型和量化设置下均优于基线。在W4A4KV4设置下,RECAP在MATH500数据集上使DeepSeek-R1-Distill-Qwen-1.5B的准确率较基线提升13.3个百分点,在AIME-120数据集上使Qwen3-4B的准确率提升15.8个百分点。这些结果凸显了低比特推理校准过程中保留历史依赖关系的重要性。

英文摘要:

Low-bit quantization reduces the cost of serving reasoning models but can substantially degrade long chains of thought. Each step reads cached keys and values spanning thousands of tokens, allowing quantization errors to accumulate along the trajectory. Standard calibration operates on short segments that omit the earlier context needed by later reasoning steps. Even when this context is retained, cache reconstruction error alone does not capture how quantization errors affect subsequent attention. We present RECAP, a post-training quantization method that calibrates reasoning models on the history they read. Dynamic-prefix calibration separates long historical context from short-block reconstruction. It regenerates prefix keys and values with the current quantizer and rotates the active block to supervise every position along the trajectory. Prefix read geometry further supervises historical cache errors according to their effects on attention outputs, weighting key and value errors asymmetrically. With both components applied only during calibration, RECAP outperforms the baseline across multiple reasoning models and quantization settings. Under W4A4KV4, RECAP improves accuracy over the baseline by 13.3 percentage points on MATH500 with DeepSeek-R1-Distill-Qwen-1.5B and 15.8 points on AIME-120 with Qwen3-4B. These results highlight the importance of preserving historical dependencies during calibration for low-bit reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑