Manuscript Offprint

arXiv:2609.39859

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

Stipe Frković, Metod Jazbec, Christian A. Naesseth

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Masked diffusion language models (dLLMs) have shown strong potential for faster inference through parallel token generation when combined with confidence-based samplers. However, recent work has shown that such methods can defer unmasking high-entropy fork positions at which multiple plausible continuations exist. This results in reduced generation diversity, as shown by worse pass@k scaling, and limits gains obtainable from RL post-training. To avoid this flexibility trap, prior work advocated for autoregressive (AR) sampling. Here, we show that discarding confidence-based sampling is unnecessary and, once inference cost is taken into account, wasteful. We first propose Fork-dLLM, a simple hybrid sampler that uses AR-style ordering only at uncertain fallback steps while retaining parallel generation otherwise. We then extend the same principle to post-training with ForkGRPO, which uses Fork-dLLM rollouts and applies the GRPO objective only at fallback steps, preserving exact policy-likelihood ratios while substantially reducing rollout and optimization cost. In our experiments, Fork-dLLM matches the strong pass@k scaling of AR sampling while being 2–3× more efficient, and ForkGRPO achieves downstream performance comparable to or better than AR-based GRPO baselines at a substantially lower training cost.

1 INTRODUCTION

Masked diffusion language models (dLLMs) have emerged as a promising alternative to autoregressive (AR) language models, with the potential for faster inference through parallel token generation (Nie et al., 2025; Ye et al., 2025; Arriola et al., 2025; Bie et al., 2025; Cheng et al., 2026). To realize this potential, a crucial component is confidence-based sampling (Wu et al., 2026a; Ben-Hamu et al., 2025; Kim et al., 2025; Jazbec et al., 2026), accelerating generation by committing multiple high-confidence tokens in parallel.

GSM8K – LLaDA-8B-Instruct

However, recent work has shown that confidence-based sampling can substantially reduce diversity across generations (Ni et al., 2026; Olausson et al., 2026), a phenomenon termed the flexibility trap. By postponing uncertain, high-entropy fork positions (Wang et al., 2025), confidence-based samplers allow surrounding context to be resolved first, reducing uncertainty at meaningful branching points before they are sampled. This leads to worse pass@k scaling than left-to-right AR sampling and limits the gains of RL post-training. Ni et al. (2026) therefore advocate for AR sampling, which generates only one token at a

Figure

Train configuration (GPU, time)

Figure 1: GSM8K accuracy across post-training methods, evaluated with Fast-dLLM at λ=0.95\lambda = 0.95 and temperature τ=0\tau = 0. The dashed gray line denotes the performance of the base LLaDA-8B-Instruct model. ForkGRPO and JustGRPO-Fast are trained by us; for JustGRPO, we evaluate the released checkpoint from Ni et al. (2026). Under the same training budget, ForkGRPO substantially outperforms JustGRPO-Fast and reaches accuracy comparable to JustGRPO despite using 8×8\times fewer H100-hours for post-training.

∗^{*}Equal supervision. †\daggerCorrespondence to: stipe.frkovic@student.uva.nl, m.jazbec@uva.nl.

time and thus sacrifices the parallelism and corresponding efficiency gains of dLLMs, making it an expensive solution to the diversity problem.

We therefore ask: Is it necessary to abandon confidence-based sampling entirely to avoid the flexibility trap? We show that it is not. Our key observation is that popular confidence-based samplers such as Fast-dLLM (Wu et al., 2026a) already contain a mechanism for identifying sampling steps in which fork positions are likely to occur: when no position exceeds the confidence threshold λ\lambda, all remaining predictions are relatively uncertain. We use these fallback steps as a simple proxy for fork-containing steps and introduce Fork-dLLM (Algorithm 2), which switches to AR-style sampling only at these steps by unmasking the leftmost masked position. In all other steps, Fork-dLLM is identical to Fast-dLLM and commits multiple tokens in parallel.

We further show that the same idea naturally extends to RL post-training for dLLMs (Zhao et al., 2025). Existing approaches that avoid likelihood approximations (see Section A), such as JustGRPO (Ni et al., 2026), rely on AR rollouts and therefore sacrifice the generation efficiency of dLLMs. We instead introduce ForkGRPO, which generates rollouts with Fork-dLLM and applies the GRPO objective only at fallback steps. Since a single token is committed at these steps, ForkGRPO preserves exact policy-likelihood ratios while retaining parallel generation throughout the rest of the trajectory. In summary, our main contributions are:

• We introduce Fork-dLLM, a simple modification to the Fast-dLLM sampler (Wu et al., 2026a) that applies AR-style ordering only at uncertain fallback steps, requiring no training, additional model evaluations, or new hyperparameters (Section 3.1). Across mathematics and code benchmarks, Fork-dLLM matches the pass@k scaling of AR sampling while requiring 2−3×2-3\times fewer NFEs (Section 4.1).

• We show that, when tuned, other confidence-based samplers (Wu et al., 2026a; Olausson et al., 2026) also retain strong pass@k scaling at a fraction of the AR cost, demonstrating that escaping the flexibility trap does not require abandoning confidence-based parallel decoding (Section 4.1).

• We introduce ForkGRPO, which extends Fork-dLLM to RL post-training by applying GRPO only at the fallback steps of its rollouts (Section 3.2). ForkGRPO preserves exact policy-likelihood ratios while substantially reducing NFEs during both rollout generation and policy optimization. It clearly outperforms AR-based GRPO under the same compute budget, and matches it at a fraction of the training cost (Figure 1 & Section 4.2).

References (77)