LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdas
Kensen Shi, Hanjun Dai, Wen-Ding Li, Kevin Ellis, Charles Sutton
摘要
Search is an important technique in program synthesis that allows for adaptive strategies such as focusing on particular search directions based on execution results. Several prior works have demonstrated that neural models are effective at guiding program synthesis searches. However, a common drawback of those approaches is the inability to handle iterative loops, higher-order functions, or lambda functions, thus limiting prior neural searches from synthesizing longer and more general programs. We address this gap by designing a search algorithm called LAMBDABEAM that can construct arbitrary lambda functions that compose operations within a given DSL. We create semantic vector representations of the execution behavior of the lambda functions and train a neural policy network to choose which lambdas to construct during search, and pass them as arguments to higher-order functions to perform looping computations. Our experiments show that LAMBDABEAM outperforms neural, symbolic, and LLM-based techniques in an integer list manipulation domain. 1 DeepCoder [3] supports higher-order functions but only a small set of hardcoded lambda functions. Execution-Guided Synthesis [7] supports variable-free while loops, but not loops with an iteration variable.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Darwin Gödel Machine: Open-Ended Evolution of Self-Improving Agents 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
- Execution-guided within-prompt search for programming-by-example 引用了 Is Programming by Example Solved by LLMs?
- Execution-guided within-prompt search for programming-by-example 引用了 BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Exploration
- Execution-guided within-prompt search for programming-by-example 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
- Is Programming by Example Solved by LLMs? 引用了 Just-in-time learning for bottom-up enumerative synthesis
- Is Programming by Example Solved by LLMs? 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
- BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Exploration 引用了 Learning to Represent Programs with Property Signatures
- Eco Search: A No-delay Best-First Search Algorithm for Program Synthesis 引用了 Just-in-time learning for bottom-up enumerative synthesis
- Eco Search: A No-delay Best-First Search Algorithm for Program Synthesis 引用了 Is Programming by Example Solved by LLMs?
- Eco Search: A No-delay Best-First Search Algorithm for Program Synthesis 引用了 BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Exploration
- Eco Search: A No-delay Best-First Search Algorithm for Program Synthesis 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
引用它的顶会 Paper5
- Darwin Gödel Machine: Open-Ended Evolution of Self-Improving AgentsJenny Zhang, Shengran Hu, Cong Lu, Robert Tjarko Lange 等ICLR 2026 · 101 次引用
- Is Programming by Example Solved by LLMs?Wen-Ding Li, Kevin EllisNeurIPS 2024 · 45 次引用
- QiMeng-GEMM: Automatically Generating High-Performance Matrix Multiplication Code by Exploiting Large Language ModelsQirui Zhou, Yuanbo Wen, Ruizhi Chen, Ke Gao 等AAAI 2025 · 7 次引用
- Eco Search: A No-delay Best-First Search Algorithm for Program SynthesisThéo Matricon, Nathanaël Fijalkow, Guillaume LagardeAAAI 2025 · 1 次引用
- Execution-guided within-prompt search for programming-by-exampleGust Verbruggen, Ashish Tiwari, Mukul Singh, Vu Le 等ICLR 2025
它引用的 Paper9
- DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learningKevin Ellis, Catherine Wong, Maxwell I. Nye, Mathias Sablé-Meyer 等PLDI 2021 · 97 次引用
- BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided ExplorationAugustus Odena, Kensen Shi, David Bieber, Rishabh Singh 等ICLR 2021 · 60 次引用
- Learning to Represent Programs with Property SignaturesAugustus Odena, Charles SuttonICLR 2020 · 34 次引用
- Just-in-time learning for bottom-up enumerative synthesisShraddha Barke, Hila Peleg, Nadia PolikarpovaOOPSLA 2020 · 33 次引用
- Incremental Sampling Without Replacement for Sequence ModelsKensen Shi, David Bieber, Charles SuttonICML 2020 · 29 次引用
相关 Paper
- CrossBeam: Learning to Search in Bottom-Up Program SynthesisKensen Shi, Hanjun Dai, Kevin Ellis, Charles SuttonICLR 2022 · 28 次引用
- Representing Partial Programs with Blended Abstract SemanticsMaxwell I. Nye, Yewen Pu, Matthew Bowers, Jacob Andreas 等ICLR 2021 · 23 次引用
- HYSYNTH: Context-Free LLM Approximation for Guiding Program SynthesisShraddha Barke, Emmanuel Anaya Gonzalez, Saketh Ram Kasibatla, Taylor Berg-Kirkpatrick 等NeurIPS 2024 · 34 次引用
- Distance-Guided Search in Program Synthesis with Imperfect LLM SolutionsHangyeol Cho, Jaehyung Lee, Woosuk LeeICSE 2026
- Leveraging Language to Learn Program Abstractions and Search HeuristicsCatherine Wong, Kevin Ellis, Joshua B. Tenenbaum, Jacob AndreasICML 2021 · 59 次引用
