Self-Supervised Bug Detection and Repair

Miltiadis Allamanis, Henry Jackson-Flux, Marc Brockschmidt
5/26/2021
cs.LGcs.SE
contrastive-ssl

Official code: microsoft/neurips21-self-supervised-bug-detection-and-repair (111 stars, Python, MIT, last commit 2022-08-30).

Abstract

Machine learning-based program analyses have recently shown the promise of integrating formal and probabilistic reasoning towards aiding software development. However, in the absence of large annotated corpora, training these analyses is challenging.

Show full abstract

Towards addressing this, we present BugLab, an approach for self-supervised learning of bug detection and repair. BugLab co-trains two models: (1) a detector model that learns to detect and repair bugs in code, (2) a selector model that learns to create buggy code for the detector to use as training data. A Python implementation of BugLab improves by up to 30% upon baseline methods on a test dataset of 2374 real-life bugs and finds 19 previously unknown bugs in open-source software.

View on arXivView PDF

Code Implementations(1)

MIT

Replication Code for "Self-Supervised Bug Detection and Repair" NeurIPS 2021

11123Python, HCLOct 15, 20214 years agoMIT

Similar Papers

Cite this paper

@article{allamanis2021selfsupervised,
  title  = {Self-Supervised Bug Detection and Repair},
  author = {Miltiadis Allamanis and Henry Jackson-Flux and Marc Brockschmidt},
  year   = {2021},
  eprint = {2105.12787},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.12787}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.12787.svg)](https://codeofpaper.com/paper/2105.12787)

Discussion