The reviewed record of science sign in
Pith

arxiv: 2508.11110 · v1 · pith:XL5T6AXS · submitted 2025-08-14 · cs.SE · cs.AI· cs.CL

Diffusion is a code repair operator and generator

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:XL5T6AXSrecord.jsonopen to challenge →

classification cs.SE cs.AIcs.CL
keywords codediffusionlast-milerepairleverageprocesssnippetapplications
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.