Learning Programmatic Idioms for Scalable Semantic Parsing
Not on the map. Why?
Abstract (arXiv)
Programmers typically organize executable source code using high-level coding patterns or idiomatic structures such as nested loops, exception handlers and recursive blocks, rather than as individual code tokens. In contrast, state of the art (SOTA) semantic parsers still map natural language instructions to source code by building the code syntax tree one node at a time. In this paper, we introduce an iterative method to extract code idioms from large source code corpora by repeatedly collapsing most-frequent depth-2 subtrees of their syntax trees, and train semantic parsers to apply these idioms during decoding. Applying idiom-based decoding on a recent context-dependent semantic parsing task improves the SOTA by 2.2% BLEU score while reducing training time by more than 50%. This improved speed enables us to scale up the model by training on an extended training set that is 5× larger, to further move up the SOTA by an additional 2.3% BLEU and 0.9% exact match. Finally, idioms also significantly improve accuracy of semantic parsing to SQL on the ATIS-SQL dataset, when training data is limited.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). First posted on arXiv 19 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 7; 2022: 6; 2023: 3; 2024: 0; 2025: 1.
17 papers.
Sort:
By area:
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2022Top-Down Synthesis for Library Learningcited by 57
- 2023Exploring Continual Learning for Code Generation Modelscited by 22
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2021Total Recall: a Customized Continual Learning Method for Neural Semantic Parserscited by 9
- 2023CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Codecited by 9
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsingcited by 8
- 2021Few-Shot Semantic Parsing for New Predicatescited by 7
- 2022Code Generation for Unknown Libraries via Reading API Documentationscited by 3
5 more
- 2022Transformer with Tree-order Encoding for Neural Program Generationcited by 3
- 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generationcited by 1
- 2021Procedures as Programs: Hierarchical Control of Situated Agents through Natural Languagecited by 0
- 2022Programming by Example and Text-to-Code Translation for Conversational Code Generationcited by 0
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan 2025
- 2023CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code1 Aug 2023
- 2023Exploring Continual Learning for Code Generation Models5 Jul 2023
- 2023Bayesian Program Learning by Decompiling Amortized Knowledge13 Jun 2023
- 2022Top-Down Synthesis for Library Learning29 Nov 2022
- 2022Programming by Example and Text-to-Code Translation for Conversational Code Generation21 Nov 2022
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generation15 Nov 2022
- 2022Transformer with Tree-order Encoding for Neural Program Generation30 May 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022Code Generation for Unknown Libraries via Reading API Documentations16 Feb 2022
- 2021Procedures as Programs: Hierarchical Control of Situated Agents through Natural Language16 Sep 2021
- 2021Total Recall: a Customized Continual Learning Method for Neural Semantic Parsers11 Sep 2021
5 more
- 2021Retrieval Augmented Code Generation and Summarization26 Aug 2021
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsing26 Apr 2021
- 2021Unified Pre-training for Program Understanding and Generation10 Mar 2021
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation9 Feb 2021
- 2021Few-Shot Semantic Parsing for New Predicates26 Jan 2021
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022Top-Down Synthesis for Library Learningcited by 57
- 2023Exploring Continual Learning for Code Generation Modelscited by 22
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2021Total Recall: a Customized Continual Learning Method for Neural Semantic Parserscited by 9
- 2023CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Codecited by 9
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsingcited by 8
- 2021Few-Shot Semantic Parsing for New Predicatescited by 7
- 2022Code Generation for Unknown Libraries via Reading API Documentationscited by 3
- 2022Transformer with Tree-order Encoding for Neural Program Generationcited by 3
- 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
12 most cited of 15 All 15 (JSON)
- 2023CodeBPE: Investigating Subtokenization Options for Large Language Model Pretraining on Source Code1 Aug 2023
- 2023Exploring Continual Learning for Code Generation Models5 Jul 2023
- 2023Bayesian Program Learning by Decompiling Amortized Knowledge13 Jun 2023
- 2022Top-Down Synthesis for Library Learning29 Nov 2022
- 2022Programming by Example and Text-to-Code Translation for Conversational Code Generation21 Nov 2022
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generation15 Nov 2022
- 2022Transformer with Tree-order Encoding for Neural Program Generation30 May 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022Code Generation for Unknown Libraries via Reading API Documentations16 Feb 2022
- 2021Procedures as Programs: Hierarchical Control of Situated Agents through Natural Language16 Sep 2021
- 2021Total Recall: a Customized Continual Learning Method for Neural Semantic Parsers11 Sep 2021
- 2021Toward Code Generation: A Survey and Lessons from Semantic Parsing26 Apr 2021
12 newest of 15 All 15 (JSON)