Skip to content

Multi-Target Few-Shot Prompting with Diffusion Language Models

Oct 2026 · 0 citations · 57 references
Computer Science

TL;DR

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.

View source

Similar papers

#natural language process... Conference Open access Nov 2026

Training-Free Character-Length Control in Summarization with Diffusion Language Models

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. · 0 citations
#artificial intelligence Preprint Oct 2026

Not All Drift Is a Mechanism: Tracing Prompt Adaptation in LLMs

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: Improving Few-shot Optimization for LLMs workflow

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 · 0 citations
#artificial intelligence Review Sep 2026

PreviewDiff: Multimodal Critic-Guided Search over Diffusion Latents

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. · 0 citations
Open access 2026

Snapshot Prompt: A Reliable Prompt Learning for Domain Adaptive Few-Shot Learning

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. · 0 citations
#machine learning Preprint Oct 2026

LED: Improving Masked Diffusion Language Models by Lookahead Editing

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 Nov 17, 2026

Learning the language of machine learning

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.