通过指数竞赛进行投机采样
Speculative Sampling via Exponential Races
AI总结:
本文建立投机解码与信道模拟的联系,进行信息论分析,推导加速与草稿模型生成令牌数的显式上界关系,并提出指数竞赛方法ERSD,性能达最先进水平。
摘要:
投机解码利用较小的草稿模型加速大型语言模型的推理。本文建立了投机解码与信道模拟之间令人惊讶的联系,后者旨在使用尽可能少的比特模拟噪声信道。这一联系使我们能够对投机解码可实现的加速进行信息论分析。利用这一联系,我们推导出生成加速与草稿模型生成的大规模令牌数$k$之间的显式关系,该关系对所有$k$构成上界。我们还提出了一种通过指数竞赛的新型投机解码方法ERSD,其性能与最先进水平相当。
英文摘要:
Speculative decoding accelerates large language model inference using a smaller draft model. In this paper, we establish a surprising connection between speculative decoding and channel simulation, which aims at simulating a noisy channel using as few bits as possible. This connection allows us to provide an information-theoretic analysis of the speed up that can be achieved by speculative decoding. Leveraging this link, we derive an explicit relation between generation speed-up and the number of tokens $k$ generated by the draft model for large $k$, which serves as an upper bound for all $k$. We also propose a novel speculative decoding method via exponential race ERSD that matches state-of-the-art performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。