potentialpaper

Diffusion Language Models Can Approximate Optimal Infilling Lengths Implicitly

Hengchang Liu, Zhao Yang, Bing Su

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Diffusion language models (DLMs) provide a bidirectional generation framework naturally suited for infilling, yet their performance is constrained by the pre-specified infilling length. In this paper, we show that DLM first-step confidence can provide a useful signal for infilling length. We identify two key statistical phenomena in the first-step denoising confidence: a local Oracle Peak\textit{Oracle Peak} that emerges near the ground-truth length and a systematic Length Bias\textit{Length Bias} that often obscures this signal. By leveraging this signal and calibrating the bias, our training-free method $ \textbf{CAL} (\textbf{C}alibrated\ \textbf{A}daptive\ \textbf{L}ength) $ selects an infilling length through a search before formal decoding. On LLaDA-Base Single-Line infilling, CAL improves average Pass@1 from 44.8% to 65.4% across four initial lengths; gains reach 47.7pp over Fixed and 40.5pp over the chat-based adaptive baseline at Linit=4L_{init}=4. Text-infilling gains reach 8.5pp in BLEU-2 and 9.9pp in ROUGE-L. These results establish calibrated first-step confidence as an effective and practical signal for training-free adaptive length control in DLM infilling. Code is available at https://github.com/NiuHechang/Calibrated_Adaptive_Length.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Initial Meta-Review

This paper proposes CAL, a training-free method that estimates infilling length for diffusion language models using calibrated first-step denoising confidence. Reviewers found the core observation useful and the cross-model, cross-domain results promising.

The main concern is the scope and robustness of the empirical claim. It remains unclear whether the Oracle Peak and fitted length-bias calibration remain reliable for longer contexts and spans, different tokenizers or DLM training paradigms, and unseen domains without recalibration.

A second concern is the distinction between reference length and truly optimal infilling length. In open-ended text infilling, multiple valid completions may have different lengths, so evaluating against the ground-truth length may bias the analysis and overstate how closely CAL approximates the optimal length.

Finally, the paper lacks a systematic compute–performance analysis. CAL introduces additional probing and search steps, but it is unclear whether this extra compute is better spent on length adaptation or on additional denoising steps, especially for longer infills.

For the rebuttal, please focus on:

  1. Clarifying the robustness of CAL across longer spans, broader model/tokenizer settings, and unseen domains.
  2. Distinguishing ground-truth, oracle, and genuinely optimal infilling length, particularly for open-ended generation.
  3. Providing a compute-matched comparison between length search and additional decoding, and qualifying the efficiency claims accordingly.

Addressing these points would substantially strengthen the paper for the final discussion.

Final justification

Final ratings are 4/4/4, with two reviewers raising their scores after rebuttal.

Reviewers agree the core observation is simple, useful, and well-supported: a single code-fitted bias curve transfers across four checkpoints, two tokenizer families, and three text domains without re-fitting, and the method drops into existing pipelines at modest cost. The rebuttal addressed the substantive concerns directly — compute-matched comparison against additional decoding steps (+3.00/+2.83 Pass@1 at equal forwards), stronger fixed-length baselines at L=48/64, long-span results at 160–240 tokens, calibration-set-size ablations, alternative confidence scores, and new image-conditioned experiments on LaViDa and LLaDA-V. The authors also appropriately narrowed the claims, distinguishing oracle from optimal length, conceding the double-exponential form is an empirical ansatz rather than a derived result, and moderating the headline +47.7 figure to a maximum rather than typical gain. Remaining limitations — no mechanistic theory, static offline calibration, and initialization-dependent search range — are honestly scoped and do not undercut the empirical contribution; I recommend acceptance and encourage the authors to include the new results and revised claims appearing in the camera-ready.

Area Chair HShh · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Initial Meta-Review

This paper proposes CAL, a training-free method that estimates infilling length for diffusion language models using calibrated first-step denoising confidence. Reviewers found the core observation useful and the cross-model, cross-domain results promising.

The main concern is the scope and robustness of the empirical claim. It remains unclear whether the Oracle Peak and fitted length-bias calibration remain reliable for longer contexts and spans, different tokenizers or DLM training paradigms, and unseen domains without recalibration.

