Spatial-Frequency U-Net for Denoising Diffusion Probabilistic Models

Xin Yuan, Linjie Li, Jianfeng Wang, Zhengyuan Yang, Kevin Lin, Zicheng Liu, Lijuan WangarXiv 2023 · DOI

Introduction

Denoising Diffusion Probabilistic Models (DDPMs) have set new standards in generative modeling, yet they face a significant trade-off between computational efficiency and representational quality. Standard models typically operate in either pixel space, which is computationally intensive at high resolutions, or latent space, which relies on pre-trained Variational Autoencoders (VAEs) that can introduce information bottlenecks.

SFUNet proposes a middle ground by operating in the wavelet space. By leveraging the Discrete Wavelet Transform (DWT), the model decomposes images into low-frequency global structures and high-frequency local details, providing a natural framework for the denoising task.

The SFUNet Architecture

Unlike previous attempts to use wavelets in diffusion, SFUNet does not simply feed wavelet coefficients into a standard U-Net. The authors argue that standard 2D convolutions fail to capture the complex inter-band relationships inherent in wavelet data.

Comparison of DDPM, WaveDiff, and the proposed SFUNet architecture.

SFUNet treats wavelet data as a 5D structure [Batch, Channel, Frequency, Height, Width] and introduces two key technical innovations:

  • Spatial-Frequency Convolution: To model frequency correlations efficiently, the architecture employs a (2+1)D decomposition. This consists of a 2D spatial convolution followed by a 1D frequency convolution, allowing the model to learn relationships across subbands without the overhead of full 3D convolutions.
  • Spatial-Frequency Attention: The model utilizes separable attention modules. One module captures global spatial correlations across all frequencies, while the other focuses on frequency-domain relationships at specific spatial locations.

This design allows SFUNet to maintain the vanilla DDPM training paradigm, using a simple Mean Squared Error (MSE) loss without requiring auxiliary discriminators.

Experimental Results

The model was evaluated on several benchmarks, including CIFAR-10, FFHQ-256, and LSUN datasets. The results demonstrate that the benefits of wavelet-space diffusion are most pronounced at higher resolutions. On the FFHQ-256 dataset, SFUNet achieved a Fréchet Inception Distance (FID) of 7.12, a significant improvement over the pixel-based DDPM baseline of 13.53. Similar gains were observed on LSUN-Bedroom (FID 3.88 vs. 4.89) and LSUN-Church (FID 6.11 vs. 7.89).

Qualitative results of high-resolution face generation on the FFHQ-256 dataset.

Qualitatively, SFUNet produces images with sharper details and fewer artifacts in high-frequency regions, such as hair and textures, compared to standard pixel-space models. This is attributed to the model's ability to explicitly "align" details across different frequency subbands.

Conclusion and Future Directions

SFUNet demonstrates that wavelet space is a powerful domain for diffusion models, offering a balance between the raw detail of pixel space and the efficiency of latent space. While the model currently struggles to outperform pixel-space counterparts on very low-resolution data like CIFAR-10, its performance on high-resolution tasks is compelling.

Future work may explore learnable wavelet transforms or "frequency-aware" editing, where high-frequency subbands could be modified independently to alter textures without affecting global image structure.

Summary updated

BibTeX
@misc{yuan2023spatial,
  author = {Xin Yuan and Linjie Li and Jianfeng Wang and Zhengyuan Yang and Kevin Lin and Zicheng Liu and Lijuan Wang},
  title = {{Spatial-Frequency U-Net for Denoising Diffusion Probabilistic Models}},
  year = {2023},
  eprint = {2307.14648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.14648},
}
Figure