arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.03792cs.DB
收藏

知识图谱上的聚合算法:基于语义感知采样的快速逼近

Aggregate Queries on Knowledge Graphs: Fast Approximation with Semantic-aware Sampling

Yuxiang Wang, Arijit Khan, Xiaoliang Xu, Jiahui Jin, Qifan Hong, Tao Fu

摘要:

知识图谱(KG)以模式灵活的方式将大规模和真实世界的事实作为大图来管理。聚合查询是对KG的基本查询,例如,“德国生产的汽车平均价格是多少?".尽管它的重要性,回答汇总查询幼儿园在文献中很少受到关注。聚合查询可以基于仿真查询来支持,例如,“查找德国生产的所有汽车”,通过对仿真查询的答案应用额外的聚合操作。然而,这种直接的方法是具有挑战性的,因为事实模拟查询处理的准确性和效率将严重影响聚合查询的性能。在本文中,我们提出了一个“抽样估计”模型来回答聚集查询KG,这是第一个工作,提供一个近似的聚集结果,有效的准确性保证,而不依赖于事实的查询。具体来说,我们首先提出了一个语义感知的采样收集高质量的随机样本,通过随机游走的基础上知识图谱嵌入。然后,我们提出了无偏估计量的平均值,SUM,和一致的估计AVG计算近似的聚合结果的基础上的随机样本,以置信区间的形式的准确性保证。我们扩展了我们的方法,以支持精度的迭代改进,以及使用过滤器,GROUP-BY和不同图形形状的更复杂的查询,例如,链条,循环,星星,花朵在真实世界的KG上进行的大量实验证明了我们方法的有效性和效率。

英文摘要:

A knowledge graph (KG) manages large-scale and real-world facts as a big graph in a schema-flexible manner. Aggregate query is a fundamental query over KGs, e.g., "what is the average price of cars produced in Germany?". Despite its importance, answering aggregate queries on KGs has received little attention in the literature. Aggregate queries can be supported based on factoid queries, e.g., "find all cars produced in Germany", by applying an additional aggregate operation on factoid queries' answers. However, this straightforward method is challenging because both the accuracy and efficiency of factoid query processing will seriously impact the performance of aggregate queries. In this paper, we propose a "sampling-estimation" model to answer aggregate queries over KGs, which is the first work to provide an approximate aggregate result with an effective accuracy guarantee, and without relying on factoid queries. Specifically, we first present a semantic-aware sampling to collect a high-quality random sample through a random walk based on knowledge graph embedding. Then, we propose unbiased estimators for COUNT, SUM, and a consistent estimator for AVG to compute the approximate aggregate results based on the random sample, with an accuracy guarantee in the form of confidence interval. We extend our approach to support iterative improvement of accuracy, and more complex queries with filter, GROUP-BY, and different graph shapes, e.g., chain, cycle, star, flower. Extensive experiments over real-world KGs demonstrate the effectiveness and efficiency of our approach.

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

↑