Unseen Image Synthesis with Diffusion Models

Ye Zhu, Yu Wu, Zhiwei Deng, Olga Russakovsky, Yan Yan · OpenReview

Abstract

While the current trend in the generative field is scaling up towards larger models and more training data for generalized domain representations, we go the opposite direction in this work by synthesizing unseen domain images without additional training. We do so via latent sampling and geometric optimization using pre-trained and frozen Denoising Diffusion Probabilistic Models (DDPMs) on single-domain datasets. Our key observation is that DDPMs pre-trained even just on single-domain images are already equipped with sufficient representation abilities to reconstruct arbitrary images from the inverted latent encoding following bi-directional deterministic diffusion and denoising trajectories. This motivates us to investigate the statistical and geometric behaviors of the Out-Of-Distribution (OOD) samples from unseen image domains in the latent spaces along the denoising chain. Notably, we theoretically and empirically show that the inverted OOD samples also establish Gaussians that are distinguishable from the original In-Domain (ID) samples in the intermediate latent spaces, which allows us to sample from them directly. Geometrical domain-specific and model-dependent information of the unseen subspace is used to further optimize the sampled OOD latent encodings from the estimated Gaussian prior.

Introduction

State-of-the-art diffusion models have revolutionized image generation, yet they remain constrained by their training data. In specialized fields like astrophysics or medical imaging, data is often too sparse to train a model from scratch. The conventional remedy is fine-tuning, which updates model weights on a small target dataset. However, fine-tuning introduces significant drawbacks: catastrophic forgetting of the original domain, high computational overhead, and poor generalization when the domain shift is extreme (e.g., from natural images to scientific simulations).

This research explores a provocative alternative: Can we leverage the existing knowledge inside a frozen model to generate images from a completely different domain? By shifting the focus from weight optimization to latent space geometry, the authors demonstrate that a model trained on dogs can synthesize galaxies or human faces without changing a single parameter.

Methodology: A Sampling-Based Paradigm

The proposed method moves away from learning-based updates toward a sampling-based framework. This approach is built upon three technical pillars:

  1. Deterministic Inversion: Utilizing Denoising Diffusion Implicit Models (DDIM), the process begins by taking a small set of Out-of-Domain (OOD) images and reversing the diffusion process to identify their exact starting noise, or latent encodings.
  2. Latent Space Expansion: The authors prove that OOD images do not map to random noise. Instead, they establish approximate Gaussian priors in the latent space. In high-dimensional manifolds, these OOD priors are mathematically separable from the model’s original In-Domain (ID) training prior.
  3. Interpolative Sampling: To synthesize novel images, the method interpolates between discovered OOD latents. By sampling within the "OOD neighborhood" and denoising through the frozen model, the system produces high-quality images in the target domain.
Conceptual overview comparing fine-tuning (left) with the proposed latent discovery approach (right). The proposed method identifies a specific latent subspace that allows a frozen model to generate out-of-distribution (OOD) samples.

Experimental Setup and Datasets

The study evaluated the method across diverse source and target domains:

  • Source Domains (ID): AFHQ-Dog, CelebA-HQ, LSUN-Church, and LSUN-Bedroom.
  • Target Domains (OOD): Human faces (for dog-trained models), Cats, and specialized scientific data including GalaxyZoo (galaxy morphology) and molecular cloud radiation simulations.
  • Evaluation Metrics: Performance was measured using standard FID scores for natural images and Mean Opinion Scores (MOS) from professional astrophysicists for scientific datasets.

Results and Discussion

The sampling-based approach demonstrated significant advantages over traditional fine-tuning:

  • Quantitative Superiority: On the LSUN-Church OOD task, the method achieved an FID of 64.8, compared to 192.5 for vanilla fine-tuning.
  • Scientific Fidelity: Expert evaluations for astrophysical data yielded a MOS of 2.88 for the proposed method, significantly higher than the 1.84 achieved by CLIP-guided fine-tuning.
  • Zero Interference: Because the model weights remain frozen, the performance on the original training data is perfectly preserved, avoiding the "mushy" hybrid outputs common in fine-tuned models.
Synthesis results showing the transition from in-domain real dog images to out-of-distribution sketch-style images using a frozen diffusion model.

A key insight of this work is the distinction between representation and generation. A model trained on dogs possesses the "vocabulary" to represent a human face—as evidenced by near-perfect reconstruction from inverted latents—but lacks the "grammar" to generate them spontaneously from standard noise. By discovering the OOD latent "islands," this method unlocks the model's latent expressive power.

Limitations and Future Work

The method requires a small set of target domain images (approximately 800–1000) to define the OOD neighborhood. Furthermore, the synthesis quality is bounded by the intrinsic capacity of the pre-trained model; a model must be sufficiently "rich" to represent the target data. Future research may focus on more sophisticated navigation of these OOD latent spaces to further enhance the diversity of synthesized images.

Summary updated

BibTeX
@misc{zhu2023unseen,
  author = {Ye Zhu and Yu Wu and Zhiwei Deng and Olga Russakovsky and Yan Yan},
  title = {{Unseen Image Synthesis with Diffusion Models}},
  year = {2023},
  eprint = {2310.09213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.09213},
}
Figure