用对抗损失让生成模型一步超越教师模型。
Adversarial Score identity Distillation: Rapidly Surpassing the Teacher in One Step
- 引入对抗损失,用生成图像区分真实图像来优化蒸馏过程。
- 单步生成即达新基准,ImageNet 64x64上FID低至1.110。
- 无需分类器引导,适配各尺寸模型,适合快速部署生成系统。
Score Identity Distillation (SiD) 是一种仅依赖预训练扩散模型、无需训练数据的先进图像生成方法。然而其性能受限于预训练模型对扩散过程中真实数据梯度的捕捉精度。本文提出SiDA(带对抗损失的SiD),通过引入真实图像与对抗损失,显著提升生成质量与蒸馏效率。SiDA利用生成器得分网络的编码器作为判别器,区分真实图像与SiD生成图像。对抗损失在每个GPU批次内归一化后,与原始SiD损失结合,将每批的平均‘假象度’融入像素级损失中,实现单步生成器蒸馏。从零开始训练时,SiDA收敛速度远超前代;从已蒸馏的SiD生成器微调,可迅速超越原模型表现。该方法在蒸馏EDM扩散模型时建立新基准:ImageNet 64x64上达到FID 1.110。在蒸馏训练于ImageNet 512x512的EDM2模型时,所有尺寸的SiDA均优于最大教师模型EDM2-XXL(FID 1.81,使用分类器自由引导与63步生成)。相比之下,SiDA在无分类器引导、单步生成下,各尺寸表现分别为:XS(2.156)、S(1.669)、M(1.488)、L(1.413)、XL(1.379)、XXL(1.366),全面领先。结果表明各尺寸模型均有显著提升。代码开源:https://github.com/mingyuanzhou/SiD/tree/sida。
原文摘要 · Abstract (English)
Score identity Distillation (SiD) is a data-free method that has achieved SOTA performance in image generation by leveraging only a pretrained diffusion model, without requiring any training data. However, its ultimate performance is constrained by how accurate the pretrained model captures the true data scores at different stages of the diffusion process. In this paper, we introduce SiDA (SiD with Adversarial Loss), which not only enhances generation quality but also improves distillation efficiency by incorporating real images and adversarial loss. SiDA utilizes the encoder from the generator's score network as a discriminator, allowing it to distinguish between real images and those generated by SiD. The adversarial loss is batch-normalized within each GPU and then combined with the original SiD loss. This integration effectively incorporates the average "fakeness" per GPU batch into the pixel-based SiD loss, enabling SiDA to distill a single-step generator. SiDA converges significantly faster than its predecessor when distilled from scratch, and swiftly improves upon the original model's performance during fine-tuning from a pre-distilled SiD generator. This one-step adversarial distillation method establishes new benchmarks in generation performance when distilling EDM diffusion models, achieving FID scores of 1.110 on ImageNet 64x64. When distilling EDM2 models trained on ImageNet 512x512, our SiDA method surpasses even the largest teacher model, EDM2-XXL, which achieved an FID of 1.81 using classifier-free guidance (CFG) and 63 generation steps. In contrast, SiDA achieves FID scores of 2.156 for size XS, 1.669 for S, 1.488 for M, 1.413 for L, 1.379 for XL, and 1.366 for XXL, all without CFG and in a single generation step. These results highlight substantial improvements across all model sizes. Our code is available at https://github.com/mingyuanzhou/SiD/tree/sida.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。