SinDiffusion: Learning a Diffusion Model From a Single Natural Image

Weilun Wang, Jianmin Bao, Wengang Zhou, Dongdong Chen 0001, Dong Chen 0003, Lu Yuan, Houqiang Li

Abstract

SinDiffusion is the first framework to successfully apply denoising diffusion models to the task of learning from a single natural image. By replacing the traditional multi-scale "pyramid" approach used by GANs with a single-scale diffusion model featuring a restricted patch-level receptive field, SinDiffusion generates images with significantly higher diversity and fewer artifacts than previous state-of-the-art methods.

Introduction

Generating new, diverse images from a single training example is a classic "small data" challenge in computer vision. Historically, the gold standard has been SinGAN, which utilizes a pyramid of Generative Adversarial Networks (GANs) to learn an image's internal statistics at various resolutions. However, SinGAN and its successors face two major hurdles: error accumulation and low diversity. Because images are grown progressively from low to high resolution, initial errors often compound into significant artifacts. Furthermore, GANs frequently struggle to produce varied outputs, often "memorizing" the training data.

SinDiffusion addresses these issues by treating image generation as an iterative denoising process—a diffusion model—rather than a multi-scale competition.

Methodology

SinDiffusion introduces a novel Single-image Diffusion Model architecture. Its effectiveness relies on two primary departures from standard practices:

Single-Scale Training and Self-Refinement

Unlike GAN-based methods that require a hierarchy of models, SinDiffusion trains a single model at a single scale. The iterative nature of diffusion acts as a built-in error correction mechanism. While GANs "bake in" mistakes at lower scales, diffusion models treat intermediate errors as noise that can be refined in the next step, eliminating the need for a multi-resolution pyramid and preventing "artifact stacking."

The "Goldilocks" Receptive Field

Standard diffusion models typically possess a "global" receptive field, seeing the entire image at once. When trained on a single image, such models tend to memorize the input. To force the model to learn the distribution of patches instead, the authors redesigned the U-Net architecture to have a limited, patch-level receptive field. By removing attention layers and reducing downsampling steps, they created a fully convolutional network that focuses on local neighborhoods. This identifies a "Goldilocks" sweet spot: the model learns the style and logic of patches without being anchored to a fixed global layout.

Key Results and Versatility

SinDiffusion demonstrates superior performance across several benchmarks, including the Places50 dataset and various famous artworks.

Quantitative and Qualitative Performance

The model achieved an LPIPS score of 0.387, a significant improvement over SinGAN (0.266), indicating much higher variety in generated samples. In terms of Single-Image FID (SIFID), SinDiffusion tied for the top spot (0.06) while producing far fewer visual artifacts. User studies further confirmed these findings, with participants preferring SinDiffusion’s results over competitors more than 65% of the time.

Zero-Shot Versatility

A major advantage of the diffusion framework is its inherent versatility. SinDiffusion can be adapted to downstream tasks like text-guided generation or outpainting without retraining. For instance, by using CLIP to guide the denoising process, the model can seamlessly integrate new elements into the learned image distribution.

Text-guided generation: adding a Christmas tree to a Seurat painting using SinDiffusion's zero-shot capabilities.

High-Resolution Synthesis

The model also excels at generating ultra-wide "scroll" images, maintaining consistent textures and logical structures across spans as large as 486 × 2048 from a single standard-sized photo.

High-resolution synthesis: generating a wide panorama from a single image of a herd, demonstrating consistent texture and structure.

Limitations and Future Work

While SinDiffusion offers significant improvements, it is computationally more expensive than GANs due to the iterative nature of diffusion sampling. Additionally, the patch-based approach may struggle with images requiring rigid, complex global structures, such as human faces or highly symmetrical architecture. Future research may focus on faster sampling techniques, such as DDIM, to enhance real-time applicability.

Summary updated

BibTeX
@article{wang2022sindiffusion,
  author = {Weilun Wang and Jianmin Bao and Wengang Zhou and Dongdong Chen and Dong Chen and Lu Yuan and Houqiang Li},
  title = {{SinDiffusion: Learning a Diffusion Model From a Single Natural Image}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
}
Figure