Diffusion Model Patching via Mixture-of-Prompts
Seokil Ham, Sangmin Woo, Jin-Young Kim, Hyojun Go, Byeongjun Park, Changick Kim
TL;DR
This work tackles the challenge of improving already-converged diffusion models without extensive retraining. It proposes Diffusion Model Patching (DMP), which injects a small pool of learnable prompts into the input and uses a dynamic gating mechanism to form timestep-specific mixtures, while keeping the backbone frozen and training only on the original pre-training data. Key contributions include zero-initialized prompts, prompt-balancing losses to prevent mode collapse, and a gating strategy that enables stage-aware denoising across thousands of steps, achieving a $10.38\%$ FID improvement on FFHQ with just $50{,}000$ iterations and a $1.43\%$ parameter increase. The method generalizes across architectures (e.g., DiT-L/2, Stable Diffusion, and DiT-XL/2) and tasks, offering a practical, data-efficient, and scalable approach to enhance diffusion models in-domain.
Abstract
We present Diffusion Model Patching (DMP), a simple method to boost the performance of pre-trained diffusion models that have already reached convergence, with a negligible increase in parameters. DMP inserts a small, learnable set of prompts into the model's input space while keeping the original model frozen. The effectiveness of DMP is not merely due to the addition of parameters but stems from its dynamic gating mechanism, which selects and combines a subset of learnable prompts at every timestep (i.e., reverse denoising steps). This strategy, which we term "mixture-of-prompts", enables the model to draw on the distinct expertise of each prompt, essentially "patching" the model's functionality at every timestep with minimal yet specialized parameters. Uniquely, DMP enhances the model by further training on the original dataset already used for pre-training, even in a scenario where significant improvements are typically not expected due to model convergence. Notably, DMP significantly enhances the FID of converged DiT-L/2 by 10.38% on FFHQ, achieved with only a 1.43% parameter increase and 50K additional training iterations.
