Inductive Synthesis of Structurally Recursive Functional Programs from Non-recursive Expressions
Woosuk Lee, Hangyeol Cho
摘要
We present a novel approach to synthesizing recursive functional programs from input-output examples. Synthesizing a recursive function is challenging because recursive subexpressions should be constructed while the target function has not been fully defined yet. We address this challenge by using a new technique we call block-based pruning. A block refers to a recursion- and conditional-free expression (i.e., straight-line code) that yields an output from a particular input. We first synthesize as many blocks as possible for each input-output example, and then we explore the space of recursive programs, pruning candidates that are inconsistent with the blocks. Our method is based on an efficient version space learning, thereby effectively dealing with a possibly enormous number of blocks. In addition, we present a method that uses sampled input-output behaviors of library functions to enable a goal-directed search for a recursive program using the library. We have implemented our approach in a system called Trio and evaluated it on synthesis tasks from prior work and on new tasks. Our experiments show that Trio outperforms prior work by synthesizing a solution to 98% of the benchmarks in our benchmark suite.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata 引用了 Bottom-up synthesis of recursive functional programs using angelic execution
- Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata 引用了 Cyclic program synthesis
- Relational Synthesis of Recursive Programs via Constraint Annotated Tree Automata 引用了 Trace-Guided Inductive Synthesis of Recursive Functional Programs
- Programming By Scaffolded Demonstration with Perpend 引用了 Bottom-up synthesis of recursive functional programs using angelic execution
- Programming By Scaffolded Demonstration with Perpend 引用了 Recursive Program Synthesis using Paramorphisms
- Programming By Scaffolded Demonstration with Perpend 引用了 Trace-Guided Inductive Synthesis of Recursive Functional Programs
- Bottom-up synthesis of recursive functional programs using angelic execution 引用了 Combining the top-down propagation and bottom-up enumeration for inductive program synthesis
- Bottom-up synthesis of recursive functional programs using angelic execution 引用了 Cyclic program synthesis
- Equivalence by Canonicalization for Synthesis-Backed Refactoring 引用了 Bottom-up synthesis of recursive functional programs using angelic execution
- Equivalence by Canonicalization for Synthesis-Backed Refactoring 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
- Equivalence by Canonicalization for Synthesis-Backed Refactoring 引用了 Counterexample-Guided Partial Bounding for Recursive Function Synthesis
- Equivalence by Canonicalization for Synthesis-Backed Refactoring 引用了 Trace-Guided Inductive Synthesis of Recursive Functional Programs
- Recursive Program Synthesis using Paramorphisms 引用了 Bottom-up synthesis of recursive functional programs using angelic execution
- Recursive Program Synthesis using Paramorphisms 引用了 Cyclic program synthesis
- Recursive Program Synthesis using Paramorphisms 引用了 Trace-Guided Inductive Synthesis of Recursive Functional Programs
- Trace-Guided Inductive Synthesis of Recursive Functional Programs 引用了 Combining the top-down propagation and bottom-up enumeration for inductive program synthesis
- Trace-Guided Inductive Synthesis of Recursive Functional Programs 引用了 Bottom-up synthesis of recursive functional programs using angelic execution
- Trace-Guided Inductive Synthesis of Recursive Functional Programs 引用了 Counterexample-Guided Partial Bounding for Recursive Function Synthesis
- Trace-Guided Inductive Synthesis of Recursive Functional Programs 引用了 Cyclic program synthesis
引用它的顶会 Paper8
- Trace-Guided Inductive Synthesis of Recursive Functional ProgramsYongwei Yuan, Arjun Radhakrishna, Roopsha SamantaPLDI 2023 · 17 次引用
- Recursive Program Synthesis using ParamorphismsQiantan Hong, Alex AikenPLDI 2024 · 7 次引用
- Relational Synthesis of Recursive Programs via Constraint Annotated Tree AutomataAnders Miltner, Ziteng Wang, Swarat Chaudhuri, Isil DilligCAV 2024 · 2 次引用
- Programming By Scaffolded Demonstration with PerpendAngela Bi, Eric Rawn, Justin Lubin, Sarah E. ChasinsCHI 2026 · 2 次引用
- Equivalence by Canonicalization for Synthesis-Backed RefactoringJustin Lubin, Jeremy Ferguson, Kevin Ye, Jacob Yim 等PLDI 2024 · 2 次引用
它引用的 Paper5
- DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learningKevin Ellis, Catherine Wong, Maxwell I. Nye, Mathias Sablé-Meyer 等PLDI 2021 · 97 次引用
- Bottom-up synthesis of recursive functional programs using angelic executionAnders Miltner, Adrian Trejo Nuñez, Ana Brendel, Swarat Chaudhuri 等POPL 2022 · 38 次引用
- Combining the top-down propagation and bottom-up enumeration for inductive program synthesisWoosuk LeePOPL 2021 · 34 次引用
- Cyclic program synthesisShachar Itzhaky, Hila Peleg, Nadia Polikarpova, Reuben N. S. Rowe 等PLDI 2021 · 26 次引用
- Counterexample-Guided Partial Bounding for Recursive Function SynthesisAzadeh Farzan, Victor NicoletCAV 2021 · 13 次引用
相关 Paper
- Distance-Guided Search in Program Synthesis with Imperfect LLM SolutionsHangyeol Cho, Jaehyung Lee, Woosuk LeeICSE 2026
- Inductive Program Synthesis via Iterative Forward-Backward Abstract InterpretationYongho Yoon, Woosuk Lee, Kwangkeun YiPLDI 2023 · 15 次引用
- Inductive Program Synthesis Guided by Observational Program SimilarityJohn K. Feser, Isil Dillig, Armando Solar-LezamaOOPSLA 2023 · 6 次引用
- Automating Pruning in Top-Down Enumeration for Program Synthesis Problems with Monotonic SemanticsKeith J. C. Johnson, Rahul Krishnan, Thomas W. Reps, Loris D'AntoniOOPSLA 2024 · 2 次引用
- Combining Functional and Automata Synthesis to Discover Causal Reactive ProgramsRia Das, Joshua B. Tenenbaum, Armando Solar-Lezama, Zenna TavaresPOPL 2023 · 4 次引用
