SAIL: 基于LLM的可靠抽象解释器
SAIL: Sound Abstract Interpreters with LLMs
AI总结:
提出SAIL框架,利用大语言模型自动合成全局可靠的抽象变换器,通过约束优化和代价函数确保可靠性,在神经网络验证中匹配甚至超越人工设计的变换器。
摘要:
如何构建全局可靠的抽象解释器以安全地近似程序行为仍然是抽象解释中的一个瓶颈。在本文中,我们展示了使用最先进的大语言模型来自动化这一繁琐过程的潜力。聚焦于神经网络验证领域,我们利用大语言模型从零开始在无限空间中搜索,跨不同抽象域合成非平凡的可靠抽象变换器。我们将合成任务形式化为一个约束优化问题,为此设计了一种新颖的基于数学的代价函数,用于衡量每个生成候选变换器的不可靠程度,同时强制执行硬性的语法和语义有效性约束。基于这一公式,我们引入了SAIL,一个新颖的统一框架,结合了模型生成、语法和语义验证以及基于代价函数的细化,以合成全局可靠的抽象变换器。评估结果表明,SAIL不仅匹配了人工设计的变换器的性能,还能够合成为复杂非线性算子设计的、文献中不存在的可靠且高精度的变换器。
英文摘要:
How to construct globally sound abstract interpreters to safely approximate program behaviors remains a bottleneck in abstract interpretation. In this paper, we show the potential of using state-of-the-art LLMs to automate this tedious process. Focusing on the neural network verification area, we synthesize non-trivial sound abstract transformers across diverse abstract domains using LLMs to search within infinite space from scratch. We formalize the synthesis task as a constrained optimization problem, for which we design a novel mathematically grounded cost function that measures the degree of unsoundness of each generated candidate transformer, while enforcing hard syntactic and semantic validity constraints. Building on this formulation, we introduce SAIL, a novel unified framework that combines model generation, syntactic and semantic validation, and cost-function-based refinement to synthesize globally sound abstract transformers. Evaluation results show that SAIL not only matches the performance of manually designed transformers, but also is able to synthesize sound and high-precision transformers that do not exist in the literature for complex non-linear operators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。