mlsanityData to 7 Oct 2026

Diffusion is a code repair operator and generator

arXiv 2508.11110 ↗First posted 14 Aug 2025cs.SE cs.AI cs.CLcited by 3

On the map: Diffusion models → Discrete and text diffusion

Abstract (arXiv)

Code diffusion models generate code by iteratively removing noise from the latent representation of a code snippet. During later steps of the diffusion process, when the code snippet has almost converged, differences between discrete representations of these snippets look like last-mile repairs applied to broken or incomplete code. We evaluate the extent to which this resemblance can be exploited to leverage pre-trained code diffusion models for the problem of last-mile repair by considering two applications with significant potential. First, we can leverage the diffusion model for last-mile repair by adding noise to a broken code snippet and resuming the diffusion process. Second, we can leverage the diffusion model to generate arbitrary amount of training data for last-mile repair tasks (that are computationally more efficient) by sampling an intermediate program (input) and the final program (output) from the diffusion process. We perform experiments on 3 domains (Python, Excel and PowerShell) to evaluate applications, as well as analyze properties.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 25 of its 33 references that are in the map. First posted on arXiv 14 Aug 2025.

Builds on

25 of 33 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023CodeFusion: A Pre-trained Diffusion Model for Code Generation26 Oct
  2. 2022Text Generation with Diffusion Language Models: A Pre-training Approach with Continuous Paragraph Denoise22 Dec
  3. 2022DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models28 Nov

Other references · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  6. 2023Mistral 7Bcited by 3,065
  7. 2022Video Diffusion Modelscited by 2,280
  8. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  9. 2020DiffWave: A Versatile Diffusion Model for Audio Synthesiscited by 1,339
  10. 2022Diffusion-LM Improves Controllable Text Generationcited by 1,006
  11. 2023A Survey on Video Diffusion Modelscited by 203
  12. 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 106
10 more
  1. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
  2. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  3. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  4. 2023A Survey of Learning-based Automated Program Repaircited by 55
  5. 2023FLAME: A small language model for spreadsheet formulascited by 15
  6. 2023InstructExcel: A Benchmark for Natural Language Instruction in Excelcited by 14
  7. 2022Neurosymbolic Repair for Low-Code Formula Languagescited by 12
  8. 2023FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Languagecited by 7
  9. 2023DataVinci: Learning Syntactic and Semantic String Repairscited by 6
  10. 2024Semantically Aligned Question and Code Generation for Automated Insight Generationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Constrained Code Generation with Discrete Diffusion
  2. 2026AnCoder: Anchored Code Generation via Discrete Diffusion Models
  3. 2026Distilled Continuous Diffusion Language Models Can Write Code in Few Steps---or One
  4. 2025Understanding Diffusion Models via Code Execution
  5. 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas
  6. 2026DiffPDE: Masked Diffusion Language Models as PDE Solver
  7. 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoff
  8. 2025Dream-Coder 7B: An Open Diffusion Language Model for Code