Unseen Image Synthesis with Diffusion Models

Ye Zhu, Yu Wu, Zhiwei Deng, Olga Russakovsky, Yan Yan · Submission to ICLR 2024 · Withdrawn

TL;DR

Can a diffusion model trained purely on dog pictures generate high-resolution images of churches, bedrooms, or human faces without any retraining or fine-tuning? This paper introduces UnseenDiffusion, demonstrating that frozen, single-domain diffusion models already possess the latent capacity to synthesize completely out-of-distribution (OOD) images when guided by intermediate Gaussian modeling and high-dimensional geometric rejection sampling.

What Problem Does This Paper Address?

Current approaches to domain generalization in generative AI rely on brute force: scaling model parameters and ingesting ever-larger, web-scale datasets. For resource-constrained researchers, adapting existing generative models to unseen domains typically requires retraining, fine-tuning, or training auxiliary adapter modules.

The authors tackle a fundamental conceptual question: Does a diffusion model pre-trained solely on a single narrow domain already encode the mechanics to generate images outside its training distribution? By investigating the latent spaces along the reverse diffusion process, the paper explores how to perform zero-shot, training-free unseen domain image synthesis using a completely frozen base model.

Methods

The authors' framework, UnseenDiffusion, operates entirely during inference across four core components:

  1. Deterministic Inversion & Reconstruction: Using non-Markovian deterministic inversion (via DDIM), any raw unseen image can be mapped into intermediate latent representations and reconstructed with high fidelity, proving latent expressiveness is preserved across domains.
  2. Trajectory Bandwidth ($B_{\eta, t}$): Purely deterministic trajectories ($\eta = 0$) cannot generate new images (sampling probability from a zero-volume path is zero). The authors define trajectory bandwidth as the maximum stochasticity $\eta$ a reverse trajectory can tolerate while retaining domain-specific structure.
  3. Latent Gaussian Estimation at the Mixing Step: Theoretical analysis shows intermediate latent encodings of OOD samples still follow Gaussian distributions. Operating at an optimal intermediate diffusion step (the "mixing step," $t_m \approx 500$), where in-domain (ID) and OOD representations naturally separate, the authors fit an empirical Gaussian prior over the target unseen domain using a modest pool of reference samples (around 2,000 images).
  4. High-Dimensional Geometric Optimization: Direct Gaussian sampling often fails—either collapsing into the ID distribution (e.g., generating dogs instead of churches) or wandering into low-density regions. To fix this, samples are filtered via rejection criteria derived from high-dimensional isotropic Gaussian geometry:
  5. Pair-wise distance: The Euclidean distance between sample pairs remains roughly constant ($d_0$).
  6. Lattice angle: The angle formed by vectors between any three sample points hovers near $60^\circ$.
  7. Origin orthogonality: Vectors from the origin to sample pairs are nearly orthogonal ($\approx 90^\circ$).

Datasets

The authors utilized pre-trained models and benchmark datasets:

  • AFHQ (Dog, Cat, Wild)
  • CelebA-HQ (Human faces)
  • LSUN (LSUN-Church, LSUN-Bedroom)

Base models evaluated include standard DDPM and improved DDPM (iDDPM) trained strictly on single datasets (e.g., AFHQ-Dog at $256 \times 256$ resolution, spanning a latent dimension of $d = 196,608$). No new datasets were introduced.

Key Insights and Ideas

  • Generation as "Discovery," Not "Creation": Because frozen diffusion models can invert and reconstruct arbitrary images, latent representations for unseen domains already exist. Synthesizing unseen images is fundamentally a search problem—identifying where valid latents live—rather than an architectural limitation of the model's weights.
  • The Domain-Gap Paradox: Classical transfer learning suggests models generalize better to visually similar domains (e.g., dog $\to$ cat) than dissimilar ones (e.g., dog $\to$ church). Here, the opposite holds true: larger domain gaps create larger separation from the base model's ID attractor basin. Latents for churches are less likely to be "captured" by dog-denoising trajectories than latents for cats, yielding higher trajectory bandwidth and easier sampling.

Key Results

  • Reconstruction: A model trained on AFHQ-Dog reconstructs CelebA, LSUN-Church, and LSUN-Bedroom images with Mean Absolute Error (MAE) of $0.072$–$0.074$, matching in-domain reconstruction ($0.073$) and outperforming dedicated GAN inversion methods like pSp and e4e.
  • Unseen Synthesis Quality: An iDDPM trained exclusively on dogs generates human faces (FID: $43.5$), churches (FID: $43.9$), and bedrooms (FID: $43.4$).
  • Comparison to Baselines: Despite requiring zero parameter updates or task-specific fine-tuning, UnseenDiffusion produces FID scores competitive with or superior to trained image-to-image editing methods (e.g., DiffusionCLIP achieved FIDs of $66.3$ on Church and $68.1$ on Bedroom).
  • Inference Latency: Denoising over 60 accelerated steps from $t_m = 500$ takes approximately $1.7$ to $2.4$ seconds per image on a single RTX 3090 GPU.

Limitations and Future Work

  • Sampling Inefficiency: Because high-dimensional Gaussian boundaries are delicate, the geometric rejection sampling step incurs high rejection rates, making candidate selection computationally slow.
  • Fidelity Ceiling: While visually recognizable and semantically distinct, synthesized images have FID scores in the $40$s—well above standard supervised diffusion baselines (which achieve FIDs between $6$ and $11$). It is not designed to replace large-scale training for production-grade photorealism.
  • Future Directions: Developing more accurate estimators for high-dimensional OOD manifolds and exploring whether guidance mechanisms can steer latent walks without rejection sampling remain open problems.

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