Abstract

Link prediction over a knowledge graph aims to predict the missing head entities <inline-formula><tex-math notation="LaTeX">$h$</tex-math></inline-formula> or tail entities <inline-formula><tex-math notation="LaTeX">$t$</tex-math></inline-formula> and missing relations <inline-formula><tex-math notation="LaTeX">$r$</tex-math></inline-formula> for a triple <inline-formula><tex-math notation="LaTeX">$(h,r,t)$</tex-math></inline-formula> . Recent years have witnessed great advance of knowledge graph embedding based link prediction methods, which represent entities and relations as elements of a continuous vector space. Most methods learn the embedding vectors by optimizing a margin-based loss function, where the margin is used to separate negative and positive triples in the loss function. The loss function utilizes the general structures of knowledge graphs, e.g., the vector of <inline-formula><tex-math notation="LaTeX">$r$</tex-math></inline-formula> is the translation of the vector of <inline-formula><tex-math notation="LaTeX">$h$</tex-math></inline-formula> and <inline-formula><tex-math notation="LaTeX">$t$</tex-math></inline-formula> , and the vector of <inline-formula><tex-math notation="LaTeX">$t$</tex-math></inline-formula> should be the nearest neighbor of the vector of <inline-formula><tex-math notation="LaTeX">$h+r$</tex-math></inline-formula> . However, there are many particular structures, and can be employed to promote the performance of link prediction. One typical structure in knowledge graphs is hierarchical structure, which existing methods have much unexplored. We argue that the hierarchical structures also contain rich inference patterns, and can further enhance the link prediction performance. In this paper, we propose a hierarchy-constrained link prediction method, called hTransM, on the basis of the translation-based knowledge graph embedding methods. It can adaptively determine the optimal margin by detecting the single-step and multi-step hierarchical structures. Moreover, we prove the effectiveness of hTransM theoretically, and experiments over three benchmark datasets and two sub-tasks of link prediction demonstrate the superiority of hTransM.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call