arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14070cs.CVcs.AI
收藏

采用对角解码的快速自回归视频生成

Fast Autoregressive Video Generation with Diagonal Decoding

Microsoft Research(微软研究院)

Yang Ye, Junliang Guo, Haoyu Wu, Tianyu He, Tim Pearce, Tabish Rashid, Katja Hofmann, Jiang Bian

AI总结:

针对自回归视频生成逐 token 解码过慢的问题,本文提出免训练的 DiagD 对角并行解码及低成本注意力对齐微调,在多模型与数据集上最高加速 10× 且保持视觉质量。

摘要:

自回归 Transformer 模型已在视频生成中展现出令人瞩目的性能,但其逐 token 的顺序解码过程构成了主要瓶颈,对于由数万个 token 表示的长视频尤其如此。本文提出 Diagonal Decoding(DiagD,对角解码),这是一种面向自回归预训练模型的免训练推理加速算法,利用视频中的空间与时间相关性。我们的方法沿时空 token 网格中的对角路径生成 token,从而实现每帧内部的并行解码,并在连续帧之间部分重叠。所提算法具有通用性,可适配多种生成模型和任务,同时为推理速度与视觉质量之间的权衡提供灵活控制。此外,我们提出一种高性价比的微调策略,使模型的注意力模式与我们的解码顺序对齐,从而在小规模模型上进一步缩小训练与推理之间的差距。在多个自回归视频生成模型和数据集上的实验表明,与朴素顺序解码相比,DiagD 实现了最高 10× 的加速,同时保持了相当的视觉保真度。

英文摘要:

Autoregressive Transformer models have demonstrated impressive performance in video generation, but their sequential token-by-token decoding process poses a major bottleneck, particularly for long videos represented by tens of thousands of tokens. In this paper, we propose Diagonal Decoding (DiagD), a training-free inference acceleration algorithm for autoregressively pre-trained models that exploits spatial and temporal correlations in videos. Our method generates tokens along diagonal paths in the spatial-temporal token grid, enabling parallel decoding within each frame as well as partially overlapping across consecutive frames. The proposed algorithm is versatile and adaptive to various generative models and tasks, while providing flexible control over the trade-off between inference speed and visual quality. Furthermore, we propose a cost-effective finetuning strategy that aligns the attention patterns of the model with our decoding order, further mitigating the training-inference gap on small-scale models. Experiments on multiple autoregressive video generation models and datasets demonstrate that DiagD achieves up to $10\times$ speedup compared to naive sequential decoding, while maintaining comparable visual fidelity.

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

↑