Synthesizing Datalog Programs using Numerical Relaxation

06/01/2019
by   Xujie Si, et al.
0

The problem of learning logical rules from examples arises in diverse fields, including program synthesis, logic programming, and machine learning. Existing approaches either involve solving computationally difficult combinatorial problems, or performing parameter estimation in complex statistical models. In this paper, we present Difflog, a technique to extend the logic programming language Datalog to the continuous setting. By attaching real-valued weights to individual rules of a Datalog program, we naturally associate numerical values with individual conclusions of the program. Analogous to the strategy of numerical relaxation in optimization problems, we can now first determine the rule weights which cause the best agreement between the training labels and the induced values of output tuples, and subsequently recover the classical discrete-valued target program from the continuous optimum. We evaluate Difflog on a suite of 34 benchmark problems from recent literature in knowledge discovery, formal verification, and database query-by-example, and demonstrate significant improvements in learning complex programs with recursive rules, invented predicates, and relations of arbitrary arity.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/03/2022

Relational program synthesis with numerical reasoning

Program synthesis approaches struggle to learn programs with numerical v...
research
08/24/2017

Transforming Coroutining Logic Programs into Equivalent CHR Programs

We extend a technique called Compiling Control. The technique transforms...
research
11/02/2022

Synthesizing Programs with Continuous Optimization

Automatic software generation based on some specification is known as pr...
research
08/05/2022

Learning programs with magic values

A magic value in a program is a constant symbol that is essential for th...
research
09/14/2023

A Deductive Verification Infrastructure for Probabilistic Programs

This paper presents a quantitative program verification infrastructure f...
research
09/08/2018

Neural Guided Constraint Logic Programming for Program Synthesis

Synthesizing programs using example input/outputs is a classic problem i...
research
11/09/2017

A New Proof Rule for Almost-Sure Termination

An important question for a probabilistic program is whether the probabi...

Please sign up or login with your details

Forgot password? Click here to reset