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

MoDDiT:扩散Transformer中的简单令牌路由

MoDDiT: Simple Token Routing in Diffusion Transformers

British Open-ended Learning and Discovery(英国开放式学习与发现机构)

Jarek Liesen, Matthew T. Jackson, Benjamin Ellis, Shimon Whiteson, Jakob N. Foerster

AI总结:

MoDDiT是一种在扩散Transformer中实现令牌路由的简单架构,可动态分配计算,降低图像和视频生成模型的计算成本并提升性能,还可用于模型蒸馏。

摘要:

实时视频生成、交互式世界模型以及设备端图像合成几乎已成为现实。扩散Transformer(DiT)可实现出色的样本质量,其瓶颈已转移至模型自身的吞吐量。自然图像本质上具有稀疏性,图像的大部分区域通常为背景,对场景内容贡献极小,且易于去噪。DiT未能利用这种稀疏性,因为它们以静态且均匀的方式处理图像令牌。我们提出MoDDiT,一种简单的架构修改,可学习将令牌路由通过MLP和自注意力操作。通过将令牌独立路由通过两个模块,MoDDiT允许在MLP中进行动态计算分配,这种分配会随令牌、图像和去噪时间步而变化。使用MoDDiT从头训练图像生成模型可显著降低训练和推理的计算成本,仅处理少至12.5%的令牌。通过增加稀疏性和模型深度,MoDDiT相比未路由的基线模型,降低了成本并提升了生成性能。学习到的分配具有可解释性,揭示了计算如何随视觉内容和噪声水平变化。我们还使用MoDDiT训练视频生成模型,其中分配与运动相关,并将密集双向视频模型蒸馏为稀疏自回归学生模型。

英文摘要:

Real-time video generation, interactive world models, and on-device image synthesis are almost a reality. Diffusion Transformers (DiT) achieve excellent sample quality, shifting the bottleneck to the throughput of the models themselves. Natural images are inherently sparse, as large portions of an image are often background, contribute little to the scene content, and are easy to denoise. DiTs fail to exploit this sparsity, as they process image tokens statically and uniformly. We propose MoDDiT, a simple architecture modification that learns to route tokens through both MLP and self-attention operations. By routing tokens through both blocks independently, MoDDiT allows for dynamic compute allocation in MLPs that varies across tokens, images, and denoising timesteps. Using MoDDiT to train image generation models from scratch significantly reduces computational costs of training and inference, processing as few as 12.5% of the tokens. By increasing sparsity and model depth, MoDDiT reduces costs and improves generation performance over unrouted baselines. The learned allocation is interpretable, revealing how computation varies with visual content and noise level. We also use MoDDiT to train video generation models, where allocation correlates with motion, and to distill a dense bidirectional video model into a sparse autoregressive student.

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

↑