NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Practical Plug-and-Play Diffusion Models

Hyojun Go, Yunsung Lee, Jin-Young Kim, Seunghyun Lee, Myeongho Jeong, Hyun Seung Lee, Seungtaek ChoiCVPR 2022

Abstract

Diffusion-based generative models have achieved remarkable success in image generation. Their guidance formulation allows an external model to plug-and-play control the generation process for various tasks without finetuning the diffusion model. However, the direct use of publicly available off-the-shelf models for guidance fails due to their poor performance on noisy inputs. We propose Practical Plug-And-Play (PPAP), a novel strategy that leverages multiple experts specialized in particular noise ranges. By combining parameter-efficient fine-tuning and data-free knowledge transfer, PPAP enables effective guidance using small trainable parameters and no labeled data.

Introduction

Diffusion models are the current gold standard for image generation, offering a unique feature called "guidance." This allows an external model, such as a classifier or depth estimator, to nudge the generation process toward a specific semantic or structural result.

Overview of the PPAP framework guiding diffusion with various off-the-shelf models.

However, a significant hurdle exists: most off-the-shelf models (e.g., ResNet, DeepLab) are trained on clean images. During the diffusion process, these models must process extremely noisy latents. Standard models typically fail in this environment, providing low-confidence or nonsensical gradients. While fine-tuning on noisy data is a common fix, it suffers from the "Jack of all trades" problem—where a single model struggles to handle the entire noise spectrum—and the "Data Hurdle," requiring massive labeled datasets corrupted with noise.

The PPAP Framework

To address these limitations, we introduce Practical Plug-And-Play (PPAP), which rests on three technical pillars:

1. Multi-Expert Strategy

Instead of a single guidance model, PPAP employs $N$ specialized "experts." Each expert is trained for a specific range of diffusion timesteps. Early-stage experts (handling high noise) learn to guide coarse skeletal structures, while late-stage experts (handling low noise) focus on fine details and textures. This specialization ensures high confidence across the entire generation process.

Confidence of different experts across diffusion timesteps, demonstrating the effectiveness of the multi-expert strategy.

2. Parameter-Efficient Fine-Tuning (PEFT)

To manage the storage and computational overhead of multiple experts, we utilize LoRA (Low-Rank Adaptation). By freezing the original off-the-shelf model and training only a tiny fraction of additional parameters (typically <5%) for each expert, we maintain a lightweight footprint while achieving high performance.

3. Data-Free Knowledge Transfer

PPAP eliminates the need for labeled datasets. We use the unconditional diffusion model to generate clean images, which are then labeled by the original off-the-shelf model acting as a "teacher." The noisy experts are then trained to mimic the teacher's predictions when presented with noisy versions of those same images, effectively transferring knowledge without external labels.

Experimental Results

We evaluated PPAP across various architectures and tasks, including ImageNet class-conditional generation and complex image-to-image tasks using GLIDE.

  • Quantitative Performance: On ImageNet (256x256), PPAP-10 using a DeiT-S backbone achieved an FID of 20.07 and an Inception Score (IS) of 60.62, significantly outperforming the unconditional baseline (FID 28.97, IS 40.34).
  • Qualitative Versatility: We successfully guided the GLIDE model using models it was never paired with during training, such as MiDaS for depth-to-image and DeepLabV3 for segmentation-to-image. The generated images follow the provided maps with striking accuracy, whereas naive guidance fails entirely.

Conclusion and Future Work

PPAP provides a practical path for using any off-the-shelf model to guide diffusion without the need for labeled data or massive retraining. While successful, challenges remain regarding style mismatches between the diffusion prior and the guidance model. Future work will explore incorporating multi-modal inputs and addressing dataset gaps between generative and discriminative models.

Summary updated

BibTeX
@inproceedings{go2022towards,
  author = {Hyojun Go and Yunsung Lee and Jin-Young Kim and Seunghyun Lee and Myeongho Jeong and Hyun Seung Lee and Seungtaek Choi},
  title = {{Towards Practical Plug-and-Play Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=21Beo1EMz_},
}
Figure