arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.01399cs.DCcs.LG
收藏

Quasar:量化自我推测加速以通过内存高效验证实现快速推理

Quasar: Quantized Self-Speculative Acceleration for Rapid Inference via Memory-Efficient Verification

Guang Huang, Zeyi Wen

AI总结:

Quasar通过低比特量化技术提升验证阶段效率,实现快速推理的内存高效加速

摘要:

推测解码(SD)已成为加速大语言模型(LLM)推理的领先技术,通过将令牌生成分解为快速草稿和并行验证。尽管最近在自我推测和前瞻解码方面的进展已成功减少了草稿开销,但它们将主要性能瓶颈转移到了验证阶段。由于验证需要目标模型的完整前向传递,因此它仍然严格受限于内存带宽,从根本上限制了最大可能的加速。在本文中,我们介绍了Quasar(量化自我推测加速以实现快速推理),一种新的、无需训练的框架,旨在通过在验证阶段使用低比特量化来克服这个“内存墙”问题。我们的实证分析表明,尽管激进的结构剪枝显著降低了验证准确性,但基于量化的验证保持了高保真的logit分布,同时有效地将内存交通减半。在最先进的模型(如OpenPangu和Qwen3)上的广泛实验表明,Quasar在保持与全精度方法相当的推测接受长度的同时,实现了端到端吞吐量的1.28倍提升。Quasar与现有草稿策略正交,为加速推测执行的验证阶段提供了一种通用且高效的途径。代码可在https://github.com/Tom-HG/Quasar上获得。

英文摘要:

Speculative Decoding (SD) has emerged as a premier technique for accelerating Large Language Model (LLM) inference by decoupling token generation into rapid drafting and parallel verification. While recent advancements in self-speculation and lookahead decoding have successfully minimized drafting overhead, they have shifted the primary performance bottleneck to the verification phase. Since verification requires a full forward pass of the target model, it remains strictly memory-bandwidth bound, fundamentally limiting the maximum achievable speedup.In this paper, we introduce \textbf{Quasar} (\textbf{Qua}ntized \textbf{S}elf-speculative \textbf{A}cceleration for \textbf{R}apid Inference), a novel, training-free framework designed to overcome this "memory wall" by employing low-bit quantization specifically for the verification stage. Our empirical analysis reveals that while aggressive structural pruning significantly degrades verification accuracy, quantization-based verification preserves the logit distribution with high fidelity while effectively halving memory traffic. Extensive experiments on state-of-the-art models (e.g., OpenPangu and Qwen3) demonstrate that Quasar maintains a speculative acceptance length comparable to full-precision methods while achieving a $1.28\times$ improvement in end-to-end throughput. Being orthogonal to existing drafting strategies, Quasar offers a generic and efficient pathway to accelerate the verification leg of speculative execution. Code is available at https://github.com/Tom-HG/Quasar.

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

↑