mlsanityData to 7 Oct 2026

Diffusion On Syntax Trees For Program Synthesis

arXiv 2405.20519 ↗First posted 30 May 2024cs.AIcited by 10

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  4. 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
  5. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  6. 2022Equivariant Diffusion for Molecule Generation in 3Dcited by 666
  7. 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
  8. 2022DiGress: Discrete Denoising diffusion for graph generationcited by 503
  9. 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
  10. 2022DiffDock: Diffusion Steps, Twists, and Turns for Molecular Dockingcited by 307
  11. 2021GFlowNet Foundationscited by 286
  12. 2022Structure-based Drug Design with Equivariant Diffusion Modelscited by 213
10 more
  1. 2016DeepCoder: Learning to Write Programscited by 145
  2. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  3. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  4. 2017CSGNet: Neural Shape Parser for Constructive Solid Geometrycited by 106
  5. 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
  6. 2017Learning to Infer Graphics Programs from Hand-Drawn Imagescited by 73
  7. 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
  8. 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
  9. 2018Superion: Grammar-Aware Greybox Fuzzingcited by 12
  10. 2023On the Training Instability of Shuffling SGD with Batch Normalizationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 5; 2026: 2.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Distilled Continuous Diffusion Language Models Can Write Code in Few Steps---or One
  2. 2026AnCoder: Anchored Code Generation via Discrete Diffusion Models
  3. 2026Constrained Code Generation with Discrete Diffusion
  4. 2022The Stable Artist: Steering Semantics in Diffusion Latent Space
  5. 2026Time-Annealed Perturbation Sampling: Diverse Generation for Diffusion Language Models
  6. 2025How Compositional Generalization and Creativity Improve as Diffusion Models are Trained
  7. 2026Language-Free Generative Editing from One Visual Example
  8. 2026Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching