使用成对样本优化微调时间步蒸馏扩散模型
Tuning Timestep-Distilled Diffusion Model Using Pairwise Sample Optimization
AI总结:
本文提出成对样本优化(PSO)算法,通过引入参考图像并增大相对似然边距,直接微调时间步蒸馏扩散模型,在保留少步生成能力的同时实现偏好优化、风格迁移和概念定制。
摘要:
时间步蒸馏扩散模型的最新进展实现了与非蒸馏多步模型相媲美的高质量图像生成,但所需的推理步数显著更少。尽管此类模型因低推理成本和低延迟而备受应用青睐,但使用朴素的扩散目标对其进行微调会导致输出质量下降和模糊。一种直观的替代方案是使用微调后的教师模型重复扩散蒸馏过程,这能产生良好的结果,但过程繁琐且计算量大;与针对特定图像风格的微调相比,蒸馏训练通常需要高出数个数量级的训练计算量。在本文中,我们提出了一种名为成对样本优化(PSO)的算法,该算法能够直接微调任意的时间步蒸馏扩散模型。PSO引入了从当前时间步蒸馏模型中采样的额外参考图像,并增大了训练图像与参考图像之间的相对似然边距。这使得模型能够保留其少步生成能力,同时允许对其输出分布进行微调。我们还证明了PSO是一种广义公式,可以灵活地扩展到离线采样和在线采样的成对数据,涵盖了扩散模型偏好优化的各种流行目标。我们在偏好优化和其他微调任务(包括风格迁移和概念定制)中评估了PSO。我们表明,PSO能够利用离线和在线生成的成对偏好图像数据,直接将蒸馏模型适配为符合人类偏好的生成。PSO还通过直接微调时间步蒸馏扩散模型,证明了其在风格迁移和概念定制中的有效性。
英文摘要:
Recent advancements in timestep-distilled diffusion models have enabled high-quality image generation that rivals non-distilled multi-step models, but with significantly fewer inference steps. While such models are attractive for applications due to the low inference cost and latency, fine-tuning them with a naive diffusion objective would result in degraded and blurry outputs. An intuitive alternative is to repeat the diffusion distillation process with a fine-tuned teacher model, which produces good results but is cumbersome and computationally intensive; the distillation training usually requires magnitude higher of training compute compared to fine-tuning for specific image styles. In this paper, we present an algorithm named pairwise sample optimization (PSO), which enables the direct fine-tuning of an arbitrary timestep-distilled diffusion model. PSO introduces additional reference images sampled from the current time-step distilled model, and increases the relative likelihood margin between the training images and reference images. This enables the model to retain its few-step generation ability, while allowing for fine-tuning of its output distribution. We also demonstrate that PSO is a generalized formulation which can be flexibly extended to both offline-sampled and online-sampled pairwise data, covering various popular objectives for diffusion model preference optimization. We evaluate PSO in both preference optimization and other fine-tuning tasks, including style transfer and concept customization. We show that PSO can directly adapt distilled models to human-preferred generation with both offline and online-generated pairwise preference image data. PSO also demonstrates effectiveness in style transfer and concept customization by directly tuning timestep-distilled diffusion models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。