paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Abstract Interpretation with Confidence: Quantifying the Precision of Dataflow Analysis with Probabilities

带有置信度的抽象解释:用概率量化数据流分析的精度
PLDI 10(PLDI)2026匹配度 4/10 · 论文属于抽象解释与数据流分析的理论工作,讨论概率化置信度与局部完备性,但与用户当前关注的静态分析与LLM/Agent交叉、浮点程序分析或贝叶斯程序分析等核心方向没有直接关联,且缺乏工程落地或AI结合。引用 0 inbox
Yuanfeng Shi, Ziyue Jin, Xin Zhang
crossref: 2026-09-10

AI 速览

一句话:为抽象解释的数据流分析建立概率化置信度理论框架,量化分析结果的局部完备性精度。

抽象解释是静态程序分析的基础框架,它以过近似保证可靠性(无漏报),但因不完备而常产生误报。已有工作尝试用概率技术为告警计算置信度,但大多依赖经验直觉、缺乏理论基础。本文将数据流分析的置信度问题严格定义为:在与该抽象解释一致的程序的分布下,计算抽象解释器对被采样程序局部完备(locally complete)的概率。为此,作者提出组合式指称语义 ⟨⟨·⟩⟩,据此推导程序输出的分布,从而计算这些置信概率;为保证计算的可处理性,又提出一个下近似语义 ⟨⟨·⟩⟩_lc。论文证明了这两种语义的正确性,从而为用概率量化静态程序分析的精度奠定了理论基础。

问题
抽象解释的过近似虽保证可靠性却常带来误报,而已有的概率置信度方法主要由经验直觉驱动,缺少理论基础。
方法
把置信度定义为抽象解释器对来自一致分布的采样程序局部完备的概率,提出组合式指称语义 ⟨⟨·⟩⟩ 推导程序输出分布以计算置信概率,并给出可处理的欠近似语义 ⟨⟨·⟩⟩_lc。
评估
以理论结果为主:证明 ⟨⟨·⟩⟩ 与 ⟨⟨·⟩⟩_lc 两种指称语义的正确性,从而为概率量化静态分析精度建立理论基础(摘要未提及实验评估)。
原文摘要(Abstract)

Abstract interpretation has served as a foundational framework for static program analysis, enabling the over approximation of program semantics to be sound (i.e., no false negatives) but often at the cost of false alarms due to incompleteness. Although prior efforts to address false alarms have incorporated probabilistic techniques to compute confidence values for alarms, these methods are largely guided by empirical intuitions and lack a theoretical foundation. This paper bridges this gap by proposing a principled framework to quantify the confidence in results produced by a dataflow analysis based on abstract interpretation. Specifically, we define the problem as calculating the probability of the abstract interpreter being locally complete for a sampled program from the distribution of programs consistent with such abstract interpretation. By proposing a compositional denotational semantics ⟨⟨· ⟩⟩, we derive the distribution of program outputs to compute those confidence probabilities. Moreover, to ensure tractability, we propose another denotational semantics ⟨⟨· ⟩⟩ lc that under-approximates ⟨⟨· ⟩⟩. The paper proves both the correctness of the two semantics, and therefore establishes a theoretical foundation for quantifying the precision of static program analysis with probabilities.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{ShiJZ26,
  title = {Abstract Interpretation with Confidence: Quantifying the Precision of Dataflow Analysis with Probabilities},
  author = {Yuanfeng Shi and Ziyue Jin and Xin Zhang},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {PLDI},
  year = {2026},
  doi = {10.1145/3808351}
}