Neural Bug Finding: A Study of Opportunities and Challenges
Not on the map. Why?
Abstract (arXiv)
Static analysis is one of the most widely adopted techniques to find software bugs before code is put in production. Designing and implementing effective and efficient static analyses is difficult and requires high expertise, which results in only a few experts able to write such analyses. This paper explores the opportunities and challenges of an alternative way of creating static bug detectors: neural bug finding. The basic idea is to formulate bug detection as a classification problem, and to address this problem with neural networks trained on examples of buggy and non-buggy code. We systematically study the effectiveness of this approach based on code examples labeled by a state-of-the-art, static bug detector. Our results show that neural bug finding is surprisingly effective for some bug patterns, sometimes reaching a precision and recall of over 80%, but also that it struggles to understand some program properties obvious to a traditional analysis. A qualitative analysis of the results provides insights into why neural bug finders sometimes work and sometimes do not work. We also identify pitfalls in selecting the code examples used to train and validate neural bug finders, and propose an algorithm for selecting effective training data.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 1; 2025: 0; 2026: 1.
6 papers.
- 2022Follow-up Attention: An Empirical Study of Developer and Neural Model Code Explorationcited by 5
- 2024The Power of Types: Exploring the Impact of Type Checking on Neural Bug Detection in Dynamically Typed Languagescited by 1
- 2026SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repaircited by 1
- 2021Machine Learning Techniques for Software Quality Assurance: A Surveycited by 0
- 2021DeepMutants: Training neural bug detectors with contextual mutationscited by 0
- 2022Code Compliance Assessment as a Learning Problemcited by 0
- 2026SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair19 Apr 2026
- 2024The Power of Types: Exploring the Impact of Type Checking on Neural Bug Detection in Dynamically Typed Languages22 Nov 2024
- 2022Follow-up Attention: An Empirical Study of Developer and Neural Model Code Exploration11 Oct 2022
- 2022Code Compliance Assessment as a Learning Problem10 Sep 2022
- 2021DeepMutants: Training neural bug detectors with contextual mutations14 Jul 2021
- 2021Machine Learning Techniques for Software Quality Assurance: A Survey29 Apr 2021