A second concern is the distinction between reference length and truly optimal infilling length. In open-ended text infilling, multiple valid completions may have different lengths, so evaluating against the ground-truth length may bias the analysis and overstate how closely CAL approximates the optimal length.

Finally, the paper lacks a systematic compute–performance analysis. CAL introduces additional probing and search steps, but it is unclear whether this extra compute is better spent on length adaptation or on additional denoising steps, especially for longer infills.

For the rebuttal, please focus on:

  1. Clarifying the robustness of CAL across longer spans, broader model/tokenizer settings, and unseen domains.
  2. Distinguishing ground-truth, oracle, and genuinely optimal infilling length, particularly for open-ended generation.
  3. Providing a compute-matched comparison between length search and additional decoding, and qualifying the efficiency claims accordingly.

Addressing these points would substantially strengthen the paper for the final discussion.

Final justification

Final ratings are 4/4/4, with two reviewers raising their scores after rebuttal.

Reviewers agree the core observation is simple, useful, and well-supported: a single code-fitted bias curve transfers across four checkpoints, two tokenizer families, and three text domains without re-fitting, and the method drops into existing pipelines at modest cost. The rebuttal addressed the substantive concerns directly — compute-matched comparison against additional decoding steps (+3.00/+2.83 Pass@1 at equal forwards), stronger fixed-length baselines at L=48/64, long-span results at 160–240 tokens, calibration-set-size ablations, alternative confidence scores, and new image-conditioned experiments on LaViDa and LLaDA-V. The authors also appropriately narrowed the claims, distinguishing oracle from optimal length, conceding the double-exponential form is an empirical ansatz rather than a derived result, and moderating the headline +47.7 figure to a maximum rather than typical gain. Remaining limitations — no mechanistic theory, static offline calibration, and initialization-dependent search range — are honestly scoped and do not undercut the empirical contribution; I recommend acceptance and encourage the authors to include the new results and revised claims appearing in the camera-ready.

1 comment
Authors · CommentOpenReview ↗

Response to Meta Review

Thank you for highlighting the key issues. We have addressed the concerns raised in all three reviews. Reviewer eCz8 is the only reviewer to join the second-round discussion so far, and confirmed our response addressed their concerns and raised their score from 3 to 4. Below, we summarize how we addressed the three key concerns in the meta-review.

  1. Robustness: The original study shows that one code-fitted curve transfers across four checkpoints, two tokenizer families, and three text domains without re-fitting. We add tests on calibration-set size, alternative confidence scores, 160~240 token spans, and image-conditioned caption infilling with LaViDa and LLaDA-V. Experiment results demonstrate the robustness of CAL on longer spans, broader tokenizers, unseeen domains and even multi-modal models. See W1, Q2 for Reviewer ZMRX; W2/Q2, W3/Q3 (follow-up) for Reviewer rLPH and W1, Q3 for Reviewer eCz8.
  2. Length definitions: We define oracle length as the ground-truth length and clarify that it is not necessarily the optimal length, especially for open-ended text. CAL does not use ground-truth length at inference. See W2/Q1 for Reviewer ZMRX.
  3. Compute: At Linit=32L_{\mathrm{init}}=32, CAL-search outperforms a fixed-length baseline that spends the same extra budget on decoding by 3.00/2.83 Single-/Multi-Line Pass@1 points, under approximately 32 total forwards and similar wall time. We will qualify the efficiency claim accordingly. See W4/Q1 for Reviewer eCz8.

Together, these results address the three key concerns identified in the meta-review. We will include the new results and clarified scope in the revised paper to improve paper quality.

Reviewer eCz8OpenReview ↗
Rating
4/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 studies variable-length infilling in masked diffusion language models (DLMs), where the infilling length must be specified before decoding. The authors observe that the first-step denoising confidence over a fully masked block contains two signals: an "Oracle Peak" near the ground-truth length and a monotonic "Length Bias" that increasingly suppresses this peak as the candidate length grows. To address this issue, they fit a double-exponential bias function, normalize the first-step confidence by this bias estimate, and perform bidirectional hill-climbing to select the infill length before decoding. The resulting method, CAL, is training-free and incurs only a small number of additional first-step forward passes. Experiments on four DLMs across both text and code infilling benchmarks show consistent improvements over fixed-length decoding and an adaptive baseline.

Strengths and weaknesses

