arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.05045cs.PLcs.LO
收藏

大规模数据源

Provenance for Large-scale Datalog

David Zhao, Pavle Subotic, Bernhard Scholz

摘要:

逻辑程序设计语言(例如Datasheet)作为用于解决大规模的现实世界问题(特别是静态程序分析和网络分析)的领域特定语言(DSL)已经变得流行。逻辑规范对分析问题进行建模,处理数百万个数据元组,并包含数百个高度递归的规则。因此,它们是出了名的难以调试。虽然数据库社区已经提出了几种数据出处技术,以解决数据库的声明性挑战,但在分析问题的情况下,这些最先进的技术不能扩展。在本文中,我们介绍了一种新的自下而上的Datasheet评估策略的调试:我们的出处评估策略依赖于一个新的出处格,其中包括证明注释,和一个新的不动点语义半天真的评价。调试查询机制允许任意出处查询,构造具有最小高度的元组的部分证明树。我们将我们的技术集成到Souffle,一个数据引擎,合成C++代码,并通过使用专门的并行数据结构实现高性能。实验进行DOOP/DaCapo,生产证明注释数以千万计的输出元组。我们表明,我们的方法具有平均1.27倍的运行时开销,同时比现有的最先进的技术更灵活。

英文摘要:

Logic programming languages such as Datalog have become popular as Domain Specific Languages (DSLs) for solving large-scale, real-world problems, in particular, static program analysis and network analysis. The logic specifications which model analysis problems, process millions of tuples of data and contain hundreds of highly recursive rules. As a result, they are notoriously difficult to debug. While the database community has proposed several data-provenance techniques that address the Declarative Debugging Challenge for Databases, in the cases of analysis problems, these state-of-the-art techniques do not scale. In this paper, we introduce a novel bottom-up Datalog evaluation strategy for debugging: our provenance evaluation strategy relies on a new provenance lattice that includes proof annotations, and a new fixed-point semantics for semi-naive evaluation. A debugging query mechanism allows arbitrary provenance queries, constructing partial proof trees of tuples with minimal height. We integrate our technique into Souffle, a Datalog engine that synthesizes C++ code, and achieve high performance by using specialized parallel data structures. Experiments are conducted with DOOP/DaCapo, producing proof annotations for tens of millions of output tuples. We show that our method has a runtime overhead of 1.27x on average while being more flexible than existing state-of-the-art techniques.

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

↑