arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.10252cs.AIcs.LGcs.LO
收藏

一种机器学习引导的ASP逻辑程序重写方法

A Machine Learning guided Rewriting Approach for ASP Logic Programs

Department of Mathematics and Computer Science University of Calabria(卡利亚里大学数学与计算机科学系)

Elena Mastria, Jessica Zangari, Simona Perri, Francesco Calimeri

摘要:

回答集编程(ASP)是一种声明式逻辑形式主义,允许通过逻辑程序编码计算问题。尽管声明性质的形式主义,一些先进的专业知识是必需的,在一般情况下,设计一个ASP编码,可以有效地评估一个实际的ASP系统。试图减少手动调整ASP程序的负担的常见方法包括根据合适的技术自动重写输入编码,以产生替代的但语义上等效的ASP程序。然而,重写并不总是在性能方面给予好处,因此,需要适当的手段来预测其效果与这方面。在本文中,我们描述了一种基于机器学习(ML)的方法来自动决定是否重写。特别是,给定一个ASP程序和一组输入事实,我们的方法选择是否以及如何重写输入规则的基础上测量其结构属性和域信息的一组功能。为此,一个多层感知器模型,然后训练,以指导ASP地面I-DLV重写输入规则。我们报告并讨论了一个原型实现的实验评估的结果。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