Latent Programmer: Discrete Latent Codes for Program Synthesis
Not on the map. Why?
Abstract (arXiv)
In many sequence learning tasks, such as program synthesis and document summarization, a key problem is searching over a large space of possible output sequences. We propose to learn representations of the outputs that are specifically meant for search: rich enough to specify the desired output but compact enough to make search more efficient. Discrete latent codes are appealing for this purpose, as they naturally allow sophisticated combinatorial search strategies. The latent codes are learned using a self-supervised learning principle, in which first a discrete autoencoder is trained on the output sequences, and then the resulting latent codes are used as intermediate targets for the end-to-end sequence prediction task. Based on these insights, we introduce the Latent Programmer, a program synthesis method that first predicts a discrete latent code from input/output examples, and then generates the program in the target language. We evaluate the Latent Programmer on two domains: synthesis of string transformation programs, and generation of programs from natural language descriptions. We demonstrate that the discrete latent representation significantly improves synthesis accuracy.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 7; 2024: 1; 2025: 3; 2026: 3.
18 papers.
Sort:
By area:
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
- 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdascited by 6
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spacescited by 3
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languagescited by 3
- 2022Synthesizing Programs with Continuous Optimizationcited by 2
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Modelcited by 2
6 more
- 2023Program Machine Policy: Addressing Long-Horizon Tasks by Integrating Program Synthesis and State Machinescited by 1
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigmscited by 1
- 2022Iterative Genetic Improvement: Scaling Stochastic Program Synthesiscited by 0
- 2023A Machine Learning Approach Towards SKILL Code Autocompletioncited by 0
- 2026Latent Programming Horizons in Coding Agentscited by 0
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquercited by 0
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer4 Aug 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languages20 Apr 2026
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spaces23 May 2025
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigms20 May 2025
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Model11 Mar 2025
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learning27 May 2024
- 2023A Machine Learning Approach Towards SKILL Code Autocompletion4 Dec 2023
- 2023Program Machine Policy: Addressing Long-Horizon Tasks by Integrating Program Synthesis and State Machines27 Nov 2023
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis26 Jul 2023
- 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdas3 Jun 2023
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generation28 Apr 2023
6 more
- 2023Hierarchical Neural Program Synthesis9 Mar 2023
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programs30 Jan 2023
- 2022Synthesizing Programs with Continuous Optimization2 Nov 2022
- 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesis20 Mar 2022
- 2022Iterative Genetic Improvement: Scaling Stochastic Program Synthesis26 Feb 2022
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policies31 Aug 2021
- 2026Latent Programming Horizons in Coding Agentscited by 0
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
- 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2023Hierarchical Neural Program Synthesiscited by 7
- 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdascited by 6
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spacescited by 3
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languagescited by 3
- 2022Synthesizing Programs with Continuous Optimizationcited by 2
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Modelcited by 2
12 most cited of 17 All 17 (JSON)
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer4 Aug 2026
- 2026Gradient-Based Program Synthesis with Neurally Interpreted Languages20 Apr 2026
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spaces23 May 2025
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigms20 May 2025
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Model11 Mar 2025
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learning27 May 2024
- 2023A Machine Learning Approach Towards SKILL Code Autocompletion4 Dec 2023
- 2023Program Machine Policy: Addressing Long-Horizon Tasks by Integrating Program Synthesis and State Machines27 Nov 2023
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis26 Jul 2023
- 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdas3 Jun 2023
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generation28 Apr 2023
- 2023Hierarchical Neural Program Synthesis9 Mar 2023
12 newest of 17 All 17 (JSON)