arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.11244cs.ARcs.AI
收藏

SPEAR: 一种后量化误差自适应恢复系统,实现高效低比特LLM服务

SPEAR: A System for Post-Quantization Error-Adaptive Recovery Enabling Efficient Low-Bit LLM Serving

University of Electronic Science and Technology of China(电子科学与技术大学);University of Bristol(布里斯托大学);ETH Zurich(苏黎世联邦理工学院)

Hongyuan Liu, Yawei Li, Zhiqiang Que, Qinli Yang, Junming Shao, Guosheng Hu

AI总结:

针对低比特量化导致LLM质量下降的问题,提出SPEAR系统,通过输入感知的门控误差补偿器(EC)选择性修正高误差层,结合自适应内核融合调度和SLO感知调度器,在<1%内存开销下恢复W4与FP16之间56-75%的困惑度差距。

摘要:

高效的大语言模型(LLM)服务日益受到部署成本的制约。量化是降低服务成本的关键技术,但即使是最先进的4比特量化器,其与FP16之间仍存在显著的质量差距,尤其是在低比特服务最有利的小型模型中。我们发现这一差距的根本原因:量化误差高度依赖于输入,且在不同token之间差异显著,而现有的后量化补偿方法是静态的,对所有输入应用相同的修正。结果,简单token被过度修正,而困难token则修正不足。我们提出SPEAR,一种后量化误差自适应恢复系统,用于改进低比特LLM服务。SPEAR引入了由逐token门控调制的轻量级误差补偿器(EC),并将其仅放置在通过CKA引导的熵感知诊断识别出的最误差敏感层。这将少量参数预算集中在最有效的位置。EC的高效部署带来了若干系统挑战,包括额外计算、由输入相关门控引起的张量并行同步,以及跨配置的延迟不稳定。SPEAR通过自适应内核融合调度解决了这些问题,结合了后同步集成规约内核与P2P双写,将EC后计算融合到低比特GEMM中,并采用SLO约束的EC感知调度器以实现可预测的服务性能。在具有挑战性的逐通道量化设置中,SPEAR恢复了W4与FP16之间56-75%的困惑度差距,同时增加了不到1%的模型内存开销,并保持了与广泛使用的4比特服务部署相当的延迟。

英文摘要:

Efficient large language model (LLM) serving is increasingly constrained by deployment cost. Quantization is a key technique for reducing serving cost, yet even state-of-the-art 4-bit quantizers exhibit a noticeable quality gap from FP16, particularly for smaller models where low-bit serving is most beneficial. We identify a fundamental cause of this gap: quantization error is highly input-dependent and varies substantially across tokens, while existing post-quantization compensation methods are static and apply identical corrections to all inputs. As a result, easy tokens are over-corrected while hard tokens remain under-corrected. We present SPEAR, a system for post-quantization error-adaptive recovery that improves low-bit LLM serving. SPEAR introduces lightweight Error Compensators (ECs) modulated by per-token gates and places them only at the most error-sensitive layers identified through a CKA-guided entropy-aware diagnostic. This focuses a small parameter budget where it is most effective. Efficient deployment of ECs presents several systems challenges, including additional computation, tensor-parallel synchronization caused by input-dependent gating, and latency instability across configurations. SPEAR addresses these issues through adaptive kernel-fusion dispatch, combining an epilogue-integrated peer-reduction kernel with P2P dual-write to fuse the post-EC computation into low-bit GEMMs, and an SLO-constrained EC-aware scheduler for predictable serving performance. Across challenging per-channel quantization settings, SPEAR recovers 56-75% of the perplexity gap between W4 and FP16 while adding less than 1% model memory overhead and maintaining latency comparable to a widely used 4-bit serving deployment.

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

↑