arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.12663cs.CVcs.AIcs.LG
收藏

PoM:使用多项式混合器实现高效图像与视频生成

PoM: Efficient Image and Video Generation with the Polynomial Mixer

LIGM;École Nationale des Ponts et Chaussées(巴黎国立路桥学校);IP Paris(巴黎理工学院);Univ Gustave Eiffel(古斯塔夫·埃菲尔大学);CNRS(法国国家科学研究中心);LIX;École Polytechnique(巴黎综合理工学院)

David Picard, Nicolas Dufour

AI总结:

本文提出多项式混合器(PoM)作为多头注意力的线性复杂度替代方案,通过显式状态编码实现高效图像与视频生成,并在扩散变换器中验证了其高质量与低资源消耗的优势。

摘要:

基于多头注意力(MHA)的扩散模型已成为生成高质量图像和视频的普遍方法。然而,将图像或视频编码为补丁序列会导致昂贵的注意力模式,因为内存和计算需求都呈二次增长。为了缓解这一问题,我们提出了一种可直接替代 MHA 的方法,称为多项式混合器(PoM),其优势在于将整个序列编码为显式状态。PoM 相对于 token 数量具有线性复杂度。这种显式状态还使我们能够以顺序方式生成帧,从而最小化内存和计算需求,同时仍然能够并行训练。我们证明多项式混合器与常规 MHA 一样,是一种通用的序列到序列逼近器。我们调整了多个扩散变换器(DiT),用 PoM 替换 MHA 来生成图像和视频,并在使用更少计算资源的情况下获得了高质量样本。代码可在 https://github.com/davidpicard/HoMM 获取。

英文摘要:

Diffusion models based on Multi-Head Attention (MHA) have become ubiquitous to generate high quality images and videos. However, encoding an image or a video as a sequence of patches results in costly attention patterns, as the requirements both in terms of memory and compute grow quadratically. To alleviate this problem, we propose a drop-in replacement for MHA called the Polynomial Mixer (PoM) that has the benefit of encoding the entire sequence into an explicit state. PoM has a linear complexity with respect to the number of tokens. This explicit state also allows us to generate frames in a sequential fashion, minimizing memory and compute requirement, while still being able to train in parallel. We show the Polynomial Mixer is a universal sequence-to-sequence approximator, just like regular MHA. We adapt several Diffusion Transformers (DiT) for generating images and videos with PoM replacing MHA, and we obtain high quality samples while using less computational resources. The code is available at https://github.com/davidpicard/HoMM.

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

↑