Research map / Image generation / Fast diffusion sampling
CodeFusion: A Pre-trained Diffusion Model for Code Generation
Mukul Singh, José Cambronero, Sumit Gulwani, Vu Le, Carina Negreanu, Gust Verbruggen
Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add unsupervised code generation pre-training task (ablation) | CODEFUSION · Python/Bash/CF top-1 | accuracy: Python 70.9 -> 80.7; Bash 52.3 -> 66.7; CF 64.2 -> 72.8 | Improved |
| add CPD pre-training objective (ablation) | CODEFUSION · Python/Bash/CF top-1 | accuracy: Python 76.7 -> 80.7; Bash 61.1 -> 66.7; CF 68.2 -> 72.8 | Improved |
| use decoder D and head H instead of grounding (closest token at last step) (ablation) | CODEFUSION · Python/Bash/CF top-1 | accuracy: Python 73.5 -> 80.7; Bash 60.5 -> 66.7; CF 63.2 -> 72.8 | Improved |
| use decoder D and head H instead of clamping (ablation) | CODEFUSION · Python/Bash/CF top-1 | accuracy: Python 77.1 -> 80.7; Bash 63.2 -> 66.7; CF 64.4 -> 72.8 | Improved |
| CODEFUSION vs auto-regressive models at top-1 | CODEFUSION (75M) · Python/Bash/CF top-1 | accuracy: Python 80.7 (GPT-3 82.5); Bash 66.7 (CodeT5 67.6); CF 72.8 (CodeT5 72.7) | No clear effect |
| diffusion model instead of auto-regressive model at top-3/top-5 | CODEFUSION · Python top-5 | CodeBERTScore: 90.3 vs best baseline 85.8 (GPT-3) | Improved |
| code-specific diffusion design with decoder instead of text diffusion (GENIE) | CODEFUSION · Syntactic validity of top-1 (Python) | % valid: 24.2 -> 67.6 | Improved |
| diffusion vs auto-regressive generation, diversity | CODEFUSION · top-5 generations, 3 languages | n-gram fraction: 1-gram 0.53 vs best baseline 0.32 (StarCoder) | Improved |
| increase diffusion timesteps | CODEFUSION · Python top-1 | CodeBERTScore | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- GENIE — GENIE: Higher-Order Denoising Diffusion Solvers (NeurIPS 2022) · better on 6 of 6 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Closest papers by meaning
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.88)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.87)
- ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding (ICLR 2025 · similarity 0.87)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.86)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.86)
- LILO: Learning Interpretable Libraries by Compressing and Documenting Code (ICLR 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
