betaFeedback

WorksMathematics

Discrete Diffusion Models are Minimax Optimal Under Sparsity

Abstract

Discrete diffusion models have emerged as a leading alternative to autoregressive models for generating text and other categorical data, yet their theoretical foundations remain less developed than those of their continuous counterparts. For continuous diffusion models, a prominent line of theory suggests that these models can adapt to low-dimensional structure in the data, thereby improving statistical efficiency and generalization. In this work, we investigate the discrete analogue of this phenomenon by studying the statistical rates of discrete diffusion models under sparsity assumptions. By analyzing a nonparametric estimator derived from a regularized score-entropy objective, we establish minimax-optimal rates in the sparse regime. The proposed regularization can be viewed as an adaptation of label smoothing techniques introduced for classification, and does not require the knowledge of the sparsity parameter. This shows that discrete diffusion models can adapt intrinsically to sparsity.

Introduction

Discrete diffusion models learn distributions on categorical data by reversing a Markov noising process [1, 11]. In language modeling, they provide an alternative to autoregressive sequence generation [15]. We study their finite-sample estimation error in Kullback–Leibler (KL) divergence under two standard noising mechanisms: uniform corruption, which replaces tokens with uniformly sampled tokens, and masked corruption, which replaces them with an absorbing mask token. Our objective is to determine whether these mechanisms attain the optimal estimation rates when the data distribution has an unknown sparse support.

For continuous diffusion models, Oko et al. [13] establish nearly minimax-optimal distribution estimation rates under smoothness assumptions. Related results show how score estimation and distribution recovery can exploit low-dimensional subspaces [4] and manifold structure [2]. As a discrete counterpart, we consider here support sparsity as structural assumption. For sequences of length dd over a vocabulary of size KK, the clean state space X0\mathcal{X}_0 has M:=KdM := K^d elements. An ll-sparse distribution assigns positive probability to at most ll sequences. We impose no geometric condition on these sequences, no independence assumption on their coordinates, and no lower bound on their positive probabilities. The relevant question is therefore whether diffusion-based estimation can adapt to ll, rather than incur a statistical cost proportional to MM.

Our starting point is to regularize the empirical score-entropy objective by its counterpart for uniformly distributed clean data. The resulting score is induced by the smoothed empirical distribution

μ^0(γ)=nn+γμ0(n)+γn+γUnif⁡(X0),γ>0,(1)\widehat{\mu}_0^{(\gamma)} = \frac{n}{n+\gamma}\mu_0^{(n)} + \frac{\gamma}{n+\gamma}\operatorname{Unif}(\mathcal{X}_0), \qquad\gamma> 0, \tag*{(1)}

where μ0(n)\mu_0^{(n)} is the empirical law of the nn training sequences. This distribution has full support, so it avoids the infinite forward KL loss that occurs when an estimator assigns zero probability to an unobserved sequence with positive data probability. The estimator in (1) does not depend on the corruption kernel; its forward marginals and associated scores do.

Smoothing discrete frequency estimates is classical. In particular, Mourtada (2026) analyzes an adaptive estimator of the form (1) and establishes sparse KL bounds and minimax lower bounds. Our contribution is to connect this estimation problem to regularized diffusion training and reverse sampling, and to determine how the smoothing level controls the resulting statistical error. For masked diffusion, this connection uses the conditional-distribution representation of the score established by Ou et al. [14].

