Skip to content
Back to the collection

CodeFusion: A Pre-trained Diffusion Model for Code Generation

Mukul Singh, José Cambronero, Sumit Gulwani

Show all 6 authors

Vu Le, Carina Negreanu, Gust Verbruggen

2023 · arXiv

Read the paper
HN score
0
Mentions
3
Readers
3
Months
3
What’s in a score?

From the abstract

Imagine a developer who can only change their last line of code, how often would they have to start writing a function from scratch before it is correct? Auto-regressive models for code generation from natural language have a similar limitation: they do not easily allow reconsidering earlier tokens generated. We introduce CodeFusion, a pre-trained diffusion code generation model that addresses this limitation by iteratively denoising a complete program conditioned on the encoded natural language. We evaluate CodeFusion on the task of natural language to code generation for Bash, Python, and Microsoft Excel conditional formatting (CF) rules. Experiments show that CodeFusion (75M parameters) performs on par with state-of-the-art auto-regressive systems (350M-175B parameters) in top-1 accuracy and outperforms them in top-3 and top-5 accuracy due to its better balance in diversity versus quality.

Metadata: arXiv. Abstracts retain their original authors’ rights.

In the conversation

Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels

3 selected excerpts · 3 total mentions

speedgoose
Neutral mention · rule
To be precise, ChatGPT 3.5 turbo being 20B is officially a mistake from a Microsoft Researcher, quoting a wrong source published before the release of chatgpt3.5 turbo. Up to you to believe it or not. But I wouldn’t claim it’s a 20B according to Microsoft Researchers. The withdrawn paper: https://arxiv.org/abs/2310.17680 The wrong source: https://www.forbes.com/sites/forbestechcouncil/2023/02/17/is... The discussion: https://www.reddit.com/r/LocalLLaMA/comments/17jrj82/new_mic...
nl
Neutral mention · rule
The paper was https://arxiv.org/abs/2310.17680 It has been withdrawn with this note: > Contains inappropriately sourced conjecture of OpenAI's ChatGPT parameter count from this http URL, a citation which was omitted. The authors do not have direct knowledge or verification of this information, and relied solely on this article, which may lead to public confusion (the noted URL is a just a Forbes blogger with no special qualifications that would make what he claimed particularly credible).
Flux159
Neutral mention · rule
Link to the paper directly https://arxiv.org/pdf/2310.17680.pdf The system that they describe, Codefusion is interesting because it's a diffusion model for generating code rather than an autoregressive model like most LLM code generators.

Keep following the thread.

More in Physics

More from the same topics.