English

Learning to Reduce False Positives in Analytic Bug Detectors

Software Engineering 2022-03-21 v1 Machine Learning

Abstract

Due to increasingly complex software design and rapid iterative development, code defects and security vulnerabilities are prevalent in modern software. In response, programmers rely on static analysis tools to regularly scan their codebases and find potential bugs. In order to maximize coverage, however, these tools generally tend to report a significant number of false positives, requiring developers to manually verify each warning. To address this problem, we propose a Transformer-based learning approach to identify false positive bug warnings. We demonstrate that our models can improve the precision of static analysis by 17.5%. In addition, we validated the generalizability of this approach across two major bug types: null dereference and resource leak.

Keywords

Cite

@article{arxiv.2203.09907,
  title  = {Learning to Reduce False Positives in Analytic Bug Detectors},
  author = {Anant Kharkar and Roshanak Zilouchian Moghaddam and Matthew Jin and Xiaoyu Liu and Xin Shi and Colin Clement and Neel Sundaresan},
  journal= {arXiv preprint arXiv:2203.09907},
  year   = {2022}
}

Comments

Accepted for publication at ICSE 2022

R2 v1 2026-06-24T10:18:18.745Z