跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2003.07959 (cs)
[提交于 2020年3月17日 (v1),最后修订于 2020年6月25日 (此版本, v4)]

标题:Learning Nonlinear Loop Invariants with Gated Continuous Logic Networks (Extended Version)

作者:Jianan Yao, Gabriel Ryan, Justin Wong, Suman Jana, Ronghui Gu
查看论文《Learning Nonlinear Loop Invariants with Gated Continuous Logic Networks (Extended Version)》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Verifying real-world programs often requires inferring loop invariants with nonlinear constraints. This is especially true in programs that perform many numerical operations, such as control systems for avionics or industrial plants. Recently, data-driven methods for loop invariant inference have shown promise, especially on linear invariants. However, applying data-driven inference to nonlinear loop invariants is challenging due to the large numbers of and magnitudes of high-order terms, the potential for overfitting on a small number of samples, and the large space of possible inequality bounds. In this paper, we introduce a new neural architecture for general SMT learning, the Gated Continuous Logic Network (G-CLN), and apply it to nonlinear loop invariant learning. G-CLNs extend the Continuous Logic Network (CLN) architecture with gating units and dropout, which allow the model to robustly learn general invariants over large numbers of terms. To address overfitting that arises from finite program sampling, we introduce fractional sampling---a sound relaxation of loop semantics to continuous functions that facilitates unbounded sampling on real domain. We additionally design a new CLN activation function, the Piecewise Biased Quadratic Unit (PBQU), for naturally learning tight inequality bounds. We incorporate these methods into a nonlinear loop invariant inference system that can learn general nonlinear loop invariants. We evaluate our system on a benchmark of nonlinear loop invariants and show it solves 26 out of 27 problems, 3 more than prior work, with an average runtime of 53.3 seconds. We further demonstrate the generic learning ability of G-CLNs by solving all 124 problems in the linear Code2Inv benchmark. We also perform a quantitative stability evaluation and show G-CLNs have a convergence rate of $97.5\%$ on quadratic problems, a $39.2\%$ improvement over CLN models.
主题: 软件工程 (cs.SE); 机器学习 (cs.LG); 程序设计语言 (cs.PL)
引用方式: arXiv:2003.07959 [cs.SE]
  (或者 arXiv:2003.07959v4 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2003.07959
期刊参考: In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 106-120. 2020
相关 DOI: https://doi.org/10.1145/3385412.3385986

提交历史

来自:Jianan Yao
[v1] 2020年3月17日 星期二 21:44:37 UTC
[v2] 2020年3月24日 星期二 22:32:57 UTC
[v3] 2020年4月10日 星期五 16:50:31 UTC
[v4] 2020年6月25日 星期四 16:43:51 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-06
切换浏览方式为:
cs
cs.SE
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站