Our contributions can be summarized as follows:

  • In the setting of masked diffusion, we derive a method for regularizing scores via a context-dependent label smoothing. We show that this smoothing is equivalent to regularizing with the score loss of the uniform distribution, which extends it beyond masked diffusion. The optimal conditional predictions that minimize the regularized loss produce the proper score induced by (1).

  • We then establish expected and high-probability bounds for KL⁡(μdata∣μ^0(γ))\operatorname{KL}(\mu_{\mathrm{data}} \mid\widehat{\mu}_0^{(\gamma)}) in terms of the effective support and effective missing-support quantities of the data distribution, following the approach of Mourtada (2026). The bounds allow for data-dependent choices of γ\gamma, and the high-probability event holds simultaneously for every γ∈[1,min⁡{n,M}]\gamma\in[1,\min\{n,M\}]. They therefore describe the effect of regularization beyond exact support sparsity. We also identify ranges of smoothing levels that attain the sparse minimax rates.

  • We transfer these bounds to the terminal law ν^\widehat{\nu} of the reverse sampler. For the masked diffusion initialized at the fully masked state, we prove the exact identity ν^=μ^0(γ)\widehat{\nu} = \widehat{\mu}_0^{(\gamma)}. For uniform diffusion, we control the finite-horizon initialization error. With the adaptive choice γ=Dn\gamma= D_n, where DnD_n is the number of distinct training sequences, both noising procedures attain a sparse minimax rate of order llog⁡(eM/l)/nl\log(eM/l)/n in expectation and high probability, without requiring knowledge of ll or the support. Instead of depending on the size of the state space, which is exponentially large with respect to sequence length, the rate is instead governed by the sparsity ll which can be far smaller in practice.

Relation to previous work. Recent analyses of discrete diffusion address several distinct statistical problems. Srikant et al. (2026) derive sample-complexity guarantees for neural score estimators, accounting for statistical, approximation, optimization, and clipping errors. Wakasugi & Suzuki (2025) obtain state-size-independent bounds by exploiting smooth embeddings and graph structure; their assumptions differ from support sparsity. Cho & Wu (2026) derive nearly matching minimax bounds for score estimation under the score-entropy loss and apply their analysis to both uniform and masked diffusion. Their bounds depend on the cardinality of the diffusion state space and on density-ratio bounds; they do not quantify adaptation to the support size of the clean distribution.

Closer to our setting, Zhang et al. [19] derive structure-dependent generalization bounds and compare the effects of sparsity under masked and uniform corruption. Such comparisons raise a further question: does the choice of corruption mechanism change the minimax risk over sparse data distributions? A difference between upper bounds for particular score estimators does not by itself establish a separation between the optimal risks. We address this question by analyzing a regularized score estimator and identifying the distribution generated by its reverse dynamics.

Notation. For a finite nonempty set I\mathcal{I}, let ∣I∣|\mathcal{I}| denote its cardinality, P(I)\mathcal{P}(\mathcal{I}) denote the set of probability measures on I\mathcal{I}, Unif⁡(I)∈P(I)\operatorname{Unif}(\mathcal{I}) \in\mathcal{P}(\mathcal{I}) be its uniform law, δx∈P(I)\delta_x \in\mathcal{P}(\mathcal{I}) be the point mass at x∈Ix \in\mathcal{I}. For x∈Xx \in\mathcal{X} and A⊆[d]A \subseteq[d], write xA:=(xj)j∈Ax_A := (x_j)_{j \in A} and x−i:=x[d]∖{i}x_{-i} := x_{[d]\setminus\{i\}}. For μ,ν∈P(I)\mu,\nu\in\mathcal{P}(\mathcal{I}), define KL⁡(μ∣ν):=∑x:μ(x)>0μ(x)log⁡(μ(x)/ν(x))\operatorname{KL}(\mu\mid\nu) := \sum_{x:\mu(x)>0} \mu(x) \log(\mu(x)/\nu(x)), when μ≪ν\mu\ll\nu, and set KL⁡(μ∣ν):=+∞\operatorname{KL}(\mu\mid\nu) := +\infty otherwise. Given any positive integer KK, we use the shorthand [K]={1,…,K}[K] = \{1,\ldots,K\} and we use the notation a≲ba \lesssim b to mean a≤Cba \le Cb for a universal constant CC.

Preliminaries

We consider the problem of density estimation for a target distribution μdata∈P(X0)\mu_{\mathrm{data}} \in\mathcal{P}(\mathcal{X}_0) on the finite sequence space, X0:=Vd\mathcal{X}_0 := \mathcal{V}^d, d≥1d \ge1. Without loss of generality, we take V:=[K]\mathcal{V} := [K] with K≥2K \ge2 leading to a cardinality M:=∣X0∣=KdM := |\mathcal{X}_0| = K^d that grows exponentially with dd.

