Toward Neural-Network-Guided Program Synthesis and Verification

Naoki Kobayashi, Taro Sekiyama, Issei Sato, Hiroshi Unno
3/17/2021
cs.PLcs.LG

Official code: naokikob/neugus (3 stars, SMT, Apache-2.0, last commit 2024-03-21).

Abstract

We propose a novel framework of program and invariant synthesis called neural network-guided synthesis. We first show that, by suitably designing and training neural networks, we can extract logical formulas over integers from the weights and biases of the trained neural networks.

Show full abstract

Based on the idea, we have implemented a tool to synthesize formulas from positive/negative examples and implication constraints, and obtained promising experimental results. We also discuss two applications of our synthesis method. One is the use of our tool for qualifier discovery in the framework of ICE-learning-based CHC solving, which can in turn be applied to program verification and inductive invariant synthesis. Another application is to a new program development framework called oracle-based programming, which is a neural-network-guided variation of Solar-Lezama's program synthesis by sketching.

View on arXivView PDF

Code Implementations(1)

naokikob/neugusOfficial100%
Apache-2.0
30SMT, OCamlJul 14, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{kobayashi2021toward,
  title  = {Toward Neural-Network-Guided Program Synthesis and Verification},
  author = {Naoki Kobayashi and Taro Sekiyama and Issei Sato and Hiroshi Unno},
  year   = {2021},
  eprint = {2103.09414},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.09414}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.09414.svg)](https://codeofpaper.com/paper/2103.09414)

Discussion