Error Bounds and Optimal Schedules for Masked Diffusions with Factorized Approximations
Hugo Lavenant, Giacomo Zanella
TL;DR
This work analyzes generating samples from a discrete distribution using masked diffusion style unmasking with factorized conditional approximations. By decomposing the KL sampling error into learning and factorization components, it derives informative bounds and links the factorization error to an information profile f(i). In the random-order setting, it provides tight upper bounds and introduces a data-driven calculus-of-variations framework to obtain near-optimal non-constant schedules, with explicit results for geometric schedules and scaling limits. The results offer principled guidance for choosing schedule sizes to balance computation and accuracy, including a practical data-driven schedule formula, and extend to both diverging and bounded unmasked-variable regimes, with extensions to future enhancements such as remasking and adaptive planners.
Abstract
Recently proposed generative models for discrete data, such as Masked Diffusion Models (MDMs), exploit conditional independence approximations to reduce the computational cost of popular Auto-Regressive Models (ARMs), at the price of some bias in the sampling distribution. We study the resulting computation-vs-accuracy trade-off, providing general error bounds (in relative entropy) that depend only on the average number of tokens generated per iteration and are independent of the data dimensionality (i.e. sequence length), thus supporting the empirical success of MDMs. We then investigate the gain obtained by using non-constant schedule sizes (i.e. varying the number of unmasked tokens during the generation process) and identify the optimal schedule as a function of a so-called information profile of the data distribution, thus allowing for a principled optimization of schedule sizes. We define methods directly as sampling algorithms and do not use classical derivations as time-reversed diffusion processes, leading us to simple and transparent proofs.
