Diffusion language models fill multiple text spans using examples

Paper / preprint arXiv cs.CL · Reported findings, not independently verified by us.

A new paper examines how diffusion language models can edit multiple gaps in a shared text canvas, using examples to guide the requested changes. The approach targets tasks such as formatting updates or API migrations, where edits in different locations depend on context on both the left and right.

In the proposed multi-target few-shot prompting method, several regions of a shared canvas are masked and then filled in. The researchers also use selective masking to derive a likelihood-ratio reward. It is intended to favor infills supported by the supplied examples and thereby improve reliable adherence to demonstrations.

The paper reports results from few-shot prompting benchmarks and software refactoring case studies. According to the authors, demonstrations improve infilling accuracy, while additional example guidance brings further gains in several tested settings. However, the supplied summary gives neither numerical measures of these gains nor details about the models or individual benchmarks used.

The method therefore focuses on tasks where multiple context-dependent edits need to be inferred from examples. The original paper provides a fuller account of the method and the benchmark and refactoring cases examined: arXiv: Multi-Target Few-Shot Prompting with Diffusion Language Models

🇬🇧 https://arxiv.org/abs/2610.22294v1

Leave a Comment

The weekly brief: selected developments, projects and videos