A Machine Learning guided Rewriting Approach for ASP Logic Programs

09/22/2020
by   Elena Mastria, et al.
0

Answer Set Programming (ASP) is a declarative logic formalism that allows to encode computational problems via logic programs. Despite the declarative nature of the formalism, some advanced expertise is required, in general, for designing an ASP encoding that can be efficiently evaluated by an actual ASP system. A common way for trying to reduce the burden of manually tweaking an ASP program consists in automatically rewriting the input encoding according to suitable techniques, for producing alternative, yet semantically equivalent, ASP programs. However, rewriting does not always grant benefits in terms of performance; hence, proper means are needed for predicting their effects with this respect. In this paper we describe an approach based on Machine Learning (ML) to automatically decide whether to rewrite. In particular, given an ASP program and a set of input facts, our approach chooses whether and how to rewrite input rules based on a set of features measuring their structural properties and domain information. To this end, a Multilayer Perceptrons model has then been trained to guide the ASP grounder I-DLV on rewriting input rules. We report and discuss the results of an experimental evaluation over a prototypical implementation.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/23/2018

Optimizing Answer Set Computation via Heuristic-Based Decomposition

Answer Set Programming (ASP) is a purely declarative formalism developed...
research
05/31/2018

Technical Report: Inconsistency in Answer Set Programs and Extensions

Answer Set Programming (ASP) is a well-known problem solving approach ba...
research
04/30/2018

Exploiting Answer Set Programming with External Sources for Meta-Interpretive Learning

Meta-Interpretive Learning (MIL) learns logic programs from examples by ...
research
07/26/2016

Technical Report: Giving Hints for Logic Programming Examples without Revealing Solutions

We introduce a framework for supporting learning to program in the parad...
research
08/30/2023

An xAI Approach for Data-to-Text Processing with ASP

The generation of natural language text from data series gained renewed ...
research
07/24/2019

Partial Compilation of ASP Programs

Answer Set Programming (ASP) is a well-known declarative formalism in lo...
research
06/12/2020

Pointer Data Structure Synthesis from Answer Set Programming Specifications

We develop an inductive proof-technique to generate imperative programs ...

Please sign up or login with your details

Forgot password? Click here to reset