Improving and Unifying Discrete&Continuous-time Discrete Denoising Diffusion

Lingxiao Zhao, Xueying Ding, Lijun Yu, Leman Akoglu

Abstract

Discrete diffusion models have seen a surge of attention with applications on naturally discrete data such as language and graphs. Although discrete-time discrete diffusion has been established for a while, only recently has a framework for continuous-time discrete diffusion been introduced. However, previous training and sampling processes differed significantly between the two, necessitating nontrivial approximations for tractability. In this paper, we present a series of mathematical simplifications of the variational lower bound (VLB) that enable more accurate and easy-to-optimize training for discrete diffusion. We derive a simple formulation for backward denoising that enables exact and accelerated sampling and an elegant unification of discrete-time and continuous-time discrete diffusion. Our proposed USD3 (Unified Simplified Discrete Denoising Diffusion) outperforms all state-of-the-art baselines on established datasets.

Introduction

Generative diffusion models have revolutionized continuous data domains like image synthesis, but applying them to categorical data—such as text, music notes, or graph edges—presents unique challenges. Currently, researchers operate within two fragmented paradigms: discrete-time models, which operate at fixed intervals, and continuous-time models, which follow a smooth path through time. While continuous-time models often yield higher sample quality, they have historically been mathematically complex, computationally expensive, and reliant on inexact approximations.

This paper introduces USD3, a framework that bridges this gap. By simplifying the underlying mathematics of the Variational Lower Bound (VLB), we enable easier optimization and faster sampling within a shared architecture. This unification allows both discrete and continuous-time models to benefit from advanced techniques, such as MCMC correction, that were previously restricted to specific domains.

Methodology

VLB Simplification and Unification

The core of USD3 rests on three mathematical pillars. First, we derive a simplified, exact closed-form for the VLB specifically tailored for nominal (unordered) categorical data. This removes the need for the "nontrivial approximations" required by previous frameworks like $\tau$-LDR.

Second, we prove that discrete-time and continuous-time processes can share the exact same forward noise process and backward parameterization. This unification means a single codebase can handle both paradigms. Crucially, it allows continuous-time models to utilize the fast, exact backward sampling logic previously reserved for discrete-time models.

MCMC Corrector and USD3*

To further enhance sample quality, we adapt the Predictor-Corrector MCMC scheme—common in continuous-state diffusion—to the discrete case. Because of our unified framework, even discrete-time models can now use this "corrector" step to refine samples. Additionally, we introduce USD3*, a variant utilizing a clipped loss coefficient to stabilize training in scenarios where the raw VLB becomes difficult to optimize.

Experimental Setup

We evaluated USD3 on two primary tasks representing different categorical data structures:

  1. Lakh Pianoroll: A dataset of monophonic music sequences (256 notes long) with 129 possible notes. This tests the model's ability to capture sequential dependencies.
  2. VQCIFAR10: The standard CIFAR-10 image dataset converted into discrete hash-codes via a pre-trained VQGAN. This tests the framework's performance on high-dimensional categorical data.

Results and Discussion

State-of-the-Art Performance

USD3 and its variants outperformed existing baselines, including D3PM, RDM, and SEDD, across nearly all metrics. On the VQCIFAR10 benchmark, USD3-CE achieved an Inception Score (IS) of 9.23 and a Fréchet Inception Distance (FID) of 11.97, a significant improvement over the discrete-time D3PM (IS 8.13, FID 18.08).

In music generation (Lakh Pianoroll), USD3 demonstrated superior n-gram Hellinger distances, suggesting a more accurate capture of musical rhythm and vocabulary compared to prior models.

Efficiency and Generalization

Beyond raw quality, USD3 is easier to train and requires less GPU memory than specialized architectures like SDDM. We also investigated the "parroting" problem—the tendency of models to memorize training sequences. Our findings indicate that combining VLB and Cross-Entropy losses helps the model generalize more effectively than using either loss in isolation.

Limitations and Future Work

While the MCMC corrector significantly boosts performance, it introduces substantial computational overhead; adding the corrector can increase sampling time from approximately 8 hours to over 2 days in some configurations. Furthermore, our current simplifications are optimized for nominal data. Extending this framework to ordinal data (where categories have a natural ranking) and scaling it to massive-scale language modeling remain primary objectives for future research.

Conclusion

USD3 provides a mathematically grounded unification of discrete and continuous-time diffusion for categorical data. By simplifying the optimization objective and enabling exact sampling, we provide a robust framework that achieves state-of-the-art results in both music and image synthesis. The unified code is available at https://github.com/LingxiaoShawn/USD3.

Summary updated

BibTeX
@misc{zhao2024improving,
  author = {Lingxiao Zhao and Xueying Ding and Lijun Yu and Leman Akoglu},
  title = {{Improving and Unifying Discrete\&Continuous-time Discrete Denoising Diffusion}},
  year = {2024},
  eprint = {2402.03701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.03701},
}
Figure