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

Patch Diffusion: Faster and More Data-Efficient Training of Diffusion Models

Zhendong Wang, Yifan Jiang, Huangjie Zheng, Peihao Wang, Pengcheng He, Zhangyang Wang, Weizhu Chen, Mingyuan Zhou

Abstract

Diffusion Models (DMs) have revolutionized generative modeling, yet their adoption is often limited by the immense computational resources and massive datasets required for training. This paper presents Patch Diffusion, a generic training framework designed to democratize high-quality image synthesis. By shifting the training objective from full-sized images to randomized patches and incorporating coordinate conditioning, Patch Diffusion reduces training time by over 50% and significantly enhances data efficiency. The method enables state-of-the-art performance even on datasets as small as 5,000 images, providing a scalable solution for resource-constrained environments.

Introduction

While Diffusion Models have become the gold standard for generative AI, they suffer from two major bottlenecks: compute and data. Training a competitive model typically requires hundreds of GPU days and billions of images, effectively concentrating the technology within a few well-resourced organizations.

Existing research has largely focused on accelerating inference (sampling). However, making the training process more efficient is the key to democratizing the technology. The primary challenge in training on image patches rather than full images is the loss of "global" context; a model trained only on local patches may learn to generate high-quality textures but fail to understand the structural relationship between different parts of an object (e.g., the relative positions of features on a face).

Methodology

Patch Diffusion introduces a novel framework that reformulates the learning objective into a conditional score function at the patch level. The approach relies on three core innovations:

1. Patch-wise Score Matching

Instead of processing a full $R \times R$ image, the model is trained on randomly cropped patches. Because the computational complexity of the standard UNet architecture scales with the number of pixels, training on smaller patches drastically reduces the FLOPs required per iteration, allowing for faster convergence and larger batch sizes.

2. Coordinate Conditioning

To solve the problem of lost global structure, the authors append two additional "coordinate channels" ($x$ and $y$) to the patch input. These coordinates are normalized to a range of $[-1, 1]$ relative to the original full-sized image. This spatial metadata informs the model of the patch's exact location, allowing it to learn the global distribution of features despite only seeing local regions during training.

3. Patch Size Scheduling

To ensure the model learns both fine-grained details and long-range dependencies, the framework employs a mixture of patch sizes. The authors propose two scheduling strategies:

  • Stochastic Schedule: Randomly selecting patch sizes (e.g., full resolution, $1/2$ resolution, and $1/4$ resolution) for each batch.
  • Progressive Schedule: Gradually increasing the patch size throughout the training process. This multi-scale approach forces the model to reconcile local textures with global coherence.

4. Global Sampling

Because UNets are fully convolutional, they are inherently resolution-agnostic. At inference time, Patch Diffusion does not require complex "patch stitching." Instead, a full-sized coordinate grid is provided as input, and the model generates a complete, coherent image in a single forward pass.

Data Efficiency and the "Aha" Moment

A significant insight of this work is that patching acts as a powerful form of data augmentation. For a single $64\times64$ image, there are over 2,400 possible $16\times16$ patches. By training on these varied crops, the model is exposed to a much more diverse set of inputs than standard full-image training. This prevents overfitting, which is the primary failure mode when training diffusion models on small datasets.

Experimental Results

The researchers evaluated Patch Diffusion across several standard benchmarks, including CelebA, FFHQ, LSUN-Bedroom, and ImageNet.

Speed and Efficiency

Patch Diffusion consistently achieved a $\ge 2\times$ training speedup. On the CelebA-64 dataset, the model reached higher image quality in 24 hours than the baseline achieved in 48 hours. In high-resolution tasks ($256\times256$), the Latent Patch Diffusion Model (LPDM) reduced the computational cost from 1120 GFLOPs (standard ADM) to just 78 GFLOPs.

Image Quality

The model achieved competitive and often superior FID scores (lower is better):

  • CelebA-64: 1.77
  • AFHQv2-Wild: 1.93
  • ImageNet-256: 2.72

Small-Scale Dataset Performance

On the AFHQv2-Wild dataset, which contains only 5,000 images, Patch Diffusion improved the FID from 2.59 (standard training) to 1.93. This demonstrates that the patch-based approach is not just a speed optimization, but a fundamental improvement in data efficiency for small-data regimes.

Discussion and Limitations

Beyond speed and efficiency, Patch Diffusion exhibits unique capabilities such as out-painting. By providing coordinates outside the standard $[-1, 1]$ range during inference, the model can generate coherent content that extends beyond the boundaries of the training distribution.

However, limitations remain. The current system utilizes a simple linear coordinate system; the authors suggest that periodic or sinusoidal positional embeddings might further improve structural accuracy. Additionally, while the empirical results are robust, a rigorous theoretical proof of convergence for patch-wise score matching in non-Gaussian cases remains an open research question.

Conclusion

Patch Diffusion represents a significant step toward making generative AI more accessible. By optimizing the training process rather than just inference, it reduces the barriers of compute and data, allowing researchers with modest resources to train state-of-the-art diffusion models.

Summary updated

BibTeX
@inproceedings{wang2023patch,
  author = {Zhendong Wang and Yifan Jiang and Huangjie Zheng and Peihao Wang and Pengcheng He and Zhangyang Wang and Weizhu Chen and Mingyuan Zhou},
  title = {{Patch Diffusion: Faster and More Data-Efficient Training of Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=iv2sTQtbst},
}
Figure