Pythia: AI-assisted Code Completion System

By Alexey Svyatkovskiy, Ying Zhao, Shengyu Fu, Neel Sundaresan. 2019

181 citations recorded by the source corpus.

In this paper, we propose a novel end-to-end approach for AI-assisted code completion called Pythia. It generates ranked lists of method and API recommendations which can be used by software developers at edit time. The system is currently deployed as part of Intellicode extension in Visual Studio Code IDE. Pythia exploits state-of-the-art large-scale deep learning models trained on code contexts extracted from abstract syntax trees. It is designed to work at a high throughput predicting the best matching code completions on the order of 100 ms. We describe the architecture of the system, perform comparisons to frequency-based approach and invocation-based Markov Chain language model, and discuss challenges serving Pythia models on lightweight client devices. The offline evaluation results obtained on 2700 Python open source software GitHub repositories show a top-5 accuracy of 92%, surpassing the baseline models by 20% averaged over classes, for both intra and cross-project settings.

Subfields: Computer Networks and Communications, Information Systems, Software, Natural Language Processing, Software Engineering

How researchers see this paper

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

In Computer Networks and Communications

  1. Miltiadis Allamanis
  2. Charles Sutton
  3. Petros Maniatis
  4. Percy Liang
  5. Xinyun Chen
  6. Ge Li
  7. Zhi Jin
  8. Marc Brockschmidt

In Information Systems

  1. Miltiadis Allamanis
  2. Charles Sutton
  3. Daya Guo
  4. Nan Duan
  5. Rishabh Singh
  6. Ge Li
  7. Zhi Jin
  8. Marc Brockschmidt

In Software

  1. Nan Duan
  2. Daya Guo
  3. Charles Sutton
  4. Alexey Svyatkovskiy
  5. Marc Brockschmidt
  6. Xinyun Chen
  7. Rishabh Singh
  8. Miltiadis Allamanis

In Natural Language Processing

  1. Charles Sutton
  2. Miltiadis Allamanis
  3. Rishabh Singh
  4. Nan Duan
  5. Marc Brockschmidt
  6. Ge Li
  7. Xinyun Chen
  8. Zhi Jin

In Software Engineering

  1. Xinyun Chen
  2. Georgios Gousios
  3. Miltiadis Allamanis
  4. Charles Sutton

Citations in the corpus