Improving Variable-Length Generation in Diffusion Language Models via Length Regularization
On the map: Diffusion models → Discrete and text diffusion
Abstract (arXiv)
Diffusion Large Language Models (DLLMs) are inherently ill-suited for variable-length generation, as their inference is defined on a fixed-length canvas and implicitly assumes a known target length. When the length is unknown, as in realistic completion and infilling, naively comparing confidence across mask lengths becomes systematically biased, leading to under-generation or redundant continuations. In this paper, we show that this failure arises from an intrinsic lengthinduced bias in generation confidence estimates, leaving existing DLLMs without a robust way to determine generation length and making variablelength inference unreliable. To address this issue, we propose LR-DLLM, a length-regularized inference framework for DLLMs that treats generation length as an explicit variable and achieves reliable length determination at inference time. It decouples semantic compatibility from lengthinduced uncertainty through an explicit length regularization that corrects biased confidence estimates. Based on this, LR-DLLM enables dynamic expansion or contraction of the generation span without modifying the underlying DLLM or its training procedure. Experiments show that LRDLLM achieves 51.3% Pass@1 on HumanEvalInfilling under fully unknown lengths (+13.4% vs. DreamOn) and 51.5% average Pass@1 on four-language McEval (+14.3% vs. DreamOn).
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 22 of its 26 references that are in the map. First posted on arXiv 7 Feb 2026.
Builds on
22 of 26 references.
Closest ancestors · 8
Same direction, newest first
- 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas1 Feb
- 2025LLaDA-MoE: A Sparse MoE Diffusion Language Model29 Sep
- 2025Dream-Coder 7B: An Open Diffusion Language Model for Code1 Sep
- 2025Any-Order Flexible Length Masked Diffusion31 Aug
- 2025Dream 7B: Diffusion Large Language Models21 Aug
- 2025DPad: Efficient Diffusion Language Models with Suffix Dropout19 Aug
- 2025Flexible-length Text Infilling for Discrete Diffusion Models16 Jun
- 2025Theoretical Benefit and Limitation of Diffusion Language Model13 Feb
Other references · 14
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2025Qwen3 Technical Reportcited by 8,195
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023Let's Verify Step by Stepcited by 3,598
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,006
- 2025LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Modelscited by 273
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2025Sparse-dLLM: Accelerating Diffusion LLMs with Dynamic Cache Evictioncited by 64
- 2025Beyond Fixed: Training-Free Variable-Length Denoising for Diffusion Large Language Modelscited by 32
- 2025Bee: A High-Quality Corpus and Full-Stack Suite to Unlock Advanced Fully Open MLLMscited by 27
- 2025Diffusion LLM with Native Variable Generation Lengths: Let [EOS] Lead the Waycited by 22
- 2025Unveiling the Potential of Diffusion Large Language Model in Controllable Generationcited by 14
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026VoidPadding: Let [VOID] Handle Padding in Masked Diffusion Language Models so that [EOS] Can Focus on Semantic Terminationcited by 1
- 2026Diffusion Large Language Models for Visual Speech Recognitioncited by 0
- 2026Length-Adaptive Decoding for Masked Diffusion Machine Translationcited by 0
- 2026CARVE: Verified Expansion for Variable-Length Generation in Diffusion Language Modelscited by 0
- 2026CARVE: Verified Expansion for Variable-Length Generation in Diffusion Language Models31 Aug 2026
- 2026Length-Adaptive Decoding for Masked Diffusion Machine Translation23 Aug 2026
- 2026VoidPadding: Let [VOID] Handle Padding in Masked Diffusion Language Models so that [EOS] Can Focus on Semantic Termination16 Jun 2026
- 2026Diffusion Large Language Models for Visual Speech Recognition27 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Predict, Don't Iterate: Efficient Adaptive-Length Infilling for Diffusion Language Models
- 2026Survival-Guided Length Control for Efficient Diffusion Language Models
- 2026Diffusion Language Models Are Natively Length-Aware
- 2026Semantic DLM+: Improving Diffusion Language Models through Bias-variance Trade-off in Transition Kernel Design
- 2026Diffusion Language Models: An Experimental Analysis
- 2026Prefilling-dLLM: Predictive Prefilling for Long-Context Inference in Diffusion Language Models
- 2026Streaming-dLLM: Accelerating Diffusion LLMs via Suffix Pruning and Dynamic Decoding
- 2026ES-dLLM: Efficient Inference for Diffusion Large Language Models by Early-Skipping