Metraipolis › archive › dc_7e89144c7f78
Multi-Target Few-Shot Prompting with Diffusion Language Models — arXiv:2610.22294
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.22294
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T10:02:03.259Z
- SHA-256 of the archived text
d30efde73c3816f02acda36d6f707a7d962fb7c7e007732fa375d96b01d3c887- Stable URL of this page
https://metraipolis.com/documento/dc_7e89144c7f78
How to cite
Multi-Target Few-Shot Prompting with Diffusion Language Models — arXiv:2610.22294 — arXiv (en), https://arxiv.org/abs/2610.22294 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_7e89144c7f78 (Metraipolis archive dc_7e89144c7f78, sha256 d30efde73c3816f02acda36d6f707a7d962fb7c7e007732fa375d96b01d3c887)
BibTeX
@misc{dc7e89144c7f78,
title = {Multi-Target Few-Shot Prompting with Diffusion Language Models — arXiv:2610.22294},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.22294},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_7e89144c7f78; sha256 d30efde73c3816f02acda36d6f707a7d962fb7c7e007732fa375d96b01d3c887},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.22294. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2610.22294 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T08:44:47.706Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).