MFH:一种面向软件验证的多面启发式算法选择方法
MFH: A Multi-faceted Heuristic Algorithm Selection Approach for Software Verification
AI总结:
针对软件验证中算法选择依赖专家且现有方法可扩展性差的问题,提出MFH方法,利用验证器启发信息、分解任务并引入反馈,在无标签训练下达91.47%准确率,且扩展新验证器时准确率仅降0.84%。
摘要:
目前,许多验证算法可用于提高软件系统的可靠性。选择合适的验证算法通常需要领域专业知识且耗费大量人力。因此,自动化的算法选择器备受期待。然而,现有的选择器,无论是依赖于机器学习策略还是人工设计的启发式方法,都面临着依赖带有算法标签的高质量样本以及可扩展性有限等问题。本文提出了一种自动化的算法选择方法,即MFH,用于软件验证。我们的方法利用了这样的启发式信息:能够产生正确结果的验证器通常实现了某些合适的算法,而这些验证器所支持的算法间接反映了哪些算法可能适用。具体来说,MFH嵌入了一个保持语义的转换程序的代码属性图(CPG),以增强预测模型的鲁棒性。此外,我们的方法将选择任务分解为预测潜在适用算法和匹配最合适的验证器两个子任务。另外,MFH还引入了对错误预测的反馈循环,以提高模型预测的准确性。我们在20个验证器和超过15,000个验证任务上评估了MFH。实验结果表明了MFH的有效性,即使在训练阶段未提供真实算法标签的情况下,其预测准确率也达到了91.47%。此外,当引入10个新的验证器时,预测准确率仅下降了0.84%,这表明了所提方法具有很强的可扩展性。
英文摘要:
Currently, many verification algorithms are available to improve the reliability of software systems. Selecting the appropriate verification algorithm typically demands domain expertise and non-trivial manpower. An automated algorithm selector is thus desired. However, existing selectors, either depend on machine-learned strategies or manually designed heuristics, encounter issues such as reliance on high-quality samples with algorithm labels and limited scalability. In this paper, an automated algorithm selection approach, namely MFH, is proposed for software verification. Our approach leverages the heuristics that verifiers producing correct results typically implement certain appropriate algorithms, and the supported algorithms by these verifiers indirectly reflect which ones are potentially applicable. Specifically, MFH embeds the code property graph (CPG) of a semantic-preserving transformed program to enhance the robustness of the prediction model. Furthermore, our approach decomposes the selection task into the sub-tasks of predicting potentially applicable algorithms and matching the most appropriate verifiers. Additionally, MFH also introduces a feedback loop on incorrect predictions to improve model prediction accuracy. We evaluate MFH on 20 verifiers and over 15,000 verification tasks. Experimental results demonstrate the effectiveness of MFH, achieving a prediction accuracy of 91.47% even without ground truth algorithm labels provided during the training phase. Moreover, the prediction accuracy decreases only by 0.84% when introducing 10 new verifiers, indicating the strong scalability of the proposed approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。