arXiv (Cornell University) · 2019 · 15 citations · 59 references
ComputingComputer ScienceMachine LearningNatural Language ProcessingSoftware EngineeringStatic AnalysisStatic Code AnalysisAutomated Bug FindingBug FixingBug Pattern DetectionStatic Bug Detection
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.
59
Natural Language Processing (almost) from Scratch
Ronan Collobert, Jason Weston, Léon Bottou et al. · arXiv (Cornell University) · 2011 · 5.2K citations · Full text
Learning to forget: continual prediction with LSTM
Felix A. Gers · 1999 · 2.4K citations
Cost-sensitive boosting for classification of imbalanced data
Yanmin Sun, Mohamed S. Kamel, Andrew K. C. Wong et al. · Pattern Recognition · 2007 · 1.4K citations
Computing, Data Science, Data Mining +13