论文标题
ASP逻辑程序的机器学习指导重写方法
A Machine Learning guided Rewriting Approach for ASP Logic Programs
论文作者
论文摘要
答案集编程(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.