This work introduces multi-target few-shot prompting with diffusion language models, where examples guide the infilling of multiple masked regions within a shared canvas and further leverage selective masking of the canvas to derive a likelihood-ratio reward that favors example-supported infills.
Abstract
Few-shot prompting is useful when instructions and rewards are hard to specify. One such application is editing by example, where a demonstrated formatting change or API migration may need to be applied across multiple sites. However, such edits often depend on both left and right context, making generation with causal autoregressive models awkward. We therefore introduce multi-target few-shot prompting with diffusion language models, where examples guide the infilling of multiple masked regions within a shared canvas. To address the known challenge of reliably following demonstrations in few-shot prompting, we further leverage selective masking of the canvas to derive a likelihood-ratio reward that favors example-supported infills. Across few-shot prompting benchmarks and software refactoring case studies, we find that demonstrations improve infilling accuracy, with example guidance yielding further gains in several settings.
This work proposes DELTA (Diffusion Expected Length Targeting Algorithm), a training-free inference-time method for masked diffusion LMs that estimates expected character length at each denoising step and dynamically inserts or removes masked positions to steer toward a target length.
Steffen Castle, Nils Feldhus, Christopher Ebert et al.· Proceedings of the 2026 Conf...· 0 citations
Prompt-based adaptation offers several ways to specialize a frozen language model, ranging from natural-language prompt optimization to learned continuous prompts. These methods are usually compared through downstream performance, although similar outputs need not arise from similar internal computations. We study how...
Mikhail Aleksandrov, Nail Bashirov, M. Ivanov et al.· 0 citations
ClusterFewshot is proposed, a strategy that combines semantic structuring with utility-aware scoring to construct representative and effective few-shot demonstration sets and substantially reduces optimization cost across multiple benchmarks.
Omri Haim, Shahar Katz, Lior Wolf· arXiv.org· 0 citations
Diffusion models can produce striking images and videos, but they still struggle with the compositional details that make a generation faithful to a prompt, such as object counts, attribute binding, spatial relations, and temporally grounded actions. A common way to improve prompt satisfaction is to spend more compute...
Vighnesh Subramaniam, B. Katz, Brian Cheung et al.· arXiv.org· 0 citations
Prompt learning has emerged as a powerful technique for adapting vision-language models like CLIP to new domains with limited data. However, existing approaches typically rely on a single learned prompt during inference, which may struggle to generalize across diverse data domains. Moreover, most methods prioritize cla...
M. Hasan, Afsana Ahmed Munia, Ibrahim Hossain et al.· IEEE Access· 0 citations
This design introduces a rewritable proposal that uses additional compute to improve expressivity while keeping the simple mask-based transition schedule of MDMs, and fine-tune Qwen2.5-7B and Qwen3-8B to obtain LED-\texttt{7B} and LED-\texttt{8B}, respectively.
Yu-Yan Zhou, Ze-Yuan Yang, Yuxuan Song et al.· 0 citations
Related blog posts
MIT News · Artificial Intelligence· news.mit.eduNov 20, 2026
Senior Research Scientist Jim Glass discusses how his MIT-IBM Computing Research Lab collaboration connects perception and language, and addresses the shortcoming of current models.
MIT News · Artificial Intelligence· news.mit.eduNov 19, 2026
An MIT and Dana-Farber Institute-led team used large language models to examine nearly 4,000 studies and hundreds of code repositories, revealing gaps in the information needed to scrutinize and reuse published research.
By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.