Neural Program Repair by Jointly Learning to Localize and Repair

By Marko Vasic, Aditya Kanade, Petros Maniatis, David Bieber, Rishabh Singh. 2019

138 citations recorded by the source corpus.

Due to its potential to improve programmer productivity and software quality, automated program repair has been an active topic of research. Newer techniques harness neural networks to learn directly from examples of buggy programs and their fixes. In this work, we consider a recently identified class of bugs called variable-misuse bugs. The state-of-the-art solution for variable misuse enumerates potential fixes for all possible bug locations in a program, before selecting the best prediction. We show that it is beneficial to train a model that jointly and directly localizes and repairs variable-misuse bugs. We present multi-headed pointer networks for this purpose, with one head each for localization and repair. The experimental results show that the joint model significantly outperforms an enumerative solution that uses a pointer based model for repair alone.

Subfields: Artificial Intelligence, Electrical and Electronic Engineering, Information Systems, 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. Percy Liang
  2. Miltiadis Allamanis
  3. Charles Sutton
  4. Uri Alon
  5. Nan Duan
  6. Graham Neubig
  7. Jianfeng Gao
  8. Rishabh Singh

In Electrical and Electronic Engineering

  1. Petros Maniatis
  2. Aditya Kanade
  3. Charles Sutton
  4. Kensen Shi
  5. A. Aiken
  6. Percy Liang
  7. Daniel Tarlow
  8. Eran Yahav

In Information Systems

  1. Miltiadis Allamanis
  2. Charles Sutton
  3. Prem Devanbu
  4. Uri Alon
  5. Rishabh Singh
  6. Vincent J. Hellendoorn
  7. Percy Liang
  8. Eran Yahav

In Program Analysis & Verification

  1. Rishabh Singh
  2. Aditya Kanade
  3. Petros Maniatis
  4. Eran Yahav
  5. Prem Devanbu
  6. Uri Alon
  7. Charles Sutton
  8. Miltiadis Allamanis

Citations in the corpus