User-Guided Program Reasoning Using Bayesian Inference
Title | User-Guided Program Reasoning Using Bayesian Inference |
Publication Type | Conference Paper |
Year of Publication | 2018 |
Authors | Raghothaman, Mukund, Kulkarni, Sulekha, Heo, Kihong, Naik, Mayur |
Conference Name | Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementation |
Publisher | ACM |
ISBN Number | 978-1-4503-5698-5 |
Keywords | alarm ranking, Bayesian inference, belief networks, composability, Metrics, pubcrawl, static analysis, taint analysis |
Abstract | Program analyses necessarily make approximations that often lead them to report true alarms interspersed with many false alarms. We propose a new approach to leverage user feedback to guide program analyses towards true alarms and away from false alarms. Our approach associates each alarm with a confidence value by performing Bayesian inference on a probabilistic model derived from the analysis rules. In each iteration, the user inspects the alarm with the highest confidence and labels its ground truth, and the approach recomputes the confidences of the remaining alarms given this feedback. It thereby maximizes the return on the effort by the user in inspecting each alarm. We have implemented our approach in a tool named Bingo for program analyses expressed in Datalog. Experiments with real users and two sophisticated analyses--a static datarace analysis for Java programs and a static taint analysis for Android apps--show significant improvements on a range of metrics, including false alarm rates and number of bugs found. |
URL | https://dl.acm.org/citation.cfm?doid=3192366.3192417 |
DOI | 10.1145/3192366.3192417 |
Citation Key | raghothaman_user-guided_2018 |