跳到正文
arXiv (AI + Vision + Imaging)· Yepeng Weng, Qiao Hu, Takehisa Yairi·· 1 天前AI 评分36

UniVer:面向多步与多草稿投机解码的统一验证框架

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

AI 导读

UniVer 将树状投机解码验证统一建模为条件最优传输问题,用前缀接受概率作为动态缩放因子引导横向草稿选择,从而联合优化多步与多草稿场景。该算法保持无损,并在所提条件框架下达到最优接受率。跨任务与模型实验中,UniVer 相比标准无放回递归拒绝采样将接受长度提升 4.2% 至 8.5%,同时与目标模型保持精确分布对齐。

正文 · 原文

arXiv:2605.04543v2 Announce Type: replace Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org