NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Code diffusion models are continuous human noise operators

Mukul Singh, Gust Verbruggen, Vu Le, Sumit GulwaniOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Diffusion for code generates 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, these edits resemble last-mile repairs applied to broken or incomplete code. We evaluate the extent to which these errors are similar to those that humans are faced with and the capability of these models to perform last-mile repair. Our insight has two applications with significant impact for code repair. 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 an arbitrary amount of training data for other last-mile repair approaches (that are computationally more efficient) by sampling an intermediate program (input) and the final program (output) from the diffusion process. We perform experiments to evaluate both applications, as well as analyze trends in the evolution of representation through the diffusion pipeline providing insights on the reasoning observed.
BibTeX
@misc{singh2025code,
  author = {Mukul Singh and Gust Verbruggen and Vu Le and Sumit Gulwani},
  title = {{Code diffusion models are continuous human noise operators}},
  year = {2025},
  url = {https://openreview.net/forum?id=aOAgMiOXU2},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}
Figure