Parf:面向抽象解释的自适应参数精调
Parf: Adaptive Parameter Refining for Abstract Interpretation
AI总结:
针对抽象解释静态分析器参数依赖专家调优的问题,本文提出全自动框架 Parf,通过格状空间上的概率分布增量精化参数,并在 Frama-C/Eva 与 OSCS 基准上显著降低误报。
摘要:
应用抽象解释的核心挑战在于配置由静态分析工具大量外部参数编码的抽象与分析策略。为了在保持分析效率的同时获得较低的误报率(即准确性),参数调优严重依赖专家知识,因此难以自动化。本文提出一个名为 Parf 的全自动框架,用于自适应调节基于抽象解释的静态分析器的外部参数。Parf 将各类参数建模为服从格状参数空间上概率分布的随机变量。它基于反复采样和分析所积累的中间结果,增量式地精化概率分布,从而最终在给定时间预算内产生一组高度准确的参数设置。我们在 Frama-C/Eva——一个现成的开源 C 程序静态分析器——之上实现了 Parf,并在 Frama-C OSCS 基准上将其与专家精调策略以及 Frama-C/Eva 的官方配置进行比较。实验结果表明,Parf 在 34/37(91.9%)个程序仓库上实现最低误报数,其中在 12/37(32.4%)个案例上取得唯一最佳结果。特别是,Parf 在分析复杂、大规模真实世界程序时展现出良好性能。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。