Discrete diffusion models. The goal of discrete diffusion models is to learn a generative model that approximates μdata\mu_{\mathrm{data}} with access to only a finite set of samples S=(X0(1),…,X0(n))∼μdata⊗nS = (X_0^{(1)}, \ldots, X_0^{(n)}) \sim\mu_{\mathrm{data}}^{\otimes n}. This is done by simulating the reversal of a Markov process that starts from the data distribution and converges to a tractable limiting distribution. For convenience of exposition, we define this Markov process on a larger finite set X⊇X0\mathcal{X} \supseteq\mathcal{X}_0 and we identify μdata\mu_{\mathrm{data}} with its extension by zero to X\mathcal{X}.

The forward process is defined as a continuous-time Markov chain (Xt)t∈[0,T](X_t)_{t \in[0,T]} on X\mathcal{X} with time horizon T>0T > 0 and rate matrix (Qt)t∈[0,T](Q_t)_{t \in[0,T]} (throughout this work we use the column-generator convention—details in Appendix A.1). We assume that Qt=σtQ0Q_t = \sigma_t Q_0 where Q0Q_0 is a fixed conservative generator and σ:[0,∞)→[0,∞)\sigma: [0,\infty) \to[0,\infty) is integrable with σˉt:=∫0tσu du\bar{\sigma}_t := \int_0^t \sigma_u\,du satisfying $0 < \bar{\sigma}_t < \infty$ for all t>0t > 0, and σˉt→∞\bar{\sigma}_t \to\infty as t→∞t \to\infty. For $0 \le s \le t \le T$, x,y∈Xx,y \in\mathcal{X}, we define the transition matrix Ps,t(x,y):=P(Xt=x∣Xs=y)P_{s,t}(x,y) := \mathbb{P}(X_t = x \mid X_s = y) which satisfies,

Ps,t=exp⁡((σˉt−σˉs)Q0).(2)P_{s,t} = \exp\left((\bar{\sigma}_t-\bar{\sigma}_s)Q_0\right). \tag*{(2)}

In particular, if μt(x):=P(Xt=x)\mu_t(x) := \mathbb{P}(X_t = x), then μt\mu_t solves the forward Kolmogorov equation,

∂tμt(x)=Qtμt(x)=∑y∈XQt(x,y)μt(y).(3)\partial_t\mu_t(x) = Q_t\mu_t(x) = \sum_{y \in\mathcal{X}} Q_t(x,y)\mu_t(y). \tag*{(3)}

We initialize the process at the data distribution μ0=μdata\mu_0 = \mu_{\mathrm{data}} so that, by definition, μt=P0,tμdata\mu_t = P_{0,t}\mu_{\mathrm{data}}.

The reverse process. The time-reversed process, which we define by X~t:=XT−t\widetilde{X}_t := X_{T-t}, t∈[0,T]t \in[0,T], is also a continuous-time Markov chain whose rate matrix Q~t(x,y)\widetilde{Q}_t(x,y) satisfies the identity, μT−t(y)Q~t(x,y)=μT−t(x)QT−t(y,x)\mu_{T-t}(y)\widetilde{Q}_t(x,y) = \mu_{T-t}(x)Q_{T-t}(y,x) whenever x≠yx \ne y, μT−t(y)>0\mu_{T-t}(y) > 0 (see, e.g., [6 Theorem 2.8]). This motivates the definition of the discrete score,

