Program Synthesis and Semantic Parsing with Learned Code Idioms. Shin, E. C., Allamanis, M., Brockschmidt, M., & Polozov, A. In Advances in Neural Information Processing Systems, volume 32, 2019. Curran Associates, Inc..
Paper abstract bibtex 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.
@inproceedings{shin_program_2019,
title = {Program {Synthesis} and {Semantic} {Parsing} with {Learned} {Code} {Idioms}},
volume = {32},
url = {https://papers.nips.cc/paper_files/paper/2019/hash/cff34ad343b069ea6920464ad17d4bcf-Abstract.html},
abstract = {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.},
urldate = {2025-03-18},
booktitle = {Advances in {Neural} {Information} {Processing} {Systems}},
publisher = {Curran Associates, Inc.},
author = {Shin, Eui Chul and Allamanis, Miltiadis and Brockschmidt, Marc and Polozov, Alex},
year = {2019},
}
Downloads: 0
{"_id":"NSCugeqKikTHxE4Ps","bibbaseid":"shin-allamanis-brockschmidt-polozov-programsynthesisandsemanticparsingwithlearnedcodeidioms-2019","author_short":["Shin, E. C.","Allamanis, M.","Brockschmidt, M.","Polozov, A."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Program Synthesis and Semantic Parsing with Learned Code Idioms","volume":"32","url":"https://papers.nips.cc/paper_files/paper/2019/hash/cff34ad343b069ea6920464ad17d4bcf-Abstract.html","abstract":"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.","urldate":"2025-03-18","booktitle":"Advances in Neural Information Processing Systems","publisher":"Curran Associates, Inc.","author":[{"propositions":[],"lastnames":["Shin"],"firstnames":["Eui","Chul"],"suffixes":[]},{"propositions":[],"lastnames":["Allamanis"],"firstnames":["Miltiadis"],"suffixes":[]},{"propositions":[],"lastnames":["Brockschmidt"],"firstnames":["Marc"],"suffixes":[]},{"propositions":[],"lastnames":["Polozov"],"firstnames":["Alex"],"suffixes":[]}],"year":"2019","bibtex":"@inproceedings{shin_program_2019,\n\ttitle = {Program {Synthesis} and {Semantic} {Parsing} with {Learned} {Code} {Idioms}},\n\tvolume = {32},\n\turl = {https://papers.nips.cc/paper_files/paper/2019/hash/cff34ad343b069ea6920464ad17d4bcf-Abstract.html},\n\tabstract = {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.},\n\turldate = {2025-03-18},\n\tbooktitle = {Advances in {Neural} {Information} {Processing} {Systems}},\n\tpublisher = {Curran Associates, Inc.},\n\tauthor = {Shin, Eui Chul and Allamanis, Miltiadis and Brockschmidt, Marc and Polozov, Alex},\n\tyear = {2019},\n}\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["Shin, E. C.","Allamanis, M.","Brockschmidt, M.","Polozov, A."],"key":"shin_program_2019","id":"shin_program_2019","bibbaseid":"shin-allamanis-brockschmidt-polozov-programsynthesisandsemanticparsingwithlearnedcodeidioms-2019","role":"author","urls":{"Paper":"https://papers.nips.cc/paper_files/paper/2019/hash/cff34ad343b069ea6920464ad17d4bcf-Abstract.html"},"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero/abhishek-p","dataSources":["h7kKWXpJh2iaX92T5"],"keywords":[],"search_terms":["program","synthesis","semantic","parsing","learned","code","idioms","shin","allamanis","brockschmidt","polozov"],"title":"Program Synthesis and Semantic Parsing with Learned Code Idioms","year":2019}