Strengths.

  • The main observation is simple and useful: first-step denoising confidence already contains a length signal, and much of the masking-length bias can be removed with a fitted decay curve. This gives a clean, training-free mechanism that is easy to add to existing DLM infilling pipelines.

  • The paper evaluates four DLMs across both text and code domains, includes effective ablations, and reports a diverse set of metrics. The cross-model and cross-domain transfer of a single bias curve is compelling evidence that the length bias is a general phenomenon.

Weaknesses.

  • For long-length infilling, the paper does not establish whether extra compute is better spent on length adaptation or on more decoding steps. The paper never reports the number of denoising steps used for decoding, and never compares CAL against a fixed but imperfect length decoded with the same extra compute spent on additional decoding steps. The paper also did not evaluate CAL on realistic long infilling tasks (e.g., around 200 tokens).

  • The multi-line code setting appears to starve the fixed-length baseline. The average oracle length is about 46.8 tokens, but the fixed grid stops at L=32, and Pass@1 is still increasing across tested length. Fixed lengths near and above the oracle, such as 48 and 64, would make the comparison convincing.

  • The headline "+47.7 pp" gain comes from the single-line case with a severely underestimated initial length and a short oracle length. Gains shrink at more conservative initial lengths and are marginal in text benchmarks. The method remains useful, but the typical-case significance is more incremental than the abstract framing suggests, especially given the roughly constant inference overhead.

  • The paper lacks a systematic analysis of the compute–performance trade-off. Since CAL's performance is closely tied to search-stage compute (e.g., increasing (D) may improve accuracy but also increases inference cost), this trade-off should be a central focus of the main text. Such an analysis is important for evaluating CAL's practicality in real-world deployment.

Questions
  • For long-length infilling, can the authors compare pass@1 of CAL's length adaptation against a fixed but imperfect length decoded with the same extra compute spent on additional decoding steps. Also state the number of denoising steps used for formal decoding. Showing whether marginal compute is better spent on length search or on decoding would directly strengthen the effectiveness of CAL on long tasks.

  • Please add fixed lengths near and above the multi-line oracle, such as 48 and 64. Does CAL still improves the baseline with suboptimal initial length, and by how much?

  • The current confidence score is averaged top-1 probability. Have you tested distribution-level alternatives such as entropy, self-certainty, or the top-1/top-2 probability margin?

  • Since the related work includes training-based variable-length DLM infilling, one such comparison or a careful cost discussion would help characterize CAL's trade-off: one-time training cost versus persistent per-sample inference overhead.

Limitations

yes

Final justification

The authors adequately addressed my concerns during the rebuttal. Overall, this is a good empirical study with potential for practical applications in DLM-based infilling tasks.

Formatting concerns

no

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer. We ran four additional experiments.

W1 - Long-length infilling. We evaluated 108 HumanEval Multi-Line examples whose ground-truth lengths are 160-240 tokens using LLaDA-Base. Fixed and CAL both start from L=200L=200 ; CAL searches up to 256 using the original code-fitted B(L)B(L) without re-fitting.

Method Pass@1 Avg. LL GT LenErr Search FWD Decode FWD Total FWD Avg. wall time/sample (s)
Reference length ( L=LgtL=L_{\mathrm{gt}} ) 76.85 189.59 0.00 0.00 189.59 189.59 23.685
Fixed-200 20.37 200.00 22.37 0.00 200.00 200.00 24.936
CAL-200 40.74 200.32 22.42 13.93 200.32 214.25 26.693

CAL raises Pass@1 from 20.37% to 40.74% with about 7% more forwards and wall time. Despite its similar mean length, CAL changes the canvas on 95/108 examples. The mean absolute change is 4.06 tokens, with selected lengths of 184-217. The 76.85% reference-length result shows that this backbone can solve many 160-240-token cases. Absolute span length is therefore not the only bottleneck. Initialization and search range also matter: with the original Linit=32,Lmax⁡=128L_{\mathrm{init}}=32,L_{\max}=128 , CAL selects 36.04 tokens on average and at most 91 on this subset. CAL can refine a canvas initialized near 200, but cannot bridge the gap from 32 to about 200. We will revise the discussion of Appendix Table 11 to state this boundary instead of an absolute “ >50>50 tokens” threshold.

