TL;DR
ProSeCo (Progressive Self-Correction) is a new framework that allows Masked Diffusion Models (MDMs) to "re-think" and fix errors in tokens they have already generated. By breaking the "locked-in" limitation of traditional MDMs, ProSeCo achieves up to a 4x speedup in sampling and significantly outperforms standard models and even some autoregressive giants like Llama 3.1 on math and coding benchmarks.
What Problem Does This Paper Address?
In the world of Large Language Models, we usually choose between two paths: Autoregressive (AR) models, which are highly accurate but slow because they generate text one token at a time, and Masked Diffusion Models (MDMs), which are fast because they can generate many tokens in parallel.
However, MDMs have a "fatal flaw": they typically use an absorbing corruption process. Once the model decides to "unmask" a token and place it in the sequence, that token is fixed for the rest of the generation. If the model makes a mistake early on—which is common when guessing many tokens at once—that error is permanent. These mistakes accumulate, leading to "distributional drift" and lower-quality outputs. The authors of this paper set out to give MDMs the ability to change their minds.
Methods
The authors introduce ProSeCo, which equips a single model with two "modes": unmasking and correction.
- Joint Training: Unlike standard training that only teaches a model to fill in
[MASK]tokens, ProSeCo uses a two-pass approach. In the first pass, the model performs standard denoising. In the second pass, the model takes its own (potentially flawed) predictions and learns to map them back to the correct ground-truth data. This teaches the model to recognize and fix its own "informed noise." - Weight Tying: To keep the architecture efficient, the "denoiser" and the "corrector" share the exact same weights. This means no extra memory overhead is required for a separate corrector model.
- Interleaved Sampling: During inference, the model doesn't just unmask tokens. It periodically runs "corrector loops." For example, after unmasking a block of text, it might take 2–4 extra steps to refine the entire sequence, including tokens that were already unmasked.
- Inference-Time Scaling: ProSeCo allows users to trade compute for quality. By increasing the frequency or depth of the corrector loops, the model can "think longer" to produce better results.
Datasets
The researchers evaluated ProSeCo across several demanding domains:
- Coding: HumanEval and MBPP.
- Mathematics: GSM8K and MATH.
- Molecules: QM9 (using SMILES strings) to test property maximization in guided generation.
- Unconditional Text: OpenWebText (OWT) to measure fluency and diversity.
- Training: They fine-tuned an 8B parameter LLaDA model on a modified version of the Llama-Nemotron-Post-Training dataset (~400B tokens).
Key Insights and Ideas
- Mistakes as Informed Noise: The core "aha moment" is treating the model's own errors as a specific type of corruption. Standard diffusion often uses random uniform noise, but a model's actual mistakes are structured. Training on these specific mistakes makes the corrector much more effective.
- The Parallelism-Quality Trade-off: Usually, if you try to generate more tokens in parallel with an MDM, quality plummets. ProSeCo effectively "extends the frontier," allowing high parallelism while using the corrector to mop up the resulting errors.
- Self-Correction is a Learned Skill: The authors show that a "vanilla" MDM cannot simply be told to correct itself at test time; it must be explicitly trained with a self-correction loss ($L^{SC}$) to learn how to modify unmasked inputs.
Key Results
The results demonstrate that ProSeCo is a significant step forward for non-autoregressive generation:
- Benchmark Superiority: On HumanEval, ProSeCo (8B) achieved 72.56% accuracy, a +14% absolute gain over the vanilla SFT baseline and significantly higher than Llama 3.1-8B Instruct (63.41%).
- Efficiency Gains: The "ProSeCo Fast" configuration matched the accuracy of the best sequential baselines while being 2x to 4x faster (fewer Function Evaluations).
- Scaling Law for Reasoning: On the difficult MATH benchmark, ProSeCo improved accuracy from 46.60% (baseline) to 55.06% (Max sampling), showing that MDMs can benefit from increased test-time compute just like recent "reasoning" AR models.
- Fluent Text: In unconditional generation, ProSeCo produced significantly more fluent text (lower perplexity) than other recent MDM correction methods like ReMDM or PRISM.
Limitations and Future Work
- Training Overhead: ProSeCo requires a second forward pass during training to generate the "mistakes" it needs to learn from, which increases the total training compute.
- Weight Untying: While weight tying is efficient, the authors suggest that future work could explore using separate, specialized backbones for the unmasking and correction tasks to see if it further boosts performance.
- Heuristic Sampling: Currently, the frequency of correction is a hyperparameter ($\omega$). Developing a more dynamic way for the model to decide when it needs to stop and correct itself (an "internal uncertainty" trigger) is a promising next step.
Summary updated