arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.02168cs.AIcs.CL
收藏

CoKE:情境化的知识图谱嵌入

CoKE: Contextualized Knowledge Graph Embedding

Baidu Inc.(百度公司)

Quan Wang, Pingping Huang, Haifeng Wang, Songtai Dai, Wenbin Jiang, Jing Liu, Yajuan Lyu, Yong Zhu, Hua Wu

摘要:

知识图谱嵌入将符号实体和关系映射到连续向量空间中,正受到越来越多的关注。先前的方法允许针对每个实体或关系的单个静态嵌入,忽略了它们内在的上下文性质,即,实体和关系可以出现在不同的图形上下文中,并且因此表现出不同的属性。这项工作提出了语境化知识图谱嵌入(CoKE),一种新的范式,考虑到这种上下文的性质,并学习动态的,灵活的,完全语境化的实体和关系嵌入。两种类型的图形上下文进行了研究:边缘和路径,都制定为实体和关系的序列。CoKE将序列作为输入,并使用Transformer编码器来获得上下文化表示。因此,这些表示自然地适应于输入,捕获其中的实体和关系的上下文含义。通过对多种公共基准测试的评估,验证了CoKE在链接预测和路径查询应答方面的优越性。在几乎所有情况下,它的性能始终优于或至少等同于当前最先进的技术,特别是在H@10路径查询应答中提供了21.0%的绝对改进。我们的代码可在\url{https://github.com/PaddlePaddle/Research/tree/master/KG/CoKE}上获得。

英文摘要:

Knowledge graph embedding, which projects symbolic entities and relations into continuous vector spaces, is gaining increasing attention. Previous methods allow a single static embedding for each entity or relation, ignoring their intrinsic contextual nature, i.e., entities and relations may appear in different graph contexts, and accordingly, exhibit different properties. This work presents Contextualized Knowledge Graph Embedding (CoKE), a novel paradigm that takes into account such contextual nature, and learns dynamic, flexible, and fully contextualized entity and relation embeddings. Two types of graph contexts are studied: edges and paths, both formulated as sequences of entities and relations. CoKE takes a sequence as input and uses a Transformer encoder to obtain contextualized representations. These representations are hence naturally adaptive to the input, capturing contextual meanings of entities and relations therein. Evaluation on a wide variety of public benchmarks verifies the superiority of CoKE in link prediction and path query answering. It performs consistently better than, or at least equally well as current state-of-the-art in almost every case, in particular offering an absolute improvement of 21.0% in H@10 on path query answering. Our code is available at \url{https://github.com/PaddlePaddle/Research/tree/master/KG/CoKE}.

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

↑