Distilling Diversity and Control in Diffusion Models
这篇论文提出了一种名为“多样性蒸馏”的方法,通过在扩散模型中结合基模型和蒸馏模型,在保持计算效率的同时,提高了样本多样性。
更新于 2025-03-14。作者:Rohit Gandikota、David Bau。
中文摘要
蒸馏扩散模型存在一个关键限制:与基础模型相比,样本多样性降低。在这项工作中,我们发现尽管存在多样性损失,蒸馏模型仍然保留了基础模型的基本概念表示。我们展示了控制蒸馏——即在基础模型上训练的控制机制(如概念滑块和LoRAs)可以无缝地转移到蒸馏模型,反之亦然,从而有效地蒸馏控制,无需重新训练。这种表示结构的保留促使我们调查了在蒸馏过程中多样性崩溃的机制。为了了解蒸馏如何影响多样性,我们引入了扩散目标(DT)可视化,这是一个分析和调试工具,揭示了模型在中间步骤预测最终输出的方式。通过DT-Visualization,我们识别了生成伪影、不一致性,并证明初始扩散时间步不比例地决定了输出多样性,而后续步骤主要细化细节。基于这些见解,我们引入了多样性蒸馏——一种混合推理方法,在仅对第一个关键时间步使用基础模型后,切换到高效的蒸馏模型。我们的实验表明,这种简单的修改不仅恢复了从基础模型到蒸馏模型的多样性能力,而且出人意料地超过了它,同时保持了蒸馏推理的近似的计算效率,所有这些都不需要额外的训练或模型修改。我们的代码和数据可在https://distillation.baulab.info获取。
英文摘要
Distilled diffusion models suffer from a critical limitation: reduced sample diversity compared to their base counterparts. In this work, we uncover that despite this diversity loss, distilled models retain the fundamental concept representations of base models. We demonstrate control distillation - where control mechanisms like Concept Sliders and LoRAs trained on base models can be seamlessly transferred to distilled models and vice-versa, effectively distilling control without any retraining. This preservation of representational structure prompted our investigation into the mechanisms of diversity collapse during distillation. To understand how distillation affects diversity, we introduce Diffusion Target (DT) Visualization, an analysis and debugging tool that reveals how models predict final outputs at intermediate steps. Through DT-Visualization, we identify generation artifacts, inconsistencies, and demonstrate that initial diffusion timesteps disproportionately determine output diversity, while later steps primarily refine details. Based on these insights, we introduce diversity distillation - a hybrid inference approach that strategically employs the base model for only the first critical timestep before transitioning to the efficient distilled model. Our experiments demonstrate that this simple modification not only restores the diversity capabilities from base to distilled models but surprisingly exceeds it, while maintaining nearly the computational efficiency of distilled inference, all without requiring additional training or model modifications. Our code and data are available at https://distillation.baulab.info
解读
一句话总结
这篇论文提出了一种名为“多样性蒸馏”的方法,通过在扩散模型中结合基模型和蒸馏模型,在保持计算效率的同时,提高了样本多样性。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:扩散模型在保持高效率的同时,样本多样性会降低,存在计算效率和生成多样性之间的权衡。
- 现有方案不足:现有的扩散蒸馏技术虽然提高了效率,但牺牲了样本多样性。
- 研究目标:提出一种方法,在保持计算效率的同时,提高样本多样性。
问题2:论文的核心创新点是什么?
- 技术创新:引入了“多样性蒸馏”方法,通过在关键步骤使用基模型,在后续步骤使用蒸馏模型,从而在保持效率的同时提高多样性。
- 方法改进:通过DT-Visualization可视化技术,揭示了扩散模型在生成过程中的多样性损失原因。
- 优势:该方法在保持计算效率的同时,显著提高了样本多样性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:通过实验比较了基模型、蒸馏模型和多样性蒸馏方法在多样性(分布多样性、样本多样性)和效率(计算时间)方面的表现。
- 性能提升:多样性蒸馏方法在保持几乎与蒸馏模型相同的计算效率(0.64秒/图像)的同时,实现了与基模型相当甚至更高的多样性。
- 对比结果:与基线方法相比,多样性蒸馏方法在多样性方面有显著提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:该研究可用于需要高效且多样性的图像生成场景,如实时创意应用。
- 实施建议:在实际部署时,可以根据不同的应用场景和需求,调整基模型和蒸馏模型的步骤分配。
- 局限与展望:未来研究可以探索将多样性保留在单个蒸馏模型中,以及开发更复杂的多样性度量标准,以更全面地评估蒸馏过程。
来源
机器可读索引:llms.txt