Language Modelling for Source Code with Transformer-XL

Thomas Dowdell, Hongyu Zhang
7/31/2020
cs.LGcs.CLcs.SE
transformer-attention

Official code: Anon-111/Source-Code-Modelling (5 stars, Python, last commit 2020-06-06).

Abstract

It has been found that software, like natural language texts, exhibits "naturalness", which can be captured by statistical language models. In recent years, neural language models have been proposed to represent the naturalness of software through deep learning.

Show full abstract

In this paper, we conduct an experimental evaluation of state-of-the-art neural language models for source code, including RNN-based models and Transformer-XL based models. Through experiments on a large-scale Python code corpus, we find that the Transformer-XL model outperforms RNN-based models (including LSTM and GRU models) in capturing the naturalness of software, with far less computational cost.

View on arXivView PDF

Code Implementations(1)

Repository for 'Language Modeling for Source Code with Transformer-XL'

51PythonDec 21, 20196 years ago

Similar Papers

Cite this paper

@article{dowdell2020language,
  title  = {Language Modelling for Source Code with Transformer-XL},
  author = {Thomas Dowdell and Hongyu Zhang},
  year   = {2020},
  eprint = {2007.15813},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.15813}
}

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

Discussion