arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11633cs.CV
收藏

将扩散 Transformer 扩展至160亿参数

Scaling Diffusion Transformers to 16 Billion Parameters

Kunlun Inc.(昆仑公司)

Zhengcong Fei, Mingyuan Fan, Changqian Yu, Debang Li, Junshi Huang

AI总结:

提出稀疏扩散 Transformer DiT-MoE,通过共享专家路由与专家级平衡损失降低推理计算,并将模型扩展至16.5B参数,在512×512生成中取得1.80的SoTA FID-50K。

摘要:

本文提出 DiT-MoE,这是扩散 Transformer 的一种稀疏版本,具有可扩展性,可与稠密网络竞争,同时展现出高度优化的推理。DiT-MoE 包含两个简单设计:共享专家路由和专家级平衡损失,从而捕获通用知识并减少不同路由专家之间的冗余。在应用于条件图像生成时,对专家专门化的深入分析得到了一些有趣观察:(i)专家选择表现出对空间位置和去噪时间步的偏好,而对不同的类别条件信息不敏感;(ii)随着 MoE 层加深,专家选择逐渐从特定空间位置转向分散和均衡;(iii)专家专门化在早期时间步往往更集中,随后在过半之后逐渐均匀。我们将其归因于扩散过程首先建模低频空间信息,然后建模高频复杂信息。基于上述指导,一系列 DiT-MoE 在实验上达到与稠密网络相当的性能,同时推理期间所需计算负载低得多。更令人鼓舞的是,我们利用合成图像数据展示了 DiT-MoE 的潜力,将扩散模型扩展到16.5B参数,并在512×512分辨率设置下取得1.80的全新 SoTA FID-50K 分数。项目页面:https://github.com/feizc/DiT-MoE。

英文摘要:

In this paper, we present DiT-MoE, a sparse version of the diffusion Transformer, that is scalable and competitive with dense networks while exhibiting highly optimized inference. The DiT-MoE includes two simple designs: shared expert routing and expert-level balance loss, thereby capturing common knowledge and reducing redundancy among the different routed experts. When applied to conditional image generation, a deep analysis of experts specialization gains some interesting observations: (i) Expert selection shows preference with spatial position and denoising time step, while insensitive with different class-conditional information; (ii) As the MoE layers go deeper, the selection of experts gradually shifts from specific spacial position to dispersion and balance. (iii) Expert specialization tends to be more concentrated at the early time step and then gradually uniform after half. We attribute it to the diffusion process that first models the low-frequency spatial information and then high-frequency complex information. Based on the above guidance, a series of DiT-MoE experimentally achieves performance on par with dense networks yet requires much less computational load during inference. More encouragingly, we demonstrate the potential of DiT-MoE with synthesized image data, scaling diffusion model at a 16.5B parameter that attains a new SoTA FID-50K score of 1.80 in 512$\times$512 resolution settings. The project page: https://github.com/feizc/DiT-MoE.

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

↑