Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models
Organizations: Case Western Reserve University, Cleveland, USA · University of Southern California, Los Angeles, USA
Abstract
The decoding order of masked diffusion language models (dLLMs) can substantially affect generation quality, yet common decoders typically apply the same reveal rule throughout generation. Confidence provides a strong default, but it measures how decisively a position can be predicted now, not how useful revealing that position will be for subsequent decoding. We propose Cord, a lightweight prompt-conditioned policy that retains confidence decoding as a stable reference and learns when and how to depart from it through geometric residuals over generation direction, proximity to revealed context, and two-sided infilling. The residuals adapt to both the prompt and the evolving partial response. Rather than sampling a new policy action at every decoding step, Cord samples a single low-dimensional coefficient matrix per rollout, which induces an entire state-dependent reveal trajectory. This yields a contextual-bandit formulation trained directly from sequence-level rewards, without step-level credit assignment or backbone updates. Across three dLLMs and five reasoning, code, and constraint-satisfaction benchmarks, Cord improves average task success from 32.0% under confidence decoding to 48.2%, and further improves over the best per-domain fixed residual. Behavioral audits show that the learned residuals induce substantial, task-dependent changes in reveal locality and two-sided infilling. Cord adds only M trainable parameters, requires no additional backbone forward passes, and incurs only 5.39% inference latency overhead.
Figures & tables
| Backbone | Decoding policy | GSM8K | MATH500 | HumanEval | MBPP | Sudoku | Avg. |
|---|---|---|---|---|---|---|---|
| LLaDA-8B-Instruct | Confidence | 58.7 | 18.0 | 27.8 | 38.4 | 17.1 | 32.0 |
| Entropy | 59.4 | 12.5 | 27.5 | 41.7 | 3.3 | 28.9 | |
| Margin ( Kim et al., 2025 ) | 58.4 | 22.2 | 28.8 | 42.1 | 25.8 | 35.5 | |
| EB-Sampler ( Ben-Hamu et al., 2025 ) | 61.4 | 12.7 | 27.1 | 42.7 | 33.8 | 35.5 | |
| Semi-AR † ( Nie et al., 2025 ) | 76.8 | 28.1 | 38.9 | 45.2 | 0.3 | 37.9 | |
| UNCODE ( Huang et al., 2026a ) | 79.2 | 34.8 | 42.1 | 47.8 | 29.8 | 46.7 |
| Variant | LLaDA-Inst. | LLaDA-1.5 | Dream | Avg. |
|---|---|---|---|---|
| Confidence only | 32.0 | 33.3 | 26.4 | 30.6 |
| No prompt (fixed residual) | 48.0 | 49.8 | 40.5 | 46.1 |
| Prompt only (static) | 42.8 | 48.1 | 47.1 | 46.0 |
| Time only | 46.3 | 45.1 | 49.2 | 46.9 |
| State only | 47.1 | 46.4 | 33.1 | 42.2 |
| Full CORD | 48.2 | 50.7 | 52.5 | 50.5 |
| Variant | GSM8K | MBPP | Sudoku | Avg. |
|---|---|---|---|---|
| 57.2 | 43.7 | 35.3 | 45.4 | |
| 70.2 | 44.8 | 31.8 | 48.9 | |
| 72.4 | 41.4 | 16.6 | 43.5 | |
| Full CORD | 78.2 | 48.9 | 36.1 | 54.4 |
| Method | Extra Fwd. | Aux. Params | Latency (s) | Overhead |
|---|---|---|---|---|
| Confidence | 0 | 0 | 6.31 0.31 | – |
| Fixed residual | 0 | 0 | 6.55 0.28 | 3.80% |
| CORD | 0 | 527,512 | 6.65 0.30 | 5.39% |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| config | value |
|---|---|
| math | GSM8K, MATH |
| code | HumanEval, MBPP |
| constraint satisfaction | Sudoku |
| training-domain sampling ratio | (math : code : Sudoku) |
| math training prompts | 4000 |
| code training prompts | 500 |
| config | value |
|---|---|
| residual channels | |
| basis functions | |
| coefficient dimension | |
| policy hidden dimension | |
| policy depth | linear layers |
| activation | SiLU |
| config | value |
|---|---|
| generation length | |
| number of decoding steps | |
| positions revealed per step | |
| maximum sequence length | |
| decoding schedule | pure any-order |
| position selection | top- by reveal score |
| Method | Remask | Backbone Update | GSM8K | MATH-500 | HumanEval | MBPP |
|---|---|---|---|---|---|---|
| CORE ( Zhai et al., 2026 ) | ✓ | ✗ | 52.7 | 17.1 | 17.1 | 24.8 |
| SCOPE+D3IM ( Yu et al., 2026 ) | ✓ | ✓ | 73.8 | 30.0 | 34.8 | 36.6 |
| RemeDi (Remask SFT) ( Huang et al., 2026b ) | ✓ | ✓ | 86.3 | 52.2 | 71.3 | 57.8 |
| CORD | ✗ | ✗ | 78.2 | 34.9 | 42.7 | 48.9 |
Diffusion Language Model Decoding
Diffusion language model decoding generates text through iterative parallel refinement, balancing fewer denoising steps with accuracy, coherence, and control.
See all 251 papers