A Systematic Evaluation of Large Language Models of Code

Frank F. Xu, Uri Alon, Graham Neubig, Vincent J. Hellendoorn
2/26/2022
928 citations
cs.PLcs.CL

Official code: VHellendoorn/Code-LMs (1,841 stars, Python, MIT, last commit 2024-07-07). Most starred: EleutherAI/gpt-neox, a community implementation (7,476 stars, Python, Apache-2.0, last commit 2026-04-13, 4.1× the official stars). 1 more implementation below.

Abstract

Large language models (LMs) of code have recently shown tremendous promise in completing code and synthesizing code from natural language descriptions. However, the current state-of-the-art code LMs (e.g., Codex (Chen et al., 2021)) are not publicly available, leaving many questions about their model and data design decisions.

Show full abstract

We aim to fill in some of these blanks through a systematic evaluation of the largest existing models: Codex, GPT-J, GPT-Neo, GPT-NeoX-20B, and CodeParrot, across various programming languages. Although Codex itself is not open-source, we find that existing open-source models do achieve close results in some programming languages, although targeted mainly for natural language modeling. We further identify an important missing piece in the form of a large open-source model trained exclusively on a multi-lingual corpus of code. We release a new model, PolyCoder, with 2.7B parameters based on the GPT-2 architecture, which was trained on 249GB of code across 12 programming languages on a single machine. In the C programming language, PolyCoder outperforms all models including Codex. Our trained models are open-source and publicly available at https://github.com/VHellendoorn/Code-LMs, which enables future research and application in this area.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
VHellendoorn/Code-LMsOfficial1,841PythonMIT2024-07-07
EleutherAI/gpt-neoxCommunity7,476PythonApache-2.02026-04-13
MIT

Guide to using pre-trained large language models of source code

1,841261Python, ShellNov 25, 20212 years agoMIT
deep-learninggpt-2source-code
EleutherAI/gpt-neoxCommunity100%
Apache-2.0

An implementation of model parallel autoregressive transformers on GPUs, based on the Megatron and DeepSpeed libraries

7,4761,131Python, C++Dec 22, 20207 months agoApache-2.0
deepspeed-librarygpt-3language-modeltransformers

Similar Papers

Cite this paper

@article{xu2022systematic,
  title  = {A Systematic Evaluation of Large Language Models of Code},
  author = {Frank F. Xu and Uri Alon and Graham Neubig and Vincent J. Hellendoorn},
  year   = {2022},
  eprint = {2202.13169},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13169}
}

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

Discussion