先解耦后合并:将扩散模型微调作为多任务学习
Decouple-Then-Merge: Finetune Diffusion Models as Multi-Task Learning
AI总结:
针对扩散模型多时间步共享参数导致梯度冲突的问题,提出 DeMe 框架,先分时间步微调独立模型再在参数空间合并,并在 6 个基准上显著提升生成质量。
摘要:
扩散模型通过学习一系列模型来逆转噪声破坏的每一步,从而完成训练。通常,模型参数在多个时间步之间完全共享,以提高训练效率。然而,由于不同时间步的去噪任务存在差异,在不同时间步计算出的梯度可能发生冲突,从而可能降低图像生成的整体性能。为解决这一问题,本研究提出了一个 Decouple-then-Merge(先解耦后合并,DeMe)框架,该框架从预训练模型出发,微调为特定时间步定制的独立模型。我们在微调阶段引入了若干改进技术,以促进有效的知识共享,同时最大限度地减少时间步之间的训练干扰。最后,在微调之后,这些独立模型可以在参数空间中合并为单个模型,从而确保高效且实用的推理。实验结果表明,在 6 个基准测试上,生成质量均有显著提升,包括 Stable Diffusion 在 COCO30K、ImageNet1K、PartiPrompts 上的测试,以及 DDPM 在 LSUN Church、LSUN Bedroom 和 CIFAR10 上的测试。代码可在 GitHub(https://github.com/MqLeet/DeMe)获取。
英文摘要:
Diffusion models are trained by learning a sequence of models that reverse each step of noise corruption. Typically, the model parameters are fully shared across multiple timesteps to enhance training efficiency. However, since the denoising tasks differ at each timestep, the gradients computed at different timesteps may conflict, potentially degrading the overall performance of image generation. To solve this issue, this work proposes a \textbf{De}couple-then-\textbf{Me}rge (\textbf{DeMe}) framework, which begins with a pretrained model and finetunes separate models tailored to specific timesteps. We introduce several improved techniques during the finetuning stage to promote effective knowledge sharing while minimizing training interference across timesteps. Finally, after finetuning, these separate models can be merged into a single model in the parameter space, ensuring efficient and practical inference. Experimental results show significant generation quality improvements upon 6 benchmarks including Stable Diffusion on COCO30K, ImageNet1K, PartiPrompts, and DDPM on LSUN Church, LSUN Bedroom, and CIFAR10. Code is available at \href{https://github.com/MqLeet/DeMe}{GitHub}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。