Unlocking the Potential of Diffusion Language Models through Template Infilling

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Lee, Junhoo, Kim, Seungyeon, Kwak, Nojun
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913138896535552
author Lee, Junhoo
Kim, Seungyeon
Kwak, Nojun
author_facet Lee, Junhoo
Kim, Seungyeon
Kwak, Nojun
contents Diffusion Language Models (DLMs) have emerged as a promising alternative to Autoregressive Language Models, yet their inference strategies remain limited to prefix-based prompting inherited from the autoregressive paradigm. In this paper, we propose Template Infilling (TI), a tailored conditioning methodology for DLMs. Unlike conventional prefix prompting, TI flexibly aligns structural anchors across the entire target response space, establishing a global blueprint before filling in the masked segments. We demonstrate the effectiveness of our approach on diverse benchmarks, including mathematical reasoning, code generation, and trip planning, achieving consistent improvements of 9.40% over the baseline. Furthermore, we observe that TI provides additional advantages in multi-token generation settings, enabling effective speedup while maintaining generation quality and robustness. By enforcing these global constraints, TI ultimately facilitates System-2 reasoning, empowering the model to deliberate within a structurally defined solution space.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13870
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unlocking the Potential of Diffusion Language Models through Template Infilling
Lee, Junhoo
Kim, Seungyeon
Kwak, Nojun
Computation and Language
Artificial Intelligence
Diffusion Language Models (DLMs) have emerged as a promising alternative to Autoregressive Language Models, yet their inference strategies remain limited to prefix-based prompting inherited from the autoregressive paradigm. In this paper, we propose Template Infilling (TI), a tailored conditioning methodology for DLMs. Unlike conventional prefix prompting, TI flexibly aligns structural anchors across the entire target response space, establishing a global blueprint before filling in the masked segments. We demonstrate the effectiveness of our approach on diverse benchmarks, including mathematical reasoning, code generation, and trip planning, achieving consistent improvements of 9.40% over the baseline. Furthermore, we observe that TI provides additional advantages in multi-token generation settings, enabling effective speedup while maintaining generation quality and robustness. By enforcing these global constraints, TI ultimately facilitates System-2 reasoning, empowering the model to deliberate within a structurally defined solution space.
title Unlocking the Potential of Diffusion Language Models through Template Infilling
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2510.13870