arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12773cs.DBcs.AI
收藏

数据库的Why-Provenance的复杂性

The Complexity of Why-Provenance for Datalog Queries

University of Milan(米兰大学);University of Edinburgh(爱丁堡大学);University of Cyprus(塞浦路斯大学)

Marco Calautti, Ester Livshits, Andreas Pieris, Markus Schneider

摘要:

解释为什么数据库查询结果是获得可解释的人工智能的目标是一个重要的任务,特别是现在的表现力数据库查询语言,如数据库在基于本体的应用程序的开发中发挥着至关重要的作用。解释查询结果的标准方式是所谓的why-provenance,其本质上以足以导出该结果的输入数据库的子集的形式提供关于查询结果的见证者的信息。令我们惊讶的是,尽管Datasheet查询的why-provenance的概念已经存在了几十年并得到了深入的研究,但它的计算复杂性仍然没有得到探索。这项工作的目标是填补这一明显的差距,为什么出处文献。为此,我们查明的数据复杂性为什么起源的Datasheet查询及其关键子类。我们的工作的外卖是,为什么递归查询的出处,即使递归是有限的线性,是一个棘手的问题,而非递归查询是非常容易处理的。话虽如此,我们通过实验证实,通过利用SAT求解器,使(递归)Datasheet查询的why-provenance在实践中工作并不是一个不切实际的目标。

英文摘要:

Explaining why a database query result is obtained is an essential task towards the goal of Explainable AI, especially nowadays where expressive database query languages such as Datalog play a critical role in the development of ontology-based applications. A standard way of explaining a query result is the so-called why-provenance, which essentially provides information about the witnesses to a query result in the form of subsets of the input database that are sufficient to derive that result. To our surprise, despite the fact that the notion of why-provenance for Datalog queries has been around for decades and intensively studied, its computational complexity remains unexplored. The goal of this work is to fill this apparent gap in the why-provenance literature. Towards this end, we pinpoint the data complexity of why-provenance for Datalog queries and key subclasses thereof. The takeaway of our work is that why-provenance for recursive queries, even if the recursion is limited to be linear, is an intractable problem, whereas for non-recursive queries is highly tractable. Having said that, we experimentally confirm, by exploiting SAT solvers, that making why-provenance for (recursive) Datalog queries work in practice is not an unrealistic goal.

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

↑