Learning probabilistic models for static analysis alarms
Learning probabilistic models for static analysis alarms
复制标题
学习静态分析警报的概率模型
DOI:
10.1145/3510003.3510098
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Heo, Kihong
中科院分区:
文献类型:
--
作者:
Kim, Hyunsu;Raghothaman, Mukund;Heo, Kihong
We present BayeSmith, a general framework for automatically learning probabilistic models of static analysis alarms. Several probabilistic reasoning techniques have recently been proposed which incorporate external feedback on semantic facts and thereby reduce the user's alarm inspection burden. However, these approaches are fundamentally limited to models with pre-defined structure, and are therefore unable to learn or transfer knowledge regarding an analysis from one program to another. Furthermore, these probabilistic models often aggressively generalize from external feedback and falsely suppress real bugs. To address these problems, we propose BayeSmith that learns the structure and weights of the probabilistic model. Starting from an initial model and a set of training programs with bug labels, BayeSmith refines the model to effectively prioritize real bugs based on feedback. We evaluate the approach with two static analyses on a suite of C programs. We demonstrate that the learned models significantly improve the performance of three state-of-the-art probabilistic reasoning systems.