AutoDiffusion:面向自动化扩散模型加速的时间步与架构的免训练优化
AutoDiffusion: Training-Free Optimization of Time Steps and Architectures for Automated Diffusion Model Acceleration
AI总结:
本文提出 AutoDiffusion,通过统一搜索空间和两阶段进化算法免训练地联合优化扩散模型的时间步序列与压缩架构,仅四步即在 ImageNet 64×64 上显著优于 DDIM。
摘要:
扩散模型是一类新兴的富有表现力的生成模型,在单次图像生成中需要大量时间步(推理步)。为加速这一繁琐过程,均匀减少步数被视为扩散模型中无可争议的原则。我们认为这种均匀假设在实践中并非最优解;换言之,我们可以为不同模型找到不同的最优时间步。因此,我们提出在一个统一框架中搜索最优时间步序列和压缩后的模型架构,从而在无需任何进一步训练的情况下实现扩散模型的有效图像生成。具体而言,我们首先设计了一个统一搜索空间,其中包含所有可能的时间步和多种架构。随后,引入两阶段进化算法,在所设计的搜索空间中寻找最优解。为进一步加速搜索过程,我们采用生成样本与真实样本之间的 FID 分数来估计采样示例的性能。因此,所提方法具有以下特点:(i)免训练,无需任何训练过程即可获得最优时间步和模型架构;(ii)与大多数先进扩散采样器正交,并且可以集成以获得更好的样本质量;(iii)具有泛化性,搜索得到的时间步和架构可以在具有相同引导尺度的不同扩散模型上直接应用。实验结果表明,我们的方法仅使用少量时间步即可取得优异性能,例如在 ImageNet 64 × 64 上仅用四步便达到 17.86 的 FID 分数,而 DDIM 为 138.66。代码可在 https://github.com/lilijiangg/AutoDiffusion 获取。
英文摘要:
Diffusion models are emerging expressive generative models, in which a large number of time steps (inference steps) are required for a single image generation. To accelerate such tedious process, reducing steps uniformly is considered as an undisputed principle of diffusion models. We consider that such a uniform assumption is not the optimal solution in practice; i.e., we can find different optimal time steps for different models. Therefore, we propose to search the optimal time steps sequence and compressed model architecture in a unified framework to achieve effective image generation for diffusion models without any further training. Specifically, we first design a unified search space that consists of all possible time steps and various architectures. Then, a two stage evolutionary algorithm is introduced to find the optimal solution in the designed search space. To further accelerate the search process, we employ FID score between generated and real samples to estimate the performance of the sampled examples. As a result, the proposed method is (i).training-free, obtaining the optimal time steps and model architecture without any training process; (ii). orthogonal to most advanced diffusion samplers and can be integrated to gain better sample quality. (iii). generalized, where the searched time steps and architectures can be directly applied on different diffusion models with the same guidance scale. Experimental results show that our method achieves excellent performance by using only a few time steps, e.g. 17.86 FID score on ImageNet 64 $\times$ 64 with only four steps, compared to 138.66 with DDIM. The code is available at https://github.com/lilijiangg/AutoDiffusion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。