Beyond Fixed: Training-Free Variable-Length Denoising for Diffusion Large Language Models

Jinsong Li, Xiaoyi Dong, Yuhang Zang, Yuhang Cao, Jiaqi Wang, Dahua Lin

Introduction: The Denoising Dilemma

While dominant Autoregressive (AR) models generate text token-by-token and naturally halt upon producing an "End-of-Sequence" (EOS) token, Diffusion Large Language Models (DLLMs) operate differently. They generate text by starting with a block of [MASK] tokens and refining them simultaneously through iterative denoising.

This architectural difference creates a significant "denoising dilemma": users must pre-define the sequence length before generation begins. This static length allocation leads to a problematic trade-off:

  1. Too short: The model runs out of space, resulting in cut-off logic and failed tasks.
  2. Too long: The model wastes massive amounts of computation on bidirectional attention over useless padding. Curiously, performance often degrades as the model struggles to fill excessive space coherently.

Until now, researchers had to manually find the "goldilocks" length for every specific task, a process that is highly impractical for real-world applications. To solve this, researchers introduce DAEDAL (Dynamic Adaptive Length Expansion), a training-free inference strategy that finally gives DLLMs the ability to generate variable-length text.

The DAEDAL Approach

DAEDAL allows the model to dynamically "feel out" how much space it needs by leveraging its own internal confidence signals. The core insight is that a DLLM’s confidence in predicting an EOS token at the end of a sequence is a reliable indicator of length sufficiency. If the model is unconfident about ending the sequence, it likely needs more room to "think."

DAEDAL operates in two distinct phases:

  • Phase 1: Initial Length Adjustment: Before the main denoising begins, the model starts with a very short sequence (e.g., 64 tokens). It performs a single forward pass and checks the EOS confidence at the terminus. If the confidence is below a specific threshold, it appends more [MASK] tokens and repeats this check until the length seems "coarsely" sufficient.
  • Phase 2: Iterative Mask Insertion: During the actual denoising process, the model monitors local confidence. If a specific region exhibits exceptionally low confidence, DAEDAL interprets this as a need for more "discursive space" to articulate a complex reasoning step. It dynamically inserts a block of new [MASK] tokens at that location, effectively giving the model "breathing room" mid-generation.

Key Results and Insights

The researchers evaluated DAEDAL across four demanding benchmarks focused on reasoning and code: GSM8K (grade-school math), MATH500 (competition-level math), MBPP (entry-level Python), and HumanEval (complex program synthesis).

Performance comparison across benchmarks and response length distribution.

DAEDAL consistently beat the best-performing fixed-length baselines, even though those baselines were manually tuned for each specific benchmark.

  • The "Sweet Spot" is Real: For fixed-length models, performance peaks and then drops as more length is added. DAEDAL successfully finds this optimal length automatically, adapting to the complexity of each prompt.
  • Superior Accuracy: On GSM8K, DAEDAL achieved 85.8% accuracy, surpassing the best fixed-length baseline of 83.8% (which required a rigid length of 1024 tokens).
  • Generalization: Across all four benchmarks, DAEDAL’s average accuracy was 54.75%, compared to 52.05% for the best-tuned fixed-length baseline.
  • Efficiency Gains: By starting short and only expanding when necessary, DAEDAL achieves a much higher Effective Token Ratio. It spends its computational budget on actual content rather than processing thousands of trailing padding tokens.

Limitations and Future Work

While highly effective, DAEDAL does have a few limitations. It still operates within a predefined maximum limit (e.g., 2048 tokens) to prevent infinite loops or memory overflows. Additionally, the current method focuses purely on expanding from a short start; it does not explicitly shrink a sequence if it over-estimates, though starting at 64 tokens largely mitigates this need. Finally, Phase 1 introduces a slight inference overhead due to the extra forward passes required before denoising starts.

Despite these minor constraints, DAEDAL proves that DLLMs possess an inherent "awareness" of task complexity. By harvesting these latent signals, DAEDAL bridges a critical gap with Autoregressive counterparts, paving the way for DLLMs to handle complex, multi-step reasoning with highly unpredictable output lengths.

Summary updated

BibTeX
@inproceedings{li2026beyond,
  author = {Jinsong Li and Xiaoyi Dong and Yuhang Zang and Yuhang Cao and Jiaqi Wang and Dahua Lin},
  title = {{Beyond Fixed: Training-Free Variable-Length Denoising for Diffusion Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Ic2A2gCseC},
}
Figure