arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00382cs.CVcs.AIcs.LG
收藏

带有解码时间缩放的掩码生成嵌套 Transformers

Masked Generative Nested Transformers with Decode Time Scaling

Google DeepMind(谷歌DeepMind);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Sahil Goyal, Debapriya Tula, Gagan Jain, Pradeep Shenoy, Prateek Jain, Sujoy Paul

AI总结:

针对视觉生成推理计算效率低的问题,提出解码时间模型缩放与计算缓存重用机制,使小模型处理多token、大模型处理少token且共享参数,在计算量减少近3倍时仍保持竞争力。

摘要:

视觉生成的最新进展在生成高质量内容方面取得了显著进步。然而,大多数方法存在一个根本问题——推理计算效率的瓶颈。这些算法大多需要对 transformer 模型进行多次传递以生成 token 或对输入去噪。然而,模型大小在所有迭代中保持一致,这使得计算成本高昂。在本工作中,我们旨在主要通过两个关键思想来解决这个问题:(a) 并非生成过程的所有部分都需要同等的计算量,我们设计了解码时间模型缩放时间表以有效利用计算资源;(b) 我们可以缓存并重用部分计算。结合这两个思想,使得较小的模型处理更多 token,而较大的模型处理较少的 token。这些不同大小的模型不会增加参数量,因为它们共享参数。我们在 ImageNet256×256、UCF101 和 Kinetics600 上进行了严格实验,以展示所提出方法在图像/视频生成和帧预测中的有效性。我们的实验表明,在计算量比基线少近 3 倍的情况下,我们的模型获得了具有竞争力的性能。

英文摘要:

Recent advances in visual generation have made significant strides in producing content of exceptional quality. However, most methods suffer from a fundamental problem - a bottleneck of inference computational efficiency. Most of these algorithms involve multiple passes over a transformer model to generate tokens or denoise inputs. However, the model size is kept consistent throughout all iterations, which makes it computationally expensive. In this work, we aim to address this issue primarily through two key ideas - (a) not all parts of the generation process need equal compute, and we design a decode time model scaling schedule to utilize compute effectively, and (b) we can cache and reuse some of the computation. Combining these two ideas leads to using smaller models to process more tokens while large models process fewer tokens. These different-sized models do not increase the parameter size, as they share parameters. We rigorously experiment with ImageNet256$\times$256 , UCF101, and Kinetics600 to showcase the efficacy of the proposed method for image/video generation and frame prediction. Our experiments show that with almost $3\times$ less compute than baseline, our model obtains competitive performance.

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

↑