Learning Probabilistic Models for Static Analysis Alarms
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- On Abstraction Refinement for Bayesian Program Analysis cites Learning Abstraction Selection for Bayesian Program Analysis
- On Abstraction Refinement for Bayesian Program Analysis cites Boosting static analysis accuracy with instrumented test executions
- Learning Abstraction Selection for Bayesian Program Analysis cites Learning fast and precise numerical analysis
- Learning Abstraction Selection for Bayesian Program Analysis cites Boosting static analysis accuracy with instrumented test executions
- Learning Abstraction Selection for Bayesian Program Analysis cites Learning graph-based heuristics for pointer analysis without handcrafting application-specific features
- Parf: Adaptive Parameter Refining for Abstract Interpretation cites Learning Abstraction Selection for Bayesian Program Analysis
- Parf: Adaptive Parameter Refining for Abstract Interpretation cites Boosting static analysis accuracy with instrumented test executions
- Belief Propagation with Local Structure and Its Applications in Program Analysis cites Boosting static analysis accuracy with instrumented test executions
- Learning graph-based heuristics for pointer analysis without handcrafting application-specific features cites Learning fast and precise numerical analysis
- Fuzzing Guided by Bayesian Program Analysis cites On Abstraction Refinement for Bayesian Program Analysis
- Fuzzing Guided by Bayesian Program Analysis cites Learning Abstraction Selection for Bayesian Program Analysis
- Fuzzing Guided by Bayesian Program Analysis cites Boosting static analysis accuracy with instrumented test executions
Cited by top-tier papers10
- Learning Abstraction Selection for Bayesian Program AnalysisYifan Zhang, Yuanfeng Shi, Xin ZhangOOPSLA 2024 · 8 citations
- On Abstraction Refinement for Bayesian Program AnalysisYuanfeng Shi, Yifan Zhang, Xin ZhangOOPSLA 2025 · 4 citations
- Parf: Adaptive Parameter Refining for Abstract InterpretationZhongyi Wang, Linyu Yang, Mingshuai Chen, Yixuan Bu et al.ASE 2024 · 2 citations
- Fuzzing Guided by Bayesian Program AnalysisYifan Zhang, Xin ZhangPOPL 2026 · 2 citations
- Belief Propagation with Local Structure and Its Applications in Program AnalysisYiqian Wu, Yifan Chen, Yingfei Xiong, Xin ZhangASE 2025 · 1 citation
Builds on4
- Provenance-guided synthesis of Datalog programsMukund Raghothaman, Jonathan Mendelson, David Zhao, Mayur Naik et al.POPL 2020 · 49 citations
- Learning graph-based heuristics for pointer analysis without handcrafting application-specific featuresMinseok Jeon, Myungho Lee, Hakjoo OhOOPSLA 2020 · 29 citations
- Learning fast and precise numerical analysisJingxuan He, Gagandeep Singh, Markus Püschel, Martin T. VechevPLDI 2020 · 18 citations
- Boosting static analysis accuracy with instrumented test executionsTianyi Chen, Kihong Heo, Mukund RaghothamanFSE 2021 · 18 citations
Related papers
- LLM-Based Alarm Resolution Guided by Bayesian Program AnalysisYifan Zhang, Yuanfeng Shi, Haoran Lin, Yingfei Xiong et al.OOPSLA 2026
- Learning to Boost Disjunctive Static Bug-FindersYoonseok Ko, Hakjoo OhICSE 2023 · 1 citation
- Beer: Interactive Alarm Resolution in Bayesian Program Analysis via Exploration-ExploitationHaoran Lin, Zhenyu Yan, Xin ZhangOOPSLA 2026
- Actionable Warning Is Not Enough: Recommending Valid Actionable Warnings with Weak SupervisionZhipeng Xue, Zhipeng Gao, Tongtong Xu, Xing Hu et al.ICSE 2026
- Precise Data-Driven Approximation for Program Analysis via FuzzingNikhil Parasaram, Earl T. Barr, Sergey Mechtaev, Marcel BöhmeASE 2023 · 1 citation
