LLM-Based Alarm Resolution Guided by Bayesian Program Analysis
Yifan Zhang, Yuanfeng Shi, Haoran Lin, Yingfei Xiong, Xin Zhang
Key points
From the paper's conclusion- Building on these ideas, we present an LLM-based alarm resolution framework guided by Bayesian program analysis.
Abstract
-interpretation-based static analyzers often report large numbers of alarms due to over-approximation. Although large language models (LLMs) can help filter alarms, per-alarm prompting is often inaccurate and expensive. LLMs often misjudge such end alarms, and the repeated context across queries wastes many tokens. We shift LLM judgment from end alarms to intermediate facts (e.g., alias or flow edges), which are easier to validate. If a fact is judged false, all dependent facts and alarms can be pruned. We capture these dependencies in a derivation graph, enabling analyzer-agnostic pruning for any tool that exposes derivations. Under a token budget, we define the fact impact prioritization problem, which asks which facts to query first to maximize expected downstream pruning. We solve it with Bayesian program analysis by estimating each fact’s pruning impact from rule probabilities and fact posteriors. Building on these ideas, we present an LLM-based alarm resolution framework guided by Bayesian program analysis. It iteratively queries high-impact facts that LLMs can judge accurately, prunes downstream nodes when a fact is false, and feeds the judgments back to the Bayesian model as high-confidence evidence. We evaluate our approach on a Java datarace analysis and a C taint analysis, showing that it improves alarm-resolution quality while substantially reducing token consumption compared with both unfiltered static analysis and per-alarm LLM judging.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Self-Evolving Static Analysis via LLM Pseudo-LabelingarXiv · 2026
- Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive FilteringProceedings of the ACM on Software Engineering · 2026
- Large Language Model Powered Symbolic ExecutionProceedings of the ACM on Programming Languages · 2025
- Static Analysis Guidance for Secure LLM Code GenerationarXiv · 2026
- Trusting the Tool: Asymmetric Deference of LLM Vulnerability Auditors to Static-Analysis EvidencearXiv · 2026
- VulnSAGE: Adjudicating SAST Reports by Connecting LLM Reasoning to Program StructurearXiv · 2026