mlsanityData to 7 Oct 2026

Latent Execution for Neural Program Synthesis

arXiv 2107.00101 ↗First posted 29 Jun 2021cs.PL cs.LG cs.SEcited by 35

Not on the map. Why?

Abstract (arXiv)

Program synthesis from input-output (IO) examples has been a long-standing challenge. While recent works demonstrated limited success on domain-specific languages (DSL), it remains highly challenging to apply them to real-world programming languages, such as C. Due to complicated syntax and token variation, there are three major challenges: (1) unlike many DSLs, programs in languages like C need to compile first and are not executed via interpreters; (2) the program search space grows exponentially when the syntax and semantics of the programming language become more complex; and (3) collecting a large-scale dataset of real-world programs is non-trivial. As a first step to address these challenges, we propose LaSynth and show its efficacy in a restricted-C domain. More specifically, LaSynth learns the latent representation to approximate the execution of partially generated programs, even if they are incomplete in syntax (addressing (1)). The learned execution significantly improves the performance of next token prediction over existing approaches, facilitating search (addressing (2)). Finally, once trained with randomly generated ground-truth programs and their IO pairs, LaSynth can synthesize more concise programs that resemble human-written code. Furthermore, retraining our model with these synthesized programs yields better performance with fewer samples for both Karel and C program synthesis, indicating the promise of leveraging the learned program synthesizer to improve the dataset quality for input-output program synthesis (addressing (3)). When evaluating on whether the program execution outputs match the IO pairs, LaSynth achieves 55.2% accuracy on generating simple C code with tens of tokens including loops and branches, outperforming existing approaches without executors by around 20%.

Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 39 of its 61 references that are in the map. First posted on arXiv 29 Jun 2021.

Builds on

39 of 61 references.

References · 39

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,304
  7. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
  8. 2021Measuring Coding Challenge Competence With APPScited by 879
  9. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  10. 2019Deep Learning for Symbolic Mathematicscited by 266
  11. 2019SPoC: Search-based Pseudocode to Codecited by 176
  12. 2016DeepCoder: Learning to Write Programscited by 145
27 more
  1. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  2. 2019Neural Execution of Graph Algorithmscited by 118
  3. 2014Learning to Executecited by 105
  4. 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
  5. 2016Neuro-Symbolic Program Synthesiscited by 84
  6. 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
  7. 2019Learning to Infer and Execute 3D Shape Programscited by 68
  8. 2020A Probabilistic End-To-End Task-Oriented Dialog Model with Latent Belief States towards Semi-Supervised Learningcited by 47
  9. 2019Learning to Infer Program Sketchescited by 44
  10. 2018Ithemal: Accurate, Portable and Fast Basic Block Throughput Estimation using Deep Neural Networkscited by 43
  11. 2018Neural-Guided Deductive Search for Real-Time Program Synthesis from Examplescited by 39
  12. 2020Synthesize, Execute and Debug: Learning to Repair for Neural Program Synthesiscited by 39
  13. 2020Neural Execution Engines: Learning to Execute Subroutinescited by 36
  14. 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
  15. 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
  16. 2018Automatic Program Synthesis of Long Programs with a Learned Garbage Collectorcited by 24
  17. 2017Neural Program Meta-Inductioncited by 23
  18. 2019Prospection: Interpretable Plans From Language By Predicting the Futurecited by 21
  19. 2020Learning to Represent Programs with Property Signaturescited by 16
  20. 2019Synthetic Datasets for Neural Program Synthesiscited by 15
  21. 2020Representing Partial Programs with Blended Abstract Semanticscited by 14
  22. 2020Dialogue State Induction Using Neural Latent Variable Modelscited by 10
  23. 2020Neural Program Synthesis with a Differentiable Fixercited by 6
  24. 2017A Zero-Positive Learning Approach for Diagnosing Software Performance Regressionscited by 5
  25. 2019Learning Fitness Functions for Machine Programmingcited by 5
  26. 2019Data Generation for Neural Programming by Examplecited by 3
  27. 2020Creating Synthetic Datasets via Evolution for Neural Program Synthesiscited by 2

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 8; 2023: 16; 2024: 7; 2025: 3.

35 papers.

Sort:

By area:

  1. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  2. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  3. 2023Teaching Large Language Models to Self-Debugcited by 963
  4. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  5. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  6. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  7. 2023Planning with Large Language Models for Code Generationcited by 179
  8. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  9. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  10. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
  11. 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
  12. 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutionscited by 38
23 more
  1. 2022Fault-Aware Neural Code Rankerscited by 33
  2. 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 32
  3. 2023Fully Autonomous Programming with Large Language Modelscited by 31
  4. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  5. 2023Emergent Representations of Program Semantics in Language Models Trained on Programscited by 28
  6. 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
  7. 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
  8. 2023B-Coder: Value-Based Deep Reinforcement Learning for Program Synthesiscited by 16
  9. 2024Synthesizing Programmatic Reinforcement Learning Policies with Large Language Model Guided Searchcited by 13
  10. 2024Towards Efficient Neurally-Guided Program Induction for ARC-AGIcited by 11
  11. 2024Grounding Data Science Code Generation with Input-Output Specificationscited by 7
  12. 2022E-MAPP: Efficient Multi-Agent Reinforcement Learning with Parallel Program Guidancecited by 6
  13. 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdascited by 6
  14. 2023Natural Language Commanding via Program Synthesiscited by 6
  15. 2024Contextualized Data-Wrangling Code Generation in Computational Notebookscited by 3
  16. 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Modelscited by 3
  17. 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spacescited by 3
  18. 2025Pronunciation-Lexicon Free Training for Phoneme-based Crosslingual ASR via Joint Stochastic Approximationcited by 3
  19. 2022Synthesizing Programs with Continuous Optimizationcited by 2
  20. 2023Coarse-Tuning Models of Code with Reinforcement Learning Feedbackcited by 2
  21. 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
  22. 2023Neuro-Symbolic Execution of Generic Source Codecited by 1
  23. 2022SMARAGD: Learning SMatch for Accurate and Rapid Approximate Graph Distancecited by 0