Fork-dLLM: Avoiding the Flexibility Trap in Diffusion Language Models

Stipe Frković, Metod Jazbec, Christian A. NaessetharXiv 2026

TL;DR

Fork-dLLM is a hybrid sampling strategy that solves the "flexibility trap" in masked diffusion language models—a phenomenon where models avoid making difficult reasoning decisions by unmasking easy tokens first. By enforcing autoregressive ordering only at uncertain "fallback" steps, the authors achieve the high generation diversity of slow autoregressive models while maintaining the 2–3× speedup of parallel diffusion, enabling highly efficient RL post-training.

What Problem Does This Paper Address?

Masked diffusion language models (dLLMs) are exciting because, unlike standard autoregressive (AR) models that generate one token at a time from left to right, dLLMs can generate many tokens in parallel. They do this using "confidence-based samplers" that unmask all tokens the model is sure about in a single step.

However, this speed comes at a cost known as the flexibility trap. Because the model can choose the order of unmasking, it tends to pick the "easiest" tokens first (e.g., common nouns or punctuation) and postpones "fork positions"—critical branching points where the reasoning path is decided (e.g., logical connectives like "Therefore" or "However"). By the time the model gets to these hard decisions, the surrounding context has already been filled in, artificially reducing the model's uncertainty and leading to a lack of diversity in generated answers. This hurts performance on tasks requiring multiple attempts (pass@k) and makes Reinforcement Learning (RL) post-training unstable.

Methods

The authors propose two main innovations:

  1. Fork-dLLM Sampler: This is a simple, training-free modification to existing samplers.
  2. Parallel Phase: If any masked tokens have a confidence score above a threshold ($\lambda$), the model unmasks all of them in parallel.
  3. Fallback Phase: If no token is confident enough, the model enters a "fallback step." Instead of picking the highest-confidence token (as standard samplers do), Fork-dLLM forces the model to unmask the leftmost masked position, AR-style. This forces the model to confront the "fork" head-on.
  4. ForkGRPO: The authors extend this logic to Group Relative Policy Optimization (GRPO).
  5. Standard RL for dLLMs is difficult because the bidirectional nature of diffusion makes calculating exact likelihoods nearly impossible.
  6. ForkGRPO uses Fork-dLLM for rollouts but only applies the RL objective at the fallback steps. Because only one token is committed at these steps, the policy-likelihood ratios are exact. This makes training much faster and more stable than using full AR rollouts.

Datasets

The researchers evaluated their methods on several challenging reasoning and coding benchmarks:

  • Mathematics: GSM8K and MATH-500.
  • Code Generation: HumanEval and MBPP.
  • RL Training: A subset of the AceCoder dataset.
  • Base Models: LLaDA-8B-Instruct and Dream-v0-Instruct-7B.

Key Insights and Ideas

  • The 80/20 Rule of Entropy: The authors found that while fallback tokens only account for about 1/8th of the total tokens generated, they contribute nearly half of the total entropy of the sequence. These are the high-stakes decisions that define the reasoning path. Entropy vs Frequency
  • Connectives are the Forks: Qualitative analysis shows that fallback steps are dominated by logical connectives like "Since," "First," and "Thus," whereas parallel steps handle dataset-specific words that follow an established path.
  • Stability through Decoupling: By forcing a fixed (leftmost) ordering at uncertain steps, ForkGRPO decouples the rollout policy from RL-induced changes in model confidence. This prevents the "training collapse" often seen when using standard parallel samplers for RL.
Entropy vs Frequency

Key Results

  • Inference Efficiency: Fork-dLLM matches the strong diversity and accuracy scaling of slow AR sampling while requiring 2–3× fewer Number of Function Evaluations (NFEs). Pass@k and Pass@NFE scaling
  • Training Speedup: ForkGRPO achieves accuracy comparable to state-of-the-art AR-based RL (JustGRPO) while using 8× fewer H100-hours for post-training. GSM8K Accuracy vs Training Cost
  • Ablation Success: The authors showed that the specific "leftmost" fallback strategy is critical. Replacing it with random selection, highest-entropy selection, or lowest-confidence selection all resulted in significantly worse performance.
Figure 3: Pass@k (top) and pass@NFE (bottom) curves on LLaDA-8B-Instruct across mathematics and code benchmarks. Both rows show the same generations; the bottom row instead accounts for the number of NFEs required to obtain the corresponding samples. Fork-dLLM, together with the other two confidence-based samplers (Fast-dLLM and TCT), retains the strong pass@k scaling of AR sampling while requiring substantially fewer NFEs to reach a given performance level. Insets zoom into the high-accuracy regime.
GSM8K Accuracy vs Training Cost

Limitations and Future Work

  • Hyperparameter Sensitivity: The optimal confidence threshold ($\lambda$) and temperature ($\tau$) were tuned on HumanEval. While they transferred well, per-task tuning might yield even better results.
  • Scope of Models: The RL experiments were primarily conducted using LoRA adapters on LLaDA-8B. Testing full fine-tuning and scaling to even larger models remains for future work.
  • Discrete Diffusion: The current work focuses on masked diffusion; extending the "fork" principle to uniform discrete diffusion models is a promising next step.

Summary updated

BibTeX
@misc{frkovic2026fork,
  author = {Stipe Frković and Metod Jazbec and Christian A. Naesseth},
  title = {{Fork-dLLM: Avoiding the Flexibility Trap in Diffusion Language Models}},
  year = {2026},
  eprint = {2609.39859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39859},
}
Figure