Graph-based, Self-Supervised Program Repair from Diagnostic Feedback

By Michihiro Yasunaga, Percy Liang. 2020

204 citations recorded by the source corpus.

We consider the problem of learning to repair programs from diagnostic feedback (e.g., compiler error messages). Program repair is challenging for two reasons: First, it requires reasoning and tracking symbols across source code and diagnostic feedback. Second, labeled datasets available for program repair are relatively small. In this work, we propose novel solutions to these two challenges. First, we introduce a program-feedback graph, which connects symbols relevant to program repair in source code and diagnostic feedback, and then apply a graph neural network on top to model the reasoning process. Second, we present a self-supervised learning paradigm for program repair that leverages unlabeled programs available online to create a large amount of extra program repair examples, which we use to pre-train our models. We evaluate our proposed approach on two applications: correcting introductory programming assignments (DeepFix dataset) and correcting the outputs of program synthesis (SPoC dataset). Our final system, DrRepair, significantly outperforms prior work, achieving 68.2% full repair rate on DeepFix (+22.9% over the prior best), and 48.4% synthesis success rate on SPoC (+3.7% over the prior best).

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

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. Denny Zhou
  2. Armando Solar-Lezama
  3. Michihiro Yasunaga
  4. Percy Liang
  5. Charles Sutton
  6. Yiming Yang
  7. Maxwell Nye
  8. Xinyun Chen

In Information Systems

  1. Percy Liang
  2. Uri Alon
  3. Charles Sutton
  4. Luke S. Zettlemoyer
  5. Wen-tau Yih
  6. Xinyun Chen
  7. Michihiro Yasunaga
  8. Denny Zhou

In Software

  1. Michihiro Yasunaga
  2. Percy Liang
  3. Armando Solar-Lezama
  4. Charles Sutton
  5. Baptiste Rozière
  6. Denny Zhou
  7. Josh Tenenbaum
  8. Vincent J. Hellendoorn

In Natural Language Processing

  1. Graham Neubig
  2. Luke S. Zettlemoyer
  3. Percy Liang
  4. Mohit Bansal
  5. Caiming Xiong
  6. Richard Socher
  7. Jianfeng Gao
  8. Yejin Choi

Citations in the corpus