Thinking Out of Order: When Output Order Stops Reflecting Reasoning Order in Diffusion Language Models
Longxuan Yu, Yu Fu, Shaorong Zhang, Hui Liu, Mukund Varma T, Greg Ver Steeg, Yue Dong
TL;DR
The paper investigates how output order constraints interact with internal reasoning in language models. It demonstrates that masked diffusion language models (MDLMs) can maintain reasoning accuracy even when prompts require an answer-first output, unlike autoregressive models, by decoupling computation order from output position. Using ReasonOrderQA, a controlled benchmark with graded complexity, the authors show that diffusion-based generation stabilizes simpler reasoning tokens earlier and defers complex final answers, enabling order-robust reasoning. They identify two breakdown conditions—insufficient token complexity differences and large generation lengths—and analyze how sampling strategies affect robustness, providing practical guidance for order-agnostic generation in real-world tasks.
Abstract
Autoregressive (AR) language models enforce a fixed left-to-right generation order, creating a fundamental limitation when the required output structure conflicts with natural reasoning (e.g., producing answers before explanations due to presentation or schema constraints). In such cases, AR models must commit to answers before generating intermediate reasoning, and this rigid constraint forces premature commitment. Masked diffusion language models (MDLMs), which iteratively refine all tokens in parallel, offer a way to decouple computation order from output structure. We validate this capability on GSM8K, Math500, and ReasonOrderQA, a benchmark we introduce with controlled difficulty and order-level evaluation. When prompts request answers before reasoning, AR models exhibit large accuracy gaps compared to standard chain-of-thought ordering (up to 67% relative drop), while MDLMs remain stable ($\leq$14% relative drop), a property we term "order robustness". Using ReasonOrderQA, we present evidence that MDLMs achieve order robustness by stabilizing simpler tokens (e.g., reasoning steps) earlier in the diffusion process than complex ones (e.g., final answers), enabling reasoning tokens to stabilize before answer commitment. Finally, we identify failure conditions where this advantage weakens, outlining the limits required for order robustness.
