Prompt Infilling for Diffusion LMs

Unlocking Prompt Infilling Capability for Diffusion Language Models

Teaching diffusion language models to fill in prompts, not only responses.

Yoshinari Fujinuma, Keisuke Sakaguchi

Yoshinari Fujinuma, Keisuke Sakaguchi

“Luminescence”, Suwannee River plume, Gulf of Mexico
01

In brief

02

Key figure

Left, GSM8K exact match against prompt length for in-context learning and for the prompt infilled by the full-sequence-masking model. Right, SummEval Spearman correlation when each diffusion LM variant uses its own infilled prompt or the transferred FS+RO prompt. Infilled prompts beat 16-shot prompting with a tenth of the tokens, and transfer to other checkpoints.
Left, GSM8K exact match against prompt length for in-context learning and for the prompt infilled by the full-sequence-masking model. Right, SummEval Spearman correlation when each diffusion LM variant uses its own infilled prompt or the transferred FS+RO prompt. Infilled prompts beat 16-shot prompting with a tenth of the tokens, and transfer to other checkpoints.
03

Runs

03

Abstract

Masked diffusion language models (dLMs) generate text through bidirectional denoising, yet this capability remains locked for infilling prompts. This limitation is an artifact of the current supervised finetuning (SFT) convention of applying response-only masking. To unlock this capability, we extend full-sequence masking during SFT, where both prompts and responses are masked jointly. Once unlocked, the model infills masked portions of a prompt template conditioned on few-shot examples. We show that such model-infilled prompts match or surpass manually designed templates, transfer effectively across models, and are complementary to existing prompt optimization methods. Our results suggest that training practices, not architectural limitations, are the primary bottleneck preventing masked diffusion language models from infilling effective prompts

Cite this
TextBibTeXCopy
Yoshinari Fujinuma, Keisuke Sakaguchi. Unlocking Prompt Infilling Capability for Diffusion Language Models. COLM 2026 Workshop (Workshop on Non-Autoregressive Language Models for Fast and Flexible Text Generation (NonAR-LM), non-archival). arXiv:2604.03677.
@inproceedings{fujinuma2026promptinfill, title={Unlocking Prompt Infilling Capability for Diffusion Language Models}, author={Yoshinari Fujinuma and Keisuke Sakaguchi}, booktitle={COLM 2026 Workshop, Workshop on Non-Autoregressive Language Models for Fast and Flexible Text Generation (NonAR-LM), non-archival}, year={2026}, eprint={2604.03677}, archivePrefix={arXiv} }
arXiv 2604.03677
April 4, 2026
COLM 2026 Workshop
Workshop
Workshop on Non-Autoregressive Language Models for Fast and Flexible Text Generation (NonAR-LM), non-archival
Poster
prompt-infilling-for-diffusion-lms
More research
All research →
“Ganges River Delta”, Bay of Bengal
NeurIPS 2026 Workshop
meta

GlobeBench

A benchmark for whether text world models keep track of state, rules and side effects.

October 15, 2026
arXiv 2610.22708
Workshop
globebench
NeurIPS 2026 Workshop
“Byrd Glacier”, Transantarctic Mountains, Antarctica
meta

SpeedrunBench

Video game speedrunning as a test of whether agents can beat strategies humans already know.

September 3, 2026
arXiv 2610.08076
speedrunbench
“Earth’s Aquarium”, Bering Sea
NeurIPS 2026
meta

World Modeling for Agentic RL

A language model that stands in for an environment while an agent trains.

May 7, 2026
arXiv 2607.16204
Main
world-modeling-for-agentic-rl
NeurIPS 2026
From the blog
All posts →
No items found.