Multi-Target Few-Shot Prompting with Diffusion Language Models
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 48 of its 57 references that are in the map. Submitted 15 Oct 2026.
Builds on
48 of 57 references.
References · 48
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2022Classifier-Free Diffusion Guidancecited by 6,251
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 5,035
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 2,083
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,843
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,487
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,457
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,102
- 2025Large Language Diffusion Modelscited by 1,042
36 more
- 2024Simple and Effective Masked Diffusion Language Modelscited by 971
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
- 2024Simplified and Generalized Masked Diffusion for Discrete Datacited by 698
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 640
- 2025Dream 7B: Diffusion Large Language Modelscited by 623
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 510
- 2025Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decodingcited by 489
- 2025Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Modelscited by 475
- 2023Larger language models do in-context learning differentlycited by 436
- 2024Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Datacited by 418
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 357
- 2025LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Modelscited by 314
- 2022Efficient Training of Language Models to Fill in the Middlecited by 268
- 2023Reward Design with Language Modelscited by 265
- 2025A General Framework for Inference-time Scaling and Steering of Diffusion Modelscited by 260
- 2022RL with KL penalties is better viewed as Bayesian inferencecited by 150
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 99
- 2023Contrastive Decoding Improves Reasoning in Large Language Modelscited by 77
- 2021Few-Shot Semantic Parsing with Language Models Trained On Codecited by 51
- 2021Coherence boosting: When your pretrained language model is not paying enough attentioncited by 41
- 2025The Curse of CoT: On the Limitations of Chain-of-Thought in In-Context Learningcited by 32
- 2023Guideline Learning for In-context Information Extractioncited by 25
- 2026DAPD: Dependency-Aware Parallel Decoding via Attention for Diffusion LLMscited by 25
- 2023BatchPrompt: Accomplish more with lesscited by 20
- 2023GrACE: Generation using Associated Code Editscited by 17
- 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 17
- 2026DUEL: Exact Likelihood for Masked Diffusion via Deterministic Unmaskingcited by 16
- 2025Flexible-length Text Infilling for Discrete Diffusion Modelscited by 15
- 2025LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM Reasoningcited by 13
- 2026Beyond Masks: Efficient, Flexible Diffusion Language Models via Deletion-Insertion Processescited by 10
- 2026Unlocking Lossless Speedups in LLMs via Discrete Diffusioncited by 8
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decodingcited by 6
- 2026Predict, Don't Iterate: Efficient Adaptive-Length Infilling for Diffusion Language Modelscited by 5
- 2026Where to Place the Query? Unveiling and Mitigating Positional Bias in In-Context Learning for Diffusion LLMs via Decoding Dynamicscited by 2
- 2026dQwen3.5: Hybrid-Attention Diffusion Language Modelscited by 1
- 2026PIG: Parallel Inconsistency Guidance for Accelerating Diffusion Language Modelscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026FewMMBench: A Benchmark for Multimodal Few-Shot Learning
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango
- 2023LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models
- 2025Disentangling Instruction Influence in Diffusion Transformers for Parallel Multi-Instruction-Guided Image Editing
- 2026How Much Prompt Is Enough? A Blackbox Minimization of Few-Shots in LLMs
- 2022Continued Pretraining for Better Zero- and Few-Shot Promptability
- 2024TIE: Revolutionizing Text-based Image Editing for Complex-Prompt Following and High-Fidelity Editing
- 2024PromptFix: You Prompt and We Fix the Photo