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

Diff-Instruct:一种从预训练扩散模型迁移知识的通用方法

Diff-Instruct: A Universal Approach for Transferring Knowledge From Pre-trained Diffusion Models

Peking University(北京大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Weijian Luo, Tianyang Hu, Shifeng Zhang, Jiacheng Sun, Zhenguo Li, Zhihua Zhang

AI总结:

本文提出通用框架Diff-Instruct,通过最小化积分KL散度,以无数据方式将预训练扩散模型的知识迁移到任意可微生成模型,在扩散模型蒸馏和GAN精炼任务中均取得显著提升。

摘要:

由于训练简便、可扩展性强以及样本质量高,扩散模型(DMs)已成为生成建模的首选方案,大量预训练模型可用于各种数据集。预训练扩散模型包含关于数据分布的复杂信息,是下游应用的宝贵资产。在本文中,我们考虑以无数据的方式从预训练扩散模型中学习,并将其知识迁移到其他生成模型。具体而言,我们提出了一个名为 Diff-Instruct 的通用框架,只要生成样本对模型参数可微,即可指导任意生成模型的训练。我们提出的 Diff-Instruct 建立在严格的数学基础之上,其中指导过程直接对应于最小化一种我们称之为积分 Kullback-Leibler(IKL)散度的新型散度。IKL 专为扩散模型量身定制,通过沿扩散过程计算 KL 散度的积分,我们证明其在比较支撑集不对齐的分布时更具鲁棒性。我们还揭示了该方法与现有工作(如 DreamFusion 和生成对抗训练)之间的非平凡联系。为了证明 Diff-Instruct 的有效性和通用性,我们考虑了两种场景:蒸馏预训练扩散模型和精炼现有 GAN 模型。在蒸馏预训练扩散模型上的实验表明,Diff-Instruct 能够产生最先进的基于单步扩散的模型。在精炼 GAN 模型上的实验表明,Diff-Instruct 能够在各种设置下持续改进 GAN 模型的预训练生成器。

英文摘要:

Due to the ease of training, ability to scale, and high sample quality, diffusion models (DMs) have become the preferred option for generative modeling, with numerous pre-trained models available for a wide variety of datasets. Containing intricate information about data distributions, pre-trained DMs are valuable assets for downstream applications. In this work, we consider learning from pre-trained DMs and transferring their knowledge to other generative models in a data-free fashion. Specifically, we propose a general framework called Diff-Instruct to instruct the training of arbitrary generative models as long as the generated samples are differentiable with respect to the model parameters. Our proposed Diff-Instruct is built on a rigorous mathematical foundation where the instruction process directly corresponds to minimizing a novel divergence we call Integral Kullback-Leibler (IKL) divergence. IKL is tailored for DMs by calculating the integral of the KL divergence along a diffusion process, which we show to be more robust in comparing distributions with misaligned supports. We also reveal non-trivial connections of our method to existing works such as DreamFusion, and generative adversarial training. To demonstrate the effectiveness and universality of Diff-Instruct, we consider two scenarios: distilling pre-trained diffusion models and refining existing GAN models. The experiments on distilling pre-trained diffusion models show that Diff-Instruct results in state-of-the-art single-step diffusion-based models. The experiments on refining GAN models show that the Diff-Instruct can consistently improve the pre-trained generators of GAN models across various settings.

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

↑