paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Parf: Adaptive Parameter Refining for Abstract Interpretation

Parf:面向抽象解释的自适应参数精化
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 7/10 · 该论文研究抽象解释静态分析器的参数自动精化,属于 AI/概率方法改进静态分析(AI→PL)以及与贝叶斯程序分析交叉的方向,且基于 Frama-C/Eva 有工程实现和工业级工具落地。但它不涉及 LLM/Agent,也不是浮点程序分析,因此并非正中当前核心。引用 2 inbox
Zhongyi Wang, Linyu Yang, Mingshuai Chen, Yixuan Bu, Zhiyang Li, Qiuye Wang, Shengchao Qin, Xiao Yi, Jianwei Yin
crossref: 2026-09-12

AI 速览

一句话:提出全自动框架 Parf,将静态分析器外部参数建模为随机变量并增量精化,在时间预算内显著降低误报。

抽象解释是程序静态分析的核心形式化方法,但其效果高度依赖静态分析工具的大量外部参数(抽象域、分析策略等)配置:既要保持低误报率(精度)又要保证分析效率,调参长期依赖专家知识,难以自动化。本文提出全自动框架 Parf,将各类外部参数建模为定义在格化参数空间上的概率分布下的随机变量,通过反复“采样—分析”并累积中间结果,增量地精化这些概率分布,从而在给定时间预算内收敛到一组高精度的参数配置。作者在开源 C 程序静态分析器 Frama-C/Eva 之上实现了 Parf,并在 Frama-C OSCS 基准上与专家精化策略及 Frama-C/Eva 官方配置进行对比:Parf 在 34/37(91.9%)的程序仓库上取得最少误报数,其中 12/37(32.4%)为唯一最优;在复杂、大规模真实程序上亦表现出良好性能。

问题
抽象解释静态分析工具包含大量外部参数,其配置决定分析的精度与效率,但参数调优高度依赖专家经验,难以自动化,导致误报率居高不下。
方法
将不同类型的外部参数建模为格化参数空间上服从概率分布的随机变量,通过反复采样参数、运行分析并累积中间结果来增量精化概率分布,最终在时间预算内输出高精度参数配置。
评估
在 Frama-C/Eva(面向 C 程序的开源静态分析器)上实现 Parf,并在 Frama-C OSCS 基准上与专家精化策略和官方配置比较。结果显示 Parf 在 34/37(91.9%)的仓库上误报最少,12/37(32.4%)为唯一最优,且在复杂大规模真实程序上表现良好。
原文摘要(Abstract)

Abstract interpretation is a key formal method for the static analysis of programs. The core challenge in applying abstract interpretation lies in the configuration of abstraction and analysis strategies encoded by a large number of external parameters of static analysis tools. To attain low false-positive rates (i.e., accuracy) while preserving analysis efficiency, tuning the parameters heavily relies on expert knowledge and is thus difficult to automate. In this paper, we present a fully automated framework called Parf to adaptively tune the external parameters of abstract interpretation-based static analyzers. Parf models various types of parameters as random variables subject to probability distributions over latticed parameter spaces. It incrementally refines the probability distributions based on accumulated intermediate results generated by repeatedly sampling and analyzing, thereby ultimately yielding a set of highly accurate parameter settings within a given time budget. We have implemented Parf on top of Frama-C/Eva - an off-the-shelf open-source static analyzer for C programs - and compared it against the expert refinement strategy and Frama-C/Eva's official configurations over the Frama-C OSCS benchmark. Experimental results indicate that Parf achieves the lowest number of false positives on 34/37 (91.9%) program repositories with exclusively best results on 12/37 (32.4%) cases. In particular, Parf exhibits promising performance for analyzing complex, large-scale real-world programs.

链接与引用

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

BibTeX
@inproceedings{paperbot8421,
  title = {Parf: Adaptive Parameter Refining for Abstract Interpretation},
  author = {Zhongyi Wang and Linyu Yang and Mingshuai Chen and Yixuan Bu and Zhiyang Li and Qiuye Wang and Shengchao Qin and Xiao Yi and Jianwei Yin},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695487}
}