Learning type annotation: is big data enough?

By Kevin Jesse, Prem Devanbu, Toufique Ahmed. 2021

43 citations recorded by the source corpus.

TypeScript is a widely used optionally-typed language where developers can adopt “pay as you go” typing: they can add types as desired, and benefit from static typing. The “type annotation tax” or manual effort required to annotate new or existing TypeScript can be reduced by a variety of automatic methods. Probabilistic machine-learning (ML) approaches work quite well. ML approaches use different inductive biases, ranging from simple token sequences to complex graphical neural network (GNN) models capturing syntax and semantic relations. More sophisticated inductive biases are hand-engineered to exploit the formal nature of software. Rather than deploying fancy inductive biases for code, can we just use “big data” to learn natural patterns relevant to typing? We find evidence suggesting that this is the case. We present TypeBert, demonstrating that even with simple token-sequence inductive bias used in BERT-style models and enough data, type-annotation performance of the most sophisticated models can be surpassed.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Program Analysis & Verification

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. Michael Lewis
  3. Wen-tau Yih
  4. Percy Liang
  5. Hannaneh Hajishirzi
  6. Mohit Bansal
  7. Eric Wallace
  8. Noah A. Smith

In Information Systems

  1. Ming-Ho Yee
  2. Prem Devanbu
  3. Arjun Guha
  4. Kevin Jesse
  5. Anand Ashok Sawant
  6. Toufique Ahmed
  7. Wen-tau Yih
  8. Sida I. Wang

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Wen-tau Yih
  3. Percy Liang
  4. Michael Lewis
  5. Eric Wallace
  6. Dan Roth
  7. Mohit Bansal
  8. Yejin Choi

In Program Analysis & Verification

  1. Ming-Ho Yee
  2. Arjun Guha
  3. Prem Devanbu
  4. Anand Ashok Sawant
  5. Kevin Jesse
  6. Amir M. Mir
  7. Sebastian Proksch
  8. Luke S. Zettlemoyer

Citations in the corpus