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

UniVer:面向多步与多草稿推测解码的统一视角

UniVer: A Unified Perspective for Multi-step and Multi-draft Speculative Decoding

Yepeng Weng, Qiao Hu, Takehisa Yairi

AI总结:

UniVer将树状验证建模为条件最优传输问题,联合优化多步与多草稿的耦合关系,提升推测解码的接受长度4.2%-8.5%且保持分布对齐。

摘要:

推测解码通过“生成草稿-验证”的流程加速大语言模型,其中验证环节可被建模为最优传输(Optimal Transport, OT)问题。现有方法通常孤立处理多草稿与多步维度,要么对单步草稿应用平面OT,要么对树状结构候选执行逐词拒绝采样。这种分离式处理导致多步依赖与多草稿分支结合的联合场景优化不足,因为局部验证规则无法利用候选树水平与垂直维度的耦合关系。本文提出一种统一视角,将树状验证建模为条件OT问题,核心洞见是垂直依赖可通过前缀接受概率抽象,该概率作为动态缩放因子主动引导水平草稿选择。基于此,我们引入UniVer算法,该算法通过在前缀约束下组合局部最优传输计划,实现树层级间的联合优化。我们证明UniVer在提出的条件框架下保持无损性并达到最优接受率。在不同任务与模型上的大量实验表明,与标准无替换递归拒绝采样相比,UniVer的接受长度提升了4.2%至8.5%,同时保持与目标模型的精确分布对齐。

英文摘要:

Speculative decoding accelerates Large Language Models via draft-then-verify, where verification can be framed as an Optimal Transport (OT) problem. Existing approaches typically handle multi-draft and multi-step aspects in isolation, applying either flat OT to single-step drafts or per-token rejection sampling to tree-structured candidates. This separation leaves the joint regime (where multi-step dependencies meet multi-draft branching) poorly optimized, as local verification rules fail to exploit the coupling between horizontal and vertical dimensions of candidate trees. In this paper, we propose a unified perspective that casts tree-based verification as a conditional OT problem. Our key insight is that vertical dependencies can be abstracted through prefix acceptance probabilities, which act as dynamic scaling factors to actively guide horizontal draft selection. Based on this principle, we introduce UniVer, a verification algorithm that jointly optimizes across tree levels by composing local optimal transport plans under prefix constraints. We prove that UniVer remains lossless and achieves the optimal acceptance rate under the proposed conditional framework. Extensive experiments across different tasks and models demonstrate that UniVer improves acceptance length by 4.2% to 8.5% over standard recursive rejection sampling without replacement, while maintaining exact distributional alignment with the target model.

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

↑