W4/Q1 - Compute-matched search versus additional decoding. The sampler uses S=LS=L by default. Once S≥LS\ge L , extra steps release no tokens and do not change the output. Thus, reallocating the 200-token experiment's 14 search forwards to S>200S>200 would be a null baseline. We instead use the standard HumanEval Single-/Multi-Line tasks with LLaDA-Base and Linit=32L_{\mathrm{init}}=32 . Starting from S=16S=16 , we spend about 16 extra forwards on either S=32S=32 decoding or CAL search with S=16S=16 .

Task Method Pass@1 Search FWD Decode FWD Total FWD Avg. wall time/sample (s)
Single Fixed-fast 44.59 0.00 16 16.00 1.191
Single Fixed-full 48.98 0.00 32 32.00 2.382
Single CAL-search 51.98 15.72 16 31.72 2.347
Multi Fixed-fast 24.90 0.00 16 16.00 1.225
Multi Fixed-full 27.63 0.00 32 32.00 2.438
Multi CAL-search 30.46 15.33 16 31.33 2.384

Using the displayed values, the extra budget gives 4.39/2.73 points through decoding and 7.39/5.56 through search. At about 32 total forwards, CAL exceeds Fixed-full by 3.00/2.83 points with similar wall time. We will report search, decoding, and total forwards and frame efficiency as a quality-compute trade-off. In Appendix H.2, Table 16, Single-Line at Linit=8L_{\mathrm{init}}=8 gives 71.4/74.4/74.4 Pass@1 with 7.3/12.2/14.4 search forwards for D=2/4/5D=2/4/5 . This shows both the gain and its saturation.

W2/Q2 - Stronger Multi-Line fixed lengths. The original grid did not cover lengths near the average ground-truth length. We added L=48,64L=48,64 for both LLaDA-Base and LLaDA-Instruct.

Model Initial/fixed LL Fixed Pass@1 CAL Pass@1 Gain
LLaDA-Base 48 28.50 31.71 +3.20
LLaDA-Base 64 29.96 31.50 +1.54
LLaDA-Instruct 48 32.51 34.87 +2.36
LLaDA-Instruct 64 31.88 34.58 +2.69

Gains use unrounded scores. Stronger fixed lengths narrow the gain, but CAL still improves all four settings by 1.54-3.20 points. We will present CAL as per-example adaptation when the length is unknown, not as a large gain over every fixed length.

W3 - Headline gain. We agree that +47.7 points is the maximum pointwise gain, not a typical gain. We will say so and moderate the abstract. In Table 2, the LLaDA-Base averages over L=4,8,16,32L=4,8,16,32 rise from 44.8% to 65.4% on Single-Line and from 15.4% to 24.3% on Multi-Line. The stronger L=48,64L=48,64 baselines in R3-W2/Q2 give gains of 1.54-3.20 points. For text, we will report the Table 3 per-domain average gains: 2.1-4.5 BLEU-2 and 3.2-4.5 ROUGE-L points.

Q3 - Alternative confidence scores. We compare top-1 with the top-1/top-2 margin and entropy certainty 1−H(p)/log⁡∣V∣1-H(p)/\log|\mathcal V| . Each alternative uses its own curve fitted on the same 100 examples. Only length search changes; formal decoding retains the original remasking rule.

LinitL_{\mathrm{init}} Top-1 Margin Entropy
4 70.42 69.88 73.74
8 73.53 73.31 75.67
16 65.17 63.99 65.81
32 52.63 53.05 51.13
Mean 65.43 65.06 66.59

All three trends fit well ( R2=0.9955/0.9910/0.9987R^2=0.9955/0.9910/0.9987 ). Margin is comparable to top-1. Entropy improves the mean by 1.15 points but is worse at Linit=32L_{\mathrm{init}}=32 . We will keep top-1 as the simple default and report entropy as promising but not uniformly better.

Q4 - Comparison with training-based DreamOn. We thank the reviewer for suggesting this comparison and will add the following discussion to the main text. DreamOn (Wu et al., 2026) adds [expand] and [delete] states. For code, it separately fine-tunes three backbones on about 110K Python pairs for 10 epochs. It reports about 5 hours on 8 H800 GPUs, or roughly 40 H800 GPU-hours and 0.15% of base-model pretraining compute. Its text experiment separately fine-tunes Dream-7B on ROCStories. This is an amortizable one-time cost, but the reported protocol uses model- and domain-specific training. CAL changes neither model nor tokenizer and reuses one code-fitted curve across three text domains. Its cost is instead per-sample search: 11-18 probes in the original experiments and 13.93 probes in the long-span test, where total forwards and wall time rise by about 7% over Fixed-200. Because the hardware and protocols differ, we will present this as a qualitative training-versus-inference trade-off, not a break-even or direct performance comparison.

