arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.04987cs.LGcs.AImath.OCstat.ML
收藏

Cactus:通过受约束的接受推测采样加速自动回归解码

Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling

Dept. Computing Science & Alberta Machine Intelligence Institute (Amii), University of Alberta(阿尔伯塔大学计算机科学系与阿尔伯塔机器智能研究所);Canada CIFAR AI Chair(加拿大CIFAR人工智能讲席)

Yongchang Hao, Lili Mou

AI总结:

本文提出Cactus方法,通过受约束优化框架,在保证与验证器分布可控差异的同时提升接受率,有效解决传统推测采样在分布匹配上的限制问题。

摘要:

推测采样(SpS)通过利用较小的草案模型加速自回归大语言模型的解码吞吐量,但其严格强制生成分布与验证器LLM分布一致,过于限制。典型接受采样(TAS)通过熵基启发式方法接受更多token,但可能扭曲验证器分布,影响输出质量。本文通过受约束优化视角形式化推测采样算法,提出Cactus(受约束接受推测采样)方法,保证与验证器分布的可控差异和提升的接受率。在广泛基准测试中,实验证明了该方法的有效性。

英文摘要:

Speculative sampling (SpS) has been successful in accelerating the decoding throughput of auto-regressive large language models by leveraging smaller draft models. SpS strictly enforces the generated distribution to match that of the verifier LLM. This is unnecessarily restrictive as slight variations of the verifier's distribution, such as sampling with top-$k$ or temperature, would also be acceptable. Typical acceptance sampling (TAS) alleviates this issue by accepting more tokens using entropy-based heuristics. However, this approach distorts the verifier distribution, potentially degrading output quality when the verifier encodes critical information. In this work, we formalize the speculative sampling algorithm through the lens of constrained optimization. Based on this formulation, we propose Cactus (constrained acceptance speculative sampling), a method that guarantees controlled divergence from the verifier distribution and increasing acceptance rates. Empirical results across a wide range of benchmarks confirm the effectiveness of our approach.

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

↑