Code Generation from Natural Language with Less Prior and More Monolingual Data
Not on the map. Why?
Abstract (arXiv)
Training datasets for semantic parsing are typically small due to the higher expertise required for annotation than most other NLP tasks. As a result, models for this application usually need additional prior knowledge to be built into the architecture or algorithm. The increased dependency on human experts hinders automation and raises the development and maintenance costs in practice. This work investigates whether a generic transformer-based seq2seq model can achieve competitive performance with minimal code-generation-specific inductive bias design. By exploiting a relatively sizeable monolingual corpus of the target programming language, which is cheap to mine from the web, we achieved 81.03% exact match accuracy on Django and 32.57 BLEU score on CoNaLa. Both are SOTA to the best of our knowledge. This positive evidence highlights a potentially easier path toward building accurate semantic parsers in practice.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 25 of its 36 references that are in the map. First posted on arXiv 1 Jan 2021.
Builds on
25 of 36 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 784
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2016Language to Logical Form with Neural Attentioncited by 158
13 more
- 2015On Using Monolingual Corpora in Neural Machine Translationcited by 149
- 2018Improving Text-to-SQL Evaluation Methodologycited by 133
- 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
- 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
- 2017Cold Fusion: Training Seq2Seq Models Together with Language Modelscited by 87
- 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
- 2016Latent Predictor Networks for Code Generationcited by 73
- 2016Unsupervised Pretraining for Sequence to Sequence Learningcited by 47
- 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
- 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
- 2018Simple Fusion: Return of the Language Modelcited by 30
- 2020Photon: A Robust Cross-Domain Text-to-SQL Systemcited by 26
- 2019Using Monolingual Data in Neural Machine Translation: a Systematic Studycited by 21
Built on by
Citing papers per year: 2022: 4; 2023: 2.
6 papers.
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2022The impact of lexical and grammatical processing on generating code from natural languagecited by 6
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2023Converting Epics/Stories into Pseudocode using Transformerscited by 1
- 2022Programming Language Agnostic Mining of Code and Language Pairs with Sequence Labeling Based Question Answeringcited by 0
- 2023Converting Epics/Stories into Pseudocode using Transformers8 Dec 2023
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2022Programming Language Agnostic Mining of Code and Language Pairs with Sequence Labeling Based Question Answering21 Mar 2022
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages16 Mar 2022
- 2022The impact of lexical and grammatical processing on generating code from natural language28 Feb 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022