Reviewer eCz8 · CommentOpenReview ↗

Thank you for the additional results and detailed clarification, which address my concerns. I recommend including these results in the main text and comparing accuracy under comparable decoding-time budgets. Overall, I am satisfied with the response and will increase my score to 4.

Authors · CommentOpenReview ↗

Thank you for revisiting our response and for the positive update. We appreciate your constructive feedback and will include them into the main text.

Reviewer rLPHOpenReview ↗
Rating
4/6
Confidence
3/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

This paper investigates the critical performance bottleneck for diffusion language models caused by fixed pre-defined mask lengths for infilling. It discovers two key statistical properties in the first-step denoising confidence, i.e., the oracle peak near ground-truth infill length, and the systematic length bias that obscures this peak. Exploiting these two properties, this paper proposes a training-free CAL framework to discover infilling length. Evaluations on various benchmarks across multiple DLMs demonstrate substantial gains over baselines.

Strengths and weaknesses

Strengths

  1. This work addresses the challenge that existing diffusion infilling pipelines require manually preset mask lengths, which limits generation quality,
  2. Novel empirical discovery of two universal confidence phenomena unique to DLM first-step denoising, providing an interpretable signal source for adaptive length control without model retraining.
  3. Lightweight, inference-only CAL pipeline introduces minimal overhead while delivering large Pass@1 and n-gram metric improvements across code and text domains.
  4. Comprehensive empirical validation.
  5. Good generalization evidence.

Weaknesses

  1. No formal theoretical derivation for the double-exponential bias function.
  2. The fixed pre-fitted bias curve lacks online adaptive estimation for unseen niche domains, and in-domain re-fitting brings only marginal gains with extra preprocessing cost.
  3. No large-scale multimodal diffusion infilling experiments to test cross-modality transfer ability of the confidence-based length signal.
Questions

Please provide more discussion on expending CAL to multi-span or disjoint infilling scenarios.

Add ablation on online dynamic bias fitting to quantify how adaptive estimation improves results on out-of-distribution domains.

Include multimodal diffusion infilling tests to verify whether the Oracle Peak signal exists for vision-text masked generation.

Limitations

Yes

Final justification

The new results added in the rebuttal partially address my concern about cross-modality generalization, showing consistent gains in the tested setting. The empirical nature of the bias function and the static fitting protocol remain limitations, but the rebuttal clarifies the paper's scope and provides sufficient empirical justification for the proposed method. Overall, my concerns are partially resolved. I am raising my rating accordingly.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed suggestions.

W1 - Double-exponential form. The form is empirical, not formally derived. Appendix B calls the two-scale account heuristic and the double exponential an empirical ansatz. We will move this claim into the main text and limit the claim to tested settings. The fit achieves R2=0.9955R^2=0.9955 , and AIC and BIC prefer it to all tested alternatives (Appendix C.1; all Δ>10\Delta>10 ). This matches the paper's focus: identifying reproducible confidence regularities and turning them into a training-free DLM infilling method. A formal theory of when the Oracle Peak and fitted decay arise remains important future work. This matches the paper's focus on showing empirically that first-step confidence contains useful information about infilling length, and using this signal to build a training-free method for DLM infilling.

W2/Q2 - Static versus online fitting. We may not fully understand the intended online protocol. Our current fit uses multiple calibration examples and their ground-truth lengths to exclude the impact of Oracle Peak. At inference, the ground-truth length is unavailable. A per-input online fit would therefore need a new unsupervised rule to separate Length Bias from the Oracle Peak. A streaming domain-level fit would instead depend on what labeled feedback becomes available. We would be grateful if you can provide more details about how to implement the online fitting.

