Diffusion On Syntax Trees For Program Synthesis
On the map: Diffusion models → Discrete and text diffusion
Abstract (arXiv)
Large language models generate code one token at a time. Their autoregressive generation process lacks the feedback of observing the program's output. Training LLMs to suggest edits directly can be challenging due to the scarcity of rich edit data. To address these problems, we propose neural diffusion models that operate on syntax trees of any context-free grammar. Similar to image diffusion models, our method also inverts ``noise'' applied to syntax trees. Rather than generating code sequentially, we iteratively edit it while preserving syntactic validity, which makes it easy to combine this neural model with search. We apply our approach to inverse graphics tasks, where our model learns to convert images into programs that produce those images. Combined with search, our model is able to write graphics programs, see the execution result, and debug them to meet the required specifications. We additionally show how our system can write graphics programs for hand-drawn sketches.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 22 of its 42 references that are in the map. First posted on arXiv 30 May 2024.
Builds on
22 of 42 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2022Equivariant Diffusion for Molecule Generation in 3Dcited by 666
- 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 503
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
- 2022DiffDock: Diffusion Steps, Twists, and Turns for Molecular Dockingcited by 307
- 2021GFlowNet Foundationscited by 286
- 2022Structure-based Drug Design with Equivariant Diffusion Modelscited by 213
10 more
- 2016DeepCoder: Learning to Write Programscited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2017CSGNet: Neural Shape Parser for Constructive Solid Geometrycited by 106
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2017Learning to Infer Graphics Programs from Hand-Drawn Imagescited by 73
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2018Superion: Grammar-Aware Greybox Fuzzingcited by 12
- 2023On the Training Instability of Shuffling SGD with Batch Normalizationcited by 3
Built on by
Citing papers per year: 2024: 3; 2025: 5; 2026: 2.
10 papers.
- 2025Large Language Diffusion Modelscited by 872
- 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesiscited by 21
- 2024Towards Efficient Neurally-Guided Program Induction for ARC-AGIcited by 11
- 2024DiffCSG: Differentiable CSG via Rasterizationcited by 6
- 2025MultiMat: Multimodal Program Synthesis for Procedural Materials using Large Multimodal Modelscited by 1
- 2024Estimating Probability Densities with Transformer and Denoising Diffusioncited by 0
- 2025See it. Say it. Sorted: Agentic System for Compositional Diagram Generationcited by 0
- 2025Bridging Vision, Language, and Mathematics: Pictographic Character Reconstruction with B'ezier Curvescited by 0
- 2026LLMs + Security = Troublecited by 0
- 2026Beyond the Autoregressive Horizon: A Comprehensive Survey of Diffusion Models, World Modelling, and State Space Models for Codecited by 0
- 2026Beyond the Autoregressive Horizon: A Comprehensive Survey of Diffusion Models, World Modelling, and State Space Models for Code9 Apr 2026
- 2026LLMs + Security = Trouble9 Feb 2026
- 2025Bridging Vision, Language, and Mathematics: Pictographic Character Reconstruction with B'ezier Curves29 Oct 2025
- 2025MultiMat: Multimodal Program Synthesis for Procedural Materials using Large Multimodal Models26 Sep 2025
- 2025See it. Say it. Sorted: Agentic System for Compositional Diagram Generation21 Aug 2025
- 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesis14 Mar 2025
- 2025Large Language Diffusion Models14 Feb 2025
- 2024Towards Efficient Neurally-Guided Program Induction for ARC-AGI13 Nov 2024
- 2024DiffCSG: Differentiable CSG via Rasterization2 Sep 2024
- 2024Estimating Probability Densities with Transformer and Denoising Diffusion22 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2026Distilled Continuous Diffusion Language Models Can Write Code in Few Steps---or One
- 2026AnCoder: Anchored Code Generation via Discrete Diffusion Models
- 2026Constrained Code Generation with Discrete Diffusion
- 2022The Stable Artist: Steering Semantics in Diffusion Latent Space
- 2026Time-Annealed Perturbation Sampling: Diverse Generation for Diffusion Language Models
- 2025How Compositional Generalization and Creativity Improve as Diffusion Models are Trained
- 2026Language-Free Generative Editing from One Visual Example
- 2026Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching