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

知识图谱上复杂查询回答的序列查询编码

Sequential Query Encoding For Complex Query Answering on Knowledge Graphs

Hong Kong University of Science and Technology(香港科技大学)

Jiaxin Bai, Tianshi Zheng, Yangqiu Song

AI总结:

针对知识图谱复杂查询回答中现有查询编码方法过于复杂的问题,提出序列查询编码(SQE),通过将计算图线性化为token序列并用序列编码器计算向量表示来检索答案,在多个基准上取得最先进性能。

摘要:

复杂查询回答(CQA)是知识图谱(KG)推理的一项重要且基础的任务。查询编码(QE)被提出作为CQA的一种快速且鲁棒的解决方案。在编码过程中,大多数现有的QE方法首先将逻辑查询解析为可执行的计算有向无环图(DAG),然后使用神经网络对算子进行参数化,最后递归地执行这些神经化的算子。然而,参数化与执行范式可能过于复杂,因为它可以通过单个神经网络编码器在结构上进行简化。同时,诸如LSTM和Transformer之类的序列编码器已被证明在相关任务中能有效编码语义图。受此启发,我们提出序列查询编码(SQE)作为CQA中编码查询的替代方法。SQE不再对计算图进行参数化和执行,而是首先使用基于搜索的算法将计算图线性化为一个token序列,然后使用序列编码器计算其向量表示。随后,该向量表示被用作查询嵌入,根据相似度得分从嵌入空间中检索答案。尽管简单,SQE在FB15k、FB15k-237和NELL上,在包含二十九种分布内查询类型的扩展基准上,展示了最先进的神经查询编码性能。进一步的实验表明,SQE在训练过程中未观察到查询类型的分布外查询上也展示了可比的知识推理能力。

英文摘要:

Complex Query Answering (CQA) is an important and fundamental task for knowledge graph (KG) reasoning. Query encoding (QE) is proposed as a fast and robust solution to CQA. In the encoding process, most existing QE methods first parse the logical query into an executable computational direct-acyclic graph (DAG), then use neural networks to parameterize the operators, and finally, recursively execute these neuralized operators. However, the parameterization-and-execution paradigm may be potentially over-complicated, as it can be structurally simplified by a single neural network encoder. Meanwhile, sequence encoders, like LSTM and Transformer, proved to be effective for encoding semantic graphs in related tasks. Motivated by this, we propose sequential query encoding (SQE) as an alternative to encode queries for CQA. Instead of parameterizing and executing the computational graph, SQE first uses a search-based algorithm to linearize the computational graph to a sequence of tokens and then uses a sequence encoder to compute its vector representation. Then this vector representation is used as a query embedding to retrieve answers from the embedding space according to similarity scores. Despite its simplicity, SQE demonstrates state-of-the-art neural query encoding performance on FB15k, FB15k-237, and NELL on an extended benchmark including twenty-nine types of in-distribution queries. Further experiment shows that SQE also demonstrates comparable knowledge inference capability on out-of-distribution queries, whose query types are not observed during the training process.

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

↑