Knowledge Hypergraphs: Prediction Beyond Binary Relations∗

Knowledge Hypergraphs: Prediction Beyond Binary Relations∗

Knowledge Hypergraphs: Prediction Beyond Binary Relations∗ Bahare Fatemi1;2y , Perouz Taslakian2 , David Vazquez2 and David Poole1 1University of British Columbia 2Element AI fbfatemi, [email protected], fperouz,[email protected], Abstract In these studies, knowledge graphs are defined as directed graphs having nodes as entities and labeled edges as relations; Knowledge graphs store facts using relations be- edges are directed from the head entity to the tail entity. The tween two entities. In this work, we address the common data structure for representing knowledge graphs is question of link prediction in knowledge hyper- a set of triples relation(head; tail) that represents informa- graphs where relations are defined on any number tion as a collection of binary relations. There exist a large of entities. While techniques exist (such as reifica- number of knowledge graphs that are publicly available, such tion) that convert non-binary relations into binary as FREEBASE [Bollacker et al., 2008]. Wen et al. (2016) ones, we show that current embedding-based meth- observe that in the original FREEBASE more than 1=3rd of ods for knowledge graph completion do not work the entities participate in non-binary relations (i.e., defined well out of the box for knowledge graphs obtained on more than two entities). We observe, in addition, that 61% through these techniques. To overcome this, we in- of the relations in the original Freebase are non-binary. troduce HSimplE and HypE, two embedding-based Embedding-based models [Nguyen, 2017; Kazemi et al., methods that work directly with knowledge hyper- 2020] have proved to be effective for knowledge graph com- graphs. In both models, the prediction is a func- pletion. These approaches learn embeddings for entities and tion of the relation embedding, the entity embed- relations. To find out if a triple relation(head; tail) is dings and their corresponding positions in the rela- true, such models define a function that uses embeddings tion. We also develop public datasets, benchmarks of relation, head, and tail and output the probability of and baselines for hypergraph prediction and show the triple. While successful, such embedding-based methods experimentally that the proposed models are more make the strong assumption that all relations are binary. effective than the baselines. Knowledge hypergraph completion is a relatively under- explored area. We motivate our work by outlining that con- 1 Introduction verting non-binary relations into binary ones using methods such as reification or star-to-clique [Wen et al., 2016], and Knowledge hypergraphs are graph structured knowledge then applying known link prediction methods does not yield bases that store facts about the world in the form of rela- satisfactory results. Reification is one common approach of tions among any number of entities. They can be seen as converting higher-arity relations into binary ones. In order to one generalization of knowledge graphs in which relations reify a tuple having a relation defined on k entities e1; : : : ; ek, are defined on at most two entities. Since accessing and stor- we form k new binary relations, one for each position in this ing all the facts in the world is difficult, knowledge bases relation, and a new entity e for this tuple and connect e to are incomplete; the goal of link prediction in knowledge (hy- each of the k entities that are part of the given tuple using the arXiv:1906.00137v3 [cs.LG] 15 Jul 2020 per)graphs (or knowledge (hyper)graph completion) is to pre- k binary relations. Another conversion approach is Star-to- dict unknown links or relationships between entities based on clique, which converts a tuple defined on k entities into k existing ones. In this work, we are interested in the problem 2 tuples with distinct relations between all pairwise entities in of link prediction in knowledge hypergraphs. Our motiva- the tuple. tion for studying link prediction in these more sophisticated knowledge structures is based on the fact that most knowl- Both conversion approaches have their caveats when cur- edge in the world has inherently complex compositions. rent link prediction models are applied to the resulting graphs. Link prediction in knowledge graphs is a problem that The example in Figure 1a shows three facts that pertain to the is studied extensively, and has applications in several tasks relation flies between. When we reify the hypergraph in this such as automatic question answering [Ferrucci et al., 2010]. example (Figure 1b), we add three reified entities. In terms of representation, the binary relations created are equivalent ∗This paper with the supplementary material can be found at to the original representation and reification does not lose https://arxiv.org/abs/1906.00137. information during conversion. A problem with reification, yContact Author however, arises at test time: because we introduce new enti- ties that the model never encounters during training, we do e1 e2 Air not have a learned embedding for these entities; and current Canada Air embedding-based methods require an embedding for each en- Canada tity in order to be able to make a prediction. Montreal Vancouver Vancouver Montreal Applying the star-to-clique method to a hypergraph does Los New not yield better results, as star-to-clique conversion loses in- Angeles York New Los York Angeles formation. Figure 1c shows the result of applying star-to- United Airline United clique to the original hypergraph (Figure 1a), in which the tu- Airline e3 ple flies between(Air Canada, New York, Los Angeles) might be interpreted as being true (since the corresponding entities (a) (b) are connected by edges), whereas looking at the original hy- Air pergraph, it is clear that Air Canada does not fly from New Canada York to Los Angeles. Vancouver In this work, we introduce two embedding-based models Montreal that perform link prediction directly on knowledge hyper- graphs without converting them to graphs. Both proposed Los New models are based on the idea that predicting the existence of Angeles York a relation between a set of entities depends on the position of the entities in the relation; otherwise, the relation is sym- United metric. On the other hand, learning entity embeddings for Airline each position independently does not work well either, as this (c) does not let the information flow between the embeddings for the different positions of the same entity. The first model we Figure 1: (a) Relation flies between with arity 3 defined on three propose is HSimplE. For a given entity, HSimplE shifts the tuples. (b) Reifying non-binary relations by creating three addi- entity embedding by a value that depends on the position of tional entities e1, e2, and e3. (c) Converting non-binary relations the entity in the given relation. Our second model is HypE, into cliques using star-to-clique. which in addition to learning entity embeddings, learns posi- tional (convolutional) embeddings; these positional embed- Knowledge hypergraph completion. Soft-rule mod- dings are disentangled from entity representations and are els [De Raedt et al., 2007; Kazemi et al., 2014] can easily used to transform the representation of an entity based on handle variable arity relations and have the advantage of its position in a relation. This makes HypE more robust to being interpretable. However, they can only learn a subset changes in the position of an entity within a tuple. We show of patterns [Nickel et al., 2016]. Guan et al. (2019) propose that both HSimplE and HypE are fully expressive. To evalu- an embedding-based method based on the star-to-clique ate our models, we introduce two new datasets from subsets approach. The caveats of this approach are discussed earlier. of FREEBASE, and develop baselines by extending existing m-TransH [Wen et al., 2016] extends TransH [Wang et models on knowledge graphs to work with hypergraphs. al., 2014] to knowledge hypergraph completion. Kazemi The contributions of this paper are: (1) showing that cur- and Poole (2018) prove that TransH, and consequently rent techniques to convert a knowledge hypergraph to knowl- m-TransH, are not fully expressive and have restrictions in edge graph do not yield satisfactory results for the link pre- modeling relations. In contrast, we prove that our proposed diction task, (2) introducing HypE and HSimplE, two mod- models are fully expressive. els for knowledge hypergraph completion, (3) a set of base- lines for knowledge hypergraph completion, and (4) two new Learning on hypergraphs. Hypergraph learning has been datasets containing multi-arity relations obtained from sub- employed to model high-order correlations among data in [ et sets of FREEBASE, which can serve as new evaluation bench- many tasks, such as in video object segmentation Huang marks for knowledge hypergraph completion methods. We al., 2009] and in modeling image relationships and image also show that our proposed methods outperform baselines. ranking [Huang et al., 2010]. There is also a line of work extending graph neural networks to hypergraph neural net- works [Feng et al., 2019] and hypergraph convolution net- 2 Related Work works [Yadati et al., 2018]. These models are designed for Existing methods that relate to our work in this paper can be undirected hypergraphs, with edges that are not labeled (no grouped into the following three main categories. relations), while knowledge hypergraphs are directed and la- beled graphs. As there is no clear or easy way of extending Knowledge graph completion. Embedding-based models these models to our knowledge hypergraph setting, we do not for knowledge graph completion such as translational [Bor- consider them as baselines for our experiments. des et al., 2013; Wang et al., 2014], bilinear [Yang et al., 2015; Kazemi and Poole, 2018], and deep models [Socher et al., 2013] have proved to be effective for knowledge graphs 3 Definition and Notation where all relations are binary.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us