TL;DR
Discrete diffusion models often predict "score ratios" that are mathematically impossible because they do not correspond to any single, valid underlying probability distribution. This paper introduces Mean-to-Score (M2S), a method that forces the model to predict a valid posterior distribution first and then maps it to the score space via an exact linear transformation, significantly improving text and image generation.
What Problem Does This Paper Address?
Discrete diffusion models generate data (like text tokens or pixel values) by reversing a continuous-time corruption process. A popular approach, Score Entropy Discrete Diffusion (SEDD), achieves this by directly predicting "score ratios"—essentially the relative transition rates between different discrete states.
While SEDD ensures these rates are positive, the authors discover a fundamental structural flaw: the predicted scores often lack Bayes realizability. This means that at a given noisy step, the collection of predicted score ratios across the vocabulary cannot jointly arise from any single, valid probability distribution over the clean data. Instead, the model outputs contradictory, unconstrained scores. This geometric inconsistency leads to mathematical pathologies during generation, such as negative pre-normalization weights in the sampling steps, which ultimately degrades sample quality.
Methods
To guarantee Bayes realizability by construction, the authors propose Mean-to-Score (M2S):
- Posterior-Mean Prediction: Instead of predicting unconstrained scores, the neural network outputs a valid probability distribution (a clean-token posterior mean $\mu_\theta$) over the vocabulary simplex using a standard softmax layer.
- Linear Bridge: This distribution is then mapped directly to the score space via an exact, kernel-dependent linear transformation ($B_t$).
This simple change restricts the model's outputs to the mathematically valid bridge polytope at every single iteration. The map is highly efficient, requiring only $O(K)$ time (where $K$ is the vocabulary size) for uniform corruption. For absorbing-mask corruption, the M2S objective elegantly reduces exactly to the established MD4 objective.
Additionally, the authors develop a post-hoc projection method to "repair" existing, pre-trained SEDD models by projecting their invalid scores back onto the valid bridge polytope during sampling.
Datasets
The authors evaluated their approach on three standard benchmarks across modalities:
- MNIST: Images quantized to 256 gray levels to treat pixels as discrete sequences.
- CIFAR-10: 32×32 RGB images represented as discrete sequences with 256 states per color channel (trained without data augmentation).
- OpenWebText: A large-scale text corpus used to evaluate language modeling performance.
Key Insights and Ideas
- Positivity $\neq$ Validity: Just because a model outputs positive transition rates doesn't mean they are coherent. In a trained uniform SEDD model, roughly 25% of score vectors violate basic coordinate bounds, and over 56% satisfy coordinate bounds but are still completely incompatible with any valid joint posterior distribution.
- The Power of Geometric Constraints: Restricting the network's output to a valid probability simplex removes non-Bayesian degrees of freedom. This structural constraint acts as a powerful regularizer during finite training.
- Fixing the Sampler: Invalid scores cause finite-step samplers to encounter negative weights, forcing them to heuristically sample only from the positive parts. M2S completely eliminates these negative weights, leading to a more mathematically sound reverse process.
Key Results
- Language Modeling: On OpenWebText, a 170M-parameter M2S model achieved a generative perplexity (PPL) of 143.3 at 128 steps, substantially outperforming the strongest pure-uniform baseline, SEDD, which scored 183.6. Even applying the post-hoc projection to a fixed SEDD checkpoint dropped its PPL from 203.6 to 175.1.
- Image Quality: On CIFAR-10, M2S lowered the bits-per-dimension (BPD) from 3.173 to 3.129 and dramatically reduced the FID-50k from 42.83 to 28.09. On MNIST, M2S reduced FID by more than 52 points across all sampling budgets.
- Artifact Elimination: Qualitatively, M2S suppresses the isolated, highly-saturated "chromatic noise" pixels and local texture breaks commonly produced by unconstrained SEDD models.
Limitations and Future Work
The exact linear maps derived in this paper are tailored specifically to coordinate-wise continuous-time Markov chains (CTMCs), with explicit formulations provided for uniform and absorbing-mask corruption. While the theoretical framework applies to any kernel satisfying a mild support condition, extending and optimizing these linear bridges for more complex, structured, or non-uniform corruption processes remains an open direction for future research.
Summary updated