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

面向Datalog推理的优化存储

Optimised Storage for Datalog Reasoning

University of Oxford(牛津大学);Shanghai Jiao Tong University(上海交通大学)

Xinyue Zhang, Pan Hu, Yavor Nenov, Ian Horrocks

AI总结:

针对Datalog推理中物化事实存储开销大的问题,提出可集成优化存储方案与标准物化算法的通用框架,并为传递、并集规则设计专用存储方案,大幅降低内存消耗且查询性能具竞争力。

摘要:

物化(Materialisation)通过预计算事实与规则的所有推论来支撑Datalog推理,使得查询可直接基于物化后的事实得到回答。但在实际场景中,存储全部物化事实往往不可行,尤其是规则复杂且给定事实集规模较大时。我们发现,针对特定的规则组合,存在能够紧凑表示推理结果、且可在需要时高效查询的数据结构。本文提出一个通用框架,支持将这类优化存储方案与标准物化算法集成。此外,我们针对传递规则和并集规则这两类实际中常见的规则(组合)设计了优化存储方案。我们的实验评估表明,该方法显著降低了内存消耗,部分场景下可达数个数量级的优化幅度,同时在查询响应时间上仍保持竞争力。

英文摘要:

Materialisation facilitates Datalog reasoning by precomputing all consequences of the facts and the rules so that queries can be directly answered over the materialised facts. However, storing all materialised facts may be infeasible in practice, especially when the rules are complex and the given set of facts is large. We observe that for certain combinations of rules, there exist data structures that compactly represent the reasoning result and can be efficiently queried when necessary. In this paper, we present a general framework that allows for the integration of such optimised storage schemes with standard materialisation algorithms. Moreover, we devise optimised storage schemes targeting at transitive rules and union rules, two types of (combination of) rules that commonly occur in practice. Our experimental evaluation shows that our approach significantly improves memory consumption, sometimes by orders of magnitude, while remaining competitive in terms of query answering time.

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

↑