Code Generation from Natural Language with Less Prior and More Monolingual Data

Sajad Norouzi, Keyi Tang, Yanshuai Cao
1/1/2021
cs.CLcs.LG

Official code: BorealisAI/code-gen-TAE (12 stars, Python, last commit 2021-08-24).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Code generation from natural language with less prior and more monolingual data

121PythonMay 31, 20215 years agoNOASSERTION

Similar Papers

Cite this paper

@article{norouzi2021code,
  title  = {Code Generation from Natural Language with Less Prior and More Monolingual Data},
  author = {Sajad Norouzi and Keyi Tang and Yanshuai Cao},
  year   = {2021},
  eprint = {2101.00259},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.00259}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.00259.svg)](https://codeofpaper.com/paper/2101.00259)

Discussion