Metraipolis › archive › dc_c133b54d35e6
How Should Diffusion Language Models Edit Code? — arXiv:2609.38257
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.38257
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T12:43:22.677Z
- SHA-256 of the archived text
d867d2c3751673283e413e40b29a3e0d188378bc48e7c6a149f9eb2940fb25ce- Stable URL of this page
https://metraipolis.com/documento/dc_c133b54d35e6
How to cite
How Should Diffusion Language Models Edit Code? — arXiv:2609.38257 — arXiv (en), https://arxiv.org/abs/2609.38257 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c133b54d35e6 (Metraipolis archive dc_c133b54d35e6, sha256 d867d2c3751673283e413e40b29a3e0d188378bc48e7c6a149f9eb2940fb25ce)
BibTeX
@misc{dcc133b54d35e6,
title = {How Should Diffusion Language Models Edit Code? — arXiv:2609.38257},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.38257},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c133b54d35e6; sha256 d867d2c3751673283e413e40b29a3e0d188378bc48e7c6a149f9eb2940fb25ce},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.38257. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Code editing requires a model to decide where to make changes, generate the new content, and preserve everything else. We study how masked diffusion language models divide these responsibilities across four editing interfaces: whole-file rewriting, search-and-replace, locate-then-infill, and token-level editing. Experiments on CanItEdit reveal a composition gap: diffusion models can generate coordinated changes when the correct edit locations are supplied, but much of this capability is lost when those locations must be predicted. Access to the intact original code helps the model fill multiple edit regions, yet does not resolve the difficulty of selecting those regions. By varying the editable regions while holding the generation model and decoding procedure fixed, we identify two distinct requirements for successful editing: covering every required change and placing precise boundaries around it. Missing a required region prevents the corresponding change, while widening regions to ensure coverage can sharply reduce success by requiring unchanged code to be regenerated. A sentence-level Wiki editing probe shows the same qualitative gap between supplied and predicted locations beyond code. These findings show why strong infilling capability alone does not ensure reliable editing: the interface must expose all required changes while limiting regeneration of unchanged code. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-01 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.38257 — 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-07T12:14:13.839Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).