Our existing results show that CAL does not require domain-specific re-fitting in the settings we evaluate. The curve fitted on 100 LLaDA-Base/HumanEval code examples transfers without re-fitting to three other checkpoints and three text domains (Tables 2-4). Appendix F.2, Table 13 further shows that on ROCStories, the code-fitted and in-domain curves give similar average BLEU-2/ROUGE-L: 19.5/38.2 and 19.2/37.9, versus 14.9/33.8 for Fixed. This directly tests a substantial code-to-text domain shift.

Our new calibration-size ablation also gives 73.53 ±\pm 0.11 Pass@1 with n=3n=3 , versus 73.31 with n=100n=100 , in the tested LLaDA-Base/Single-Line setting. Full calibration-size results are reported as below. Each n<100n<100 uses three seeded subsets. These results show strong static transfer and data-efficient offline fitting, but do not establish arbitrary OOD or online adaptation. If the reviewer intended a specific feedback setting, we would appreciate clarification and will address it during discussion.

Calibration nn Seeded subsets Curve RMSE vs. n=100n=100 , mean ±\pm s.d. Pass@1 (%), mean ±\pm s.d.
3 3 0.0386 ±\pm 0.0079 73.53 ±\pm 0.11
5 3 0.0268 ±\pm 0.0084 73.35 ±\pm 0.27
10 3 0.0307 ±\pm 0.0060 73.42 ±\pm 0.29
25 3 0.0221 ±\pm 0.0064 73.17 ±\pm 0.62
50 3 0.0150 ±\pm 0.0054 73.42 ±\pm 0.00
100 1 0 73.31

Q1 - Multi-span/disjoint infilling. Our current formulation searches one length for one contiguous span. For KK spans, the search target becomes a length vector (L1,…,LK)(L_1,\ldots,L_K) . A simple extension is to initialize each span with an independent CAL search. An iterative version could then update one span at a time, conditioned on the current canvas lengths of the other spans. This avoids an exhaustive joint search while accounting for cross-span dependencies. We will add this extension and its limitations to the paper.

W3/Q3 - Multimodal infilling. We agree that code and natural language are domains, not modalities, and will revise this wording. True multimodal infilling requires modality-specific representations and a common definition of canvas length and confidence. Among the benchmarks and prior DLM infilling work we surveyed, we did not find a widely adopted multimodal benchmark that matches variable-length infilling. The initial rebuttal period is too short to design and validate such a benchmark to a convincing standard. If the reviewer can recommend a suitable benchmark, we would be grateful. We hope to evaluate CAL on it during the discussion period and directly address this concern.

Authors · CommentOpenReview ↗

Follow-up to W3/Q3 - Multimodal experiment

Follow-up to W3/Q3 - Multimodal experiment. Because we found no well-established benchmark for variable-length multimodal diffusion infilling, we first constructed a reference-length experiment with LaViDa [1] on MS COCO captions [3]. It masked a middle token span and tested whether confidence peaked at the single reference length. We did not observe a robust reference-aligned peak, so the exact reference-length Oracle Peak did not generalize to this setting. However, this experiment did not directly evaluate decoded infills, and a single caption length is not uniquely optimal in this open-ended task.

We then revised the multimodal setting to better align with the text-infilling setup in our original paper. We randomly remove one contiguous span of 2~8 words while retaining at least one word on each side, and test two multimodal diffusion language models, LaViDa [1] and LLaDA-V [2]. For each model, we fit and freeze a model-specific length-bias curve on the same 50 calibration examples. We then evaluate Fixed and CAL on the same 500 examples with Linit∈{2,4,8}L_{\text{init}}\in\{2,4,8\} , and the evaluation images do not overlap the calibration set. CAL searches within lengths 1~16 with ΔL=1\Delta L=1 and D=2D=2 . Fixed and CAL use the same configured decoding-step budget for each initial length. We evaluate generated-span quality using the same BLEU-2 and ROUGE-L metrics as in our text experiments.

Model Method Linit=2L_{\text{init}}=2 B-2 R-L Linit=4L_{\text{init}}=4 B-2 R-L Linit=8L_{\text{init}}=8 B-2 R-L Avg. B-2 Avg. R-L
LaViDa Fixed 12.8 32.2 19.8 42.2 19.4 39.4 17.3 37.9
LaViDa CAL 19.2 40.8 22.4 44.4 19.7 39.4 20.4 41.5
LLaDA-V Fixed 12.8 33.6 23.0 45.4 20.8 40.8 18.9 39.9
LLaDA-V CAL 19.4 41.6 23.7 45.6 22.8 42.3 22.0 43.2

