Diffusion on the Probability Simplex

Griffin Floto, Thorsteinn Jonsson, Mihai Nica, Scott Sanner, Eric Zhengyu Zhu

TL;DR

Standard diffusion models excel in continuous spaces, but struggle with discrete categorical data. This paper proposes performing diffusion directly on the probability simplex by pushing forward an Ornstein-Uhlenbeck (OU) process through an additive logistic (softmax) transformation. Because the resulting distribution remains Logistic-Normal with an analytical density, the model retains closed-form transition kernels and exact score formulations, fitting seamlessly into standard score-matching pipelines.

What Problem Does This Paper Address?

Diffusion models typically rely on continuous Gaussian noise added in Euclidean space ($\mathbb{R}^n$). When modeling discrete data (such as text tokens or categorical classes), continuous Gaussian corruptions lack a natural interpretation.

Prior approaches either resort to ad-hoc approximations (like rounding/thresholding continuous representations) or adopt processes whose transition densities cannot be evaluated in closed form (such as the Cox-Ingersoll-Ross process on the Dirichlet simplex). Without an exact transition density, practitioners cannot use standard score matching objectives and must turn to complex, slower training alternatives.

Methods

Instead of diffusing discrete tokens directly, the authors represent discrete choices as categorical probability vectors residing on the probability simplex: $$\mathcal{S}^k := \left\{x \in \mathbb{R}^k : x_i \ge 0, \sum_{i=1}^k x_i = 1\right\}$$

The core methodology comprises:

  • The Forward Process via Pushforward: The authors define the forward process by passing an Ornstein-Uhlenbeck (OU) process $Y_t$ on $\mathbb{R}^{d-1}$ through an additive logistic (softmax) map $\sigma : \mathbb{R}^{d-1} \to \mathcal{S}^d$, yielding $X_t = \sigma(Y_t)$.
  • Analytical Tractability: Because $Y_t$ is Gaussian, the marginal distribution of $X_t$ is strictly Logistic-Normal at any time $t$. This yields closed-form transition densities $p_{0t}(x_t \mid x_0)$ and explicit score functions $\nabla_x \log p_t(x)$.
  • Simplex SDE Formulation: Applying Itô's lemma yields the explicit SDE governing $X_t$ with state-dependent drift $f(X_t, t)$ and diffusion matrix $G(X_t, t)$.
  • Numerical Stabilization at Simplex Boundaries: The score $\nabla_x \log p_t(x)$ diverges near the simplex boundary. To circumvent numerical instability during training, the network is trained to directly predict the bounded reverse drift term $-\frac{1}{2} G(x, t)G(x, t)^\top \nabla_x \log p_t(x)$, which vanishes at the boundaries.
  • Extension to the Unit Cube: The formulation extends to bounded continuous domains like $[0, 1]^d$ (e.g., image pixels) by taking the product of $d$ one-dimensional processes, providing a closed-form alternative to reflected diffusion.

Datasets

  • Discretized MNIST: A modified version of the standard MNIST handwritten digits benchmark. Pixel intensities typically in $\{0, \dots, 255\}$ are quantized into $k = 3$ discrete categories ($\{0, 1, 2\}$).
  • No other datasets or standard NLP/categorical benchmarks were tested in this preliminary study.

Key Insights and Ideas

  • Turning Discrete into Continuous via Distributions: Instead of creating a discrete jump process, mapping discrete tokens to smoothed categorical distributions (e.g., relaxing one-hot vectors to vectors like $[\alpha, \beta, \dots, \beta]^\top$) preserves the continuous differential geometry of SDEs.
  • Closed-Form Everything: Unlike Dirichlet-based categorical diffusions whose transient transition distributions are non-analytical, the OU-to-softmax pipeline guarantees a closed-form transition kernel at every $t$, enabling standard score matching.
  • Diffusion Boundary Vanishing: The diffusion tensor $G(x)G(x)^\top$ naturally cancels the boundary divergence of the Logistic-Normal score $\nabla_x \log p(x)$, yielding stable, bounded dynamics when parameterized together.

Key Results

  • Qualitative Generation: Using a 35-million-parameter U-Net trained with $\theta = 20$, $\alpha = 0.9$, and sampling over $T = 1000$ denoising steps, the model successfully synthesized coherent $28 \times 28$ discrete MNIST digits from noise via $\text{argmax}$ sampling over the output simplex coordinates.
  • Quantitative Evaluation: Not reported in the paper (the paper is an initial proof-of-concept without likelihood or FID benchmarks).

Limitations and Future Work

  • Scale of Evaluation: The experiment is limited to a toy dataset (quantized MNIST with 3 categories); validation on large vocabularies (e.g., language modeling with $V > 30{,}000$) or multi-category tabular data is unverified.
  • Dimensional Scaling at Simplex Perimeters: While the combined reverse drift term is bounded, the simplex perimeter grows rapidly with dimension $d$, which can increase sampling difficulty.
  • Future Directions: The authors propose evaluating the framework on richer discrete domains and investigating whether the simplex entropy can serve as a natural indicator of aleatoric uncertainty in generative tasks.

Summary updated

BibTeX
@inproceedings{floto2023diffusion,
  author = {Griffin Floto and Thorsteinn Jonsson and Mihai Nica and Scott Sanner and Eric Zhengyu Zhu},
  title = {{Diffusion on the Probability Simplex}},
  booktitle = {SODS @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=bxpdikUxrb},
}
Figure