DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas
Zirui Wu, Lin Zheng, Zhihui Xie, Jiacheng Ye, Jiahui Gao, Shansan Gong, Yansong Feng, Zhenguo Li, Wei Bi, Guorui Zhou, Lingpeng Kong
摘要
Diffusion Language Models (DLMs) present a compelling alternative to autoregressive models, offering flexible, any-order infilling without specialized prompting design. However, their practical utility is blocked by a critical limitation: the requirement of a fixed-length masked sequence for generation. This constraint severely degrades code infilling performance when the predefined mask size mismatches the ideal completion length. To address this, we propose DreamOn, a novel diffusion framework that enables dynamic, variable-length generation. DreamOn augments the diffusion process with two length control states, allowing the model to autonomously expand or contract the output length based solely on its own predictions. We integrate this mechanism into existing DLMs with minimal modifications to the training objective and no architectural changes. Built upon Dream-Coder-7B and DiffuCoder-7B, DreamOn achieves infilling performance on par with state-of-the-art autoregressive models on HumanEval-Infilling and SantaCoder-FIM and matches oracle performance achieved with ground-truth length. Our work removes a fundamental barrier to the practical deployment of DLMs, significantly advancing their flexibility and applicability for variable-length generation. Our code is available at https://github.com/DreamLM/DreamOn.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Scaling Behavior of Discrete Diffusion Language Models 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Scaling Behavior of Discrete Diffusion Language Models 引用了 Large Language Diffusion Models
- Scaling Behavior of Discrete Diffusion Language Models 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Scaling Behavior of Discrete Diffusion Language Models 引用了 Simple and Effective Masked Diffusion Language Models
- Large Language Diffusion Models 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Large Language Diffusion Models 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Large Language Diffusion Models 引用了 Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
- Large Language Diffusion Models 引用了 Simple and Effective Masked Diffusion Language Models
- Any-Order Flexible Length Masked Diffusion 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Any-Order Flexible Length Masked Diffusion 引用了 Large Language Diffusion Models
- Any-Order Flexible Length Masked Diffusion 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Any-Order Flexible Length Masked Diffusion 引用了 Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
- Any-Order Flexible Length Masked Diffusion 引用了 Simple and Effective Masked Diffusion Language Models
- Constrained Decoding of Diffusion LLMs with Context-Free Grammars 引用了 Large Language Diffusion Models
- Watermarking Diffusion Language Models 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Watermarking Diffusion Language Models 引用了 Large Language Diffusion Models
- Watermarking Diffusion Language Models 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Watermarking Diffusion Language Models 引用了 Simple and Effective Masked Diffusion Language Models
- Simplified and Generalized Masked Diffusion for Discrete Data 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Simplified and Generalized Masked Diffusion for Discrete Data 引用了 Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
- Simplified and Generalized Masked Diffusion for Discrete Data 引用了 Simple and Effective Masked Diffusion Language Models
- Simple and Effective Masked Diffusion Language Models 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs 引用了 Large Language Diffusion Models
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs 引用了 Any-Order Flexible Length Masked Diffusion
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs 引用了 Simplified and Generalized Masked Diffusion for Discrete Data
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs 引用了 Simple and Effective Masked Diffusion Language Models
- Simple and Effective Masked Diffusion Language Models 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
引用它的顶会 Paper9
- Any-Order Flexible Length Masked DiffusionJaeyeon Kim, Cheuk Lee Kit, Carles Domingo-Enrich, Yilun Du 等ICLR 2026 · 51 次引用
- Scaling Behavior of Discrete Diffusion Language ModelsDimitri von Rütte, Janis Fluri, Omead Pooladzandi, Bernhard Schölkopf 等ICLR 2026 · 34 次引用
- Constrained Decoding of Diffusion LLMs with Context-Free GrammarsNiels Mündler, Jasper Dekoninck, Martin VechevICLR 2026 · 18 次引用
- Watermarking Diffusion Language ModelsThibaud Gloaguen, Robin Staab, Nikola Jovanović, Martin VechevICLR 2026 · 13 次引用
- Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMsBumjun Kim, Dongjae Jeon, Dueun Kim, Wonje Jeung 等ICLR 2026 · 11 次引用
它引用的 Paper20
- Structured Denoising Diffusion Models in Discrete State-SpacesJacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow 等NeurIPS 2021 · 2,256 次引用
- Large Language Diffusion ModelsShen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang 等NeurIPS 2025 · 949 次引用
- Simple and Effective Masked Diffusion Language ModelsSubham S. Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan 等NeurIPS 2024 · 929 次引用
- Argmax Flows and Multinomial Diffusion: Learning Categorical DistributionsEmiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré 等NeurIPS 2021 · 782 次引用
- Simplified and Generalized Masked Diffusion for Discrete DataJiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet 等NeurIPS 2024 · 693 次引用
相关 Paper
- Beyond Fixed: Training-Free Variable-Length Denoising for Diffusion Large Language ModelsJinsong Li, Xiaoyi Dong, Yuhang Zang, Yuhang Cao 等ICLR 2026 · 34 次引用
- WavefrontDiffusion: Dynamic Decoding Schedule for Improved ReasoningHaojin Yang, Rui Hu, Zequn Sun, Rui Zhou 等ICLR 2026 · 5 次引用
- Block Diffusion: Interpolating Between Autoregressive and Diffusion Language ModelsMarianne Arriola, Aaron Gokaslan, Justin T. Chiu, Zhihan Yang 等ICLR 2025
- Diffusion with Truncated Blocks: Fast and High-Quality Text Generation using Truncated Block GenerationYuyan Zhou, Weiyu Chen, James T. KwokACL Findings 2026
- Soft-Masked Diffusion Language ModelsMichael Hersche, Samuel Moor-Smith, Thomas Hofmann, Abbas RahimiICLR 2026 · 15 次引用
