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

PARD-2:面向双模式推测解码的目标对齐并行草稿模型

PARD-2: Target-Aligned Parallel Draft Model for Dual-Mode Speculative Decoding

Advanced Micro Devices, Inc.(先进微器件公司);Rutgers University(罗格斯大学);Michigan State University(密歇根州立大学)

Zihao An, Taichi Liu, Ziqiong Liu, Dong Li, Ruofeng Liu, Emad Barsoum

AI总结:

本文提出PARD-2,一种双模式推测解码框架,通过Confidence-Adaptive Token优化提升LLM推理效率,实验显示其在Llama3.1-8B上实现6.94倍无损加速。

摘要:

推测解码通过轻量草稿模型生成候选token,由目标模型并行验证以加速大语言模型推理。然而现有草稿模型训练目标与推理时最大化连续token接受的目标不一致。为此,本文重新定义草稿模型优化目标,从token预测准确性转向整体接受长度。基于PARD提出PARD-2,一种双模式推测解码框架,采用Confidence-Adaptive Token优化。该方法自适应调整每个token权重以更好地匹配验证过程。值得注意的是,PARD-2使单个草稿模型能够支持目标依赖和目标无关模式。在多种模型和任务上的实验表明,PARD-2在Llama3.1-8B上实现了高达6.94倍无损加速,超过EAGLE-3和PARD。代码可在https://github.com/AMD-AGI/PARD获取。

英文摘要:

Speculative decoding accelerates Large Language Models (LLMs) inference by using a lightweight draft model to propose candidate tokens that are verified in parallel by the target model. However, existing draft model training objectives are not directly aligned with the inference-time goal of maximizing consecutive token acceptance. To address this issue, we reformulate the draft model optimization objective, shifting the focus from token prediction accuracy to the overall acceptance length. In this paper, we build upon PARD to propose PARD-2, a dual-mode speculative decoding framework with Confidence-Adaptive Token (CAT) optimization. This approach adaptively reweights each token to better align with the verification process. Notably, PARD-2 enables a single draft model to support both target-dependent and target-independent modes. Experiments across diverse models and tasks demonstrate that PARD-2 achieves up to 6.94$\times$ lossless acceleration, surpassing EAGLE-3 by 1.9$\times$ and PARD by 1.3$\times$ on Llama3.1-8B. Our code is available at https://github.com/AMD-AGI/PARD.

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

↑