Manuscript Offprint
arXiv:2608.13520The data geometry of masking diffusion: Certified-optimal schedules via unmasking growth complexity
Abstract
We study masking diffusion for discrete sampling and introduce a path-resolved measure of data geometry called the unmasking growth complexity (UGC). Its local increments directly control Kullback–Leibler (KL) discretization error, yielding a unified analysis of Bernoulli-subset and fixed-cardinality unmasking schemes. In log-reveal-odds coordinates, this structure yields optimized single-block and multi-block schedules, and quantifies the gains from adapting computational effort to data geometry. Crucially, we show how UGC increments can be estimated from samples via KL increments along coupled reveal trajectories. This leads to certified-optimal samplers that achieve a prescribed KL error with high probability and iteration complexity within a constant factor of the corresponding oracle procedure. Collapsing the UGC path yields the aggregate UGC mass, which connects to classical multivariate dependence measures, and complexity measures from previous analyses of discrete diffusion. In the fine-partition limit, the squared integral of the square-root UGC density determines the sharp leading-order optimal Euler discretization error. Examples exhibit substantial dimension-dependent gains over coarse schedules, including improvements achievable with a constant number of adaptively placed blocks.
1 Introduction
The problem of sampling from a high-dimensional distribution is fundamental in nature, and has a wide range of applications. Efficient sampling algorithms underpin the utility of Monte Carlo approximation [39, 42]; support uncertainty quantification in Bayesian models [18, 6]; and lie at the heart of generative AI [40, 16, 54, 13]. Recent years have witnessed tremendous practical and theoretical advances in the use of diffusion sampling algorithms, which generate samples via a sequence of “denoising” operations [45, 46, 23, 47, 14, 12, 5]. Initial work in the area focused on sampling from continuous distributions in d, in which case the denoising step corresponds to estimating a signal embedded in Gaussian noise [23, 47]. A more recent line of work, and the general focus of this paper, has focused on sampling from discrete distributions, using various kinds of denoising processes [24, 3, 9, 31, 44, 43, 15, 17].
In this paper, we study the problem of sampling a random vector , where is a discrete alphabet, and is the ambient dimension. While various samplers have been devised, we focus on unmasking samplers, which traverse a path from a fully unobserved vector, denoted by with meaning masked or unobserved, back to a sample from the target distribution. The path is traversed via a sequence of unmasking operations, in which a subset of the masked coordinates are revealed. Unmasking algorithms differ in the form and sequence by which these unmasking steps take place. Unmasking and closely related mask-based generative samplers have proven effective across a range of applications, including machine translation [19], image and video synthesis [11, 55], text-to-image generation [10], speech synthesis [52], language modeling [43, 33], and protein design [51].
Q1: Can the performance of masked diffusion sampling be explained and quantified, in some generality, by a measure tied to data geometry?
Q2: Is it possible to exploit a masked-diffusion measure of data geometry to design, optimize and certify practical sampling schemes?
Recent work has made substantial progress on both questions. Chen et al. [15] analyze fixed-cardinality unmasking and derive an exact information-profile representation of its expected KL discretization error, with consequences for schedule design and bounds based on total and dual total correlation. Lavenant and Zanella [25] derive an information-profile representation of the factorization error for random-order unmasking, and study optimal schedules in asymptotic scaling regimes. From a different direction, Dmitriev et al. [17] analyze discrete diffusion via a continuous-time Markov chain (CTMC) formulation; for masking diffusion, their modified -leaping guarantees are governed by an effective total correlation that can be substantially smaller than the classical worst-case measures. Collectively, these results provide important answers to Q1 and partial answers to Q2, but fall short of finite-sample guarantees for learning and certifying geometry-adaptive schedules from data.
Our answer to Q1 is based on the unmasking growth complexity or UGC for short. It is a path-resolved measure of data dependence along the reveal process. We show that its local increments directly control KL discretization error, thereby obtaining a common analysis of both fixed-cardinality unmasking and a natural Bernoulli-subset variant. When collapsed over the full reveal path, the UGC complexity reduces to a coarse measure that closely connected to classical multivariate dependence measures [53, 21, 22, 48], as well as to the effective total correlation appearing in the CTMC analysis [17]. Consequently, the resulting single-block guarantees sharpen existing fixed-cardinality bounds while giving Bernoulli unmasking guarantees comparable to those available for CTMC samplers.
The main contributions of our paper are in the context of Q2, and in particular, our use of the full UGC complexity path to design and analyze sampling algorithms that are certified-optimal. More precisely, we show that UGC complexity has a natural additive structure along the reveal path, so that its local increments can be estimated from samples and used to allocate computational effort where the target distribution is most difficult to unmask. We exploit this structure to derive and optimize blockwise schedules, construct data-dependent samplers with high-probability KL certificates, and finally, to optimize the block boundaries themselves. In the fine-partition limit, the log-reveal-odds UGC density emerges as the intrinsic local geometry: its square-root integral governs the limiting partition complexity and the sharp leading-order optimal Euler discretization error.
1.2 Related work
So as to put our results in context, we now provide a broader discussion of related work. There are various types of discrete diffusion models, all of which replace the additive Gaussian noise for continuous-space diffusions by stochastic corruption kernels on discrete state spaces. Early work developed multinomial and more general structured discrete diffusion processes [24, 3], among them the absorbing-state corruption that underlies a masking diffusion process. Other work [9] formulated discrete diffusion models using the formalism of continuous-time Markov chains, with subsequent work developing discrete analogues of score-based modeling in which the reverse CTMC is parameterized through learned probability ratios [31]. Masked diffusion is a particularly important subclass, in which coordinates are corrupted by replacement with a distinguished mask symbol and generation proceeds by progressively reconstructing masked coordinates [44, 43].
As described above, recent work has made progress on characterizing the accuracy–parallelism trade-off in random-order unmasking with fixed-cardinality subsets. In particular, Li and Cai [26] established information-theoretic convergence guarantees for parallel masked-diffusion sampling. Chen et al. [15] derived an exact characterization of the expected KL divergence in terms of a one-dimensional information profile; they also gave explicit sampling guarantees involving classical multivariate dependence measures [53, 21, 22], namely the total correlation () and dual total correlation (). A portion of our analysis exploits their exact KL representation. Lavenant and Zanella [25] derived an information-profile representation for the factorization error of random-order unmasking, and then studied optimal scheduling via a continuum scaling limit. We compare their asymptotic schedule analysis more closely with our fine-partition and Euler results following Theorem 3.
The -leaping method for continuous-time Markov chains (CTMC) originates in stochastic chemical kinetics, where its consistency and approximation errors have been studied extensively [20, 36, 27, 2]. For discrete diffusion, recent work has developed convergence guarantees for -leaping under both standard and absorbing corruption processes [37, 28, 29, 17], as well as higher-order variants of CTMC discretization [38]. Among CTMC analyses, most related to our work is the paper of Dmitriev et al. [17], who analyze a modified -leaping sampler for a general class of CTMC discrete diffusion models. For masking diffusion, they give guarantees in terms of a measure that they call effective total correlation, which turns out to be closely related to the coarse UGC complexity that we introduce. In contrast to CTMC-based analyses, we study Bernoulli and fixed-cardinality unmasking; our coarse UGC bounds yield matching guarantees for these direct schemes. The coarse UGC complexity is also connected to several multivariate dependence measures, including , , and the finer-grained measure of Tononi et al. [48]. We develop these connections in Appendix A.
Finally, in our companion paper [50] on Gaussian diffusion sampling, we introduced the denoising growth complexity (DGC), a pathwise complexity that controls KL discretization error, and whose log-scale DGC density specifies optimal sampling schedules. Despite the substantial differences between Gaussian and masking diffusion, the two theories exhibit a remarkable degree of parallelism, suggesting a common underlying principle linking denoising growth, KL discretization error, and optimal scheduling.
2 Overview: unmasking growth complexity and sampling
So as to orient the reader, we begin by providing a high-level overview of the main ideas and quantities underlying our analysis. We first describe the canonical unmasking process. Using it, we define the unmasking growth complexity (UGC), which measures how informational difficulty is distributed along the reveal path. We then pass to log-reveal-odds coordinates, where this complexity is represented by a density whose geometry determines how sampling effort should be allocated along the path.
Our goal here is primarily conceptual: to explain the distinction between coarse and geometry-aware schedules, to illustrate the data geometry of the UGC density on several examples, and to preview how data-driven adaptive partitioning can exploit this geometry. Precise forms of our guarantees for samplers, estimation procedures, and supporting technical results are developed in the subsequent sections.
2.1 Unmasking reveal process
Given a discrete alphabet , our goal is to sample a -dimensional random vector with distribution . Underlying the sampling algorithms that we analyze is an unmasking stochastic process , where and the new symbol denotes a masked or unobserved entry. At time , we have almost surely, whereas at time , we have , where is the target distribution from which we would like to sample.
The evolution of along the path is controlled by a sequence of i.i.d. random variables, independent of . These variables define the reveal subset sequence, indexed by , via
\displaystyle X_{t} \displaystyle\coloneqq\Big(Z_{R_{t}},\;Z^{\star}_{R^{c}_{t}}\Big)\;\in\;\big(\mathcal{A}\cup\{\star\}\big)^{d}\qquad\mbox{for $t\in[0,1]$,}where are the variables revealed by time , and is a sub-vector of missing values in positions indexed by . By construction, the unmasking process (1b) defines a family of probability distributions , where denotes a degenerate distribution with all its mass on the masked sequence, whereas is the probability distribution of the target variable .
2.2 Unmasking growth complexity and its geometry
For a reveal time , we define the Bernoulli unmasking gain
Moreover, the derivative turns out to have a simple information-theoretic representation: in particular, it corresponds to the second derivative
where denotes the mutual information between the target vector and the partially unmasked vector at reveal time . See equation (51a) in the proof of Theorem 1 for the underlying details.
In terms of this mutual information derivative, the unmasking growth complexity assigns a non-negative number to any sub-interval of the unit interval via
\displaystyle\mathsf{H}(p,q) \displaystyle\coloneqq\int_{p}^{q}t(1-t)\mathsf{h}^{\prime}(t)\,dt\quad\mbox{for any $0\leq p<q\leq 1$.}Based on the identity (2b), we see that is a weighted integral of the information curvature.
The essential feature of this complexity measure is that it is a path-resolved quantity: rather than assigning a single complexity to the target distribution , it assigns a complexity to every interval of the reveal path. Our analysis shows how these local increments directly control the associated KL discretization error. Moreover, for any triple , we have the additivity property
This additivity allows the global sampling problem to be decomposed into local pieces, whose complexities can be estimated and controlled separately, and is what ultimately enables geometry-adaptive refinement of the sampling schedule.
By collapsing the path-resolved complexity to the full interval , we obtain the aggregate UGC mass given by . Interestingly, this aggregate quantity has several connections to classical measures of multivariate dependence. By a non-trivial argument (see the proof of Proposition 3), it turns out to be equivalent to a multivariate dependence measure, first introduced by Tononi, Sporns and Edelman [48] in 1994, which spawned a rich line of work (e.g., [7, 8, 34, 4, 41, 49]). A separate argument shows its close relation to the effective total correlation introduced by Dmitriev et al. [17] in their study of CTMC unmasking algorithms. Moreover, the value can be upper bounded by classical measures of multivariate dependence [53, 21, 22], known as total correlation and dual total correlation. We elaborate upon these and other connections in Appendix A.
Role of the log-reveal-odds density:
The natural coordinate for progress along the unmasking path is not reveal time nor its logarithm, but rather the log-reveal-odds . Our analysis gives one-step KL bounds governed by the multiplicative change in reveal odds; consequently, equal increments in correspond to equal multiplicative changes in reveal odds, and place the early and late stages of unmasking on a common scale. Expressing the UGC complexity in this coordinate yields a density that localizes the informational difficulty of sampling along the path. As our results show, regions where is large require finer resolution. More precisely, the log-reveal-odds UGC density function is given by
\displaystyle\mathsf{q}(\lambda) \displaystyle\coloneqq r^{2}(1-r)^{2}\mathsf{h}^{\prime}(r)\qquad\mbox{where $r=\varphi^{-1}(\lambda)\coloneqq\frac{e^{\lambda}}{1+e^{\lambda}}$.}By construction, the UGC increment is given by .
The high-level conclusions of this paper take a particularly simple form in terms of . We focus on the canonical reveal interval , which corresponds under the log-reveal-odds transformation to the symmetric interval with .
- Single-block unmasking schemes use a single multiplier across the reveal path and hence ignore the location of the UGC mass. Their iteration complexity is governed by the coarse or aggregate UGC complexity The measure depends only on the total UGC mass over the relevant portion of the path, and not on how this mass is distributed. This coarse measure connects directly to past work: it enables us to show that a single-block Bernoulli unmasking sampler matches the guarantees given for CTMC unmasking [17], while sharpening guarantees from past work on fixed-cardinality sampling [15]. See Corollary 1 and Proposition 3 for details.
- Geometry-aware schemes exploit the local UGC geometry, taking finer steps where is large and coarser steps where it is small. Crucially, we show that UGC increments can be estimated from samples, and use these estimates to choose the partition adaptively from data (see Proposition 2). Under progressive refinement, the resulting complexity converges from above to the fine-partition complexity We establish non-asymptotic convergence rates and high-probability finite-sample guarantees for the resulting samplers; see Theorems 2 and 3 for details. A related square-root structure for an information profile appears in the asymptotic analysis of fixed-cardinality schedules by Lavenant and Zanella [25]; we discuss this connection in more detail following Theorem 3.
In summary, the potential gain from data-dependent optimization of the sampling schedule is governed by the ratio
where the lower bound (i) follows from the Cauchy–Schwarz inequality. Equality holds if and only if is constant, whereas larger values of arise when the UGC mass is unevenly distributed or sharply concentrated along the path.
2.2.1 Geometric behavior of UGC density
Since the UGC density captures the essential structure of the problem, it is useful to compute and plot it for three different ensembles, each chosen to illustrate a qualitative aspect of our theory.
Noisy repeated bit:
We begin with a very simple example. For any , we use to denote a Bernoulli random variable with and . In this ensemble, we construct a binary random vector by first drawing , and then setting
\displaystyle Z_{i} \displaystyle=U\oplus W_{i}\qquad\mbox{for each $i=1,\ldots,d$,}where each is an independent -variable for some , and denotes addition modulo two. By construction, we have , hence our use of the term “noisy repeated bit”.
| (a) | (b) | (c) |
Figure 1: Plots of the log-reveal-odds UGC density for the noisy repeated-bit ensemble for . The density has a sharp peak for , and then flattens out and shifts to the right as . Up to two digits of accuracy, we have in panels (a), (b), and (c), respectively. For this example, we have as the dimension grows.
Figure 1 gives plots of the UGC density (4) in dimension , and flip probabilities . For , the density has a sharp peak at a low value of the log-reveal-odds parameter . As increases, the dependence among the coordinates of the multivariate random vector decreases; it takes a higher reveal level before information about the hidden bit is revealed, as reflected by the rightward shift in the mode of the UGC density. In parallel with this rightward shift, the entire density collapses towards zero, so that as .
Discrete mixture models:
Our second ensemble corresponds to the discrete analog of a mixture model. More precisely, given a fixed set of cluster centers, say , we generate a binary random vector with components for , where the random cluster index is drawn uniformly at random from and the are drawn i.i.d., and independently of the cluster index. This procedure generates an -component mixture distribution with uniform weight on each component.
| (a) | (b) | (c) |
Figure 2: Plots of the log-reveal-odds UGC density for the discrete mixture model. For each dimension , the latent vector is generated by selecting uniformly from cluster centers, and then flipping each coordinate independently with probability . Panels (a)–(c) correspond to , and hence , respectively. Increasing the dimension produces a progressively sharper and taller spike. Up to two digits of accuracy, we have in panels (a), (b), and (c), respectively. For this example, it can be shown that as the dimension grows.
We studied this family for varying dimensions divisible by four, number of mixture components , and cluster centers sampled independently and uniformly from the Boolean hypercube . Figure 2 shows a sequence of UGC densities for this family, with the dimension and the number of mixture components increasing as we move from left to right. The density is unimodal in all cases; as the dimension increases, the peak location remains fixed but its height increases. It can be shown that the ratio (6) scales as , so that there are significant gains from using geometry-aware stepsizes. Moreover, since the UGC density is concentrated around a single increasingly narrow transition window, a partition with only blocks—one covering this transition and two covering its tails—achieves the fine-partition complexity up to logarithmic factors. See Section 2.2.2 and Figure 2 for further discussion of these factors.
Hierarchical mixture model:
The previous examples, being quite simple in nature, all led to unimodal UGC densities. We now consider a hierarchical model in which multiple peaks emerge, and the peaks have interesting meanings in terms of the underlying data geometry.
| (a) | (b) |
| (c) | (d) |
Figure 3: Hierarchical binary-prototype mixtures and their log-reveal-odds UGC densities. The rows correspond to hierarchy depths and . Left column panels (a) and (c) show the leaf prototypes, while right column panels (b) and (d) show the corresponding UGC densities .
For an integer , we construct a model that places mass on exactly prototypes in the Boolean hypercube , say , where . Each prototype is defined by a path down a binary tree of depth ; see the left column of Figure 3 for some examples. The geometry of the prototypes is related to the tree structure in the following way: for any tree level , a pair of prototypes and whose corresponding tree paths first diverge at level of the tree are separated by Hamming distance , for some pre-specified set of distances , and total dimension . Panel (a) of Figure 3 shows a toy example with , , and dimension . It has prototype vectors in , assigned the index labels , plotted as rows in the corresponding black-white matrix. Consider the pair of prototypes indexed by and respectively; they diverge at level of the tree, and their Hamming distance is equal to . Similarly, the prototypes indexed by and diverge at level of the tree, and have Hamming distance . Panel (c) illustrates a larger construction with , still in a toy dimension for illustrative purposes.
Panels (b) and (d) show the UGC densities for the and models, using larger separations and dimensions: the model has dimension and , whereas the model has dimension and . Note how the UGC density for the model has two distinct peaks in log-reveal odds. The level ambiguity is resolved at an earlier reveal time, since the corresponding prototypes differ by Hamming distance ; the second peak corresponds to the later reveal time at which the level ambiguity, corresponding to Hamming separation , is resolved. Similar comments apply to the peaks for the UGC density in panel (d).
2.2.2 From coarse to fine geometry
Let us describe how we exploit finer-grained UGC geometry for algorithmic purposes. A single-block scheme uses one geometric multiplier across the full log-reveal-odds interval, and its performance is governed by the coarse complexity . In order to exploit local UGC geometry, we instead partition the interval into blocks and allow a different geometric multiplier on each block. For a partition , define the block lengths and the associated UGC increments . Optimizing the geometric multipliers over these blocks leads to the partition complexity
\displaystyle\inf_{\mathcal{P}}\mathsf{C}(\mathcal{P})\;=\;\Big(\int_{-\ell_{d}}^{\ell_{d}}\sqrt{\mathsf{q}(\lambda)}d\lambda\Big)^{2}\qquad\mbox{where the infimum is over partitions of $[-\ell_{d},\ell_{d}]$.}Thus, increasing the number of blocks allows the sampler to exploit increasingly fine features of the local UGC geometry, and ultimately achieve the fine-grained complexity based on .
Illustrative example:
Figure 4 illustrates this coarse-to-fine interpolation for the discrete-mixture model underlying Figure 2. For , the single-block scheme has complexity . A three-block partition that allocates finer resolution around the narrow high-density region reduces the partition complexity to approximately , compared with the fine-partition value .
| (a) | (b) |
Figure 4: Block geometry for the random discrete mixture with and . Both panels show the square-root UGC density versus the log-reveal-odds . Panel (a) uses a single geometric multiplier, yielding . Panel (b) uses the illustrated block partition, yielding . The fine-partition complexity for this example is .
The three-block scheme devotes more iterations to the narrow high-UGC region and fewer to the flatter tails. Even this coarse adaptation captures most of the available improvement: the complexity drops from approximately to , substantially closing the gap to the fine-partition value . This example illustrates the basic role of adaptive partitioning: computation is allocated according to where the UGC mass is concentrated, rather than uniformly across the reveal path.
3 Unmasking samplers and KL discretization error
We now turn to the description and analysis of some simple unmasking samplers. At a high level, they are based on discretized approximations to the unmasking reveal process from equation (1b). Recalling that denotes the set of masked coordinates in the vector , their updates involve the single-site posterior distributions
\displaystyle\mu_{i}(a,x) \displaystyle\coloneqq\mathbb{P}\big(Z_{i}=a\mid Z_{j}=x_{j}\quad\mbox{for all $j\notin\mathcal{M}(x)$}\big),\quad\mbox{defined for each $i\in\mathcal{M}(x)$,}where and . We use to denote the full collection of these distributions, and often refer to it as the denoiser. It summarizes residual uncertainty in given the observation .
In practice, the denoiser is estimated based on samples from as follows. Given a clean sample , we can generate training examples by independently masking random subsets of coordinates. We then predict the original value of each masked coordinate from the resulting partially observed sample using cross-entropy loss. With this set-up, the population-optimal predictors are given by the posterior distributions , and the training procedure generates estimates for each . For simplicity, we describe the algorithms using the exact denoiser . Using a learned denoiser contributes an additional term to the KL error bound in a standard way; see equation (18) following the statement of Theorem 1 for details.
3.1 Bernoulli and fixed-cardinality unmasking
We now describe the two standard unmasking samplers that we analyze in this paper. At a high level, they involve two basic operations: choosing a subset of indices and then, conditional on this subset, making a random choice of values for the revealed variables using the denoiser . The samplers that we analyze differ only in how the random subset is chosen: the Bernoulli sampler uses coin flips, thereby generating a set with a random cardinality, whereas the fixed-cardinality sampler chooses a random subset with fixed cardinality. Both samplers are used in practice, and our theory gives a unified analysis of both in terms of UGC functions.
Given a subset of coordinates, both samplers make use of the conditional distribution
\displaystyle\mathbb{P}_{\lx@scalerel@obj{\operatorname{umask}}}(X^{\prime}\mid X,A) \displaystyle\coloneqq\Big(\bigotimes_{i\notin\mathcal{M}(X)}\delta_{X_{i}}\Big)\otimes\left(\bigotimes_{i\in A}\mu_{i}(\mathord{\cdot},X)\right)\otimes\left(\bigotimes_{i\in\mathcal{M}(X)\setminus A}\delta_{\star}\right),\qquad\mbox{for $A\subseteq\mathcal{M}(X)$,}The samplers are initialized with a random choice , and then generate a sequence moving forward in time across the grid (9b).
3.1.1 Bernoulli unmasking sampler
We begin by describing the Bernoulli unmasking sampler. It chooses subsets according to the binomial distribution
\displaystyle\mathbb{P}_{\lx@scalerel@obj{\operatorname{Ber}}}(A\mid X,\beta) \displaystyle\coloneqq\beta^{\operatorname{card}(A)}(1-\beta)^{\operatorname{card}(\mathcal{M}(X)\setminus A)}\qquad\mbox{with support $A\subseteq\mathcal{M}(X)$,}and then updates entries according to the conditional distribution (9a). More precisely, given the initialization and reveal-time grid (9b), it generates the sequence
for iterations .
3.1.2 Fixed-cardinality unmasking sampler
The fixed-cardinality sampler is very similar, except that it replaces the binomial subset choice (10) with a black-box that draws a uniformly random subset of a specified size. More precisely, the fixed-cardinality sampler only admits iteration counts , and it requires that each reveal time be -aligned, meaning that for integers . It initializes with exactly masked coordinates. Then, at iteration , the current state has exactly masked coordinates.
For future reference, we note that underlying the fixed-cardinality sampler is a de-Poissonized version of the unmasking process . It is defined only at -aligned times , and the associated variable
\displaystyle X_{t}\sim\mathbb{P}_{t}\qquad\mbox{has exactly $s$ revealed coordinates,}for a subset of cardinality chosen uniformly at random. Note that we are overloading our notation here, but the specific version of being used will be clear from context.
3.1.3 Initialization and completion steps
Both samplers involve initialization and completion steps. In our analysis, the initialization cost is measured by the KL divergence
\displaystyle D_{\lx@scalerel@obj{\operatorname{KL}}}(\mathbb{P}_{{t_{0}}}\|\mathbb{Q}_{{t_{0}}})\qquad\mbox{where $X_{t_{0}}\sim\mathbb{P}_{t_{0}}$ and $\widehat{X}^{0}\sim\mathbb{Q}_{{t_{0}}}$.}While these terms appear in our bounds, they are not dominant terms. For example, the following completion kernel has defect equal to zero, and uses only serial updates. Fix an ordering of the indices in , and then sample from the conditional distributions in sequence to fill in the missing entries. With the endpoint , we have for the exact cardinality sampler and for the Bernoulli sampler, so that the computational cost of implementing this completion kernel is minimal. Similarly, for initialization, it is easy to initialize the fixed-cardinality sampler with exactly one unmasked entry, so that the initialization cost vanishes for . The bounds below are stated for a general interval and arbitrary initialization-completion choices, but we later specialize to the interval , which we refer to as the canonical reveal time interval.
3.2 Unified analysis
We are now set up to state a single theorem that provides a unified analysis of both the Bernoulli and fixed-cardinality unmasking samplers. Our original definition (2a) of the Bernoulli denoising gain emphasizes the connection to the reveal process. Here, in order to make transparent the connections with fixed-cardinality sampling, we make use of the following equivalent representation:
\displaystyle\mathsf{h}^{\lx@scalerel@obj{\operatorname{card}}}_{j} \displaystyle\coloneqq\sum_{i=1}^{d}\mathbb{E}_{B_{i,j}}\big[\operatorname{Info}(Z_{i};Z_{B_{i,j}})\big]\qquad\mbox{where $B_{i,j}$ is uniform over $j$-cardinality subsets of $[d]\setminus\{i\}$.}These coefficients are defined for , with .
These two notions lead to the two versions of UGC growth complexity, given by
\displaystyle\mbox{{\lx@text@underline{Bernoulli:}}}\qquad\mathsf{H}(p,q) \displaystyle\coloneqq\int_{p}^{q}t(1-t)\mathsf{h}^{\prime}(t)\,dt\qquad\mbox{for pairs $0\leq p<q\leq 1$, and}Our main theorem bounds the KL error of both the Bernoulli and fixed-cardinality unmasking samplers in terms of increments of these respective UGC functions. It applies to any reveal-time grid (9b), and the analysis shows why the reveal odds function is natural.
Theorem 1. For any grid (9b), the Ber-unmasking sampler produces output such that Moreover, for any -aligned grid , the Card-unmasking sampler produces output such that
We prove these two claims in Sections 6.1 and 6.2, respectively. The proofs are relatively short, and follow the same template of starting from an exact representation of the KL discretization error over the interval, and then bounding it in terms of or respectively. For the Bernoulli sampler, we first derive the exact KL representation, from which the upper bound (17a) follows from an elementary argument. On the other hand, the fixed-cardinality guarantee (17b) makes use of the exact representation of the KL discretization error, derived by Chen et al. [15]; in particular, the coefficients are rescaled versions of their information coefficients. In contrast to our upper bounds, neither form of the exact KL error has simple additive structure in terms of the log-reveal odds. This structure in our upper bounds turns out to be very useful: as we discuss in the sequel (see Corollary 1 and Appendix A), a simple stepsize choice in the bound (17b) gives an immediate sharpening of the fixed-cardinality sampling guarantees given in the paper [15]. More generally, these upper bounds lend themselves naturally to developing and analyzing -block sampling schemes (see Section 4).
Estimated denoisers:
If the sampler replaces each exact single-site posterior by an estimate , while leaving the random-subset law and reveal probabilities unchanged, then the right-hand side of equation (17a) acquires the additional additive term
\displaystyle\mathsf{E}_{\lx@scalerel@obj{\operatorname{den}}}(\widehat{\mu}) \displaystyle\coloneqq\sum_{j=0}^{N-1}\beta_{j}\mathbb{E}\Big[\sum_{i\in\mathcal{M}(X_{t_{j}})}D_{\lx@scalerel@obj{\operatorname{KL}}}\left(\mu_{i}(\mathord{\cdot},X_{t_{j}})\,\middle\|\,\widehat{\mu}_{i}(\mathord{\cdot},X_{t_{j}})\right)\Big]\qquad\mbox{where $\beta_{j}\coloneqq\frac{t_{j+1}-t_{j}}{1-t_{j}}$.}Here the expectation is under the true reveal-process law of . A similar comment applies to the Card-unmasking sampler. We establish this fact as part of the proof in Section 6.1.
Relation between UGC functions:
By inspection, it is clear that the Ber-UGC and Card-UGC functions, as defined in equation (2c) and equation (16b) respectively, are closely related. This intuition can be formalized as follows. For any , define the multinomial triple . We then have the equivalence
where , and , and we set whenever . Thus, the Ber-UGC over is the average of Card-UGC quantities over randomized cardinality endpoints. See Section C.1.2 for the proof of the identity (19).
3.3 A single-block guarantee and its consequences
By inspection, the bounds (17a) and (17b) are very well-suited to unmasking-time grid points for which the reveal odds evolve in a geometric way. In this section, we use Theorem 1 to derive guarantees for this particularly simple choice of stepsizes.
3.3.1 Guarantees for a single geometric block
For a parameter , consider the sequence
\displaystyle\makebox[70.0001pt][l]{$\boldsymbol{\operatorname{Geo}(\rho):}$}\psi(t_{j+1}) \displaystyle=\min\Big\{(1+\rho)\psi(t_{j}),\psi(T)\Big\}.When the unmasking algorithm is run with this geometric sequence, we refer to it as the -unmasking algorithm.
Corollary 1 (Single-block guarantee for a reveal-odds geometric scheme). Given an iteration budget , the -unmasking sampler with multiplier produces completed output such that
This result is an immediate consequence of Theorem 1, and we include the proof here. It makes essential use of the additivity property (3) of .
Proof.
By construction, the schedule traverses the interval in exactly steps, and moreover, we have at each round. Applying the bound (17a) from Theorem 1 yields
where step (i) uses the additivity property (3), and step (ii) follows since for , applied with . ∎
Exact cardinality sampler:
An analogous result holds for the fixed-cardinality uniform sampler, using a slightly different geometric schedule. Given a pair of integers between and , we define and . Given an iteration budget , starting from , we recursively choose as the largest integer in such that
\displaystyle\psi\big(\frac{a_{j+1}}{d}\big)\leq(1+\rho)\psi\left(\frac{a_{j}+1}{d}\right)\qquad\mbox{where $\rho\coloneqq\exp\Big\{\frac{1}{N}\log\big(\frac{\psi(T)}{\psi({t_{0}}+\tfrac{1}{d})}\big)\Big\}-1$.}The proof uses the bound (17b) from Theorem 1, and then applies the same reasoning as the proof of Corollary 1.
3.3.2 Some consequences
At a high level, Corollary 1 and its analogue for fixed-cardinality sampling show that the iteration complexity when using a single geometric multiplier protocol is governed by the aggregate UGC mass functionals and , respectively, for the Bernoulli and fixed-cardinality versions. These relations allow us to recover and sharpen several existing results on unmasking samplers. As we show in Appendix A, the aggregate UGC complexities associated with Bernoulli and fixed-cardinality unmasking are equivalent up to universal constants, and they are closely related to the complexity governing the CTMC guarantees of Dmitriev et al. [17]. Consequently, the single-block guarantee in Corollary 1 yields comparable guarantees for these different unmasking mechanisms, while sharpening bounds based only on total correlation and dual total correlation. We defer these comparisons, together with further information-theoretic aspects of aggregate UGC, to Appendix A.
3.4 Why the UGC path matters
The aggregate UGC complexity is a coarse measure, relative to the full log-reveal-odds density that captures the full UGC path. It is useful to consider a stylized pair of distributions, based on some primitives analyzed in the paper [17], that makes this discrepancy very explicit: while their aggregate complexities are identical, the UGC path structure is extremely different, and as we will see in the next section, the resulting optimal algorithms are very different. Recall that the log-reveal-odds UGC density is given by
\displaystyle\mathsf{q}(\lambda) \displaystyle=r^{2}(1-r)^{2}\mathsf{h}^{\prime}(r)\qquad\mbox{where $r=\varphi^{-1}(\lambda)=\frac{e^{\lambda}}{1+e^{\lambda}}$.}| (a) | (b) |
Figure 5: Log-reveal-odds UGC densities for the repeated-common-bit model in panel (a) and the global-parity model in panel (b), both with . The two densities are reflections of one another about in log-reveal-odds coordinates: their information is concentrated near opposite ends of the reveal path even though their full-path UGC values agree.
Repeated bit:
First, suppose that we draw a hidden , and then generate the random vector by setting . This construction is simply the noiseless () instance of the noisy-repeated-bit example discussed previously in Section 2.2.1, and moreover, we can compute its UGC density function explicitly. From equation (23), it suffices to compute and then its derivative. Conditional on coordinate remaining masked, its mutual-information contribution equals once at least one of the other coordinates is revealed; it is equal to zero otherwise. It follows that . Taking derivatives and combining with the formula (23) yields
Global-parity model:
In the global-parity model, draw independently from and set . Calculations similar to those in the previous example show that
We plot these two UGC densities in Figure 5. Comparing equation (24a) and equation (24b) reveals the relation , which corresponds to reflection across in log-reveal-odds. This reflection can be seen by comparing the two panels.
As can be verified via a straightforward calculation, both models have , so that they have matched aggregate UGC mass. However, the full UGC path reveals the differences in their distributional structure: the repeated-bit dependence is resolved near the beginning of the path, whereas parity dependence persists until the end. Moreover, as we develop in the next section, this path difference has important consequences for designing optimal algorithms.
4 Certified-optimal bounds for the UGC path
Thus far, we have considered the single-block consequence of Theorem 1, based on one geometric multiplier over the full reveal interval. The additivity (3) of the UGC function allows a more refined approach. We first partition the reveal interval into blocks, and then optimize the stepsizes within each block. Doing so leads to a UGC partition complexity that refines the coarse UGC bound. We then show how the required UGC increments can be estimated from samples, yielding certified data-dependent samplers and allowing the block boundaries themselves to be optimized. Finally, by refining the partition, we recover the fine-partition complexity in equation (5b), which characterizes the optimal discretization error up to a factor of two.
4.1 An optimal -block guarantee
For some , we begin with a prescribed -block partition of the interval , say of the form , where and . For each block, define its log-reveal-odds length and UGC mass by
where we recall that .
Given a total iteration budget , suppose that we allocate positive integers with . We then run the -sampler to traverse the -block in iterations. Applying Theorem 1 blockwise yields
It is easy to see that this integer program can be solved efficiently by dynamic programming.
4.2 Guarantees for an explicit procedure
Rather than solving the dynamic program directly, we seek an explicit allocation that exposes the structure of its solution. Doing so leads to the UGC-based partition complexity
which interpolates between the single-block complexity (5a) and the fine-partition limit (5b).
Proposition 1 (Near-optimal geometric schedules for a -block partition). Given any -block partition of and an iteration budget , define the geometric multipliers Then the -block Ber-unmasking procedure based on uses at most score evaluations and yields an output satisfying Moreover, if denotes the optimal solution of the dynamic program (26b) with iteration budget , then \displaystyle\geq\frac{\mathsf{C}_{\lx@scalerel@obj{\operatorname{{UGC} }}}(\mathcal{P})}{N}\qquad\mbox{where \rho(N^{\star}{k})\coloneqq\exp(\mathsf{S}{k}/N^{\star}_{k})-1.}
The proof is an unmasking analogue of the argument used for Gaussian diffusion in our companion paper [50]. The principal changes are the log-reveal-odds clock, the corresponding UGC block masses, and the boundary terms; the remainder follows mutatis mutandis. This parallelism reflects a common geometric structure underlying Gaussian diffusion and discrete unmasking, despite their different noise mechanisms and natural path coordinates.
The upper and lower bounds in Proposition 1 show that, apart from the initial and terminal cost, the explicit allocation is within a factor of of the optimal value of the dynamic program (26b). It also always improves upon the single-block complexity. Indeed, by Cauchy–Schwarz and the additivity (3) of the UGC complexity, we have
Equality holds if and only if there is a scalar such that for every block. Thus, partitioning provides a strict improvement whenever the UGC mass is distributed non-uniformly relative to log-reveal-odds length.
4.3 Sandwich-UGC estimators from KL increments
While the bounds in Proposition 1 are attractive, the geometric multipliers depend on knowledge of the UGC increments for each block . In this section, we describe how it is possible to estimate these increments, assuming that we have available a collection of i.i.d. samples from the original distribution . This estimator forms the basis for the certified-optimal sampling schemes described in Section 4.4.
4.3.1 Kullback–Leibler unmasking increments
From the definition (2a), the Bernoulli unmasking gain is defined in terms of the original reveal process with additional conditioning on the event . Consequently, it is useful to introduce the forced-mask reveal-time process that explicitly encodes this conditioning. Recalling the uniform random variables that underlie the masking process (1a), we define
For , we define the KL unmasking increment
\displaystyle\mathsf{D}(p,q) \displaystyle\coloneqq(q-p)\sum_{i=1}^{d}\mathbb{E}\left[D_{\lx@scalerel@obj{\operatorname{KL}}}\left(\pi_{i,q}\,\middle\|\,\pi_{i,p}\right)\right]\qquad\mbox{where $\pi_{i,t}(\cdot)\equiv\mu_{i}\left(\mathord{\cdot},X_{t\mid i}\right)$ for each $t\in[0,1]$,}and the expectation is taken with respect to the joint forced-mask coupling for each . With this set-up, we have the following guarantee:
Lemma 1. For every , we have the exact relation For every , we also have the sandwich relation \displaystyle\frac{1}{c_{p,q}}\mathsf{D}(p,q)\;\leq\;\mathsf{H}(p,q)\;\leq\;\frac{1+c_{p,q}}{c_{p,q}}\mathsf{D}(p,q)\,\qquad\mbox{where c_{p,q}\coloneqq\dfrac{\psi(q)}{\psi(p)}-1>0.}
See Section 6.3.1 for the proof.
Observe that the sandwich relation (31b) is particularly well-suited to intervals for which the ratio of the reveal odds is well-controlled. Concretely, for a dyadic interval with , the relation provides a factor two sandwich. We now exploit this fact to design an estimator for a partition of arbitrary length.
4.3.2 A tail-robust estimate of the UGC increment
We now specify and analyze a tail-robust estimate of the UGC increment. For an arbitrary pair , consider the reveal-odds-dyadic partition given by
\displaystyle\psi(v_{j}) \displaystyle\coloneqq\min\{2^{j}\psi(p),\psi(q)\}\qquad\mbox{where $\psi(r)\coloneqq r/(1-r)$ and $J\coloneqq\left\lceil\log_{2}\left(\frac{\psi(q)}{\psi(p)}\right)\right\rceil$.}Given a clean sample , we can simulate the forced-mask reveal process over the interval , for each coordinate , and using these trajectories, we can construct the trajectory statistic
By construction, we have , where the expectation is taken over the sample , along with the forced-mask trajectory randomness. Combined with the factor two sandwich property, we have constructed a statistic such that
A tail-robust estimator:
Given the statistic from equation (32b), the standard Monte Carlo estimate is given by . It is unbiased and can be analyzed, but can be overly sensitive to the tail behavior of the underlying KL divergences in the estimate. To introduce tail robustness, we instead analyze a truncated version of this estimator. It requires a moment bound, but provides exponential Bernstein-type tail control.
More precisely, suppose that, for some moment order , the changes in the one-coordinate denoisers satisfy the aggregate moment bound
\displaystyle\max_{j=0,\ldots,J-1}\left\{\mathbb{E}\left[\left\{\sum_{i=1}^{d}D_{\lx@scalerel@obj{\operatorname{KL}}}\left(\mu_{i}\left(\mathord{\cdot},X_{v_{j+1}\mid i}^{(\ell)}\right)\,\middle\|\,\mu_{i}\left(\mathord{\cdot},X_{v_{j}\mid i}^{(\ell)}\right)\right)\right\}^{\alpha/2}\right]\right\}^{2/\alpha} \displaystyle\leq B_{\alpha}\qquad\mbox{for some known $B_{\alpha}>0$.} \displaystyle\widehat{\mathsf{H}}_{m}(p,q) \displaystyle\coloneqq\frac{2}{m}\sum_{\ell=1}^{m}\min\{Q^{(\ell)},\tau\}\qquad\mbox{where $\tau\coloneqq(q-p)B_{\alpha}\left\{\frac{3(m-1)}{7\log(4/\eta)}\right\}^{2/\alpha}$.}Proposition 2 (Factor-two data-dependent sandwich on UGC). Given the estimate , the UGC increment can be sandwiched as \displaystyle\stackrel{{\scriptstyle(A)}}{{\leq}}\widehat{\mathsf{H}}_{m}(p,q)+\widehat{r}_{m}(\eta)\stackrel{{\scriptstyle(B)}}{{\leq}}2\big\{\mathsf{H}(p,q)+\widehat{r}_{m}(\eta)\big\}\qquad\mbox{with probability at least 1-\eta,} where the upper confidence correction takes the form
See Section 6.3.2 for the proof.
Interpretation of the tail condition:
Condition (33a) controls the tails of the aggregate change in the one-coordinate denoisers over each reveal-odds-dyadic interval. This choice is important: it measures the same posterior changes that enter the trajectory statistic (32b), rather than the absolute uncertainty of the individual denoisers. A condition on the true-symbol log loss, for instance, could be large even when revealing additional coordinates produces no change in any posterior.
As a basic example, suppose that the coordinates of are independent. For the exact Bayes denoisers considered here, the forced-mask observation reveals only masking variables and a subset of the coordinates . Consequently, is independent of , and hence
\displaystyle\mu_{i}\left(\mathord{\cdot},X_{t\mid i}\right) \displaystyle=\mathcal{L}(Z_{i})\qquad\mbox{for every $t\in[0,1]$.}All of the KL increments in equation (33a) therefore vanish, so that the condition holds with any positive , in agreement with the fact that the corresponding UGC increment is zero.
4.4 Sampling schemes that are certified-optimal
In this section, we turn to the key problem of designing samplers that are certified-optimal, meaning that their iteration complexity meets the optimum specified by the partition complexity functional, up to data-dependent residual terms, and that for any target accuracy and failure probability , there are data-dependent parameter choices for the sampler guaranteeing that its output satisfies the accuracy bound
\displaystyle D_{\lx@scalerel@obj{\operatorname{KL}}}\big(\mathbb{P}_{Z}\|\mathbb{P}_{\hat{Z}}\big) \displaystyle\leq\varepsilon\qquad\mbox{with probability at least $1-\eta$.}In Section 4.4.1, we specify and analyze a certified procedure for a given -block partition, whereas in Section 4.4.2, we describe certified procedures based on dynamic programming for choosing the block boundaries.
4.4.1 Certified-optimal sampling using -blocks
Suppose that we are given a -block partition of the interval , based on blocks of the form . Our goal is to design a sampler that achieves the optimal -bound from Proposition 1, but using a choice of geometric multipliers that can be estimated based on samples . Here we describe a simple way of doing so, one which exploits the guarantees from Proposition 1 as well as the UGC increment estimator analyzed in Proposition 2.
Suppose that, for each block , we apply the tail-robust estimator from Proposition 2 with failure probability . We then obtain a tail bound with the upper confidence limit
With this set-up, we have the following certified analogue for the Ber-unmasking sampler with geometric multipliers, or the -scheme for short.
Theorem 2 (Data-certified guarantees for multi-block scheme). Given a failure probability , and a -block partition of the interval , consider any iteration budget . Then running the -block -unmasking scheme with the geometric multipliers \displaystyle\coloneqq\min\left\{1,\frac{4\sqrt{\widehat{\mathsf{C}}_{\lx@scalerel@obj{\operatorname{{UGC} }}}(\mathcal{P})}}{N}\sqrt{\frac{\mathsf{S}_{k}}{\widehat{\mathsf{H}}_{k,m}+\widehat{r}_{k}}}\right\}\qquad\mbox{for k=0,1,\ldots,K-1.} yields a completed output such that \displaystyle\leq\frac{4\widehat{\mathsf{C}}_{\lx@scalerel@obj{\operatorname{{UGC} }}}(\mathcal{P})}{N}+D_{\lx@scalerel@obj{\operatorname{KL}}}(\mathbb{P}_{t_{0}}\|\mathbb{Q}_{t_{0}})+\Gamma_{\mathsf{C}}(T)\qquad\mbox{with probability at least 1-\eta,} and does so with at most unmasking rounds.
See Section 6.4 for the proof.
Certified-optimal:
Let us now clarify why the guarantee of Theorem 2 is both certified and optimal (up to constant factors). Suppose that our goal is to design a sampler that achieves a prescribed KL error . As discussed in Section 3.1.3, it is straightforward to ensure that the initialization and terminal contribution satisfies . From Theorem 2, it can be seen that choosing an iteration number guarantees that the resulting sampler has output such that
\displaystyle D_{\lx@scalerel@obj{\operatorname{KL}}}(\mathbb{P}_{Z}\|\mathbb{P}_{\widehat{Z}}) \displaystyle\leq\varepsilon\qquad\mbox{with probability at least $1-\eta$.}Thus, the estimated partition complexity provides both a data-dependent schedule and an end-to-end certificate of its sampling accuracy. For this reason, we refer to it as a certified guarantee.
It is also near-optimal in a precise sense. In particular, recall that the procedure in Proposition 1 achieves the DP optimum up to a constant factor of . Under the same initialization conditions, doing so requires an iteration number . As shown in the proof of Theorem 2, on the simultaneous high-probability event from Proposition 2, we have
Thus, the increase in computational complexity incurred by replacing the oracle UGC increments by their data-dependent estimates is captured explicitly by the confidence radii , together with the factor of in the sandwich bound.
4.4.2 Certified-optimal boundary selection
Our analysis thus far has focused on optimal schemes for a fixed set of blocks. In this section, we formulate the problem of optimizing the split points that define a (near)-optimal set of blocks via a simple dynamic program.
More precisely, for an integer that defines the resolution, suppose that we fix a fine deterministic grid of candidate reveal times . Our goal is to select indices from the set , and use the corresponding reveal times , together with the endpoints and , to define a -block partition. We seek to minimize the square root of the partition complexity
\displaystyle\sqrt{\mathsf{C}_{\lx@scalerel@obj{\operatorname{{UGC} }}}(\mathcal{P})} \displaystyle=\sum_{k=0}^{K-1}\sqrt{\mathsf{S}_{k}\mathsf{H}_{k}},\qquad\mbox{where $\mathsf{S}_{k}\coloneqq\varphi(t_{k+1})-\varphi(t_{k})$, and $\mathsf{H}_{k}\coloneqq\mathsf{H}(t_{k},t_{k+1})$.}Given the naturally sequential structure, this optimization problem can be solved by dynamic programming, as we now formalize. For candidate intervals , define the edge cost
\displaystyle e(i,j) \displaystyle\coloneqq\sqrt{\mathsf{S}(\tau_{i},\tau_{j})\mathsf{H}(\tau_{i},\tau_{j})},\qquad\mbox{where $\mathsf{S}(a,b)\coloneqq\varphi(b)-\varphi(a)$.}This quantity is the minimum cost of a -block partition of the interval . It is easy to see that it can be computed via dynamic programming, where we introduce intermediate quantities , defined for each and as the minimum cost of a -block partition of the subinterval , with value when no such partition exists.
Finally, we observe that the edge costs in equation (39a) depend on the UGC increments . As in the previous section, we can obtain confidence bounds for increments of this type using the estimator from Proposition 2, thereby obtaining a data-dependent version of the dynamic program.
5 Fine partition limit and optimal Euler discretization
In the preceding section, we developed and analyzed sampling methods based on finite -block partitions, and showed how their performance depends on the local UGC mass of the chosen partition. We now characterize the limit under arbitrarily fine refinement and connect it to the optimal KL error of Euler discretization. This analysis highlights the central role of the log-reveal-odds UGC density defined in equation (4).
5.1 Fine partition limit and its Euler optimality
We specialize to the canonical reveal interval . Its image under the log-reveal-odds map is , where . For a partition of , define the corresponding log-reveal-odds blocks and their lengths . Our previously defined partition complexity can then be written directly in terms of as
where the infimum is over all finite partitions of . We now characterize this infimum explicitly in terms of , and show that the same quantity governs the sharp leading-order KL error of optimal Euler discretization.
Theorem 3 (Fine-partition limit and Euler optimality). Suppose that is continuous and strictly positive on . Then the fine-partition limit (40b) is given by Moreover, the optimal -step KL discretization error satisfies where the infimum is over all -step discretizations of the canonical interval .
See Section 6.5 for the proof.
Taken together, the two claims in Theorem 3 show that the fine-partition complexity is precisely twice the leading-order constant governing the optimal Euler KL error, and that it can be approached arbitrarily closely by the -block schemes analyzed in Proposition 1 and Theorem 2.
Related work:
A related square-root principle appears in the analysis of Lavenant and Zanella [25], who study random-order fixed-cardinality unmasking and express its factorization error in terms of a cardinality-indexed information profile. They then consider a high-dimensional continuum limit in which, using our notation, both the ambient dimension and the number of sampling rounds diverge. In the regime , optimization of the resulting limiting functional yields a square-root information-profile rule.
Our results differ in both formulation and scope. The UGC density is defined directly from the finite-dimensional reveal path, with log-reveal odds providing the natural path coordinate, and our finite-step bounds apply at fixed dimension and for arbitrary finite partitions. Moreover, rather than optimizing only a limiting variational problem, we optimize blockwise schedules at finite dimension, and use estimated UGC increments to construct data-dependent partitions with certified guarantees. Finally, equation (41b) gives the sharp leading-order optimal Euler error at fixed dimension as the number of discretization steps grows.
5.2 Gains and convergence to the fine-partition limit
We first ask how much can be gained by exploiting the local UGC geometry, and then how many blocks are needed to realize this gain. The maximal improvement over a single-block scheme is measured by
For the repeated-bit and parity models (see Figure 5), we have , yielding a growing but relatively modest separation. Much larger gains are possible when the UGC density becomes increasingly concentrated with dimension. For example, the discrete mixture model in Figure 2 satisfies with high probability over the cluster centers. We next exhibit the same phenomenon in a simpler random XORSAT model, for which the scaling can be analyzed via an easier argument.
5.2.1 An example with gains
To obtain a tractable example with the same separation, consider a dense random XORSAT ensemble. For ambient dimension and latent dimension , draw with i.i.d. entries, draw with i.i.d. entries, and set modulo two. Thus, is supported on a random Boolean subspace. We parameterize the ensemble by the ratio .
Figure 6 plots the UGC density for and . The density is unimodal, with its peak moving from right to left as increases. To quantify the resulting gain, we focus on the symmetric case .
| (a) | (b) | (c) |
Figure 6: Plots of the log-odds UGC density for the random XORSAT ensemble with and parameter in panels (a)–(c), respectively. Panel (b) marks the pre-transition, transition, and post-transition regions used in the three-block construction.
Lemma 2. For the random XORSAT model with , for each even dimension above a universal constant, there is a distribution such that \displaystyle\geq c\,\sqrt{d\log d}\qquad\mbox{for a universal constant c>0,} and this gain is achieved, up to constants, by a block scheme.
See Appendix D for the proof.
Our analysis uses the probabilistic method [1] to show that, for each sufficiently large dimension, there exists a realization of , inducing a “good” distribution , that satisfies the following properties. First, its coarse complexity satisfies . As a consequence, it suffices to construct a three-block partition with complexity . Set for a sufficiently large constant , and define the reveal time intervals
Our proof shows that the “good” has UGC masses
Thus, consistent with the behavior shown in Figure 6, essentially all of the UGC mass lies in the transition interval , which has log-reveal-odds width . This combination leads to the claimed scaling for the -block partition.
5.2.2 Uniform partitions: a generic convergence bound
The XORSAT example shows that a small number of well-placed blocks can already be near-optimal. For comparison, let denote the uniform -block partition of , which ignores local geometry when choosing the block boundaries. Here we quantify its convergence to the fine-partition limit under a simple global regularity condition.
In particular, suppose that is continuous on , and define its modulus of continuity by
\displaystyle\omega_{\mathsf{f}}(h) \displaystyle\coloneqq\sup_{\lambda,\lambda^{\prime}}|\mathsf{f}(\lambda)-\mathsf{f}(\lambda^{\prime})|\qquad\mbox{where the sup ranges over pairs $\lambda,\lambda^{\prime}\in[-\ell_{d},\ell_{d}]$ with $|\lambda-\lambda^{\prime}|\leq h$.}Lemma 3 (Accuracy of uniform -block approximations). For the uniform partition , we have
The proof is the same modulus-of-continuity argument used for Gaussian diffusion in our companion paper (Lemma 4, [50]). As a particular consequence, if is Lipschitz with constant , then
This generic bound can be conservative because it depends on a global regularity constant and fixes the block boundaries in advance. For the XORSAT example, the Lipschitz constant grows with dimension even though adaptively placed blocks are near-optimal. When samples are available, the data-dependent DP procedure in Section 4.4.2 instead optimizes the block boundaries directly.
6 Proofs
In this section, we collect the proofs of a subset of our results, including the proof of Theorem 1, with the Bernoulli and fixed-cardinality versions given in Section 6.1 and Section 6.2, respectively; the proof of our data-certification procedures, including Lemma 1 and Proposition 2 in Section 6.3; the proof of Theorem 2 in Section 6.4; and finally, the proof of Theorem 3 in Section 6.5. We defer the proofs of other results in the paper to the appendices.
6.1 Proof of Theorem 1: Bernoulli version
We begin by proving the bound (17a) for the Bernoulli unmasking sampler.
6.1.1 Main argument
Recall from equation (1b) the reveal process . For any pair , we let denote the transition kernel of the reveal process in moving from to . On the other hand, the unmasking sampler is based on the updates in equation (11a) and equation (11b), and we let denote the associated transition kernel that moves from to . We introduce the shorthand notation
corresponding to the averaged Kullback–Leibler (KL) discrepancy between the two transition kernels over the interval . Here the expectation is taken over the marginal distribution of the reveal process variable .
The core technical result at the heart of Theorem 1 is the following bound:
Lemma 4 (Multiplicative control of the one-step unmasking defect). For every , we have \displaystyle\leq\left\{\frac{\psi(q)}{\psi(p)}-1\right\}\mathsf{H}(p,q)\qquad\mbox{where \psi(r)\coloneqq\dfrac{r}{1-r}.}
See Section 6.1.2 for the proof.
Given this lemma, the proof of Theorem 1 is very simple. Recalling the definition (14b) of the completion defect , we have
where step (i) follows from the KL chain rule, combined with the data processing inequality, whereas step (ii) follows by applying the bound (49) repeatedly to each of the KL increments.
Extension to estimated denoisers:
Fix a state at step . In the existing kernel notation, is the exact block transition, is the frozen product transition formed from the exact one-site posteriors, and is the frozen product transition formed from the estimated posteriors. The two frozen kernels have the same reveal probability . Since the exact block transition and have the same one-coordinate marginals, splitting the log-likelihood ratio through the product of these marginals gives
Indeed, for each , both one-coordinate kernels leave the coordinate masked with probability . Conditional on revealing it, they use and , respectively. Their one-coordinate KL divergence is given by . Averaging the first KL term over under the exact reveal-process law gives exactly . Averaging the decomposition and summing over in the same KL chain-rule argument adds the term displayed after equation (17a), which completes the proof.
6.1.2 Proof of Lemma 4
Our proof is based on the exact one-step representation
where step (i) follows from simple algebra; and step (ii) uses the definition . Thus, we can write
where step (iii) follows from the exact representation (50a); step (iv) follows from the inequality (50b) along with the fact that for all ; and step (v) follows from the definition (2c) of the UGC function. Thus, we have established the claim (49).
Proof of the exact representation (50a):
We first claim that satisfies the relation
We now prove the exact representation. Conditional on , let be the set of coordinates revealed between and . The exact and frozen-product kernels induce the same law for the random subset . Conditional on , they unmask coordinates using, respectively, the joint posterior of and the product of its one-site posterior marginals. Consequently, we can decompose the KL divergence as
Note that each coordinate still masked at time is included in with probability . Averaging over and using the definition (2a) of , we find that
Moreover, conditional on , the new part of is . Since is conditionally independent of and the random sub-vector is a function of , we have
Combining these two identities yields
It remains to analyze the trailing mutual information term. We have
where step (i) follows because is a Markov chain; step (ii) follows from the fundamental theorem of calculus; and step (iii) follows from the identity (51a).
Finally, we have
where equality (iv) follows by substituting the representation (51c) into equation (51b) and simplifying terms; step (v) follows from the fundamental theorem of calculus; and step (vi) follows from Fubini’s theorem. This proves the exact representation (50a).
6.2 Proof of Theorem 1: Exact cardinality sampling
For integers , let be a uniformly random -subset of , independent of , and define
\displaystyle X^{[a]} \displaystyle\coloneqq\Big(Z_{A},Z^{\star}_{A^{c}}\Big)\qquad\mbox{where $A\sim\operatorname{Unif}\Big\{S\subseteq[d]\,\Big|\,\operatorname{card}(S)=a\Big\}$},where is a subset of cardinality , chosen uniformly at random, and independently of . Conditional on , we choose , corresponding to the uniform-subset rule (12a) that defines the exact cardinality sampler.
Write for the exact transition from to cardinality , and for the transition generated by the Card-unmasking sampler. In analogy with the Bernoulli defect (48), define the one-step KL defect
We now apply the one-block specialization of the exact error representation of Chen et al. [15, Theorem 3.3]. After translation to our normalization and notation, it guarantees that
We claim that this exact representation admits the following upper bound:
Lemma 5 (Fixed-cardinality one-step unmasking defect). For all integers , we have
Proof.
If , both sums are empty. Otherwise, we introduce the shorthand
and make note of the upper bound , valid for every . Since is non-decreasing, the increments are nonnegative. Putting together the pieces, we arrive at the upper bound
where the last equality follows from the definition (16b) of . This completes the proof of the upper bound (53). ∎
Note that Lemma 5 is the fixed-cardinality analogue of the Bernoulli sampler bound given in Lemma 4. Consequently, the KL bound (17b) for the fixed-cardinality sampler follows from the same argument, instead using Lemma 5 to bound the one-step errors.
6.3 Proof of data-certification results
In this section, we provide proofs of our data-based certification results, including that of Lemma 1 in Section 6.3.1; as well as that of Proposition 2 in Section 6.3.2.
6.3.1 Proof of Lemma 1
We break our proof into parts, one for each claim in the statement.
Proof of the claim (31a):
We first prove the exact expression (31a). For each coordinate , let and denote the coupled observations at times and , with coordinate kept masked. Note that the observation is obtained from by a random remasking operation independent of conditional on . Consequently, the triple forms a Markov chain, so that we can write
At the same time, by the conditional KL representation of conditional mutual information, we have
where the second equality follows from the Markov relation , which implies
Combining equations (54a) and (54b) yields the identity
Summing both sides of this identity over the indices , and using the definitions of and in equation (30b) and equation (2a), respectively, we find that
as claimed in equation (31a).
Proof of the sandwich relation (31b):
Turning to the claim (31b), for any pair , we have
\displaystyle p(1-q)\;\leq\;t(1-t)\;\leq\;q(1-p)\qquad\mbox{for all $t\in[p,q]$.}Multiplying both sides by and integrating yields
Using the definition (2c) of and the exact identity (54c), we have proved that
Finally, an elementary calculation gives , so that we have
Combining with equation (54d) proves the claim (31b).
6.3.2 Proof of Proposition 2
Introduce the shorthand for the expected value of . Note that we have
\displaystyle K_{j} \displaystyle\coloneqq\sum_{i=1}^{d}D_{\lx@scalerel@obj{\operatorname{KL}}}\left(\mu_{i}\left(\mathord{\cdot},X_{v_{j+1}\mid i}^{(\ell)}\right)\,\middle\|\,\mu_{i}\left(\mathord{\cdot},X_{v_{j}\mid i}^{(\ell)}\right)\right),\qquad\mbox{for $j=0,\ldots,J-1$,}In terms of the shorthand , we can write . We first bound the truncation bias. Since , we have
We are now set up to apply the empirical Bernstein inequality of Maurer and Pontil [32, Theorem 4]. We apply it to both the i.i.d. variables , and then separately to the i.i.d. variables . Observe that the two collections have the same empirical variance. We apply a failure probability of to each application, so that a union bound over both tail bounds has failure probability at most . Via this argument, we are guaranteed to have the two-sided tail bound
with probability at least .
Combining the truncation bias (55b) with the tail bound (55c), we find that
with probability at least . We claim that the right-hand side of this bound is precisely . In particular, we can express the truncation level (33b) as , where . In terms of this shorthand, we have and . Since , the claimed equivalence follows, and we conclude that
with probability at least .
It remains to prove the sandwich (34a) claimed in the statement. Conditioned on the event (55d), the upper inequality in equation (55a) gives
For the other side, the same concentration event and the lower inequality in equation (55a) give
Combining the last two displays proves the claim (34a).
6.4 Proof of Theorem 2
We need to verify two separate claims: the stated bound (37b) on the KL divergence, and the fact that the procedure terminates in at most unmasking rounds. Throughout the proof, we make use of the shorthand
\displaystyle a_{k}\coloneqq\frac{4\sqrt{\widehat{\mathsf{C}}_{\lx@scalerel@obj{\operatorname{{UGC} }}}(\mathcal{P})}}{N}\sqrt{\frac{\mathsf{S}_{k}}{\widehat{\mathsf{H}}_{k,m}+\widehat{r}_{k}}}\qquad\mbox{so that $\widehat{\rho}_{k}=\min\{1,a_{k}\}$.}6.4.1 Verifying the KL bound (37b)
Our first step is to apply Proposition 2 with failure probability to each block . The estimator in this proposition gives us an estimate along with the upper confidence correction . By the union bound over all blocks, with probability at least , we are guaranteed to have
\displaystyle\mathsf{H}_{k} \displaystyle\leq\widehat{\mathsf{H}}_{k,m}+\widehat{r}_{k}\qquad\mbox{for all $k=0,\ldots,K-1$,}where we have used inequality (A) in equation (34a). We condition on this “good event” throughout the remainder of the proof.
For each block, we define the iteration count , using the stepsizes specified in the theorem statement. Observe that from our choice of and the definition (20) of the geometric schedule, it takes at most iterations to traverse the block, and every step inside this block has reveal-odds multiplier at most . We now apply Theorem 1 to this concatenated multi-block schedule. By the additivity (3) of , the contribution from block takes the form . Summing up these terms, along with the boundary correction, yields
where step (i) uses the good event bound (57); step (ii) uses the fact that , along with the definition of ; and equality (iii) follows from the definition of .
6.4.2 Verifying the score-evaluation budget
It remains to verify that the procedure terminates in at most unmasking rounds, so that it satisfies the prescribed score evaluation budget. Since and for , we have
We now sum over blocks, using the definition (25) of , and the definition of . Doing so yields
where the final inequality follows from the assumed lower bound .
6.5 Proof of Theorem 3
We split our proof into two parts, corresponding to the two claims in the theorem.
6.5.1 Proof of the claim (41a)
Introducing the shorthand and , we need to prove that . By the definition (40b), for a partition of into intervals with length , applying the Cauchy–Schwarz inequality on each interval gives
Conversely, let be a uniform -block partition with blocks . By the integral form of the mean-value theorem, we can write for some , and consequently, we obtain
The quantity on the right-hand side is a Riemann sum for ; taking the limit as shrinks the intervals to zero, and so it converges to . We have thus shown that . Combined with the lower bound (58), the proof is complete.
6.5.2 Proof of the claim (41b)
Recall our shorthand and . For a pair , introduce the shorthand where . By changing variables in equation (50a), and using the derivative , we obtain
Define the constants , , and . We then have and , from which equation (59a) implies that
\displaystyle\gamma(x,y)\geq c_{0}(y-x)^{2}\qquad\mbox{where $c_{0}\coloneqq\frac{q_{\min}m}{2M}$.}In addition, we claim that
\displaystyle\gamma(x,x+\delta)=\frac{1}{2}\mathsf{q}(x)\delta^{2}+o(\delta^{2})\qquad\mbox{uniformly in $x$.}Writing , uniform continuity of on , together with the fact that it is bounded away from zero over this interval, imply that
uniformly in and . Similarly, the continuity of gives uniformly. Substituting these two estimates into equation (59a) and integrating over yields the local expansion bound (59c).
Upper bound:
For the upper bound, we choose the grid to have equal -mass, so that . Since is continuous and bounded away from zero, this mesh has width , and hence we have uniformly in . Equation (59c) therefore gives
Lower bound:
For the lower bound, we take a grid whose cost is within of the infimum, and write . The preceding upper bound shows that the infimum is , so the near-optimal grid also has total cost . Consequently, the quadratic lower bound (59b) gives
and hence . Since , the mesh tends to zero, so the uniform local expansion may be summed over the grid with total remainder . Doing so yields
where step (i) follows from the Cauchy–Schwarz inequality and ; and the last step follows from the Riemann-sum limit .
Finally, combining this lower bound with the upper bound (59d) yields the claim.
7 Discussion
In this paper, we have shown that the unmasking growth complexity (UGC) controls the performance of random subset unmasking schemes, and reveals the structure required to optimize their performance. It is a path-based measure with additive local increments that bound the corresponding KL discretization errors. The reveal odds determine the natural multiplicative scale for a finite unmasking step, making log-reveal-odds the appropriate path coordinate. The log-reveal-odds UGC density gives a local description of sampling difficulty: regions carrying little UGC mass can be traversed rapidly with large stepsizes, whereas regions of concentrated mass require smaller stepsizes. We formalized this resource-allocation principle via a notion of partition complexity. At one extreme, it reduces to a (coarse) single-block complexity; under progressive refinement, it converges to a functional of the square root of the UGC density, which also determines the sharp leading-order complexity of optimally scheduled Euler discretization.
Notably, this paper moves beyond treating the underlying geometry as an oracle quantity. We show how the UGC increments can be reliably estimated using KL increments along a coupled reveal trajectory. By doing so, we obtain sampling methods that are certified-optimal, meaning that they are certified (with high probability) to achieve a pre-specified KL error, and their iteration complexity is within a constant factor of the optimal iteration complexity. Thus, our analysis connects three core tasks in diffusion sampling: characterizing the geometry of the target distribution, designing a sampling schedule, and certifying the accuracy of the resulting sampler.
Let us make note of some important qualifications to this conclusion. Our strongest data-dependent guarantees rely on access to Bayes denoisers and on moment control for their KL increments. With learned denoisers, approximation error contributes an additional term to the KL guarantee, and it needs to be estimated for a fully certified guarantee. Moreover, our notion of optimality is relative to frozen-poster Euler discretizations. It is possible that higher-order discretizations and other more sophisticated procedures could admit different local geometries, and hence potentially different optimal clocks for stepsize allocation.
This paper has focused exclusively on the utility of UGC complexity for designing and optimizing unmasking samplers. However, thinking beyond the context of sampling, the view of data geometry afforded by the UGC density is of independent interest for statistical analysis. As a notable example, Figure 3 shows the UGC density for a discrete mixture model with a hierarchical structure, where the -modes correspond to reveal times at which successive levels of the hierarchy are resolved. Our methods allow us to reliably estimate increments of the UGC density, and it would be interesting to do so for real-world discrete datasets.
In our companion paper [50] on Gaussian diffusion sampling, we introduced the denoising growth complexity (DGC), and provided analogous results on sampling performance and stepsize optimization, again culminating in a characterization via the DGC density. Despite the substantial differences between Gaussian diffusion and discrete masking, the two theories exhibit a striking parallel. The natural path coordinates differ (log-heat-time versus log-reveal-odds), but both the UGC and DGC densities capture a form of information curvature along the noising path, and their shape dictates how computational effort should be allocated.
Acknowledgements
This work was partially supported by a Guggenheim Fellowship, an NSF grant (DMS-2311072), and the Ford Professorship at MIT. We thank Yuting Wei for her inspiring talk during the MIT Statistics and Data Science conference in spring 2026.
References
[1] N. Alon and J. H. Spencer (2016) The probabilistic method. 4 edition, John Wiley & Sons. External Links: ISBN 978-1-119-06195-3 Cited by: §5.2.1.
[2] D. F. Anderson, A. Ganguly, and T. G. Kurtz (2011) Error analysis of tau-leap simulation methods. The Annals of Applied Probability 21 (6), pp. 2226–2262. External Links: Document Cited by: §1.2.
[3] J. Austin, D. D. Johnson, J. Ho, D. Tarlow, and R. van den Berg (2021) Structured denoising diffusion models in discrete state-spaces. In Advances in Neural Information Processing Systems, Vol. 34. Cited by: §1.2, §1.
[4] L. Barnett, C. L. Buckley, and S. Bullock (2009) Neural complexity and structural connectivity. Physical Review E 79 (5), pp. 051914. External Links: Document Cited by: Appendix A, §2.2.
[5] J. Benton, V. De Bortoli, A. Doucet, and G. Deligiannidis (2024) Nearly -linear convergence bounds for diffusion models via stochastic localization. In International Conference on Learning Representations (ICLR) 2024, External Links: Link Cited by: §1.
[6] S. Brooks, A. Gelman, G. L. Jones, and X. L. Meng (2011) Handbook of Markov chain Monte Carlo. CRC Press. Cited by: §1.
[7] J. Buzzi and L. Zambotti (2012) Approximate maximizers of intricacy functionals. Probability Theory and Related Fields 153 (3–4), pp. 421–440. External Links: Document Cited by: Appendix A, §2.2.
[8] J. Buzzi and L. Zambotti (2012) Mean mutual information and symmetry breaking for finite random fields. Annales de l’Institut Henri Poincaré, Probabilités et Statistiques 48 (2), pp. 343–367. External Links: Document Cited by: Appendix A, §2.2.
[9] A. Campbell, J. Benton, V. D. Bortoli, T. Rainforth, G. Deligiannidis, and A. Doucet (2022) A continuous time framework for discrete denoising models. In Advances in Neural Information Processing Systems, Vol. 35. External Links: Document Cited by: §1.2, §1.
[10] H. Chang, H. Zhang, J. Barber, A. Maschinot, J. Lezama, L. Jiang, M. Yang, K. P. Murphy, W. T. Freeman, M. Rubinstein, Y. Li, and D. Krishnan (2023) Muse: text-to-image generation via masked generative transformers. In Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 202, pp. 4055–4075. Cited by: §1.
[11] H. Chang, H. Zhang, L. Jiang, C. Liu, and W. T. Freeman (2022) MaskGIT: masked generative image transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11315–11325. Cited by: §1.
[12] H. Chen, H. Lee, and J. Lu (2023) Improved Analysis of Score-based Generative Modeling: User-Friendly Bounds under Minimal Smoothness Assumptions. In International Conference on Machine Learning, External Links: 2211.01916 Cited by: §1.
[13] M. Chen, S. Mei, J. Fan, and M. Wang (2024) An overview of diffusion models: applications, guided generation, statistical rates and optimization. arXiv preprint arXiv:2404.07771. External Links: Link Cited by: §1.
[14] S. Chen, S. Chewi, J. Li, Y. Li, A. Salim, and A. R. Zhang (2023) Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. In International Conference on Learning Representations, External Links: 2209.11215 Cited by: §1.
[15] S. Chen, K. Cong, and J. Li (2025) Optimal inference schedules for masked diffusion models. arXiv preprint arXiv:2511.04647. External Links: 2511.04647, Link Cited by: Appendix A, Appendix A, Appendix A, §1.1, §1.2, §1, 1st item, §3.2, §6.2.
[16] F.-A. Croitoru, V. Hondru, R. T. Ionescu, and M. Shah (2023) Diffusion models in vision: a survey. IEEE Transactions on Pattern Analysis and Machine Intelligence 45 (9), pp. 10850–10869. External Links: Document Cited by: §1.
[17] D. Dmitriev, Z. Huang, and Y. Wei (2026) Efficient sampling with discrete diffusion models: sharp and adaptive guarantees. arXiv preprint arXiv:2602.15008. External Links: 2602.15008, Link Cited by: Appendix A, Appendix A, §C.1.3, §C.2, §C.2, §1.1, §1.1, §1.2, §1, 1st item, §2.2, §3.3.2, §3.4.
[18] A. Gelman, J. Carlin, H. S. Stern, D. B. Dunson, A. Vehtari, and D. K. Salomon (2013) Bayesian data analysis. CRC Press. Cited by: §1.
[19] M. Ghazvininejad, O. Levy, Y. Liu, and L. Zettlemoyer (2019) Mask-Predict: parallel decoding of conditional masked language models. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 6112–6121. External Links: Document Cited by: §1.
[20] D. T. Gillespie (2001) Approximate accelerated stochastic simulation of chemically reacting systems. The Journal of Chemical Physics 115 (4), pp. 1716–1733. External Links: Document Cited by: Appendix A, §1.2.
[21] T. S. Han (1975) Linear dependence structure of the entropy space. Information and Control 29 (4), pp. 337–368. External Links: Document Cited by: Appendix A, §1.1, §1.2, §2.2.
[22] T. S. Han (1978) Nonnegative entropy measures of multivariate symmetric correlations. Information and Control 36 (2), pp. 133–156. External Links: Document Cited by: Appendix A, §1.1, §1.2, §2.2.
[23] J. Ho, A. Jain, and P. Abbeel (2020) Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems (NeurIPS) 33, pp. 6840–6851. Cited by: §1.
[24] E. Hoogeboom, D. Nielsen, P. Jaini, P. Forré, and M. Welling (2021) Argmax flows and multinomial diffusion: learning categorical distributions. In Advances in Neural Information Processing Systems, Vol. 34. Cited by: §1.2, §1.
[25] H. Lavenant and G. Zanella (2025) Error bounds and optimal schedules for masked diffusions with factorized approximations. arXiv preprint arXiv:2510.25544. External Links: 2510.25544, Link Cited by: Appendix A, §1.1, §1.2, 2nd item, §5.1.
[26] G. Li and C. Cai (2025) Breaking AR’s sampling bottleneck: provable acceleration via diffusion language models. In Advances in Neural Information Processing Systems, Vol. 38. External Links: 2505.21400, Link Cited by: §1.2.
[27] T. Li (2007) Analysis of explicit tau-leaping schemes for simulating chemically reacting systems. Multiscale Modeling & Simulation 6 (2), pp. 417–436. External Links: Document Cited by: §1.2.
[28] Y. Liang, R. Huang, L. Lai, N. Shroff, and Y. Liang (2025) Absorb and converge: provable convergence guarantee for absorbing discrete diffusion models. In Advances in Neural Information Processing Systems, Vol. 38. External Links: 2506.02318, Link Cited by: §1.2.
[29] Y. Liang, Y. Liang, L. Lai, and N. Shroff (2025) Discrete diffusion models: novel analysis and new sampler guarantees. In Advances in Neural Information Processing Systems, Vol. 38. External Links: 2509.16756, Link Cited by: §1.2.
[30] G. G. Lorentz (1986) Bernstein Polynomials. Second edition, Chelsea Publishing Company, New York. Cited by: §B.2.
[31] A. Lou, C. Meng, and S. Ermon (2024) Discrete diffusion modeling by estimating the ratios of the data distribution. In Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 235, pp. 32819–32848. External Links: Link Cited by: §1.2, §1.
[32] A. Maurer and M. Pontil (2009) Empirical Bernstein bounds and sample variance penalization. In Proceedings of the 22nd Conference on Learning Theory, External Links: 0907.3740 Cited by: §6.3.2.
[33] S. Nie, F. Zhu, Z. You, X. Zhang, J. Ou, J. Hu, J. Zhou, Y. Lin, J. Wen, and C. Li (2025) Large language diffusion models. In Advances in Neural Information Processing Systems, Vol. 38. Cited by: §1.
[34] E. Olbrich, N. Bertschinger, N. Ay, and J. Jost (2008) How should complexity scale with system size?. The European Physical Journal B 63 (3), pp. 407–415. External Links: Document Cited by: Appendix A, §2.2.
[35] G. M. Phillips (2003) Interpolation and Approximation by Polynomials. Springer-Verlag, New York. Cited by: §B.2.
[36] M. Rathinam, L. R. Petzold, Y. Cao, and D. T. Gillespie (2005) Consistency and stability of tau-leaping schemes for chemical reaction systems. Multiscale Modeling & Simulation 4 (3), pp. 867–895. External Links: Document Cited by: §1.2.
[37] Y. Ren, H. Chen, G. M. Rotskoff, and L. Ying (2025) How discrete and continuous diffusion meet: comprehensive analysis of discrete diffusion models via a stochastic integral framework. In International Conference on Learning Representations, External Links: 2410.03601, Link Cited by: §1.2.
[38] Y. Ren, H. Chen, Y. Zhu, W. Guo, Y. Chen, G. M. Rotskoff, M. Tao, and L. Ying (2025) Fast solvers for discrete diffusion models: theory and applications of high-order algorithms. In Advances in Neural Information Processing Systems, Vol. 38. External Links: 2502.00234, Link Cited by: §1.2.
[39] C. P. Robert and G. Casella (2004) Monte carlo statistical methods. 2 edition, Springer Texts in Statistics, Springer, New York. External Links: Document, ISBN 978-0-387-21239-5 Cited by: §1.
[40] R. Rombach, E. Blattmann, S. L. Dhariwal, A. M. D. M. L., and P. E. S. (2022) High-resolution image synthesis with latent diffusion models. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10684–10694. Cited by: §1.
[41] F. E. Rosas, P. A. M. Mediano, M. Gastpar, and H. J. Jensen (2019) Quantifying high-order interdependencies via multivariate extensions of the mutual information. Physical Review E 100 (3), pp. 032305. External Links: Document Cited by: Appendix A, §2.2.
[42] R. Y. Rubinstein and D. P. Kroese (2008) Simulation and the monte carlo method. 2nd edition, John Wiley and Sons, Hoboken, NJ. Cited by: §1.
[43] S. S. Sahoo, M. Arriola, Y. Schiff, A. Gokaslan, E. Marroquin, J. T. Chiu, A. Rush, and V. Kuleshov (2024) Simple and effective masked diffusion language models. In Advances in Neural Information Processing Systems, Vol. 37. Cited by: §1.2, §1, §1.
[44] J. Shi, K. Han, Z. Wang, A. Doucet, and M. K. Titsias (2024) Simplified and generalized masked diffusion for discrete data. In Advances in Neural Information Processing Systems, Vol. 37. Cited by: §1.2, §1.
[45] J. Sohl‑Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli (2015) Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 37, pp. 2256–2265. External Links: Link Cited by: §1.
[46] Y. Song and S. Ermon (2019) Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems (NeurIPS), pp. 11895–11907. Cited by: §1.
[47] Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole (2021) Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, Cited by: §1.
[48] G. Tononi, O. Sporns, and G. M. Edelman (1994) A measure for brain complexity: relating functional segregation and integration in the nervous system. Proceedings of the National Academy of Sciences of the United States of America 91 (11), pp. 5033–5037. External Links: Document Cited by: Appendix A, §1.1, §1.2, §2.2.
[49] T. F. Varley, M. Pope, J. Faskowitz, and O. Sporns (2023) Multivariate information theory uncovers synergistic subsystems of the human cerebral cortex. Communications Biology 6, pp. 451. External Links: Document Cited by: Appendix A, §2.2.
[50] M. J. Wainwright (2026) Denoising growth complexity: Data geometry and certified schedules for diffusion sampling. Technical report Technical Report arXiv:2607.26285, Massachusetts Institute of Technology. External Links: 2607.26285, Link Cited by: §1.1, §1.2, §4.2, §5.2.2, §7.
[51] X. Wang, Z. Zheng, F. Ye, D. Xue, S. Huang, and Q. Gu (2024) Diffusion language models are versatile protein learners. In Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 235, pp. 52309–52333. Cited by: §1.
[52] Y. Wang, H. Zhan, L. Liu, R. Zeng, H. Guo, J. Zheng, Q. Zhang, X. Zhang, S. Zhang, and Z. Wu (2025) MaskGCT: zero-shot text-to-speech with masked generative codec transformer. In International Conference on Learning Representations, Cited by: §1.
[53] S. Watanabe (1960) Information theoretical analysis of multivariate correlation. IBM Journal of Research and Development 4 (1), pp. 66–82. External Links: Document Cited by: Appendix A, §1.1, §1.2, §2.2.
[54] L. Yang, Z. Zhang, Y. Song, and et al. (2025) Diffusion models: a comprehensive survey of methods and applications. ACM Computing Surveys (to appear). Note: arXiv:2209.00796 Cited by: §1.
[55] L. Yu, Y. Cheng, K. Sohn, J. Lezama, H. Zhang, H. Chang, A. G. Hauptmann, M. Yang, Y. Hao, I. Essa, and L. Jiang (2023) MAGVIT: masked generative video transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10459–10469. Cited by: §1.
Appendix A Consequences of single-block theory
In this appendix, we discuss some consequences of Corollary 1, which gives single-block stepsize schedules with iteration complexity depending on the aggregate UGC masses and , for the Bernoulli and fixed-cardinality samplers, respectively. For this reason, it is interesting to relate the aggregate UGC mass to other complexity measures, and thereby to relate these complexity measures to the sampling guarantees in the papers [15, 17].
We begin by observing that the aggregate UGC mass turns out to be equivalent to a measure of multivariate dependence first introduced by Tononi, Sporns, and Edelman [48] for modeling brain function. This complexity measure, hereafter referred to as , has since been studied by various authors [34, 4, 41, 49], and also extended to a more general notion of intricacy [7, 8]. The complexity is given by
\displaystyle\mathsf{TSE}(\mathbb{P}_{Z}) \displaystyle\coloneqq\sum_{k=1}^{d}\left(e_{k}-\frac{k}{d}e_{d}\right)\qquad\mbox{where $e_{k}\coloneqq\mathbb{E}\big[\operatorname{Ent}(Z_{A_{k}})\big]$,}with being a uniformly random subset of with elements. We establish its equivalence to the aggregate UGC mass as part of Proposition 3 below.
Turning to sampling connections, the paper [15] analyzed the fixed-cardinality sampler, and gave guarantees in terms of the minimum of two classical measures of multivariate dependence [53, 21, 22], known as the total correlation and dual total correlation, defined by
The single-block sampling guarantee in terms of , or equivalently , sharpens these guarantees for the fixed-cardinality sampler. As we show in Section B.2, in particular via a Bernstein polynomial representation, the total and dual total correlation measures have the simple representations
Since , we see immediately that
In their work on continuous-time Markov chain (CTMC) sampling, Dmitriev et al. [17] gave a CTMC unmasking sampler with iteration complexity controlled by a functional , which they refer to as effective total correlation, that is also upper bounded by the minimum of the and complexities. We also show as part of Proposition 3 that this functional is lower bounded by , and can be upper bounded by a constant multiple of it. Thus, both the Bernoulli and fixed-cardinality samplers, in their single-block instantiation, inherit the guarantees of the DHW analysis. In particular, their paper studies various interesting examples, including stochastic block models and quantized versions of low-dimensional structure, for which , and hence and , are relatively small. Notably, they construct an instance with , whereas their complexity has constant scaling. Our analysis shows that the guarantees on CTMC-based unmasking [17] have analogues for both fixed-cardinality unmasking [15, 25] and Bernoulli unmasking.
With this context, we now formally state the complexity relations:
Proposition 3 (Connections between aggregate complexity measures). For the full interval , the Bernoulli aggregate-UGC complexity is related to complexity via the relation Moreover, the fixed-cardinality complexity is sandwiched by the Bernoulli version Finally, the complexity satisfies the sandwich relation
We prove these claims in Section C.1; let us highlight a few interesting features here. The proofs of both claims (62a) and (62b) make use of a Bernstein polynomial representation of , a result of independent interest. In particular, we show in Section B.2 that
so that is a polynomial of degree at most .
In proving the sandwich (62c), we show that the complexity functional has the explicit representation , from which the estimates (62c) follow from simple algebra. The analysis leading to this representation reveals an interesting algorithmic connection to Bernoulli unmasking: the DHW unmasking algorithm, while described and analyzed as a form of -leaping [20] in a continuous-time Markov chain, is closely related to the Bernoulli unmasking sampler. See Section C.2 for details of this relation.
Appendix B Alternative representations of
In this section, we develop and explore some alternative representations of and its derivative that provide useful insight for subsequent proofs.
B.1 Proof of the identity (15a)
In this appendix, we prove the random subset identity (15a), namely that we can write
where is a random subset obtained by including each coordinate of independently with probability .
To prove this representation, for each , let denote the event that coordinate remains masked at reveal time , and let denote the set of revealed coordinates. Conditional on , the observation is equivalent to the pair . Consequently, we have the mutual information identity . By the chain rule for mutual information, we have
using the fact that and are independent. Conditioning on does not change the joint law of , so that we have shown that
\displaystyle\operatorname{Info}(Z_{i};X_{t}\mid E_{i})\;=\;\operatorname{Info}(Z_{i};Z_{A}\mid A) \displaystyle=\sum_{a}\mathbb{P}(A=a)\operatorname{Info}(Z_{i};Z_{a})=\mathbb{E}_{A}\big[\operatorname{Info}(Z_{i};Z_{A})\big]\qquad\mbox{for each $i=1,\ldots,d$.}Summing this identity over the coordinate index yields the claim (15a).
B.2 Representation via Bernstein polynomials
In this section, we develop representations of both and as Bernstein polynomials in terms of the coefficients . These representations have some useful immediate consequences, and are used in the proofs in Appendix C. Recall the definition of the coefficients
\displaystyle\mathsf{h}^{\lx@scalerel@obj{\operatorname{card}}}_{j} \displaystyle\coloneqq\sum_{i=1}^{d}\mathbb{E}_{B_{i,j}}\big[\operatorname{Info}(Z_{i};Z_{B_{i,j}})\big]\qquad\mbox{where $B_{i,j}$ is uniform over $j$-cardinality subsets of $[d]\setminus\{i\}$.}Letting be a Bernoulli random subset of with inclusion probability , we can write
Since , it follows by combining the tower property with the representation (15a) that
This calculation uses standard properties of derivatives of Bernstein polynomials [30, 35]. (In particular, differentiation transforms coefficients into their first differences.)
As one immediate consequence, from equation (65a), we see that is a polynomial of degree at most . It follows immediately that the derivative exists. Let us develop two additional consequences.
B.2.1 Proof of -monotonicity
We now prove that is monotone by showing that . The Bernstein polynomial representation (65b) of shows that it suffices to prove that .
For and a fixed coordinate , let be a random subset, chosen uniformly from all the -element subsets of , and, conditionally on , let be uniform over its complement inside . This defines a coupling between the subsets. Then the random set is uniform over the -element subsets, while the chain rule for mutual information gives the decomposition . Averaging first over the coupling and then over shows that , as claimed.
B.2.2 Proof of the total-correlation representations (61b)
Now let us prove the representations of the total correlation and dual total correlation given in equation (61b). From the random subset representation (15a) of , we have
where the second equality expands the definition of mutual information. By comparing with the definitions (61a), we see immediately that . Since , using the fact that , if we can prove the identity , then it follows that . Accordingly, the remainder of our analysis focuses on the representation.
For , let be the entropy coefficient defined in equation (60), along with . Note that we have , and . For any and , we have the mutual information identity . It can be averaged over and over uniform -cardinality subsets . Doing so and using the definition (15b) of the coefficients, we find that
Substituting this identity into the Bernstein representation (65a) and integrating over the interval yields
where step (i) uses the beta-integral identity ; step (ii) uses the identity (66) along with some algebra; and step (iii) follows from the definition (61a) of the total correlation, combined with the definition (60) of the entropy coefficients.
Finally, integrating by parts shows that , where the boundary term vanishes since . This completes the proof of the representation in equation (61b).
Appendix C Proofs of connecting results
In this section, we prove various results that connect the UGC aggregate complexity to other complexity notions (Section C.1), and compare the DHW -leaping unmasking algorithm with the Bernoulli unmasking procedure (Section C.2).
C.1 Proof of Proposition 3
The proposition consists of three claims, and we prove each of them in turn.
C.1.1 Proof of identity (62a)
Beginning with the definition (2c), integration by parts yields , where the boundary term vanishes since at the endpoints. Substituting the Bernstein representation (65a) of into this equation yields
where the second step follows from a standard beta-integral identity.
To complete the proof, we need to relate the entropy coefficients , where is a uniformly random subset of cardinality , to the coefficients. For each , we can write the mutual information as . Averaging this identity over and the -element subsets yields the relation . Substituting this identity into the expression (67) yields
which establishes the claim (62a).
C.1.2 Proof of the bound (62b)
For any , define the multinomial triple . As claimed previously, we have the identity
where , and .
The claims (62b) follow as a special case. For , we have almost surely, and hence , from which it follows that , as claimed.
We now prove the claim (68). Introduce the shorthand notation and , and observe that
Now recalling our i.i.d. uniform samples , define the multinomial count vector via
By construction, we have if and only if . Thus, we can rewrite the expression (69c) as
where the last step uses the representation (69a). This completes the proof of equation (68).
C.1.3 Proof of the sandwich (62c)
For , we define a reveal time , so that is the log-inverse-reveal time. The analysis of Dmitriev et al. [17] involves a forward masked vector ; it is related to our reveal process via the relation . In the process , each coordinate equals with probability and equals otherwise, and they define the conditional-information density
where denotes the collection of unmasked coordinates other than and . They define the effective total correlation by .
In order to prove the sandwich relation, it suffices to prove the identity
\displaystyle\mathcal{I}(u) \displaystyle=e^{-2u}\mathsf{h}^{\prime}(e^{-u})\qquad\mbox{for all $u\geq 0$.} \displaystyle\mathsf{DHW}(\mathbb{P}_{Z}) \displaystyle=\int_{0}^{1}w(t)\mathsf{h}^{\prime}(t)\,dt,\qquad\mbox{where $w(t)\coloneqq t\min\{1,-\log t\}$.}In terms of the shorthand , it is straightforward to verify that
\displaystyle v(t)\;\leq\;w(t)\;\leq\;\frac{e}{e-1}v(t)\qquad\mbox{for all $t\in[0,1]$,}from which the sandwich (62c) follows.
Proof of the identity (70a):
We begin by relating their definitions to equivalent objects in our notation. Fix an ordered pair of indices and let be the random subset of obtained by retaining each coordinate independently with probability . If either or is masked, one of the first two arguments in the conditional mutual information is deterministic, and its contribution is zero. The probability that both coordinates are retained is . Conditional on this event and on , the three arguments reduce to , , and , respectively. Since the masking pattern is independent of , the law of total expectation gives
Moreover, . Expanding the expectation and summing over the ordered pairs therefore yields
\displaystyle\mathcal{I}(u) \displaystyle\coloneqq r^{2}\sum_{i\neq j}\sum_{A\subseteq[d]\setminus\{i,j\}}r^{\operatorname{card}(A)}(1-r)^{d-2-\operatorname{card}(A)}\operatorname{Info}(Z_{i};Z_{j}\mid Z_{A})\qquad\mbox{with $r=e^{-u}$.}Our claim (70a) then follows by comparing the two representations (71b) and (71a).
To prove the identity (71b), fix an integer . Beginning with the definition (15b) of and averaging over the choice of the additional coordinate, we find that
where the underbrace relation follows from the chain rule for mutual information. Substituting this identity into our Bernstein representation (65b) for , and then summing over yields equation (71b).
C.2 Relation with the DHW -leaping masking sampler
In this section, we formalize the exact relationship between Algorithm 1 of Dmitriev et al. [17] and the Bernoulli unmasking sampler (11). Any DHW grid of the form can be used to define a sequence of reveal times , and the corresponding inverse transformation .
In terms of the shorthand , for the Bernoulli unmasking update with estimated denoiser , the corresponding transition kernel is given by
\displaystyle\mathbb{K}_{k,i}^{\textsf{Ber}}(\star\mid x)=1-\beta_{k},\quad\mbox{and}\quad\mathbb{K}_{k,i}^{\textsf{Ber}}(a\mid x)=\beta_{k}\widehat{\mu}_{i}(a,x)\qquad\mbox{for each $a\in\mathcal{A}$.}We claim that when there is no score error, so that and , then the two kernels coincide. First of all, we claim that Proposition 6 of Dmitriev et al. [17], when translated into our notation, shows that
Equation (ii) follows from equation (i), since the denoiser is a conditional probability distribution. To establish equation (i), if has coordinate masked and is obtained by filling that coordinate with , then the marginal convention in Proposition 6 gives . Moreover, their CTMC time is related to our reveal probability by the transformation , so that .
Using equation (72f) we see that the exact score has total mass , so that in equation (72b). Moreover, normalizing by this total mass cancels the common factor , so that . Thus, the right-hand side of equation (72d) is , while the right-hand side of equation (72e) is .
For learned scores, the mask-probability gap is caused by the non-unit score mass . The important difference is that rescaling the DHW score changes its kernel, whereas the Bernoulli reveal probability remains fixed by the grid.
Appendix D Proof of Lemma 2: XORSAT scaling
Let us first complete the proof, taking the bounds (44) as given. Note that the outer blocks have log-reveal-odds length , whereas . Hence, we can compute
where we have used the claimed bound (44). Combining this bound with the scaling establishes the claim (43).
We now return to prove the bounds (44). With the shorthand and , it follows from the definition (2c) of that
Consequently, we can control the UGC increments by controlling the differences in . From the definition and the binary nature of each , it follows that , and hence that .
For controlling the other increments, we study averages of over the random choice of . The increments of the averaged take a simple form. For a positive integer , let be a Boolean random matrix with independent uniform rows in , and let be a fresh independent uniform row. Defining the function
\displaystyle\frac{\mathbb{E}_{\mathbf{A}}[\mathsf{h}(s)-\mathsf{h}(t)]}{d\,\log 2} \displaystyle=\mathbb{E}\big[\mathsf{g}(M_{t})-\mathsf{g}(M_{s})\big],\qquad\mbox{where $M_{r}\sim\operatorname{Bin}(d-1,r)$ is a binomial RV,}Taking these two claims as given for the moment, let us complete the proof of the bounds (44).
Transition interval:
Equation (74c) gives . Consequently, equation (74b) gives , and combining with inequality (73a), this yields .
Pre- and post-transition intervals:
For the pre-transition interval, deterministically, so that equation (74b) gives . Since is non-increasing and , it follows that
and hence .
Similarly, we have deterministically, and equation (74b) gives . Using monotonicity and non-negativity,
and hence . Combining these two estimates with inequalities (73b), we conclude that and .
To pass from these averaged bounds to a single realization of , first note that the two outer terms are nonnegative. Hence, by Markov’s inequality and the preceding expectation bounds, with probability bounded below by a positive constant, both and are . For the middle interval, the endpoint estimates (74c) and identity (74b) give . Since , Markov’s inequality applied to the nonnegative deficit shows that
Thus, by a union bound, for all sufficiently large there exists a realization of for which the two outer bounds hold and simultaneously. Inequality (73a) then gives for this same realization.
Proof of the identity (74b):
Fix a coordinate , and condition on coordinate being masked at reveal probability . Let denote the set of revealed coordinates among the remaining coordinates. Then . Coordinate is associated with the row of , and we use to denote the matrix formed by the rows indexed by . All of the following linear-algebraic statements are over the Boolean field .
Conditional on and the revealed values , there are two possibilities. If , then is a linear combination of the revealed coordinates , and hence is determined by them. On the other hand, if , then the linear functional defined by is nonzero on the nullspace of . Consequently, among the latent assignments compatible with , exactly half give and half give . By this reasoning, the conditional entropy takes the simple form
Now condition on the event . By independence and permutation invariance of the rows, the submatrix has the same law as , while is a fresh independent uniform row. From the definition (74a) of , it follows that . Averaging this identity over the binomial random variable yields . The same argument with no revealed coordinates gives .
Combining the pieces, the term in the sum (2a) that defines has expectation
Summing over the exchangeable coordinates yields the identity . Taking the difference between and in this identity yields the claim (74b).
Proof of equation (74c):
We first claim that satisfies the bounds
\displaystyle 1-\mathsf{g}(m)\;\stackrel{{\scriptstyle(a)}}{{\leq}}2^{m-k}\qquad\mbox{for $m\leq k$, $\quad$ and}\qquad\mathsf{g}(m)\stackrel{{\scriptstyle(b)}}{{\leq}}2^{k-m}\qquad\mbox{for $m>k$.}To prove the first bound (76)(a), we observe that conditional on , its row span contains vectors out of the possible rows in . Hence a fresh uniform row lies in this span with probability at most . Combining with the definition of yields the claim. As for the bound (76)(b), when , the event that the fresh row lies outside the row span requires . Union-bounding over nonzero right-null vectors therefore gives , as claimed.
We now show that . Recalling that , its mean is
For the threshold , we therefore have
for all sufficiently large . Defining the bad event , Hoeffding’s inequality gives
so that for sufficiently large. On the complement , the bound (76)(a) guarantees that . Since , it follows that
which proves the claim.
A similar argument applies at the right endpoint . The same Hoeffding bound guarantees that , while on the complementary event, we have the bound
Taking expectations gives .
Combining the two pieces completes the proof of the claimed bounds (74c).