Memory Efficient Diffusion Probabilistic Models via Patch-based Generation

Shinei Arakawa, Hideki Tsunashima, Daichi Horita, Keitaro Tanaka, Shigeo Morishima
4/14/2023
cs.CVcs.LG

No official code found. Best implementation: ShineiArakawa/patch-based-ddpm (0 stars, MIT, last commit 2025-05-22).

Abstract

Diffusion probabilistic models have been successful in generating high-quality and diverse images. However, traditional models, whose input and output are high-resolution images, suffer from excessive memory requirements, making them less practical for edge devices. Previous approaches for generative adversarial networks proposed a patch-based method that uses positional encoding and global content information. Nevertheless, designing a patch-based approach for diffusion probabilistic models is non-trivial. In this paper, we resent a diffusion probabilistic model that generates images on a patch-by-patch basis. We propose two conditioning methods for a patch-based generation. First, we propose position-wise conditioning using one-hot representation to ensure patches are in proper positions. Second, we propose Global Content Conditioning (GCC) to ensure patches have coherent content when concatenated together. We evaluate our model qualitatively and quantitatively on CelebA and LSUN bedroom datasets and demonstrate a moderate trade-off between maximum memory consumption and generated image quality. Specifically, when an entire image is divided into 2 x 2 patches, our proposed approach can reduce the maximum memory consumption by half while maintaining comparable image quality.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch implementation of the CVPRW 2023 paper

00Shell, PythonJun 4, 20241 years agoMIT
ddpmdenoising-diffusion-modelsdiffusion-modelmemory-efficientpatch-based

Similar Papers

Cite this paper

@article{arakawa2023memory,
  title  = {Memory Efficient Diffusion Probabilistic Models via Patch-based Generation},
  author = {Shinei Arakawa and Hideki Tsunashima and Daichi Horita and Keitaro Tanaka and Shigeo Morishima},
  year   = {2023},
  eprint = {2304.07087},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.07087v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.07087.svg)](https://codeofpaper.com/paper/2304.07087)

Discussion