s⋆(x,y,t):={μt(x)μt(y),μt(y)>0,0,μt(y)=0,(4)s^\star(x,y,t) := \begin{cases} \frac{\mu_t(x)}{\mu_t(y)}, & \mu_t(y)>0,\\ 0, & \mu_t(y)=0, \end{cases} \tag*{(4)}

and hence, for x≠yx \ne y, the reverse generator can be written as Q~t(x,y)=s⋆(x,y,T−t)QT−t(y,x)\widetilde{Q}_t(x,y) = s^\star(x,y,T-t)Q_{T-t}(y,x) with diagonal entries chosen so that the columns sum to zero. Equivalently, the reverse marginal law μ~t\widetilde{\mu}_t solves

∂tμ~t=Q~tμ~t,μ~0=μT.(5)\partial_t\widetilde{\mu}_t = \widetilde{Q}_t\widetilde{\mu}_t,\qquad\widetilde{\mu}_0 = \mu_T. \tag*{(5)}

With this initialization, we have that μ~t=μT−t\widetilde{\mu}_t = \mu_{T-t}, and thus, exact sampling from the reverse process would recover the data distribution, μ~T=μdata\widetilde{\mu}_T = \mu_{\mathrm{data}}.

References

  1. [1]Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. In Advances in Neural Information Processing Systems 34, 2021.arxiv.org/abs/2107.03006
  2. [2]Iskander Azangulov, George Deligiannidis, and Judith Rousseau. Convergence of diffusion models under the manifold hypothesis in high-dimensions. arXiv preprint arXiv:2409.18804, 2024.arxiv.org/abs/2409.18804
  3. [3]Anna Ben-Hamou, Stéphane Boucheron, and Mesrob I. Ohannessian. Concentration inequalities in the infinite urn scheme for occupancy counts and the missing mass, with applications. Bernoulli, 23(1):249–287, 2017. doi: 10.3150/15-BEJ743.
  4. [4]Minshuo Chen, Kaixuan Huang, Tuo Zhao, and Mengdi Wang. Score approximation, estimation and distribution recovery of diffusion models on low-dimensional data. In Proceedings of the 40th International Conference on Machine Learning, pp. 4672–4712, 2023.arxiv.org/abs/2302.07194
  5. [6]Giovanni Conforti and Christian Léonard. Time reversal of markov processes with jumps under a finite entropy condition, 2022. URL https://arxiv.org/abs/2104.10948.
  6. [7]Devdatt P. Dubhashi and Desh Ranjan. Balls and bins: A study in negative dependence. BRICS Report Series, 3(25), 1996. doi: 10.7146/brics.v3i25.20006.DOI
  7. [8]Daniel T. Gillespie. Exact stochastic simulation of coupled chemical reactions. The Journal of Physical Chemistry, 81(25):2340–2361, 12 1977. ISSN 0022-3654. doi: 10.1021/j100540a008.DOI
  8. [9]Yanjun Han, Jiantao Jiao, and Tsachy Weissman. Minimax estimation of discrete distributions under ℓ1 loss, 2015. URL https://arxiv.org/abs/1411.1467.
  9. [10]Sudeep Kamath, Alon Orlitsky, Dheeraj Pichapati, and Ananda Theertha Suresh. On learning distributions from their samples. In Proceedings of The 28th Conference on Learning Theory, pp. 1066–1100, 2015.
  10. [11]Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion modeling by estimating the ratios of the data distribution. In International Conference on Machine Learning, 2024.arxiv.org/abs/2310.16834
  11. [12]Jaouad Mourtada. Estimation of discrete distributions in relative entropy, and the deviations of the missing mass. Mathematical Statistics and Learning, 9(1):69–144, 2026. ISSN 2520-2324. doi: 10.4171/msl/55.
  12. [13]Kazusato Oko, Shunta Akiyama, and Taiji Suzuki. Diffusion models are minimax optimal distribution estimators. In International Conference on Machine Learning, 2023.arxiv.org/abs/2303.01861
  13. [14]Jingyang Ou, Shen Nie, Kaiwen Xue, Fengqi Zhu, Jiacheng Sun, Zhenguo Li, and Chongxuan Li. Your absorbing discrete diffusion secretly models the conditional distributions of clean data. In International Conference on Learning Representations, pp. 64972–65009, 2025.arxiv.org/abs/2507.07586
  14. [15]Subham Sekhar Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T. Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. In Advances in Neural Information Processing Systems, 2024. arXiv:2406.07524.arxiv.org/abs/2406.07524
  15. [17]Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016.arxiv.org/abs/1512.00567
  16. [19]Zixuan Zhang, Hengyu Fu, Zhuoran Yang, Mengdi Wang, Tuo Zhao, and Minshuo Chen. Generalization bounds for discrete diffusion: Statistical advantage of masking. In Forty-third International Conference on Machine Learning, 2026.

Paper details

vlnc:W_9q5uxjps
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents