arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.05330cs.CLcs.AI
收藏

面向多样本推理的投机解码

Speculative Decoding for Multi-Sample Inference

School of Computer Science, Beijing Institute of Technology(北京理工大学计算机学院);Xiaohongshu Inc(小红书科技有限公司)

Yiwei Li, Jiayi Shi, Shaoxiong Feng, Peiwen Yuan, Xinglin Wang, Yueqi Zhang, Ji Zhang, Chuyi Tan, Boyuan Pan, Yao Hu, Kan Li

AI总结:

本文提出一种面向多样本推理的投机解码方法,通过概率聚合并行路径的共识token序列,无需辅助模型即可提升草稿接受率并降低延迟。

摘要:

我们提出了一种专为多样本推理场景(如自一致性和Best-of-N采样)设计的新型投机解码方法。该方法利用并行生成路径的内在一致性来合成高质量草稿token,无需辅助模型或外部数据库。通过概率聚合机制动态分析并行推理路径间的结构模式,识别与解码分布一致的共识token序列。在数学推理基准上的评估表明,与基线相比,草稿接受率显著提升,同时降低了草稿token构建的延迟。这项工作为高效多样本推理确立了范式转变,使投机解码能够与基于采样的推理技术无缝集成。

英文摘要:

We propose a novel speculative decoding method tailored for multi-sample reasoning scenarios, such as self-consistency and Best-of-N sampling. Our method exploits the intrinsic consensus of parallel generation paths to synthesize high-quality draft tokens without requiring auxiliary models or external databases. By dynamically analyzing structural patterns across parallel reasoning paths through a probabilistic aggregation mechanism, it identifies consensus token sequences that align with the decoding distribution. Evaluations on mathematical reasoning benchmarks demonstrate a substantial improvement in draft acceptance rates over baselines, while reducing the latency in draft token construction. This work establishes a paradigm shift for efficient multi-sample inference, enabling seamless integration of speculative decoding with sampling-based reasoning techniques.

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

↑