GUD: Generation with Unified Diffusion

Mathis Gerdes, Max Welling, Miranda C. N. Cheng · DOI

Abstract

The Generation with Unified Diffusion (GUD) framework establishes a formal bridge between diffusion and autoregressive models. By generalizing the Ornstein-Uhlenbeck process, GUD introduces three degrees of freedom: representation basis, prior distribution, and component-wise noise scheduling. This unification allows for "soft-conditioning," enabling generative paths that range from standard simultaneous diffusion to strictly sequential autoregressive generation. We demonstrate that this framework allows for flexible trade-offs between sample quality and density estimation, as well as novel applications like infinite texture generation.

Introduction

Current generative modeling is largely divided into two paradigms: diffusion models, which typically add noise to all data components simultaneously, and autoregressive models, which generate data sequentially. This paper introduces GUD to bridge this gap, motivated by the Renormalization Group (RG) theory in physics, which describes the flow of information across different scales. GUD allows practitioners to specify which information is erased and at what rate, moving beyond the standard "diagonal pixel diffusion" toward a more flexible generative framework where autoregressive generation is viewed as an extreme case of sequential noising.

Methodology

The GUD framework generalizes the diffusion process by allowing for component-specific noise trajectories, moving away from a single global noise level.

Design Degrees of Freedom

  1. Representation (Basis): GUD can operate in various bases, including pixel space, PCA, Fourier (FFT), or Wavelets. This allows the model to prioritize structural features (e.g., low frequencies) over fine details.
  2. Prior Distribution: Instead of a fixed isotropic Gaussian prior, GUD supports priors that match the data's second-order statistics (whitening) or scale-invariant distributions inspired by physical principles.
  3. Component-wise Noise Schedule: The core innovation is the use of a noise state vector $\gamma(t)$. By staggering the schedules of different components, the model implements "soft-conditioning," where some parts of the data are denoised while others remain noisy.
Conceptual paths between data and prior distributions in the GUD framework, illustrating the unified space between diffusion and autoregressive models.

Architecture

To accommodate varying noise levels across components, the authors modified the standard U-Net architecture. The model utilizes cross-attention on the noise state vector $\gamma$, ensuring the network is aware of the precise noise level in every part of the representation during any stage of the generation process. This allows a single trained model to support multiple generation schedules at inference time.

Experimental Results

The framework was evaluated on CIFAR-10 for general image generation and the PCAM (Patch Camelyon) dataset for specialized tasks like image extension.

Density Estimation vs. Sample Quality

A key finding is the trade-off between Negative Log-Likelihood (NLL) and Fréchet Inception Distance (FID). While standard diffusion (often corresponding to an inverse softness $a=1$) is optimized for visual quality (FID), it may not be optimal for density estimation. Adjusting the "softness" of the component-wise schedules allows practitioners to navigate this trade-off effectively.

NLL and FID metrics as a function of inverse softness $a$, demonstrating the performance trade-offs between whitened and unwhitened representations.

Infinite Texture and Multi-Scale Generation

Using a sequential column-wise schedule on the PCAM dataset, GUD demonstrated the ability to generate coherent, infinitely long strips of tissue imagery, effectively performing out-painting as an inherent part of the generative process. Furthermore, by employing Haar Wavelets, the model successfully integrated hierarchical (coarse-to-fine) and sequential (left-to-right) generation, achieving a competitive NLL of 3.17 bits/dim on CIFAR-10.

Conclusion

GUD provides a unified perspective on generative modeling, demonstrating that autoregressive models are a specific subset of diffusion processes. By opening the design space of bases and schedules, GUD enables more stable training through whitening and flexible inference-time generation paths. Future work will focus on automated schedule optimization and scaling these techniques to the latent spaces of larger foundation models.

Summary updated

BibTeX
@misc{gerdes2024gud,
  author = {Mathis Gerdes and Max Welling and Miranda C. N. Cheng},
  title = {{GUD: Generation with Unified Diffusion}},
  year = {2024},
  eprint = {2410.02667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02667},
}
Figure