CounterExample Guided Neural Synthesis

01/25/2020
by   Elizabeth Polgreen, et al.
0

Program synthesis is the generation of a program from a specification. Correct synthesis is difficult, and methods that provide formal guarantees suffer from scalability issues. On the other hand, neural networks are able to generate programs from examples quickly but are unable to guarantee that the program they output actually meets the logical specification. In this work we combine neural networks with formal reasoning: using the latter to convert a logical specification into a sequence of examples that guides the neural network towards a correct solution, and to guarantee that any solution returned satisfies the formal specification. We apply our technique to synthesising loop invariants and compare the performance to existing solvers that use SMT and existing techniques that use neural networks. Our results show that the formal reasoning based guidance improves the performance of the neural network substantially, nearly doubling the number of benchmarks it can solve.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/20/2020

SynRG: Syntax Guided Synthesis of Expressions with Alternating Quantifiers

Program synthesis is the task of automatically generating expressions th...
research
11/22/2022

Genetic Algorithm for Program Synthesis

A deductive program synthesis tool takes a specification as input and de...
research
01/26/2021

Operads for complex system design specification, analysis and synthesis

As the complexity and heterogeneity of a system grows, the challenge of ...
research
02/13/2018

Parameter and Insertion Function Co-synthesis for Opacity Enhancement in Parametric Stochastic Discrete Event Systems

Opacity is a property that characterizes the system's capability to keep...
research
10/27/2022

Formal Semantics for the Halide Language

We present the first formalization and metatheory of language soundness ...
research
05/28/2022

Learning from Self-Sampled Correct and Partially-Correct Programs

Program synthesis aims to generate executable programs that are consiste...
research
03/19/2020

Automated Formal Synthesis of Lyapunov Neural Networks

We propose an automated and sound technique to synthesize provably corre...

Please sign up or login with your details

Forgot password? Click here to reset