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

改进的分布匹配蒸馏用于快速图像合成

Improved Distribution Matching Distillation for Fast Image Synthesis

Massachusetts Institute of Technology(麻省理工学院);Adobe Research(奥多比研究院)

Tianwei Yin, Michaël Gharbi, Taesung Park, Richard Zhang, Eli Shechtman, Fredo Durand, William T. Freeman

AI总结:

提出DMD2,通过消除回归损失、引入GAN损失和多步采样改进分布匹配蒸馏,实现单步图像合成,FID显著降低并超越教师模型。

摘要:

近期的方法在将扩散模型蒸馏为高效的单步生成器方面展现出前景。其中,分布匹配蒸馏(DMD)能够生成在分布上与教师模型匹配的单步生成器,而无需强制与教师模型的采样轨迹建立一一对应关系。然而,为确保训练稳定,DMD需要额外的回归损失,该损失使用教师模型通过确定性采样器多步生成的大量噪声-图像对来计算。这对于大规模文本到图像合成而言成本高昂,并且限制了学生模型的质量,使其过于紧密地依赖教师模型的原始采样路径。我们提出了DMD2,一系列旨在消除这一限制并改进DMD训练的技术。首先,我们消除了回归损失以及对昂贵数据集构建的需求。我们表明,由此产生的不稳定性源于虚假评论家未能准确估计生成样本的分布,并提出了一种双时间尺度更新规则作为补救措施。其次,我们将GAN损失整合到蒸馏过程中,以区分生成样本与真实图像。这使我们能够在真实数据上训练学生模型,缓解教师模型对真实分数估计不完善的问题,并提升质量。最后,我们修改了训练过程以实现多步采样。我们在此设置中识别并解决了训练-推理输入不匹配问题,通过在训练期间模拟推理时的生成器样本来应对。综合来看,我们的改进在单步图像生成中树立了新的基准,在ImageNet-64x64上FID分数达到1.28,在零样本COCO 2014上达到8.35,尽管推理成本降低了500倍,仍超越了原始教师模型。此外,我们展示了通过蒸馏SDXL,我们的方法能够生成百万像素图像,在少步方法中展现出卓越的视觉质量。

英文摘要:

Recent approaches have shown promises distilling diffusion models into efficient one-step generators. Among them, Distribution Matching Distillation (DMD) produces one-step generators that match their teacher in distribution, without enforcing a one-to-one correspondence with the sampling trajectories of their teachers. However, to ensure stable training, DMD requires an additional regression loss computed using a large set of noise-image pairs generated by the teacher with many steps of a deterministic sampler. This is costly for large-scale text-to-image synthesis and limits the student's quality, tying it too closely to the teacher's original sampling paths. We introduce DMD2, a set of techniques that lift this limitation and improve DMD training. First, we eliminate the regression loss and the need for expensive dataset construction. We show that the resulting instability is due to the fake critic not estimating the distribution of generated samples accurately and propose a two time-scale update rule as a remedy. Second, we integrate a GAN loss into the distillation procedure, discriminating between generated samples and real images. This lets us train the student model on real data, mitigating the imperfect real score estimation from the teacher model, and enhancing quality. Lastly, we modify the training procedure to enable multi-step sampling. We identify and address the training-inference input mismatch problem in this setting, by simulating inference-time generator samples during training time. Taken together, our improvements set new benchmarks in one-step image generation, with FID scores of 1.28 on ImageNet-64x64 and 8.35 on zero-shot COCO 2014, surpassing the original teacher despite a 500X reduction in inference cost. Further, we show our approach can generate megapixel images by distilling SDXL, demonstrating exceptional visual quality among few-step methods.

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

↑