通过自动间隔和子网络选择的高效扩散专家混合
Mixture of Efficient Diffusion Experts Through Automatic Interval and Sub-Network Selection
AI总结:
本文提出将预训练扩散模型剪枝为高效专家混合,通过 Expert Routing Agent 自动选择网络配置,在多个数据集上有效降低了采样成本。
摘要:
扩散概率模型能够生成高质量样本。然而,其采样过程需要大量去噪步骤,导致速度慢且计算密集。我们提出通过将预训练扩散模型剪枝为高效专家混合来降低采样成本。首先,我们研究去噪时间步对之间的相似性,观察到自然聚类现象,甚至在不同数据集间也存在。这表明,与其使用单一模型处理所有时间步,不如让独立模型作为各自时间间隔的“专家”。因此,我们在每个间隔上分别微调预训练模型,在深度和宽度上采用弹性维度,以获得专精于对应去噪间隔的专家。为优化专家间的资源使用,我们引入 Expert Routing Agent,学习选择一组合适的网络配置。如此,我们的方法能以端到端方式在专家间分配计算预算,无需手动启发式规则。最后,基于选定配置,我们微调剪枝后的专家,得到高效专家混合。我们在 Latent Diffusion Model 架构上,跨多个数据集(LSUN-Church、LSUN-Beds、FFHQ 和 ImageNet)验证了 DiffPruning 的有效性。
英文摘要:
Diffusion probabilistic models can generate high-quality samples. Yet, their sampling process requires numerous denoising steps, making it slow and computationally intensive. We propose to reduce the sampling cost by pruning a pretrained diffusion model into a mixture of efficient experts. First, we study the similarities between pairs of denoising timesteps, observing a natural clustering, even across different datasets. This suggests that rather than having a single model for all time steps, separate models can serve as ``experts'' for their respective time intervals. As such, we separately fine-tune the pretrained model on each interval, with elastic dimensions in depth and width, to obtain experts specialized in their corresponding denoising interval. To optimize the resource usage between experts, we introduce our Expert Routing Agent, which learns to select a set of proper network configurations. By doing so, our method can allocate the computing budget between the experts in an end-to-end manner without requiring manual heuristics. Finally, with a selected configuration, we fine-tune our pruned experts to obtain our mixture of efficient experts. We demonstrate the effectiveness of our method, DiffPruning, across several datasets, LSUN-Church, LSUN-Beds, FFHQ, and ImageNet, on the Latent Diffusion Model architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。