Decouple-Then-Merge: Finetune Diffusion Models as Multi-Task Learning

Qianli Ma, Xuefei Ning, Dongrui Liu, Li Niu, Linfeng Zhang
10/1/2024

No official code found. Best implementation: MqLeet/DeMe (13 stars, last commit 2025-06-06).

Abstract

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 Decouple-then-Merge (DeMe) framework, which begins with a pretrained model and finetunes separate models tailored to specific timesteps. We introduce several improved techniques during the fine-tuning 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 GitHub.

View on arXivView PDF

Code Implementations(1)

MqLeet/DeMeCommunity65%

[CVPR2025] Official implementation of "Decouple-Then-Merge: Finetune Diffusion Models as Multi-Task Learning"

130Shell, PythonMar 6, 20251 years ago

Similar Papers

Cite this paper

@article{ma2024decouplethenmerge,
  title  = {Decouple-Then-Merge: Finetune Diffusion Models as Multi-Task Learning},
  author = {Qianli Ma and Xuefei Ning and Dongrui Liu and Li Niu and Linfeng Zhang},
  year   = {2024},
  eprint = {2410.06664},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.06664},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.06664.svg)](https://codeofpaper.com/paper/2410.06664)

Discussion