arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.04708cs.CL
收藏

加速测试时间缩放与模型无关的推测采样

Accelerated Test-Time Scaling with Model-Free Speculative Sampling

KAIST(韩国科学技术院);Amazon AGI(亚马逊人工智能实验室);AirSignal

Woomin Song, Saket Dingliwal, Sai Muralidhar Jayanthi, Bhavana Ganesh, Jinwoo Shin, Aram Galstyan, Sravan Babu Bodapati

AI总结:

本文提出STAND,一种无需模型的推测解码方法,通过利用推理轨迹中的冗余性,显著提升推理效率而不牺牲准确性,经多个模型和任务评估,STAND在保持准确性的同时将推理延迟降低了60-65%。

摘要:

语言模型通过测试时间缩放技术如best-of-N采样和树搜索在推理任务中展现了显著的能力。然而,这些方法通常需要大量的计算资源,导致性能与效率之间的关键权衡。我们引入STAND(STochastic Adaptive N-gram Drafting),一种新颖的无模型推测解码方法,利用推理轨迹中的内在冗余性,实现显著的加速而不牺牲准确性。我们的分析显示,推理路径经常重复相似的推理模式,使高效的无模型令牌预测成为可能,而无需单独的草案模型。通过引入随机草案和通过高效日志几率基的n-gram模块保留概率信息,结合优化的Gumbel-Top-K采样和数据驱动的树构建,STAND显著提高了令牌接受率。在多个模型和推理任务(AIME-2024、GPQA-Diamond和LiveCodeBench)上的广泛评估表明,与标准自回归解码相比,STAND将推理延迟降低了60-65%,同时保持准确性。此外,STAND在各种推理模式下,包括单轨迹解码、批量解码和测试时间树搜索中,均优于最先进的推测解码方法。作为一种无模型方法,STAND可以应用于任何现有语言模型,无需额外训练,使其成为加速语言模型推理的强大即插即用解决方案。

英文摘要:

Language models have demonstrated remarkable capabilities in reasoning tasks through test-time scaling techniques like best-of-N sampling and tree search. However, these approaches often demand substantial computational resources, creating a critical trade-off between performance and efficiency. We introduce STAND (STochastic Adaptive N-gram Drafting), a novel model-free speculative decoding approach that exploits the inherent redundancy in reasoning trajectories to achieve significant acceleration without compromising accuracy. Our analysis shows that reasoning paths frequently reuse similar reasoning patterns, enabling efficient model-free token prediction without requiring separate draft models. By introducing stochastic drafting and preserving probabilistic information through a memory-efficient logit-based N-gram module, combined with optimized Gumbel-Top-K sampling and data-driven tree construction, STAND significantly improves token acceptance rates. Extensive evaluations across multiple models and reasoning tasks (AIME-2024, GPQA-Diamond, and LiveCodeBench) demonstrate that STAND reduces inference latency by 60-65% compared to standard autoregressive decoding while maintaining accuracy. Furthermore, STAND consistently outperforms state-of-the-art speculative decoding methods across diverse inference patterns, including single-trajectory decoding, batch decoding, and test-time tree search. As a model-free approach, STAND can be applied to any existing language model without additional training, making it a powerful plug-and-play solution for accelerating language model reasoning.

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

↑