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

FutureFill:卷积序列模型的快速生成方法

FutureFill: Fast Generation from Convolutional Sequence Models

Princeton University(普林斯顿大学);Princeton Language and Intelligence(普林斯顿语言与智能);Google DeepMind(谷歌DeepMind)

Naman Agarwal, Xinyi Chen, Evan Dogariu, Devan Shah, Hubert Strauss, Vlad Feinberg, Daniel Suo, Peter Bartlett, Elad Hazan

AI总结:

FutureFill是一种通用快速生成方法,将卷积序列模型的生成时间从二次方降至近线性,并减少预填充缓存,实验验证了其效率提升。

摘要:

我们通过引入FutureFill来解决序列预测模型中高效自回归生成的挑战,这是一种适用于任何基于卷积算子的序列预测算法的通用快速生成方法。FutureFill将生成时间从上下文长度的二次方降低到近线性。此外,当从提示生成时,它所需的预填充缓存大小仅随要生成的令牌数量增长,通常远小于标准卷积或基于注意力模型所需的缓存。我们通过在合成任务上的实验验证了我们的理论主张,并展示了从深度卷积序列预测模型生成时的显著效率提升。

英文摘要:

We address the challenge of efficient auto-regressive generation in sequence prediction models by introducing FutureFill, a general-purpose fast generation method for any sequence prediction algorithm based on convolutional operators. FutureFill reduces generation time from quadratic to quasilinear in the context length. Moreover, when generating from a prompt, it requires a prefill cache whose size grows only with the number of tokens to be generated, often much smaller than the caches required by standard convolutional or attention based models. We validate our theoretical claims with experiments on synthetic tasks and demonstrate substantial efficiency gains when generating from a deep convolutional sequence prediction model.

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

↑