arXiv:2511.13663cs.PLcs.LG2025-11被引 2

用大模型自动构造安全的程序分析抽象解释器

SAIL: Sound Abstract Interpreters with LLMs

  • 用大模型在无限空间中搜索并生成安全的抽象变换器
  • 合成的变换器在复杂非线性算子上达到高精度且无误
  • 适合需要自动化安全分析的深度学习验证场景

如何构建全局安全的抽象解释器以可靠地近似程序行为,仍是抽象解释领域的瓶颈。本文展示使用前沿大模型自动化这一繁琐过程的潜力。聚焦神经网络验证领域,我们利用大模型从零开始在无限空间中合成多种抽象域下的非平凡安全抽象变换器。将合成任务形式化为约束优化问题,设计了一种新的数学基础成本函数,用于度量每个候选变换器的不安全性,同时强制执行严格的语法和语义有效性约束。基于此,我们提出SAIL——一个统一框架,结合模型生成、语法与语义验证及基于成本函数的精炼,实现全局安全抽象变换器的合成。评估结果表明,SAIL不仅达到人工设计变换器的性能,还能合成文献中未见的、对复杂非线性算子具有高精度且安全的变换器。

原文摘要 · Abstract (English)

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.

抽象解释大模型安全验证神经网络

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。