arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2508.04462cs.LG
收藏

CARD:一种基于查询-校正范式的缓存辅助并行推测解码框架,用于加速大语言模型推理

CARD: A Cache-Assisted Parallel Speculative Decoding Framework via Query-and-Correct Paradigm for Accelerating LLM Inference

Enyu Zhou, Kai Sheng, Hao Chen, Xin He

AI总结:

CARD通过查询-校正范式将草稿生成与验证解耦,利用共享缓存实现并行推测解码,无需微调即可将大语言模型推理加速高达4.83倍。

摘要:

推测解码(SD)中,草稿模型提供多个候选词元供目标模型并行验证,已展现出加速大语言模型推理的巨大潜力。然而,现有SD方法遵循严格的先草稿后验证范式,强制串行过程,既损害性能,又限制了草稿模型的能力。此外,候选序列中一个词元被拒绝会使后续所有词元失效,导致草稿阶段的计算浪费。为克服这些局限,我们提出了一种名为CARD的缓存辅助并行推测解码框架,采用新颖的查询-校正范式。我们的方法将草稿生成与验证解耦:草稿模型向共享缓存填充候选词元,同时目标模型并发地修正草稿轨迹。这使得推理速度接近草稿速度,有效利用草稿模型的效率,且无需额外微调。实验结果表明,CARD显著优于现有最先进方法,相比普通自回归解码实现高达4.83倍的加速,且两个模型均无需微调。

英文摘要:

Speculative decoding (SD), where a draft model provides multiple candidate tokens for the target model to verify in parallel, has demonstrated significant potential for accelerating LLM inference. Yet, existing SD approaches adhere to a strict draft-then-verify paradigm, enforcing a sequential process that hampers performance and constrains the draft model's capacity. Moreover, rejecting a token in the candidate sequence invalidates all subsequent tokens, leading to wasted computation during drafting. To overcome these limitations, we propose a cache-assisted parallel speculative decoding framework called CARD, which employs a novel query-and-correct paradigm. Our approach decouples drafting from verification: the draft model populates a shared cache with candidate tokens, while the target model concurrently refines the draft's trajectory. This enables inference at near-draft-speed, effectively leveraging the draft model's efficiency without additional fine-tuning. Experimental results show that CARD significantly outperforms existing state-of-the-art methods, achieving up to a 4.83x acceleration over vanilla autoregressive decoding, with no fine-tuning required for either models.

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

↑