TL;DR
The "flexibility trap"—the observation that arbitrary-order generation in diffusion LLMs lacks diversity—is not caused by the generation order itself, but by a common decoding rule called Low-Confidence Remasking (LCR). By switching to Top-Probability Position selection (TPP) and a novel Entropy-Guided Initialization (EGI), researchers can restore rollout diversity and actually outperform traditional left-to-right autoregressive decoding.
What Problem Does This Paper Address?
Masked Diffusion Models (MDMs) like LLaDA offer a tantalizing feature: they can generate tokens in any order, unlike standard autoregressive (AR) models that are locked into a left-to-right sequence. Theoretically, this flexibility should make MDMs excellent at "rollout sampling"—generating many diverse attempts to solve a problem (like a math puzzle or a coding task) to find at least one correct answer (measured as Pass@$k$).
However, recent studies found a "flexibility trap": MDMs using arbitrary-order decoding were significantly less diverse and effective than when forced to decode left-to-right. The prevailing theory was that generating high-confidence tokens first "traps" the model into a single reasoning path. This paper challenges that theory, arguing that the culprit is actually the specific algorithm used to pick which token to commit next.
Methods
The authors dissect two decoding rules often lumped together as "confidence-based decoding":
- Low-Confidence Remasking (LCR): The model samples a token for every masked position simultaneously but only keeps the one that had the highest probability. The rest are "remasked" (discarded).
- Top-Probability Position selection (TPP): The model first identifies the position where it is most confident about the top token. It then samples a token from that specific position's distribution and commits it, without filtering.
The authors prove through toy models that LCR acts as a "diversity killer." Because it samples across all positions and then filters, a single high-probability token anywhere in the sequence can "outcompete" and reject diverse, lower-probability samples at every other position.
To go beyond just fixing the trap, they introduce Entropy-Guided Initialization (EGI). EGI uses the model's flexibility to its advantage: for the very first step of generation, it picks the position with the highest entropy (the most uncertainty) and samples there at a higher temperature. For all subsequent steps, it follows the standard TPP rule.
Datasets
The researchers evaluated their methods using LLaDA-8B-Instruct and LLaDA-1.5 on several standard reasoning benchmarks:
- GSM8K & MATH-500: Grade school and high school level math word problems.
- HumanEval & MBPP: Python programming tasks.
- AceCoder-87K: A subset used for training in the policy optimization experiments.
Key Insights and Ideas
- LCR is Secretly Greedy: Even if you increase the "temperature" to encourage diversity, LCR's competitive filtering mechanism ensures that only the most likely tokens survive. As shown in Figure 1, the fraction of "non-top" tokens committed under LCR remains near zero even as temperature rises, whereas TPP behaves as expected.
- The Trap is the Filter, Not the Order: TPP also prioritizes high-confidence positions (just like LCR), yet it achieves Pass@$k$ results comparable to left-to-right decoding. This proves that the "flexibility trap" was an artifact of LCR's proposal-rejection mechanism, not the act of generating certain tokens first.
- Strategic Uncertainty: By starting generation at the most uncertain point (EGI), the model explores widely different "forks" in the reasoning path early on. This single intervention at step one is enough to make the entire rollout more diverse than a fixed left-to-right approach.
Key Results
- Closing the Gap: Replacing LCR with TPP immediately restores the performance of MDMs to levels competitive with AR models.
- Surpassing AR: EGI consistently outperforms left-to-right (AR) decoding across math and coding benchmarks. For example, on GSM8K and HumanEval, EGI shows clear gains in Pass@$k$ over both TPP and AR.
- Better Policy Optimization: When used during Reinforcement Learning (specifically Group-Relative Policy Optimization or GRPO), EGI rollouts lead to faster reward gains and higher reward variance. This suggests that the diversity provided by EGI is high-quality and helps the model learn more effectively.
Limitations and Future Work
- One-at-a-Time: The study focuses on one-token-per-step decoding. While MDMs can generate tokens in parallel, the authors chose this focus to isolate the effects of the decoding rules. Future work could explore how these insights apply to massively parallel decoding.
- Simple Intervention: EGI only modifies the very first step. There may be even more sophisticated "adaptive ordering" strategies that could further boost diversity by intervening at multiple points during generation.
- Computational Cost: While EGI requires the same number of model evaluations as AR, calculating entropy across all masked positions adds a small amount of overhead compared to just looking at the next position in a fixed order.
Summary updated