Abstract
Generative modeling has seen significant success in both continuous and discrete domains, yet the mathematical connection between these two paradigms has remained largely informal. This paper introduces a theoretical bridge by utilizing the Ehrenfest process as a discrete-state analog to the Ornstein-Uhlenbeck (OU) process. We prove that in the scaling limit, the discrete jump rates of the Ehrenfest process converge to the continuous score functions used in standard diffusion models. This correspondence allows for the derivation of novel training objectives ($L_{Gauss}$, $L_{Taylor}$, and $L_{OU}$) and enables zero-shot transfer learning from pretrained continuous models to discrete state spaces. Our results on MNIST and CIFAR-10 demonstrate that this unified framework achieves competitive performance while providing a rigorous foundation for discrete-state generative modeling.
Introduction
The field of generative modeling is currently bifurcated. Continuous diffusion models, such as Denoising Diffusion Probabilistic Models (DDPM), excel at modeling continuous data like images by reversing a diffusion process. Conversely, discrete models based on Markov jump processes are tailored for categorical data like text. Despite their shared reliance on time-reversal, a formal unification has been missing. This paper addresses this gap by establishing the Ehrenfest process as the "missing link" between these two worlds.
The Ehrenfest Process as a Bridge
The core contribution of this work is the identification of the Ehrenfest process—a classic birth-death process—as the discrete counterpart to the OU process. We demonstrate that as the number of discrete states $S$ increases, the scaled Ehrenfest process converges to the OU process. This convergence is not merely distributional; the rates of the time-reversed discrete process converge to the score function (the gradient of the log-density) of the continuous process.
Training and Transfer Learning
Leveraging this theoretical correspondence, we propose three new loss functions. $L_{Gauss}$ utilizes a Gaussian approximation of transition probabilities, while $L_{Taylor}$ offers a simplified version via Taylor expansion. Most significantly, $L_{OU}$ directly links discrete jump rates to the continuous score function. This allows for transfer learning, where a U-Net pretrained on continuous data can be applied to discrete categorical data with minimal modification. To ensure sampling efficiency, we employ $\tau$-leaping, an approximate simulation method that bundles multiple jumps into single time steps.
Experimental Results
The proposed framework was evaluated on an illustrative "E" toy example, MNIST, and CIFAR-10. On CIFAR-10, models trained with the $L_{OU}$ loss achieved an FID score of 5.08, outperforming established discrete methods like D3PM (FID 7.34). Furthermore, zero-shot transfer from a continuous model to discrete data achieved an FID of 11.57, validating the strength of the theoretical bridge.
Conclusion
By establishing a rigorous link between the Ehrenfest and OU processes, this work provides a unified perspective on diffusion modeling across discrete and continuous spaces. This framework not only simplifies the training of discrete models but also opens new avenues for cross-domain transfer learning. Future research will focus on scaling these methods to higher-dimensional data and exploring other birth-death processes.
Summary updated