arXiv Analytics

Sign in

arXiv:1906.10816 [cs.LG]AbstractReferencesReviewsResources

Program Synthesis and Semantic Parsing with Learned Code Idioms

Richard Shin, Miltiadis Allamanis, Marc Brockschmidt, Oleksandr Polozov

Published 2019-06-26Version 1

Program synthesis of general-purpose source code from natural language specifications is challenging due to the need to reason about high-level patterns in the target program and low-level implementation details at the same time. In this work, we present PATOIS, a system that allows a neural program synthesizer to explicitly interleave high-level and low-level reasoning at every generation step. It accomplishes this by automatically mining common code idioms from a given corpus, incorporating them into the underlying language for neural synthesis, and training a tree-based neural synthesizer to use these idioms during code generation. We evaluate PATOIS on two complex semantic parsing datasets and show that using learned code idioms improves the synthesizer's accuracy.

Related articles: Most relevant | Search more
arXiv:2103.16080 [cs.LG] (Published 2021-03-30)
Geometry of Program Synthesis
arXiv:1807.00403 [cs.LG] (Published 2018-07-01)
Towards Mixed Optimization for Reinforcement Learning with Program Synthesis
arXiv:1807.02322 [cs.LG] (Published 2018-07-06)
Memory Augmented Policy Optimization for Program Synthesis with Generalization