BLEU-2 and ROUGE-L scores are multiplied by 100. Averaged over the three initial lengths, CAL improves BLEU-2/ROUGE-L from 17.3/37.9 to 20.4/41.5 on LaViDa and from 18.9/39.9 to 22.0/43.2 on LLaDA-V. The largest gains occur at Linit=2L_{\text{init}}=2 on both models. Overall, gains are smaller at Linit=4L_{\text{init}}=4 and 88 . One possible reason is that longer fixed canvases already provide sufficient capacity for most missing spans, leaving less room for length correction. Moreover, caption infilling admits multiple valid completions, so changing the infilling length may produce plausible outputs that do not receive higher BLEU-2 or ROUGE-L against a single reference. Thus, CAL improves average decoded quality on both backbones, showing that it generalizes to image-conditioned multimodal infilling in this tested setting. Because this experiment applies CAL without a multimodal-specific redesign, specialized multimodal confidence or length modeling may provide further gains.

References

[1] Li, S., Kallidromitis, K., Bansal, H., Gokul, A., Kato, Y., Kozuka, K., Kuen, J., Lin, Z., Chang, K.-W., and Grover, A. LaViDa: A large diffusion language model for multimodal understanding. Advances in Neural Information Processing Systems, 38:105101–105134, 2026.

[2] You, Z., Nie, S., Zhang, X., Zhou, J., Lu, Z., Wen, J.-R., and Li, C. LLaDA-V: Large language diffusion models with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10093–10105, 2026.

[3] Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., and Zitnick, C. L. Microsoft COCO: Common objects in context. In European Conference on Computer Vision, pp. 740–755. Springer, 2014.

Authors · CommentOpenReview ↗

Thank you again for your time and constructive suggestions. To clarify a possible misunderstanding, we did not refit the code-fitted curve for each target domain. We applied it directly to three text domains, and the results demonstrate cross-domain generalization. We would also appreciate further details on how you envision the online fitting.

And we have also clarified the empirical scope of the bias function and static calibration, expanded the discussion of multi-span infilling, and added multimodal experiments on LaViDa and LLaDA-V. CAL improves performance on both models, showing generalization to the tested multimodal infilling setting. As the discussion period is ending soon, please let us know if you have any remaining comments.

Reviewer ZMRXOpenReview ↗
Rating
4/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

This paper focuses on the dependence of Diffusion Language Models on a predefined mask length in infilling tasks. A fixed length setting can easily lead to semantic truncation when the length is too short, or redundant generation when it is too long. To address this issue, the authors seek to extract length-related signals from the model’s own first-step denoising confidence. The paper observes that when the candidate length is close to the true completion length, the confidence often exhibits a local peak, but this signal is obscured by a systematic length-dependent bias. Based on this observation, the authors propose CAL, which calibrates the confidence scores and searches over the candidate length space to automatically estimate a suitable infilling length.

Strengths and weaknesses

S1: The method leverages the first-step denoising confidence of DLMs for length discovery, avoiding retraining or architectural modifications. This makes it suitable as a lightweight front-end module for existing infilling pipelines.

S2: The experimental evaluation is fairly comprehensive, and the overall evidence supporting the proposed method is relatively complete.

W1: The core assumptions are mainly based on empirical observations of Oracle Peak and Length Bias, as well as a fitted double-exponential function, rather than a stronger mechanistic or theoretical explanation. Although the paper validates this signal across multiple DLMs and task domains, its stability under broader tokenizers, longer contexts, longer spans, or different DLM training paradigms still requires further confirmation.

W2: The paper does not sufficiently distinguish among oracle length, ground-truth length, and the truly optimal infilling length. This is especially important for open-ended text infilling, where a given prefix and suffix may admit multiple reasonable completions with different lengths. As a result, using the reference length as the oracle may introduce some evaluation bias.

W3: CAL requires additional first-step probing. Although the paper reports the average number of search steps and some computational overhead analysis, its actual latency and throughput impact in larger models, longer contexts, batch serving, or interactive code completion scenarios remains insufficiently clear. In addition, when the candidate length deviates substantially from the ground truth or when the span is long, the Oracle Peak signal tends to weaken, indicating a clear boundary of applicability for the method.

