A systematic evaluation of large language models of code

By Frank F. Xu, Uri Alon, Graham Neubig, Vincent J. Hellendoorn. 2022

884 citations recorded by the source corpus.

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) are not publicly available, leaving many questions about their model and data design decisions. 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 opensource 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, that 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. We have an online appendix at https://arxiv.org/abs/2202.13169.

Subfields: Artificial Intelligence, Information Systems, Large Language Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Graham Neubig
  4. Percy Liang
  5. Jianfeng Gao
  6. Hannaneh Hajishirzi
  7. Yejin Choi
  8. Noah A. Smith

In Information Systems

  1. Uri Alon
  2. Chun Xia
  3. Michael Pradel
  4. Lingming Zhang
  5. Xinyun Chen
  6. Denny Zhou
  7. Graham Neubig
  8. Miltiadis Allamanis

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Graham Neubig
  3. Jie Tang
  4. Weizhu Chen
  5. Michael Lewis
  6. Minlie Huang
  7. Armen Aghajanyan
  8. Nan Duan

Citations in the corpus