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

Modulating Pretrained Diffusion Models for Multimodal Image Synthesis

Cusuh Ham, James Hays, Jingwan Lu, Krishna Kumar Singh, Zhifei Zhang, Tobias Hinz

Introduction

Large-scale diffusion models like Stable Diffusion have revolutionized image generation, yet they remain difficult to control with spatial precision. While text prompts offer high-level semantic guidance, they lack the granularity required for specific layouts or structural constraints. Traditional approaches to adding control, such as full fine-tuning, are computationally intensive and often lead to "catastrophic forgetting," where the model loses its original creative diversity or overfits to small training sets, resulting in blurry or repetitive outputs.

This paper introduces Multimodal Conditioning Modules (MCMs), a lightweight architectural addition that enables spatial control over frozen, pretrained diffusion models without the need for extensive retraining.

Methodology: Lightweight Spatial Modulation

The core innovation is the MCM, a small, time-conditional U-Net designed to "modulate" rather than replace the base model's predictions. By keeping the original diffusion model completely frozen, the MCM inherits the high-quality textures and diversity learned from billions of images, simply "steering" that existing knowledge.

The Modulation Mechanism

During the denoising process, the MCM takes the current noisy state, the timestep, and spatial conditioning inputs (such as sketches or segmentation maps) to produce two spatial parameters: a multiplicative factor $\gamma$ and an additive factor $\nu$. The base model's noise prediction $\epsilon_t$ is then adjusted via the formula: $$\epsilon'_t = \epsilon_t \otimes (1 + \gamma) \oplus \nu$$

Multimodal synthesis using MCMs with various input combinations, showing how text, segmentation maps, and sketches can be combined to guide image generation.

Efficiency and Flexibility

The MCM is extremely efficient, containing only ~4 million parameters—roughly 1% of the size of a standard base model. To ensure the module can handle various combinations of inputs, the authors employ modality dropout during training. This allows a single trained MCM to process a sketch, a segmentation map, or both simultaneously at inference time. Furthermore, because the MCM does not require gradients from the base model, it is theoretically compatible with "black-box" models accessed via APIs, provided intermediate noise predictions can be intercepted.

Experimental Results

The authors evaluated MCMs on the MM-CelebA-HQ (faces) and Flickr Mountains (landscapes) datasets. Even when trained on a limited subset of just 5,000 examples, MCMs demonstrated significant advantages over standard fine-tuning.

Quality and Diversity

Quantitative evaluations using Fréchet Inception Distance (FID) and Learned Perceptual Image Patch Similarity (LPIPS) showed that MCMs produce higher-quality and more diverse images than fine-tuned models. While fine-tuning often results in "average" or blurry outputs due to the "sledgehammer" approach of retraining weights, MCMs maintain the sharp, varied results characteristic of the original pretrained model.

Alignment

MCMs achieved high alignment with input modalities, as measured by mIoU for segmentation and sketch distance metrics. This confirms that the model successfully grounds the generation process in the provided 2D modalities while preserving the semantic intent of the text prompt.

Conclusion

Multimodal Conditioning Modules provide a scalable and efficient way to add precise control to large-scale diffusion models. By modulating outputs rather than retraining weights, MCMs avoid the pitfalls of catastrophic forgetting and high compute costs. This approach paves the way for more controllable and accessible generative AI tools that can follow specific user-provided doodles and layouts.

Summary updated

BibTeX
@inproceedings{ham2023modulating,
  author = {Cusuh Ham and James Hays and Jingwan Lu and Krishna Kumar Singh and Zhifei Zhang and Tobias Hinz},
  title = {{Modulating Pretrained Diffusion Models for Multimodal Image Synthesis}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2023},
}
Figure