paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Learning to Synthesize Relational Invariants

学习合成关系不变式
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 5/10 · 论文属于机器学习辅助形式化验证/不变式合成,与 AI→PL 方向相邻,但学习技术是 RL+逻辑剪枝而非 LLM/Agent,也未涉及浮点、贝叶斯或 Agentic 程序。因此与当前核心问题部分相关,可泛读但非精读重点。引用 10 inbox
Jingbo Wang, Chao Wang
crossref: 2026-09-12

AI 速览

一句话:用 SyGuS 生成候选、SMT 验证器过滤,并借助逻辑推理剪枝与强化学习排序,高效合成关系不变式。

论文关注关系性质验证所需的关系不变式的自动合成问题,这类不变式可用于验证两个程序或同一程序两次执行之间的函数等价性、非干涉安全性和连续性等性质。作者提出一种组合式方法:先用语法引导合成(SyGuS)生成候选不变式,再交给基于 SMT 求解器的验证器过滤,以确保候选既是归纳不变式又足以证明目标性质。为提升合成效率,论文引入两种学习技术:基于逻辑推理(LR)的技术判断搜索空间中哪些部分可以剪枝,基于强化学习(RL)的技术决定搜索空间中哪些部分应优先探索。在多样化关系验证基准上的实验表明,这些学习技术能大幅缩减搜索空间,从而在远短于当前最先进不变式合成技术的时间内生成更高质量的不变式。

问题
关系性质(如函数等价、非干涉、连续性)的验证依赖关系不变式,但此类不变式的自动合成搜索空间大、难度高。
方法
采用 SyGuS 生成不变式候选,并用 SMT 求解器验证其归纳性与充分性;同时用逻辑推理剪枝无望的搜索空间,用强化学习对剩余搜索空间进行优先级排序。
评估
在一组多样化的关系验证基准上开展实验,与当前最先进的不变式合成技术比较,衡量搜索空间缩减、合成时间与不变式质量。
原文摘要(Abstract)

We propose a method for synthesizing invariants that can help verify relational properties over two programs or two different executions of a program. Applications of such invariants include verifying functional equivalence, non-interference security, and continuity properties. Our method generates invariant candidates using syntax guided synthesis (SyGuS) and then filters them using an SMT-solver based verifier, to ensure they are both inductive invariants and sufficient for verifying the property at hand. To improve performance, we propose two learning based techniques: a logical reasoning (LR) technique to determine which part of the search space can be pruned away, and a reinforcement learning (RL) technique to determine which part of the search space to prioritize. Our experiments on a diverse set of relational verification benchmarks show that our learning based techniques can drastically reduce the search space and, as a result, they allow our method to generate invariants of a higher quality in much shorter time than state-of-the-art invariant synthesis techniques.

链接与引用

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

BibTeX
@inproceedings{paperbot7320,
  title = {Learning to Synthesize Relational Invariants},
  author = {Jingbo Wang and Chao Wang},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556942}
}