Lune

ASE2025Top-tier venue

Belief Propagation with Local Structure and Its Applications in Program Analysis

Yiqian Wu, Yifan Chen, Yingfei Xiong, Xin Zhang

Abstract

In program analysis, there is an emerging trend to apply probabilistic reasoning. In general, these approaches build their models based on probabilistic graphical models because they can express local correlations through factors in a compositional manner, which is suitable for program analysis. These models commonly use the loopy belief propagation algorithm to infer the marginal probability distribution for efficiency. However, the efficiency of loopy belief propagation is still affected by large factors. To address this challenge, our insight is that we can exploit the local structure of probabilistic constraints to speed up the inference. To realize this idea, we use if-then rules to encode the factors with local structures and propose an efficient loopy belief propagation algorithm based on it. We also discuss the inference algorithm complexity and prove some applicable conditions of our approach. Our approach is evaluated on two existing program analysis works based on probabilistic graphical models. The results show that our approach can be 5.11 and 2.31 times faster than the original loopy belief propagation algorithm on average, respectively.

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.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Beer: Interactive Alarm Resolution in Bayesian Program Analysis via Exploration-Exploitation cites Boosting static analysis accuracy with instrumented test executions
  • Beer: Interactive Alarm Resolution in Bayesian Program Analysis via Exploration-Exploitation cites Learning Probabilistic Models for Static Analysis Alarms
  • Learning Probabilistic Models for Static Analysis Alarms cites Boosting static analysis accuracy with instrumented test executions
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Beer: Interactive Alarm Resolution in Bayesian Program Analysis via Exploration-ExploitationHaoran Lin, Zhenyu Yan, Xin ZhangOOPSLA 2026

Builds on4

  1. Scaling exact inference for discrete probabilistic programsSteven Holtzen, Guy Van den Broeck, Todd D. MillsteinOOPSLA 2020 · 85 citations
  2. Fault Localization via Efficient Probabilistic Modeling of Program SemanticsMuhan Zeng, Yiqian Wu, Zhentao Ye, Yingfei Xiong et al.ICSE 2022 · 37 citations
  3. Boosting static analysis accuracy with instrumented test executionsTianyi Chen, Kihong Heo, Mukund RaghothamanFSE 2021 · 18 citations
  4. Learning Probabilistic Models for Static Analysis AlarmsHyunsu Kim, Mukund Raghothaman, Kihong HeoICSE 2022 · 13 citations

Related papers

  1. Learning Abstraction Selection for Bayesian Program AnalysisYifan Zhang, Yuanfeng Shi, Xin ZhangOOPSLA 2024 · 8 citations
  2. On Abstraction Refinement for Bayesian Program AnalysisYuanfeng Shi, Yifan Zhang, Xin ZhangOOPSLA 2025 · 4 citations
  3. Incremental Inference for Probabilistic DatalogXuyang Li, Weiyi Chen, Isil Dillig, Jingbo WangCAV 2026
  4. Fixed-Parameter Tractable Inference for Discrete Probabilistic Programs, via String Diagram AlgebraisationBenedikt Peterseim, Milan Lopuhaä-ZwakenbergLICS 2026
  5. Prosecutor: Bayesian Counterfactual Fault LocalizationSara Baradaran, Yifei Huang, Wei Le, Mukund RaghothamanOOPSLA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines