Corrective Diffusion Language Models
Shuibai Zhang, Fred, Yiheng Zhang, Jin Pan, Grigorios Chrysos
NeurIPS 2026
TL;DR. We show masked diffusion LMs lack corrective behavior due to their unmask-only objective, and propose a post-training principle supervising visible incorrect tokens — improving both in-place revision and parallel decoding.
Abstract. While Diffusion Language Models (DLMs) are theoretically well-suited for iterative refinement due to their non-causal structure, off-the-shelf masked diffusion language models (MDLMs) often fail to reliably revise incorrect tokens in practice. The key challenge lies in the model's inability to distinguish between correct and erroneous tokens in a visible sequence. Standard MDLM training supervises only masked positions, undermining the effectiveness of refinement guided by confidence. Based on this observation, we study corrective behavior in DLMs, defined as the ability to assign lower confidence to incorrect tokens and iteratively refine them while preserving correct content. Under matched compute and data, we show that conventional masked-diffusion fine-tuning induces much less of this capability than a correction-oriented post-training principle that explicitly supervises visible corrupted tokens, which enables discriminative confidence and targeted refinement. We further find that also supervising clean visible tokens, as in BERT- or GIDD-style training, stops remask-based refinement from improving with additional steps. To evaluate corrective behavior, we introduce the Code Revision Benchmark, a controllable and executable benchmark for assessing error localization and in-place correction. The effect transfers from a 0.5B model to LLaDA-8B and persists, with a smaller margin, when corruptions are drawn from the base model's own most plausible predictions. Beyond in-place correction, the same error-aware confidence also makes parallel decoding more effective. In HumanEval(+) code completion at 0.5B, mathematical reasoning at 16B, and high-entropy parallel decoding with remasking (ParallelBench), models trained with our objective outperform standard masked-diffusion fine-tuning under matched compute, and outperform the base model on HumanEval(+), MATH, and the high-entropy ParallelBench average; at 8B, neither objective improves from-scratch generation over the base model. Code, checkpoints and the CRB data are available at https://github.com/zhangshuibai/CDLM.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary: The paper studies why masked diffusion language models struggle to revise incorrect tokens that are already visible in a sequence. The authors argue that the standard absorbing-mask objective supervises only masked positions and therefore does not teach the model to distinguish correct visible tokens from corrupted ones. They introduce the Code Revision Benchmark (CRB), which evaluates error localization and in-place correction through controlled, type-preserving corruptions of executable code. They also propose Corrective Diffusion Language Models (CDLMs), a lightweight post-training approach that adds uniform-replacement corruption and supervises masked and corrupted visible tokens. The reported experiments show improvements in code revision, parallel decoding, mathematical reasoning, and some from-scratch generation settings.
Strengths: All reviewers recommended accept for the following reasons
- The paper addresses an important and clearly motivated limitation of masked diffusion language models: the lack of supervision for identifying and correcting erroneous visible tokens.
- CRB is a useful benchmark contribution because it separates error localization and in-place revision from ordinary prefix completion and uses executable tests to provide deterministic evaluation.
- The ablations on clean-token supervision, mixture probability, and confidence thresholds are informative.
Weaknesses:
- The training corruption and CRB evaluation corruption are structurally similar, since both primarily involve token replacements. Evaluation on insertions, deletions, variable-length edits, or naturally occurring model errors would better demonstrate general error awareness rather than specialization to replacement-style noise (xTee, Bdfo).
- Closely related alternatives are not evaluated. The paper does not compare against the concurrent self-correction-head method or inference-time approaches based on temporal prediction dynamics, which may extract corrective signals from existing MDLMs without additional post-training (xTee, TpTB).
- The main controlled CDLM-versus-MDLM experiments and most ablations are performed only on the relatively weak Open-dCoder-0.5B model. The 16B experiments use different setups and do not provide the same matched-compute analysis, making it unclear how well the central result transfers to stronger models such as Dream-7B or LLaDA-8B. Similarly, the stability of these results isn't well represented. (Bdfo, TpTB).
Final justification
The rebuttal substantively addresses all three core weaknesses mentioned in the initial meta-review. On replacement-style noise, a new CRB variant addresses generality concerns. On missing baselines, the authors directly reimplement the self-correction head and test temporal-dynamics signals, with neither alternative matching CDLM's performance. On transfer and stability, results now extend to LLaDA-8B-Base plus paired significance tests and multi-seed runs. The 16B "matched-compute" ambiguity was also clarified as a presentation issue, not a methodological gap.
All reviewers converged to a score of 5, indicating the rebuttal resolved most concerns so I recommend accept.
Read meta-review
Meta-review
Summary: The paper studies why masked diffusion language models struggle to revise incorrect tokens that are already visible in a sequence. The authors argue that the standard absorbing-mask objective supervises only masked positions and therefore does not teach the model to distinguish correct visible tokens from corrupted ones. They introduce the Code Revision Benchmark (CRB), which evaluates error localization and in-place correction through controlled, type-preserving corruptions of executable code. They also propose Corrective Diffusion Language Models (CDLMs), a lightweight post-training approach that adds uniform-replacement corruption and supervises masked and corrupted visible tokens. The reported experiments show improvements in code revision, parallel decoding, mathematical reasoning, and some from-scratch generation settings.
Strengths: All reviewers recommended accept for the following reasons
- The paper addresses an important and clearly motivated limitation of masked diffusion language models: the lack of supervision for identifying and correcting erroneous visible tokens.
- CRB is a useful benchmark contribution because it separates error localization and in-place revision from ordinary prefix completion and uses executable tests to provide deterministic evaluation.
- The ablations on clean-token supervision, mixture probability, and confidence thresholds are informative.
Weaknesses:
- The training corruption and CRB evaluation corruption are structurally similar, since both primarily involve token replacements. Evaluation on insertions, deletions, variable-length edits, or naturally occurring model errors would better demonstrate general error awareness rather than specialization to replacement-style noise (xTee, Bdfo).
- Closely related alternatives are not evaluated. The paper does not compare against the concurrent self-correction-head method or inference-time approaches based on temporal prediction dynamics, which may extract corrective signals from existing MDLMs without additional post-training (xTee, TpTB).
- The main controlled CDLM-versus-MDLM experiments and most ablations are performed only on the relatively weak Open-dCoder-0.5B model. The 16B experiments use different setups and do not provide the same matched-compute analysis, making it unclear how well the central result transfers to stronger models such as Dream-7B or LLaDA-8B. Similarly, the stability of these results isn't well represented. (Bdfo, TpTB).
Final justification
The rebuttal substantively addresses all three core weaknesses mentioned in the initial meta-review. On replacement-style noise, a new CRB variant addresses generality concerns. On missing baselines, the authors directly reimplement the self-correction head and test temporal-dynamics signals, with neither alternative matching CDLM's performance. On transfer and stability, results now extend to LLaDA-8B-Base plus paired significance tests and multi-seed runs. The 16B "matched-compute" ambiguity was also clarified as a presentation issue, not a methodological gap.
All reviewers converged to a score of 5, indicating the rebuttal resolved most concerns so I recommend accept.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper argues that off-the-shelf masked diffusion LMs (MDLMs) cannot reliably distinguish correct from incorrect visible tokens because the standard absorbing-mask objective only supervises masked positions. The authors (i) introduce CRB, a code-revision benchmark built by applying type-preserving operator/identifier/literal substitutions to HumanEval/MBPP(+) and keeping only programs that fail tests, with controllable difficulty n_replace ∈ {1,…,5}; (ii) propose CDLM, a post-training principle that adds a uniform-replacement corruption term to the MDLM loss, supervising only masked + uniformly-corrupted visible tokens (so confidence at incorrect tokens is pushed down); (iii) distinguish this from GIDD and from BERT-style supervision of clean tokens. Experiments on Open-dCoder-0.5B (matched-compute MDLM vs CDLM, ~2K steps), HumanEval(+), Nemotron-Math-v2 fine-tuning of LLaDA2.0-mini-preview 16B, and ParallelBench with LLaDA-2.0-mini 16B show consistent improvements in error localization, in-place correction, parallel decoding on high-entropy tasks, and math/code from-scratch generation.
Strengths and weaknesses
Strengths
- Clean, well-motivated observation: the MDLM loss has no gradient at visible positions, so token-level confidence is not calibrated to correctness. Figure 1 and the gap/Top-K numbers in Table 1 are convincing motivating evidence.
- CRB is a useful contribution in its own right: type-preserving corruption + executable validation gives a clean, deterministic signal for in-place correction that prefix-completion benchmarks cannot provide.
- The post-training recipe is lightweight (~2K steps) and easy to reproduce; the matched-compute MDLM vs CDLM comparison properly isolates the objective.
- The GIDD/BERT-style vs CDLM ablation (Table 4) is sharp and informative: clean-token supervision helps T=1 but kills iterative refinement, which is a non-obvious empirical finding.
- Gains generalize beyond in-place correction to ParallelBench (high-entropy: 0.47→0.62) and to 16B math SFT (MATH-500 44.6→47.8), supporting the "error-aware confidence helps general decoding" claim.
Weaknesses
-
Single small base model for the controlled comparison. All the matched-compute CDLM vs MDLM numbers (Sec. 6.1, ablations, Figs. 4–6) come from Open-dCoder-0.5B. The 16B experiments use a different model and report only base vs vanilla SFT vs mixture SFT without controlled ablations. Replicating Sec. 6.1 on Dream-7B or LLaDA-8B would substantially strengthen the central claim.
-
Mixture probability tradeoff under-characterized. Fig. 6 shows non-monotonic behavior in α with a peak around 0.4–0.5, but the main results use α=0.1 for the 16B math run and an unspecified α for the 0.5B run. Please report which α is used in every reported number and whether the optimal α transfers across model scales and tasks.
-
Open-dCoder-0.5B is very weak. Its post-CDLM Pass@1 (≈0.20–0.29 across T) is far below Dream-7B-Base's untrained 0.776 in Table 1. Most of the headline gains in Figs. 4–5 are improvements over a weak baseline; whether the recipe lifts a strong model (Dream-7B / LLaDA-8B) to a new SOTA, or merely closes the gap to it, is the more interesting question and is not answered.
-
No paired-prompt sinificance test or seeds. All numbers single-seed. Several gaps (e.g., CDLM vs MDLM ParallelBench Replace Random 0.30 vs 0.25) are small.
-
Missing engagement with the "temporal dynamics" line of work. The central diagnostic in this paper is essentially confidence calibration at a single denoising step. Two closely related recent papers should be discussed and ideally compared:
- Time is a Feature: Exploiting Temporal Dynamics in Diffusion Language Models — argues that the trajectory of per-position predictions during denoising carries more reliable signal than a single-step max-prob. This directly competes with the paper's diagnosis: maybe off-the-shelf MDLMs do contain a usable corrective signal, just not in the static confidence c_i = max_v p(v|x). Reporting CRB localization metrics computed from temporal features (e.g., prediction stability across steps) would test whether CDLM's training-time fix is necessary or whether an inference-time temporal aggregation suffices.
- Diffusion Language Models Know the Answer Before Decoding — shows that masked-position predictions stabilize early in the denoising trajectory. If a base MDLM "knows" the right token early, then the failure shown in Table 1 is specifically a failure at visible positions (consistent with the paper's diagnosis), but the contrast also strengthens the paper's claim and should be cited explicitly. Conversely, the temporal-stability signal on visible positions (does p_θ(x_i | z) stay fixed across re-evaluations or drift?) might already separate clean from corrupted tokens without retraining. Either way, these papers reframe what counts as "no learning signal" and the paper currently does not engage with them.
Questions
- Can the controlled matched-compute comparison in Sec. 6.1 be reproduced on at least one of Dream-7B or LLaDA-8B, so that the headline result is not Open-dCoder-0.5B-specific?
- What α is used in every reported number, and how stable is the optimum across scales (0.5B vs 16B) and tasks (code vs math vs ParallelBench)?
Limitations
The paper includes a short Limitations paragraph (lines 238–241). It should additionally address the reliance on Open-dCoder-0.5B for the controlled comparison.
Final justification
The rebuttal's matched-compute LLaDA-8B experiment (Top-1 16.5%→60.8%, Pass@1 +12.5 over absorbing-only), multi-seed significance (effect 7–12× between-seed SD), and temporal-dynamics ablation (no trajectory feature improves on single-pass confidence at 5× cost) resolve my main concerns about scale generality and statistical reliability, so I raise to 5.
Formatting concerns
None observed.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a method that" aims to address a problem with masked diffusion language models: their inabilities to identify incorrect tokens' positions based on only confidence-based iterative refinement . For that, the authors introduce the Code Revision Benchmark, an executable benchmark that applies controlled type-preserving corruptions to real code to isolate error localization and in-place correction. And also, they propose a lightweight post-training objective that adds uniform-replacement corruption on visible tokens with supervision restricted to masked and corrupted positions.
Strengths and weaknesses
The problem is well stated and very significant. I found the propose fix quiet simple and well-scoped. The experimental design is clear enough to understand, and the appendix is well detailed with more evidences. Also, the created benchmark is potentially useful for broader community usage.
Regarding the weaknesses, my main concern is that the approach of mixing absorbing and uniform noise, exists in GIDD. Although the Table 2 clarifies the differences, the contribution is closer to a careful adaptation plus empirical analysis than a new idea; which itself is not a bad thing. Another concern is that the concurrent work on self-correction heads is acknowledged but never compared empirically, which should have been tested.
Questions
As I mentioned in the weaknesses, you mentioned a concurrent work but never tested it. Could you test that concurrent work (Kim et al., 2025; to be specific) with the same setups, and report the scores?
I think it is possible that in your experiments, the gains may partly reflect CDLM detecting the specific noise type it was trained on rather than general error awareness; since your training corruption (uniform random replacement on visible tokens) and CRB's evaluation corruption (random in-category token replacement) are, I guess, structurally similar. Can you tell me how you made sure that was not the case and there was true gains? Ideally, I think it will be nice to see something like running CDLM on errors that do not look like uniform replacement.
Limitations
yes
Final justification
I have raised my score to 5 and Originality to 3 because the authors addressed my main concerns during the rebuttal. They provided a empirical comparison with Kim et al. (2025), and show gains in error localization and edit precision. They also conducted new distribution-shift experiments ("Plausible CRB") that ruled out simple noise memorization. Also, their clarification of the novelty frames their work as a good empirical finding for masked diffusion language models.
Formatting concerns
N/A
1 comment
Rebuttal
We thank the reviewer for the generous assessment of the problem framing, the design and the benchmark, and for two questions we found genuinely useful. We take the originality concern seriously and address it last.
Q2: Are the gains recognition of the training noise type?
We agree this was not settled by the paper, and ran two direct tests.
(a) Errors the model itself finds most plausible. We rebuilt CRB so that each corrupted token is drawn from the base model's own top-5 predictions at that position, instead of uniformly at random from a lexical category. This is the distributional opposite of the uniform noise used in training. The shift is large: the substituted token is roughly 975 times more probable than a random in-category one for operators and 494 times for identifiers, with median rank falling from 20 to 39 down to 2. The category constraint was never relaxed, corrupted programs still had to fail their tests, and the corrupting model is the shared base checkpoint, so the construction favours no arm.
Results at n_replace=1, macro-averaged over 12 dataset by error-type cells, as in the paper:
| random CRB | plausible CRB | |||||
|---|---|---|---|---|---|---|
| Base | MDLM | CDLM | Base | MDLM | CDLM | |
| confidence gap | 0.100 | 0.094 | 0.158 | 0.054 | 0.051 | 0.084 |
| Top-1 hit rate | 0.148 | 0.148 | 0.222 | 0.093 | 0.092 | 0.129 |
| Top-6 hit rate | 0.570 | 0.570 | 0.662 | 0.456 | 0.434 | 0.512 |
| Pass@1, T=1 | 0.140 | 0.140 | 0.185 | 0.099 | 0.087 | 0.116 |
| Pass@1, T=4 | 0.259 | 0.243 | 0.288 | 0.212 | 0.187 | 0.219 |
What survives. CDLM beats compute-matched MDLM in 12 of 12 cells under both regimes, and the ordering never reverses. It is also the only arm that stays above the untrained base everywhere: the absorbing-only arm never exceeds base by more than 0.001 in any regime and falls below it in three of the four. That pins the separation to the mixture objective rather than to post-training in general. As a fraction of CDLM's advantage over MDLM carried into the plausible regime, Top-6 localisation retains 85% and Pass@1 retains 66% at T=1 and 72% at T=4.
What attenuates, stated plainly. Roughly half the Top-1 localisation margin does not survive (48%), and we would rather report that than only the favourable figures. The attenuation is concentrated in operator, where CDLM retains 35%. We believe the reason is a property of the task rather than of the method: a plausible operator swap yields perfectly idiomatic code that only a semantic reading of the docstring could reject, and every model degrades there. The absolute numbers above show this directly, since the untrained base also falls, from 0.259 to 0.212 at T=4 and from 0.100 to 0.054 in confidence gap.
The internal split is the part we find most informative. If the objective had merely memorised the training noise distribution, attenuation should scale with the size of the distribution shift. It does the opposite. The var category has the largest shift in rank (median 39 to 2) and is where the advantage is best preserved, at 70 to 76%. Note also that literal is uninformative here, since random literal replacement was already near-plausible (median rank 3), so there is no real shift to test. We flag that rather than letting it pad the average.
(b) The model's own naturally occurring errors. We took programs the models themselves generated that fail their tests, with no synthetic corruption operator at all, on failing sets from both the base and the CDLM model. We report Pass@1 only and not localisation metrics, since naturally occurring errors have no ground-truth error position.
This test does not discriminate. All three arms sit at the floor, with Pass@1 between 0.000 and 0.003 over roughly 900 programs per set. A CRB instance is one token away from a passing program, and 100% are within four. A naturally occurring generation failure is a median of 109 tokens away on HumanEval and 53 on MBPP, with only 0.3% within four. There is no error to localise, since the program was written wrong throughout. We verified this is a property of the data, not our harness: the identical pipeline scores 0.174 and 0.313 on CRB inputs, raising the step budget to T=16 changes nothing, and the remasking mechanism does fire on 12 to 28% of programs.
So this probe is uninformative about error awareness and we do not read it either way. What it gives is a boundary on scope: in-place refinement addresses localised errors, whereas end-to-end generation failure at this scale is a different regime, which is the same boundary putting insertions and deletions out of reach.
(c) Evidence already in the paper that we under-emphasised. MATH involves no in-place editing and no token-replacement corruption of any kind, so there is no corrupted token to recognise. Mixture SFT nevertheless improves MATH-500 from 44.6 to 47.8, and all four subsets, over compute-matched vanilla SFT. ParallelBench likewise has no corrupted input, and the high-entropy average rises from 0.47 to 0.62. If the objective merely installed a detector for one corruption operator, neither result could occur.
Q1: Comparison with Kim et al. (2025)
We ran it. No PRISM checkpoints are released, so we reimplemented their method and trained it on the same base checkpoint, corpus, optimizer, schedule, seed, batch size and frozen layers as CDLM, then evaluated on the identical corrupted programs with the identical evaluator:
| arm | Pass@1 T=1 | Pass@1 T=4 | conf. gap | Top-1 hit |
|---|---|---|---|---|
| Base | 14.31 | 25.12 | 0.1060 | 14.7 |
| MDLM (absorbing-only, matched) | 13.72 | 23.74 | 0.0952 | 14.0 |
| CDLM (ours) | 18.83 | 28.58 | 0.1687 | 22.8 |
| PRISM quality head, τ = 0.9 as prescribed | 13.22 | 16.65 | 0.0865 | 11.1 |
| PRISM quality head, exact edit parity | 10.72 | 13.40 | 0.0865 | 11.1 |
The comparison is budget-controlled. Their quality score is a sigmoid on a different scale from a token likelihood, and their sampler does not threshold, so comparing at our τ = 0.9 would confound mechanism with calibration. We therefore also ran their head in its native top-k ranking mode, with k replayed per sequence and per step from CDLM's realised edit counts, verified to be exact (663/663, 1611/1611, 468/468). Both methods then make the same number of edits on the same programs and differ only in which tokens they select. The gap and Top-1 are identical across both head configurations, as they must be, since those are properties of the score rather than the threshold. That identifies the difference as localisation quality rather than threshold tuning: their head localises below the untrained base (Top-1 11.1 against 14.7) while at τ = 0.9 editing nearly twice as many tokens (5.72% against 3.09%). Since a CRB program is one token from passing, rewriting a correct one adds a second error, so imprecise edits compound with depth. Base gains 10.8 points from T=1 to T=4; their head gains 3.4.
We believe the honest explanation is task fit rather than method quality, and we would like to state it in their favour. PRISM targets self-correction during generation, whereas CRB presents a complete program the model did not write and asks which of its visible tokens are wrong. Their released sampler skips any block containing no mask tokens, so a fully-visible corrupted program is returned unchanged, and their head is only ever supervised on tokens the model has just generated inside a still-masked sequence. Applying it to in-place repair required two adaptations on our side, both made in their favour. We make no claim about their method in the setting their paper actually evaluates.
On originality
We accept the reviewer's framing that combining absorbing and uniform noise is not itself new, and that the paper should not have leaned on that combination as the contribution. We would like to restate what the contribution is, since Table 2 evidently did not convey it.
The question the paper answers is which positions should be supervised, and the finding is that the answer is dictated by the decoding procedure rather than by the noise process. GIDD- and BERT-style training supervise all positions, clean visible tokens included. Under decoding where every token may change at every step, that is harmless. Under remask-then-repredict decoding, which is what makes localised in-place revision possible at all, it is actively destructive. Supervising clean tokens makes the model confident everywhere after the first step, the set of positions falling below the remasking threshold empties, and the iterative channel closes on itself. The cost is invisible at a single step (+0.020 at T=1) and severe under refinement (−0.097 at T=4). Paired tests on per-problem outcomes confirm both directions of this crossover are significant (T=1: −0.026, p = 8.1e-4; T=4: +0.078, p = 3.4e-17).
This failure mode cannot be observed inside the GIDD framework, since GIDD does not gate edits on confidence. It appears only once one asks how a mixture objective interacts with confidence-gated decoding. Another reviewer independently described this result as a "non-obvious empirical finding", and we now treat it as the paper's central claim rather than as an ablation.
The post-training framing is a consequence of this rather than a separate claim. Since the change is confined to which positions enter the loss, it applies to an already-pretrained MDLM, which is what allowed us to test the claim on LLaDA-8B within this response period without a pretraining budget.
Changes to the paper.
We thank the reviewer again for two questions that improved the paper. If the response resolves your concerns we would be grateful if you would consider revisiting your assessment, and we would gladly run further controls during the discussion period.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies why masked diffusion language models (MDLMs) fail to revise incorrect tokens that are already visible in a sequence, and traces the cause to a training objective that supervises only masked positions, leaving the model without a signal to tell correct tokens from erroneous ones. The authors define "corrective behavior" as assigning lower confidence to wrong tokens and refining them while keeping correct content, and they propose a post-training method that adds a uniform-replacement corruption term so the model also learns from visible corrupted tokens (they call the result a Corrective Diffusion Language Model, or CDLM). To measure this, they introduce the Code Revision Benchmark (CRB), which applies type-preserving token corruptions to executable code and verifies fixes by running tests. Across experiments at the 0.5B and 16B scale, the method improves error localization and in-place correction over a matched MDLM baseline, and also raises performance on from-scratch code generation, parallel decoding (ParallelBench), and mathematical reasoning (MATH), while a comparison with an autoregressive editor shows the diffusion approach reaches similar accuracy with far fewer forward passes.
Strengths and weaknesses
Strengths: The paper identifies a specific mechanism behind a known failure of masked diffusion language models, namely that the standard objective supervises only masked positions and so provides no signal to distinguish correct from incorrect visible tokens. It isolates the training objective as the single variable through a matched-data, matched-compute comparison between the absorbing-only baseline and the proposed mixture objective, which supports the causal claim. It contributes an executable benchmark (CRB) that uses test execution as ground truth and controls error type and corruption count, separating error localization and in-place correction from prefix completion. The method is a post-training step of around 2000 steps rather than a full retraining, and the paper reports gains across multiple settings: error localization, in-place correction, from-scratch code generation, parallel decoding, and math at the 16B scale. It includes ablations on mixture probability, confidence threshold, and clean-token supervision, plus a controlled Sudoku study and an efficiency comparison against an autoregressive editor.
Weaknesses: The paper reports point estimates without error bars or significance tests, and states that repeated runs were not performed at the 16B scale, so the stability of the reported differences is unverified. CRB covers only fixed-length, type-preserving token replacements with one to five corrupted positions, so insertions, deletions, and variable-length edits are outside its scope, which limits the range of revision the benchmark can assess. On MBPP and MBPP+ the method falls below the base model, which the authors attribute to a distribution shift from fine-tuning rather than demonstrate. Several results depend on a fixed confidence threshold and a chosen mixture probability, and the ablations show the mixture probability has a non-monotonic effect, so performance is sensitive to hyperparameter choices. The autoregressive comparison uses a single model under specified prompting strategies, and the main correction gains, while present, provides some weak results in several conditions.
Questions
The MBPP/MBPP+ drop below the base model is attributed to distribution shift from Nemotron fine-tuning. Can you provide direct evidence for this attribution, for example results from fine-tuning on an MBPP-aligned corpus or a measure of the shift?
Given the absence of error bars and the single 16B run, how stable are the reported CDLM-over-MDLM gaps under repeated runs or different seeds?
Limitations
There is a brief limitations section, further developed in the annex.
Final justification
I checked the (careful) reply of the authors. Although the paper has improved, I see no major reason to increase the score, which is already positive.
Formatting concerns
No concerns.
2 comments
Rebuttal
We are grateful to the reviewer for the careful reading, and for recognising the matched-data, matched-compute design. Both questions point at genuine gaps, and we have run new experiments to address them.
Q1: Direct evidence for the MBPP/MBPP+ attribution
The reviewer is right that we asserted this rather than demonstrated it. We have now measured the shift directly.
New measurement. We compute the masked-reconstruction loss, which is the training objective itself, for CDLM on five distributions: a held-out slice of the fine-tuning corpus, and the four evaluation benchmarks. Losses are paired over identical mask patterns and averaged over mask ratios {0.15, 0.3, 0.5, 0.7} with three random seeds. Values are the change relative to the base checkpoint, so a negative number means the model became better at that distribution after fine-tuning, and a positive number means it became worse.
| distribution | Δ loss vs base (nats/token) |
|---|---|
| Nemotron held-out (fine-tuning corpus) | −0.269 |
| HumanEval | +0.037 |
| HumanEval+ | +0.045 |
| MBPP | +0.053 |
| MBPP+ | +0.061 |
Three things follow. First, fine-tuning moved the model decisively toward the fine-tuning corpus, a loss reduction of roughly 19%. Second, it moved the model away from all four evaluation benchmarks, with every cell significant at p < 1e-4. Third, and most directly relevant to the reviewer's question, the movement is asymmetric in exactly the direction the appendix claims: the MBPP family degrades by +0.056 on average against +0.041 for the HumanEval family (Welch p = 2e-5).
We also checked one obvious confound. MBPP programs are considerably shorter than HumanEval programs, and masked-reconstruction loss rises as context shrinks, so the asymmetry could in principle be a length effect. Restricting all four benchmarks to a common 40 to 200 token window preserves it (+0.052 against +0.039, p = 7e-4). The asymmetry is therefore a property of the distributions rather than of program length.
Supporting evidence already in the paper. We would also point to a comparison we reported in the appendix but did not emphasise, since it speaks to whether the objective is responsible at all:
| Vanilla decoding | HumanEval | HumanEval+ | MBPP | MBPP+ |
|---|---|---|---|---|
| Base | 0.190 | 0.170 | 0.157 | 0.231 |
| MDLM (compute-matched) | 0.190 | 0.170 | 0.106 | 0.177 |
| CDLM | 0.220 | 0.210 | 0.131 | 0.207 |
| MDLM − Base | 0.000 | 0.000 | −0.051 | −0.054 |
| CDLM − Base | +0.030 | +0.040 | −0.026 | −0.024 |
Both fine-tuned arms regress on MBPP relative to base, and they receive identical data and identical compute. The only difference between them is the training objective. If the mixture objective were responsible for the regression, CDLM should regress more than the absorbing-only baseline. Instead it regresses roughly half as much. The comparison for which the objective is actually accountable, CDLM against compute-matched MDLM, favours CDLM on MBPP and MBPP+ under both decoding variants, as it does elsewhere in the paper.
What we will change. We will soften the appendix wording from an explanation to a contributing factor. The shift is real, directional and MBPP-biased, but it is mild, roughly 6% of the base model's MBPP loss, and we do not think it accounts on its own for the full size of the Pass@1 gap.
Q2: Stability of the CDLM-over-MDLM gaps
We agree this needed addressing, and we separate two sources of variance.
(a) Finite-problem-sample uncertainty. Since every arm is evaluated on the same problems, a paired design removes per-problem difficulty variance, which is the largest component. We ran exact McNemar tests and 10,000-resample paired bootstraps over per-problem outcomes, pooled over 4 datasets, 3 error types and 5 corruption levels (N ≈ 9,090):
| CDLM − MDLM | T=1 | T=2 | T=3 | T=4 |
|---|---|---|---|---|
| difference | +0.029 | +0.070 | +0.062 | +0.067 |
| 95% CI | [+.024,+.035] | [+.062,+.078] | [+.054,+.070] | [+.059,+.075] |
| McNemar p | 4.6e-29 | 8.4e-65 | 3.6e-50 | 1.6e-57 |
The result is significant at every refinement depth, in all four datasets at every depth, and in 18 of 20 cells; 50 of the 60 cells in the full family survive Benjamini-Hochberg FDR at q < 0.05. No cell anywhere shows CDLM significantly worse than MDLM or Base. Since the CRB corruptions were drawn per model, we also report an identical-stimulus subset restricted to items whose corrupted program is byte-identical across arms (N ≈ 6,200). Conclusions are unchanged (T=1: +0.027, p = 4.4e-22).
The clean-token ablation is likewise significant, including its crossover. At the exact Table 4 setting, clean-token supervision is significantly better at T=1 (−0.026, p = 8.1e-4) and significantly worse from T=2 onward, reaching +0.078 at T=4 (95% CI [+0.060, +0.096], p = 3.4e-17).
(b) Training-seed variance. We retrained both arms with two additional seeds, giving n=3 per arm, and re-evaluated all six checkpoints under one frozen pipeline snapshot:
| CDLM (n=3) | MDLM (n=3) | difference | difference / between-seed SD | |
|---|---|---|---|---|
| Pass@1, T=1 | 0.1887 ± 0.0057 | 0.1390 ± 0.0003 | +0.0497 | 12.4× |
| Pass@1, T=4 | 0.2858 ± 0.0024 | 0.2435 ± 0.0081 | +0.0423 | 7.1× |
| confidence gap | 0.1599 ± 0.0090 | 0.0957 ± 0.0017 | +0.0642 | 9.9× |
| Top-1 hit rate | 0.2233 ± 0.0093 | 0.1445 ± 0.0022 | +0.0788 | 11.7× |
The effect is between seven and twelve times the between-seed standard deviation, and the separation is complete. The worst CDLM seed exceeds the best MDLM seed by +0.0436 at T=1 and +0.0326 at T=4, and all nine cross-arm seed pairs favour CDLM on every metric (Welch p = 0.003 to 0.008). We should note that with three seeds per arm a Mann-Whitney test cannot return below p = 0.10, and it attains exactly that value, which indicates perfect separation rather than a null result. The seed-42 checkpoints reproduce the published τ=0.9 row (CDLM 0.1888 against 0.188 as reported), which confirms the pipeline is the same one.
Two honest notes. Ten of the sixty cells are not significant, almost all at T=1 where absolute Pass@1 is only 1 to 4%. And the clean-token effect, while robust in aggregate and on three of four datasets, is not uniform across datasets.
Scope of CRB
We agree that fixed-length, type-preserving substitution is a real limitation. We would like to be precise about why, since it is a property of the decoding model rather than of the benchmark design. Remask-then-repredict operates on a fixed-length token sequence, so a position can be masked and rewritten but none can be created or deleted. Insertions, deletions and variable-length edits therefore fall outside what in-place diffusion refinement can currently express. Supporting them requires a variable-length formulation, which we see as the natural next step.
We read the underlying concern as being about whether the model generalises past the corruption it was trained on, and we have addressed that directly rather than by widening the edit type. First, we rebuilt CRB so that each corrupted token is drawn from the base model's own top-5 predictions at that position, which is the distributional opposite of uniform noise. CDLM still beats matched MDLM in 12 of 12 cells, retaining 72% of its Pass@1 advantage at T=4 and 85% of its Top-6 advantage, although roughly half the Top-1 margin does attenuate. Second, we repaired the models' own naturally occurring failures, which involve no synthetic corruption operator at all. That test does not discriminate, since all three arms sit at the floor. The full table, with absolute values for all three arms under both corruption regimes, is in our reply to Reviewer xTee (Q2).
Autoregressive comparison
We take the reviewer's point that this comparison rests on a single model under specified prompting. Its role is narrower than a general claim: it establishes that bidirectional in-place repair reaches comparable accuracy with far fewer sequential forward passes, under the prompting strategy most favourable to the autoregressive editor. We will state that scope explicitly.
Changes to the paper.
We thank the reviewer again for two questions that pointed at genuine gaps rather than at presentation, and we hope the new measurements fill them. We would be glad to answer any further questions during the discussion period, and to run additional controls if that would be useful.
I thank the authors for the careful reply and additional work done.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for a detailed review, and in particular for the observation that Table 4 is the paper's non-obvious result. We now treat it as the central claim rather than as an ablation.
Q1: Reproducing the controlled comparison on a larger backbone
We did this on LLaDA-8B-Base, chosen over Dream-7B deliberately: LLaDA is a pure masked-diffusion pretrain, whereas Dream-7B is initialised from an autoregressive checkpoint (Qwen2.5-7B, as its paper states), which would confound a claim about what the masked-diffusion objective induces.
Both arms are byte-identical except for the objective: same corpus, 2000 steps, cosine schedule, seed 42, LoRA setup (r=64, α=128, embeddings and lm_head frozen), global batch 12, length 4096. CRB at n_replace=1, macro-averaged over 4 datasets and 3 error types, τ=0.9:
The asymmetry between the two fine-tuned arms is, we think, the substance of the result. Absorbing-only training raises Pass@1 from 55.1 to 60.0, but leaves Top-1 localisation unchanged and slightly worse, from 16.5% to 15.2%. It sharpens the model in general without making the wrong token itself identifiable. Only the mixture objective does that, taking Top-1 from 16.5% to 60.8%, a fourfold improvement, and Pass@1 to 72.5, or 12.5 points over the compute-matched baseline. That is the paper's thesis stated as directly as our data can, at 16 times the original scale.
The effect appears early. After only 200 steps, roughly 9.8M tokens, the confidence gap is already 0.790 for CDLM against 0.258 for the absorbing-only arm, with Top-1 at 53.0% against 10.5%.
On whether the recipe reaches a new state of the art or merely closes the gap, the honest answer is the latter. CDLM reaches 72.5 against Dream-7B-Base's 77.6, recovering roughly 77% of the distance from LLaDA-8B's starting 55.1 but remaining 5.1 points short. Our claim is about the objective under a controlled comparison rather than about topping the table.
We would add one observation on the Table 1 ordering that supports the paper's thesis. Dream-7B-Base is by a wide margin the strongest model on CRB without any correction-specific training, and it is also the only one tested that is initialised from an autoregressive checkpoint. That is consistent with corrective behaviour being inherited from autoregressive pretraining rather than induced by the masked-diffusion objective.
One limitation we observed and did not anticipate: CDLM's margin over base narrows at T=4, because a substantial fraction of HumanEval+ samples exhaust the step budget without converging under τ = 0.9 and begin to drift. That is a real limitation of threshold-based refinement at this scale.
Q2: Which α is used where, and does the optimum transfer
Every reported number uses α = 0.1, λ_noise = 0.1, clean-token weight = 0 and seed 42, at both 0.5B and 16B, for code, math and ParallelBench alike. We will include the full per-experiment hyperparameter table in the appendix.
On whether the optimum transfers, it does not need to, because we never sat at the optimum and never looked for it. α = 0.1 was fixed a priori as a round default before any sweep existed, and was never revisited. The sweep was run later purely as a post-hoc sensitivity analysis, and no value of α was ever chosen on the basis of an evaluation score.
That matters because α = 0.1 turns out to be conservative. Sweeping twelve values on HumanEval at τ = 0.9, the region containing our operating point is a flat plateau, with every α in [0.04, 0.20] landing between 0.091 and 0.119, while 0.3 to 0.7 reaches 0.15 to 0.21. The reported gains are therefore a lower bound rather than a tuned maximum.
We have also extended the sweep along a second axis, evaluating every α at T = 4 as well as T = 1:
The trade-off holds at both depths and is cleaner at T=4: a flat low-α plateau, a better middle range, and a sharp collapse above α = 0.8 that falls below even the lowest-α setting. Excessive corruption therefore damages iterative refinement specifically, the same failure mode as the clean-token ablation in Table 4, since in both cases the model cannot use additional steps productively. We describe the good region as an interval rather than naming a peak, because with a single seed the differences within 0.3 to 0.7 are not separable and the T=1 and T=4 maxima do not coincide.
W5: Temporal prediction dynamics
We are grateful for these pointers. We will add both papers and a related-work subsection on temporal signals, and have run the proposed experiment.
One structural point first, since it shapes what the experiment can be. Temporal-dynamics methods read a signal off the denoising trajectory. In in-place revision there is no trajectory to read: the input is a fully visible corrupted program with no masked positions, repeated forward passes are deterministic and identical, and localisation must be decided from a single pass before any edit. A trajectory has to be induced before these methods apply.
We induced the strongest available one, unrolling the refinement loop itself, and scored four trajectory features against the single-pass baseline under our exact Gap and Top-K protocol, over 540 runs and 83,332 programs spanning 9 models, 4 datasets, 3 error types and 5 corruption levels:
No trajectory feature improves on the single-pass signal, at five times the cost. Broken down by model, they help only the weakest backbone and clearly hurt the stronger ones. One feature, confidence slope in reversed orientation, attains a higher Hit@1 of 0.434, but restricting it to the positions the single-pass signal already flags yields the same value of 0.439, so it re-ranks that shortlist rather than contributing new candidates, and its global ranking is far worse (AUROC 0.735).
We should note one honest limitation. This trajectory is generated by the confidence-threshold policy itself, so it is not an independent probe, and an unconditional per-position re-scoring at every step is not recoverable from logged runs. We think that cuts in the paper's favour as much as against it: on a fully visible input there is no trajectory except the one the policy creates.
We would add that Diffusion LMs Know the Answer Before Decoding supports our diagnosis. If predictions at masked positions stabilise early, then the failure we document is specifically a failure at visible positions, which are exactly the positions the absorbing objective never supervises.
W3: Absolute performance of Open-dCoder-0.5B
The reviewer is right that the 0.5B numbers are low in absolute terms, and the 8B result above is the direct answer. We will add this to Limitations, since the ablation suite was run only on Open-dCoder-0.5B.
W4: Seeds and significance
We report both variance components.
Finite-problem-sample. Paired exact McNemar tests over per-problem outcomes (N ≈ 9,090) give CDLM above MDLM at every refinement depth: +0.029, +0.070, +0.062 and +0.067 for T = 1 to 4, all at p < 1e-28, significant in all four datasets, with 50 of 60 cells surviving Benjamini-Hochberg FDR at q < 0.05. An identical-stimulus subset restricted to byte-identical corrupted programs reproduces this (T=1: +0.027, p = 4.4e-22). No cell anywhere shows CDLM significantly worse than MDLM or Base.
Training-seed. We retrained both arms with two further seeds, giving n=3 per arm, and re-evaluated all six checkpoints under a single frozen pipeline snapshot:
The effect is between seven and twelve times the between-seed standard deviation, and separation is complete. The worst CDLM seed beats the best MDLM seed by +0.0436 at T=1 and +0.0326 at T=4, with all nine cross-arm seed pairs favouring CDLM on every metric (Welch p = 0.003 to 0.008). We should note that a 3-versus-3 Mann-Whitney test cannot return below p = 0.10 and attains exactly that, which reflects perfect separation rather than a null. The seed-42 checkpoints reproduce the published τ=0.9 row (CDLM 0.1888 against 0.188).
On the ParallelBench gaps specifically, the reviewer is right to be sceptical of Replace-Random at 0.30 against 0.25. At roughly 200 instances per task a gap of that size is not individually detectable, and we will not claim it. The load-bearing result there is the high-entropy average, from 0.47 to 0.62, and we will say explicitly that per-task differences of a few points should not be read as individually significant.
Changes to the paper.
We hope these experiments address the points the review raised. We would be happy to run further controls during the discussion period if anything remains unclear, and should the response resolve your concerns, we would be grateful if you would consider revisiting your assessment.