Abstract
Standard autoregressive language models and masked diffusion models share a critical architectural limitation: they are unable to revise a token once it has been generated. This "irreversibility" means that early sampling errors inevitably propagate and compound, leading to degraded text quality. We introduce Generalized Interpolating Discrete Diffusion (GIDD), a flexible framework that enables true self-correction by mixing masking with uniform noise during training. This hybrid approach forces the model to learn to identify and rectify incorrect tokens within its context. Our results show that GIDD achieves state-of-the-art performance for compute-matched diffusion language models and enables a self-correction inference step that improves generative perplexity by over 55%.
1. Introduction
Modern Large Language Models (LLMs) primarily rely on autoregressive decoding, generating text strictly from left to right. While powerful, this paradigm is fragile; a single suboptimal token sampled early in a sequence can derail the entire generation, as the model has no mechanism to backtrack.
Discrete diffusion models were recently proposed as a non-autoregressive alternative. These models typically begin with a sequence of [MASK] tokens and iteratively fill them in. However, standard Masked Diffusion models suffer from a similar flaw: once a mask is replaced with a token, that token is fixed for the remainder of the process. To address this, we propose Generalized Interpolating Discrete Diffusion (GIDD), a framework that allows tokens to transition to any other token during the denoising process, facilitating iterative refinement and error correction.
2. Methods
2.1 The GIDD Framework
GIDD provides a unified mathematical foundation for discrete diffusion using a novel continuous-time Evidence Lower Bound (ELBO). This framework allows for any time-varying mixing distribution, moving beyond simple masking to more complex noise processes.
2.2 Hybrid Noise Schedules
A key innovation in GIDD is the use of a hybrid noise schedule. During training, the model is exposed to a combination of standard [MASK] tokens and a configurable percentage of uniform noise (randomly sampled incorrect tokens). This training objective is significantly more challenging than simple mask-filling; it requires the model to not only predict missing information but also to evaluate the correctness of the existing context and replace erroneous tokens.
2.3 Dynamic Loss Weighting
Theoretical ELBO weights often become unstable at extreme noise levels, which can hinder the training of diffusion models. We implement a dynamic weighting scheme that stabilizes the training process by focusing the model's learning capacity on intermediate noise levels, where the denoising task is most informative for learning linguistic structure.
2.4 Inference-Time Self-Correction
At inference time, GIDD utilizes a fixed-point iteration algorithm. After an initial generation pass, the model evaluates the sequence, identifies tokens with low assigned probability, and resamples them. This iterative process allows the model to "polish" its own output, correcting grammatical errors or factual inconsistencies introduced during the initial sampling.
3. Experimental Setup
We trained GIDD models on the OpenWebText (OWT) dataset and evaluated them across several dimensions:
- Zero-Shot Benchmarks: Performance on standard tasks including ARC, BoolQ, Hellaswag, PIQA, OpenBookQA, and WinoGrande.
- Generative Quality: We measured "Generative Perplexity" using Gemma-2-9B as a proxy for the true language distribution.
- Qualitative Evaluation: We employed GPT-4o as an automated judge to score generated samples on clarity, grammaticality, and factuality.
4. Results
4.1 State-of-the-Art Baselines
The mask-only variant of GIDD, enhanced by our dynamic loss weighting, established a new state-of-the-art for compute-matched diffusion models. It achieved a validation perplexity of 22.29 on OWT, surpassing the previous MDM baseline (23.36) and even outperforming a retrained autoregressive GPT-2 Small (23.40).
4.2 The Power of Self-Correction
The hybrid noise model (trained with 20% uniform noise) demonstrated remarkable self-correction capabilities. Applying the iterative refinement step improved generative perplexity by 55%, dropping from 214 to 93.3. Qualitative assessments by GPT-4o confirmed these gains, showing a 16.5% increase in Clarity and a 16.6% increase in Grammaticality.
Crucially, we found that self-correction is a learned skill. When the same refinement step was applied to a standard mask-only model, the output quality actually decreased by approximately 20%. This suggests that exposure to uniform noise during training is essential for the model to develop the internal logic required to fix its own mistakes.
5. Discussion and Limitations
While GIDD represents a significant step forward, it is more computationally demanding than mask-only diffusion. Learning to identify and fix random noise is a harder task than filling in blanks, and at current scales (up to 320M parameters), hybrid models slightly lag behind mask-only versions on zero-shot benchmarks. Furthermore, while GIDD closes the gap, highly optimized autoregressive architectures (like LLaMA-based models) still maintain a performance lead in pure language modeling metrics.
6. Conclusion
GIDD introduces a flexible and theoretically grounded framework for discrete diffusion that unlocks the ability for models to revise their own outputs. By moving beyond simple masking and incorporating uniform noise, we enable a self-correction mechanism that significantly boosts the quality of generated text. Future work will explore the scaling properties of hybrid noise models and the potential for even more sophisticated noise schedules.
Summary updated