Questions

Q1: Could the authors further clarify the relationship among ground-truth length, oracle length, and the truly optimal infilling length? This is particularly important for open-ended text infilling, where multiple completions with different lengths may be reasonable for the same prefix and suffix. In this case, using the reference length as the oracle may bias the evaluation toward outputs that are closer to the reference length, rather than those that are the most natural or optimal.

Q2: Could the authors report how the calibration set size affects the fitting stability of (B(L)) and the final performance?

Limitations

Yes

Final justification

The authors have addressed some of my concerns during the rebuttal. I stand for a borderline accept for this paper.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment.

W1 - Empirical basis and robustness. The double-exponential form is empirical, not theoretically derived. Appendix B calls the two-scale account heuristic, derives no closed form, and presents the function as an empirical ansatz. We will move this claim into the main text. The fit achieves R2=0.9955R^2=0.9955 , and AIC and BIC prefer it to every tested alternative (Appendix C.1; all Δ>10\Delta>10 ). One fitted curve transfers across four checkpoints using two tokenizer families and three text domains without re-fitting. New tests also cover alternative confidence scores and 160-240-token spans; see R3-Q3 and R3-W1. We will replace “universal” with “observed across the tested models and domains” and exclude untested settings from our claim. The paper is focus on showing empirically that first-step confidence contains useful information about infilling length and turning them into a training-free DLM infilling method. A formal theory of when the Oracle Peak and fitted decay arise remains important future work.

W2/Q1 - Ground-truth, oracle, and optimal length. Our terminology was imprecise. Following DreamOn (Wu et al., 2026), oracle length denotes the tokenized ground-truth length, Loracle=LgtL_{\mathrm{oracle}}=L_{\mathrm{gt}} . It is a useful code reference, but not necessarily the unique optimal length or a Pass@1 upper bound. Functionally correct code and open-ended text can both have valid completions of different lengths. CAL never uses LgtL_{\mathrm{gt}} at inference. Appendix F.3, Table 14 also evaluates ROCStories without showing the reference completion to the judge. Based only on coherence and naturalness, code-fitted CAL obtains a 48.6% average win rate versus 35.6% for Fixed. We will remove claims that equate ground-truth/oracle length with a unique optimum, use length error only as a diagnostic, and note that BLEU/ROUGE are reference-based.

W3 - Overhead and boundary. Appendix D, Table 8 reports 0.82-1.15 s of search per sample on an A40. At roughly 32 total forwards and similar wall time, CAL gives 3.00/2.83 more Single-/Multi-Line Pass@1 points than additional decoding (see R3-W4/Q1). A separate test covers 160-240-token spans (see R3-W1). CAL improves results when initialized near 200, but the original Linit=32,Lmax⁡=128L_{\mathrm{init}}=32,L_{\max}=128 setting cannot bridge that gap. We will state this initialization- and range-dependent boundary. Larger models, longer contexts, batched throughput, and interactive latency remain untested.

Q2 - Calibration set size. We use 100 separate calibration examples and 933 test examples on HumanEval Single-Line (LLaDA-Base, Linit=8L_{\mathrm{init}}=8 ). Each n<100n<100 uses three seeded subsets.

Calibration nn Seeded subsets Curve RMSE vs. n=100n=100 , mean ±\pm s.d. Pass@1 (%), mean ±\pm s.d.
3 3 0.0386 ±\pm 0.0079 73.53 ±\pm 0.11
5 3 0.0268 ±\pm 0.0084 73.35 ±\pm 0.27
10 3 0.0307 ±\pm 0.0060 73.42 ±\pm 0.29
25 3 0.0221 ±\pm 0.0064 73.17 ±\pm 0.62
50 3 0.0150 ±\pm 0.0054 73.42 ±\pm 0.00
100 1 0 73.31

Pass@1 is stable down to n=3n=3 , although curve RMSE rises at small nn . Standard deviations are across subset seeds. This result does not imply that three examples suffice in other settings.

Authors · CommentOpenReview ↗

Thank you again for your time and constructive review. We have clarified the empirical scope of CAL and the oracle/optimal-length terminology, added calibration-size, long-span, and compute-matched results. Your comments have improved the clarity of the paper. As the discussion period is ending soon, please let us know if you have any other questions.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…