mlsanityData to 13 Oct 2026

DeepMutants: Training neural bug detectors with contextual mutations

arXiv 2107.06657 ↗First posted 14 Jul 2021cs.SE cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Learning-based bug detectors promise to find bugs in large code bases by exploiting natural hints such as names of variables and functions or comments. Still, existing techniques tend to underperform when presented with realistic bugs. We believe bug detector learning to currently suffer from a lack of realistic defective training examples. In fact, real world bugs are scarce which has driven existing methods to train on artificially created and mostly unrealistic mutants. In this work, we propose a novel contextual mutation operator which incorporates knowledge about the mutation context to dynamically inject natural and more realistic faults into code. Our approach employs a masked language model to produce a context-dependent distribution over feasible token replacements. The evaluation shows that sampling from a language model does not only produce mutants which more accurately represent real bugs but also lead to better performing bug detectors, both on artificial benchmarks and on real world source code.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 20 of its 43 references that are in the map. First posted on arXiv 14 Jul 2021.

Builds on

20 of 43 references.

References · 20

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,093
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,910
  5. 2018Self-Attention with Relative Position Representationscited by 1,116
  6. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 651
  7. 2020Unsupervised Translation of Programming Languagescited by 262
  8. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  9. 2017Learning to Represent Programs with Graphscited by 220
  10. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  11. 2020A Transformer-based Approach for Source Code Summarizationcited by 132
  12. 2018DeepBugs: A Learning Approach to Name-based Bug Detectioncited by 65
8 more
  1. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
  2. 2019Neural Program Repair by Jointly Learning to Localize and Repaircited by 40
  3. 2019How Often Do Single-Statement Bugs Occur? The ManySStuBs4J Datasetcited by 36
  4. 2015On the "Naturalness" of Buggy Codecited by 35
  5. 2020SCELMo: Source Code Embeddings from Language Modelscited by 16
  6. 2019Neural Bug Finding: A Study of Opportunities and Challengescited by 6
  7. 2016Tailored Mutants Fit Bugs Bettercited by 3
  8. 2019Using Distributed Representation of Code for Bug Detectioncited by 3

Built on by

Not cited yet.