mlsanityData to 7 Oct 2026

Latent Programmer: Discrete Latent Codes for Program Synthesis

arXiv 2012.00377 ↗First posted 1 Dec 2020cs.LG cs.AIcited by 18

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

Cited by year (2026 to 7 Oct)

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

18 papers.

Sort:

By area:

  1. 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
  2. 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
  3. 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
  4. 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
  5. 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
  6. 2023Hierarchical Neural Program Synthesiscited by 7
  7. 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdascited by 6
  8. 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spacescited by 3
  9. 2026Gradient-Based Program Synthesis with Neurally Interpreted Languagescited by 3
  10. 2022Synthesizing Programs with Continuous Optimizationcited by 2
  11. 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
  12. 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Modelcited by 2
6 more
  1. 2023Program Machine Policy: Addressing Long-Horizon Tasks by Integrating Program Synthesis and State Machinescited by 1
  2. 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigmscited by 1
  3. 2022Iterative Genetic Improvement: Scaling Stochastic Program Synthesiscited by 0
  4. 2023A Machine Learning Approach Towards SKILL Code Autocompletioncited by 0
  5. 2026Latent Programming Horizons in Coding Agentscited by 0
  6. 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquercited by 0