arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.05370cs.LGstat.ML
收藏

通过投机采样加速扩散模型

Accelerated Diffusion Models via Speculative Sampling

Google DeepMind(谷歌DeepMind)

Valentin De Bortoli, Alexandre Galashov, Arthur Gretton, Arnaud Doucet

AI总结:

本文将投机采样从离散序列扩展到连续扩散模型,提出无需训练草稿模型的通用加速策略,在保持目标模型精确采样的同时将函数评估次数减半。

摘要:

投机采样是一种在大语言模型中加速推理的流行技术,它通过使用快速的草稿模型生成候选token,并根据目标模型的分布接受或拒绝这些候选token。虽然投机采样之前仅限于离散序列,但我们将其扩展到扩散模型,扩散模型通过连续的、向量值的马尔可夫链生成样本。在此背景下,目标模型是一个高质量但计算成本高昂的扩散模型。我们提出了多种草稿策略,包括一种简单有效的方法,该方法不需要训练草稿模型,并且可以开箱即用地适用于任何扩散模型。我们的实验表明,在各种扩散模型上实现了显著的生成加速,将函数评估次数减少了一半,同时从目标模型生成精确样本。

英文摘要:

Speculative sampling is a popular technique for accelerating inference in Large Language Models by generating candidate tokens using a fast draft model and accepting or rejecting them based on the target model's distribution. While speculative sampling was previously limited to discrete sequences, we extend it to diffusion models, which generate samples via continuous, vector-valued Markov chains. In this context, the target model is a high-quality but computationally expensive diffusion model. We propose various drafting strategies, including a simple and effective approach that does not require training a draft model and is applicable out of the box to any diffusion model. Our experiments demonstrate significant generation speedup on various diffusion models, halving the number of function evaluations, while generating exact samples from the target model.

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

↑