Hierarchical Neural Program Synthesis
Not on the map. Why?
Abstract (arXiv)
Program synthesis aims to automatically construct human-readable programs that satisfy given task specifications, such as input/output pairs or demonstrations. Recent works have demonstrated encouraging results in a variety of domains, such as string transformation, tensor manipulation, and describing behaviors of embodied agents. Most existing program synthesis methods are designed to synthesize programs from scratch, generating a program token by token, line by line. This fundamentally prevents these methods from scaling up to synthesize programs that are longer or more complex. In this work, we present a scalable program synthesis framework that instead synthesizes a program by hierarchically composing programs. Specifically, we first learn a task embedding space and a program decoder that can decode a task embedding into a program. Then, we train a high-level module to comprehend the task specification (e.g., input/output pairs or demonstrations) from long programs and produce a sequence of task embeddings, which are then decoded by the program decoder and composed to yield the synthesized program. We extensively evaluate our proposed framework in a string transformation domain with input/output pairs. The experimental results demonstrate that the proposed framework can synthesize programs that are significantly longer and more complex than the programs considered in prior program synthesis works. Website at https://thoughtp0lice.github.io/hnps_web/
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 31 of its 53 references that are in the map. First posted on arXiv 9 Mar 2023.
Builds on
31 of 53 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2014Neural Turing Machinescited by 630
- 2018Programmatically Interpretable Reinforcement Learningcited by 192
- 2020DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learningcited by 159
- 2016DeepCoder: Learning to Write Programscited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2015Neural GPUs Learn Algorithmscited by 118
- 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
- 2015Neural Programmer-Interpreterscited by 96
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2016Neuro-Symbolic Program Synthesiscited by 84
19 more
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
- 2017Neural Task Programming: Learning to Generalize Across Hierarchical Taskscited by 75
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2017Making Neural Programming Architectures Generalize via Recursioncited by 35
- 2016Programming with a Differentiable Forth Interpretercited by 33
- 2015Neural Programmer: Inducing Latent Programs with Gradient Descentcited by 32
- 2016Differentiable Programs with Neural Librariescited by 30
- 2019Few-Shot Bayesian Imitation Learning with Logical Program Policiescited by 30
- 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
- 2018Neural Program Synthesis with Priority Queue Trainingcited by 24
- 2017Neural Program Meta-Inductioncited by 23
- 2018Beyond imitation: Zero-shot task transfer on robots by learning concepts as cognitive programscited by 21
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
- 2020Latent Programmer: Discrete Latent Codes for Program Synthesiscited by 18
- 2019Learning Compositional Neural Programs with Recursive Tree Search and Planningcited by 17
- 2015Learning Simple Algorithms from Examplescited by 12
- 2019From explanation to synthesis: Compositional program induction for learning from demonstrationcited by 9
- 2022Compositional Generalization and Decomposition in Neural Program Synthesiscited by 6
- 2018Improving the Universality and Learnability of Neural Programmer-Interpreters with Combinator Abstractioncited by 3
Built on by
Citing papers per year: 2023: 3; 2024: 3; 2025: 0; 2026: 1.
7 papers.
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2024HumanEval on Latest GPT Models -- 2024cited by 7
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networkscited by 7
- 2026Spatial-Agent: Agentic Geo-spatial Reasoning with Scientific Core Conceptscited by 5
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
- 2023Program Machine Policy: Addressing Long-Horizon Tasks by Integrating Program Synthesis and State Machinescited by 1
- 2026Spatial-Agent: Agentic Geo-spatial Reasoning with Scientific Core Concepts23 Jan 2026
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learning27 May 2024
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networks24 May 2024
- 2024HumanEval on Latest GPT Models -- 202420 Feb 2024
- 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
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generation28 Apr 2023