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

NQE:面向超关系知识图谱复杂查询回答的N元查询嵌入

NQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge Graphs

School of Computer Science, Beijing University of Posts and Telecommunications(北京邮电大学计算机学院);School of Automation Science and Electrical Engineering, Beihang University(北京航空航天大学自动化科学与电气工程学院);Beijing Institute of Computer Technology and Application(北京计算机技术及应用研究所)

Haoran Luo, Haihong E, Yuhao Yang, Gengxian Zhou, Yikai Guo, Tianyu Yao, Zichen Tang, Xueyuan Lin, Kaiyang Wan

AI总结:

针对超关系知识图谱上的复杂查询回答,提出NQE模型,利用双异构Transformer和模糊逻辑支持任意n元一阶逻辑查询,并生成WD50K-NFOL数据集,实验证明其达到最先进性能。

摘要:

复杂查询回答(CQA)是知识图谱(KGs)上进行多跳和逻辑推理的重要任务。目前,大多数方法仅限于二元关系事实之间的查询,较少关注包含两个以上实体的n元事实(n>=2),而这些事实在现实世界中更为普遍。此外,先前的CQA方法只能对少数给定类型的查询进行预测,无法灵活扩展到更复杂的逻辑查询,这极大地限制了其应用。为克服这些挑战,在本工作中,我们提出了一种新颖的N元查询嵌入(NQE)模型,用于超关系知识图谱(HKGs)上的CQA,该图谱包含大量的n元事实。NQE利用双异构Transformer编码器和模糊逻辑理论来满足所有n元一阶逻辑(FOL)查询,包括存在量词、合取、析取和否定。我们还提出了一种并行处理算法,可以在单个批次中训练或预测任意n元FOL查询,无论每个查询的类型如何,具有良好的灵活性和可扩展性。此外,我们生成了一个新的CQA数据集WD50K-NFOL,包含WD50K上的多种n元FOL查询。在WD50K-NFOL和其他标准CQA数据集上的实验结果表明,NQE是HKGs上最先进的CQA方法,具有良好的泛化能力。我们的代码和数据集已公开。

英文摘要:

Complex query answering (CQA) is an essential task for multi-hop and logical reasoning on knowledge graphs (KGs). Currently, most approaches are limited to queries among binary relational facts and pay less attention to n-ary facts (n>=2) containing more than two entities, which are more prevalent in the real world. Moreover, previous CQA methods can only make predictions for a few given types of queries and cannot be flexibly extended to more complex logical queries, which significantly limits their applications. To overcome these challenges, in this work, we propose a novel N-ary Query Embedding (NQE) model for CQA over hyper-relational knowledge graphs (HKGs), which include massive n-ary facts. The NQE utilizes a dual-heterogeneous Transformer encoder and fuzzy logic theory to satisfy all n-ary FOL queries, including existential quantifiers, conjunction, disjunction, and negation. We also propose a parallel processing algorithm that can train or predict arbitrary n-ary FOL queries in a single batch, regardless of the kind of each query, with good flexibility and extensibility. In addition, we generate a new CQA dataset WD50K-NFOL, including diverse n-ary FOL queries over WD50K. Experimental results on WD50K-NFOL and other standard CQA datasets show that NQE is the state-of-the-art CQA method over HKGs with good generalization capability. Our code and dataset are publicly available.

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

↑