Automated Source Code Generation and Auto-completion Using Deep Learning: Comparing and Discussing Current Language-Model-Related Approaches

Juan Cruz-Benito, Sanjay Vishwakarma, Francisco Martin-Fernandez, Ismael Faro
9/16/2020
cs.CLcs.LGcs.PL

Official code: cbjuan/tokenizers-neural-nets-2020-paper (7 stars, Jupyter Notebook, Apache-2.0, last commit 2021-01-14).

Abstract

In recent years, the use of deep learning in language models gained much attention. Some research projects claim that they can generate text that can be interpreted as human-writing, enabling new possibilities in many application areas.

Show full abstract

Among the different areas related to language processing, one of the most notable in applying this type of modeling is programming languages. For years, the Machine Learning community has been researching this software engineering area, pursuing goals like applying different approaches to auto-complete, generate, fix, or evaluate code programmed by humans. Considering the increasing popularity of the Deep-Learning-enabled language models approach, we detected a lack of empirical papers that compare different deep learning architectures to create and use language models based on programming code. This paper compares different neural network architectures like AWD-LSTMs, AWD-QRNNs, and Transformer while using transfer learning and different tokenizations to see how they behave in building language models using a Python dataset for code generation and filling mask tasks. Considering the results, we discuss each approach's different strengths and weaknesses and what gaps we find to evaluate the language models or apply them in a real programming context.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Notebooks, models, results and utils related to the paper "Automated Source Code Generation and Auto-completion Using Deep Learning: Comparing and Discussing Current Language-Model-Related Approaches"

72Jupyter Notebook, PythonJan 14, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{cruzbenito2020automated,
  title  = {Automated Source Code Generation and Auto-completion Using Deep Learning: Comparing and Discussing Current Language-Model-Related Approaches},
  author = {Juan Cruz-Benito and Sanjay Vishwakarma and Francisco Martin-Fernandez and Ismael Faro},
  year   = {2020},
  eprint = {2009.07740},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.07740}
}

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/2009.07740.svg)](https://codeofpaper.com/paper/2009.07740)

Discussion