arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12954cs.LGcs.AIcs.LO
收藏

用于复杂查询回答的条件逻辑消息传递 Transformer

Conditional Logical Message Passing Transformer for Complex Query Answering

South China University of Technology(华南理工大学);Guangdong University of Petrochemical Technology(广东石油化工学院);Jiangmen Polytechnic(江门职业技术学院)

Chongzhi Zhang, Zhiping Peng, Junhao Zheng, Qianli Ma

AI总结:

本文提出 CLMPT,通过区分常量与变量节点进行条件消息传递,并用 Transformer 自注意力自适应聚合消息、建模逻辑依赖,在降低计算成本的同时成为 CQA 新的最先进模型。

摘要:

基于知识图谱(KGs)的复杂查询回答(CQA)是一项具有挑战性的任务。鉴于 KGs 通常是不完整的,研究人员提出神经模型,通过执行多跳逻辑推理来解决 CQA。然而,大多数模型无法同时在单跳和多跳查询上取得良好表现。近期工作提出了一种基于预训练神经链接预测器的逻辑消息传递机制。尽管该机制在单跳和多跳查询上均有效,但它忽略了查询图中常量节点与变量节点之间的差异。此外,在节点嵌入更新阶段,该机制无法动态衡量不同消息的重要性,而且它是否能够捕获与某个节点及所接收消息相关的隐式逻辑依赖仍不明确。本文提出条件逻辑消息传递 Transformer(Conditional Logical Message Passing Transformer,CLMPT):在使用预训练神经链接预测器的情况下,该模型考虑常量与变量之间的差异,并根据节点类型有条件地执行消息传递。我们通过实验验证,这种方法能够在不影响性能的情况下降低计算成本。此外,CLMPT 使用 transformer 聚合接收到的消息并更新相应的节点嵌入。通过自注意力机制,CLMPT 能够为由接收到的消息及相应节点组成的输入集合中的元素分配自适应权重,并显式建模不同元素之间的逻辑依赖。实验结果表明,CLMPT 是一种新的最先进神经 CQA 模型。代码见 https://github.com/qianlima-lab/CLMPT。

英文摘要:

Complex Query Answering (CQA) over Knowledge Graphs (KGs) is a challenging task. Given that KGs are usually incomplete, neural models are proposed to solve CQA by performing multi-hop logical reasoning. However, most of them cannot perform well on both one-hop and multi-hop queries simultaneously. Recent work proposes a logical message passing mechanism based on the pre-trained neural link predictors. While effective on both one-hop and multi-hop queries, it ignores the difference between the constant and variable nodes in a query graph. In addition, during the node embedding update stage, this mechanism cannot dynamically measure the importance of different messages, and whether it can capture the implicit logical dependencies related to a node and received messages remains unclear. In this paper, we propose Conditional Logical Message Passing Transformer (CLMPT), which considers the difference between constants and variables in the case of using pre-trained neural link predictors and performs message passing conditionally on the node type. We empirically verified that this approach can reduce computational costs without affecting performance. Furthermore, CLMPT uses the transformer to aggregate received messages and update the corresponding node embedding. Through the self-attention mechanism, CLMPT can assign adaptive weights to elements in an input set consisting of received messages and the corresponding node and explicitly model logical dependencies between various elements. Experimental results show that CLMPT is a new state-of-the-art neural CQA model. https://github.com/qianlima-lab/CLMPT.

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

↑