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

Conditional Generation from Unconditional Diffusion Models using Denoiser Representations

Alexandros Graikos, Srikar Yellapragada, Dimitris SamarasarXiv 2023

Abstract

Denoising diffusion models have gained popularity as a generative modeling technique for producing high-quality and diverse images. Applying these models to downstream tasks requires conditioning, which can take the form of text, class labels, or other forms of guidance. However, providing conditioning information to these models can be challenging, particularly when annotations are scarce or imprecise. In this paper, we propose adapting pre-trained unconditional diffusion models to new conditions using the learned internal representations of the denoiser network. We demonstrate the effectiveness of our approach on various conditional generation tasks, including attribute-conditioned generation and mask-conditioned generation. Additionally, we show that augmenting the Tiny ImageNet training set with synthetic images generated by our approach improves the classification accuracy of ResNet baselines by up to 8%. Our approach provides a powerful and flexible way to adapt diffusion models to new conditions and generate high-quality augmented data for various conditional generation tasks.

Introduction

Denoising diffusion models are the current gold standard for image generation, but they face a significant "conditioning" problem. To make a model generate something specific—such as a person with a specific hair color or an image matching a complex pixel mask—researchers typically rely on massive paired datasets or text-based guidance. However, text is often too coarse for fine-grained spatial tasks, and large-scale labeled datasets are frequently unavailable for niche domains.

This research addresses the challenge of adapting pre-trained, unconditional models to new conditions quickly and efficiently. By leveraging the internal features of the model itself, the authors demonstrate that it is possible to achieve high-quality, specialized image generation with as few as 20–50 labeled examples.

Methodology

The core innovation lies in the realization that a pre-trained unconditional denoiser (typically a U-Net) already "understands" image structure. Its primary task—identifying and removing noise at various scales—forces it to learn deep semantic and spatial representations.

Denoiser Representations as Features

Instead of training a separate image classifier from scratch to guide the diffusion process, the authors extract intermediate features from the U-Net's bottleneck and upsampling blocks. Because these features are inherently trained to handle noisy inputs, they are significantly more robust than features from standard classifiers trained only on clean images. This robustness is critical for providing stable guidance signals during the early, high-noise stages of the diffusion process.

Few-Shot Guidance and Masking

The authors train lightweight networks (3-layer MLPs or CNNs) on top of these internal features. For attribute-conditioned generation, these tiny networks act as "steering wheels," directing the diffusion model toward desired traits like "blond hair" using minimal supervision. For tasks requiring pixel-level precision, such as following a semantic segmentation mask, the spatial nature of the U-Net features allows for much higher accuracy than latent-based methods.

Figure 3: Comparison of mask-conditioned face generation across different methods, demonstrating the precision of the proposed approach compared to baselines like DiffAE.

Experimental Results

The proposed method was evaluated across several benchmarks, including CelebA-64, FFHQ-256, and Tiny ImageNet.

Superior Segmentation and Attribute Control

On the CelebA-Mask task, the method achieved a Mean Intersection over Union (mIoU) of 0.31, significantly outperforming other few-shot methods like DiffAE (0.23). The qualitative results in Figure 3 highlight how the model maintains high fidelity to the input mask while producing realistic facial features.

Data Augmentation and Accuracy Boosts

A key application of this method is improving downstream classifiers through synthetic data augmentation. By using the denoiser-based classifier as a "rejection sampler" to filter out low-quality hallucinations, the authors generated high-quality training data for Tiny ImageNet. This approach boosted the Top-1 accuracy of a ResNet-18 from 52.24% to 59.37%. For larger architectures like ResNeXt-50, the accuracy improved by a substantial 8% when using 3x synthetic data.

Figure 1: Qualitative comparison of image generation quality and diversity against standard guidance methods like Improved DDPM and Classifier-free guidance.

Conclusion and Future Work

This approach demonstrates that the "internal brain" of an unconditional diffusion model contains sufficient information for complex conditional tasks. By tapping into these representations, researchers can bypass the need for massive labeled datasets.

However, limitations remain, particularly regarding the manual tuning of the "guidance weight" ($\lambda$), which balances image quality against condition adherence. Future work will focus on automatically adjusting these weights during the sampling process and improving the efficiency of the rejection sampling pipeline to reduce computational overhead.

Summary updated

BibTeX
@misc{graikos2023conditional,
  author = {Alexandros Graikos and Srikar Yellapragada and Dimitris Samaras},
  title = {{Conditional Generation from Unconditional Diffusion Models using Denoiser Representations}},
  year = {2023},
  eprint = {2306.01900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01900},
}
Figure