<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A System for Reasoning-based Link Prediction in Large Knowledge Graphs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hong Wu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhe Wang</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaowang Zhang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pouya Ghiasnezhad Omran</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhiyong Feng</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kewen Wang</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>College of Intelligence and Computing, Tianjin University</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Research School of Computer Science, Australian National University</institution>
          ,
          <country country="AU">Australia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>School of Information and Communication Technology, Gri th University</institution>
          ,
          <addr-line>Australian</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>This poster paper presents an e cient method R-Linker for link prediction in large knowledge graphs, based on rule learning. The scalability and e ciency is achieved by a combination of several optimisation techniques. Experimental results show that R-Linker is able to handle KGs with over 10 million of entities and more e cient than existing state-of-the-art methods including RLvLR and AMIE+ in rule learning stage for link prediction.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In this poster paper, we further push the envelope by developing a more e cient
method R-Linker for R-link prediction in large KGs. The scalability and e ciency of
R-Linker is achieved by a combination of several optimisation techniques. First, we
use an adapted embedding for rule learning; Second, we introduce a new strategy of
sampling called Hierarchical Sampling ; Moreover, we develop new techniques of rule
search and rule evaluation. As a result, we have implemented a new system R-Linker
for link prediction with large KGs. Our experiments show that R-Linker is able to
handle KGs of size over 10M and more e cient than other methods including RLvLR
and AMIE+ in rule learning stage for link prediction. R-Linker is available at https:
//www.dropbox.com/sh/c8ent25u3qp4vp1/AABc6Jl3zTRtOkdTwHaoDBDUa?dl=0
2</p>
    </sec>
    <sec id="sec-2">
      <title>A Rule-based Model</title>
      <p>
        Unlike other statistical relational models, we adopt rule-based models for link
prediction, with the obvious advantage that the learned models (as sets of logical rules) are
explainable and reusable. In what follows, we describe how we construct such models.
2.1 Embedding-based Rule Selection
Inspired by [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we learn such rule-based models via predicate embeddings; yet
unlike [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] using matrix embeddings, we adopt TransE vector embeddings which can
signi cantly improve learning e ciency. As we demonstrate in the experiments, adopt a
simpler form of embeddings does not compromise the learning accuracy. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], vector
embeddings r and e are constructed for each relation R and each entity e in the KG.
When a fact R(e; e0) exists in the KG, the embeddings satisfy e + r e0. We extend it
to an embedding characterisation for closed-path rules, that is, rst-order Horn rules
of the form R1(x; z1) ^ R2(z1; z2) ^ : : : ^ Rn(zn 1; y) ! R(x; y) with x; y; z1; : : : ; zn 1
being variables. There are two aspects we hope to capture: (1) the composition of
relations R1; : : : Rn associates entities (in place of x and y) similarly as relation R
does; and (2) the co-occurrence of arguments in the positions of x; y; z1; : : : ; zn 1.
      </p>
      <p>
        For (1), it requires for each pair of entities (e; e0), e+r1+ +rn e0 e+r e0. We
de ne a measure sim(r1 + + rn; r); where sim is the L2 norm of vector distances.
For (2), we use the notion of argumentation embeddings from [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. More speci cally,
for each relation R, two vector embeddings r1 and r2 are computed by averaging
the entity embeddings (as vectors) of all the entities occurring in the position of
respectively, the subject and object arguments of R. Then, for x occurring as the
subject arguments of both R1 and R, y occurring as the object argument of both
Rn and R, and zi (1 i n 1) occurring as the object argument of Ri and
subject argument of Ri+1, we have the following measure sim(r11; r1) + sim(r2n; r2) +
sim(r21; r12) + + sim(r2n 1; r1n):
2.2
      </p>
      <p>Hierarchical Data Sampling
A major challenge in the computation of embeddings is that existing methods cannot
scale over large KGs, even for vector embeddings. Hence, we propose a new data
sampling strategy, called hierarchical sampling, to reduce the sizes of input KGs by
A System for Reasoning-based Link Prediction in Large Knowledge Graphs
focusing on entities that are relevant to the link prediction task. Intuitively, for each
link prediction task, the link (i.e., a relation) R is often given, and we sample entities
(and facts) in the KG that are directly or indirectly related to R for embedding
construction.</p>
      <p>Consider a KG K = (E; F ) with E being the set of all entities and F being the set
of all facts (i.e., triples) in K. Our sampling method selects a (small) subset E0
E
that are relevant to R and focus on the facts F 0 only about E0 (not mentioning
other entities). Since each rule in our model forms a path, our sampling method also
deploys a breath- rst tree search. As shown in Figure 1 (a), the
rst sampled entities
E0 are those occurring in facts about R. Then, E1 are those entities that occur in
any facts (not necessarily about R) mentioning entities from E0. Similarly, Ei+1 are
those entities that occur in any facts mentioning entities from Ei, for each i
1 till
a prescribed depth.</p>
      <p />
      <p>= 2
  R1</p>
      <p>R1  

   1
   2    1  
 = 3</p>
      <p>1  
 2  
 2</p>
      <p>1  
 = 4

 
quite e ective.
We compared our system with RLvLR, AMIE+ and Neural LP on rule learning and
link prediction, on common benchmarks FB15K(-237), Wikidata, DBPedia 3.8, and
YAGO2s.</p>
      <p>For large KGs Wikidata, DBPedia 3.8, and YAGO2s, Table 1 shows our system
outperforms both RLvLR and AMIE+ in learning e ciency, as shown by the average
numbers of rules (#R) and quality rules (#QR, standard con dence over 0.7) learned
per hour.</p>
      <p>FB75K Wikidata
Learner</p>
      <p>MRR Hits@10 MRR Hits@10
R-Linker 0.37 59.0 0.33 39.3
RLvLR 0.34 43.4 0.29 38.9
Neural LP 0.13 25.7 -</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Nickel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Murphy</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tresp</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gabrilovich</surname>
          </string-name>
          , E.:
          <article-title>A Review of Relational Machine Learning for Knowledge Graph</article-title>
          .
          <source>Proceedings of IEEE</source>
          ,
          <volume>1041</volume>
          ,
          <fpage>1</fpage>
          -
          <lpage>23</lpage>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Antoine</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nicolas</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alberto</surname>
            ,
            <given-names>G.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jason</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oksana</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Translating embeddings for modeling multi-relational data</article-title>
          .
          <source>In: NIPS 26</source>
          , pp.
          <volume>2787</volume>
          {
          <issue>2795</issue>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>D.Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Scalekb: scalable learning and inference over large knowledge bases</article-title>
          .
          <source>The VLDB Journal</source>
          <volume>25</volume>
          (
          <issue>6</issue>
          ),
          <volume>893</volume>
          {
          <fpage>918</fpage>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Galarraga</surname>
            ,
            <given-names>L.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Te ioudi</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hose</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suchanek</surname>
            ,
            <given-names>F.M.</given-names>
          </string-name>
          :
          <article-title>Fast rule mining in ontological knowledge bases with amie+</article-title>
          .
          <source>The VLDB Journal</source>
          <volume>24</volume>
          (
          <issue>6</issue>
          ),
          <volume>707</volume>
          {
          <fpage>730</fpage>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Ho</surname>
          </string-name>
          , V.T.,
          <string-name>
            <surname>Stepanova</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gad-Elrab</surname>
            ,
            <given-names>M.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kharlamov</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weikum</surname>
          </string-name>
          , G.:
          <article-title>Rule learning from knowledge graphs guided by embedding models</article-title>
          .
          <source>In Proc. ISWC</source>
          pp.
          <volume>72</volume>
          {
          <issue>90</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Omran</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>Scalable rule learning via learning representation</article-title>
          .
          <source>In Proc. AAAI</source>
          , pp.
          <volume>2149</volume>
          {
          <issue>2155</issue>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Garc</surname>
            a-Duran,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Niepert</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Blrn:
          <article-title>End-to-end learning of knowledge base representations with latent, relational, and numerical features</article-title>
          .
          <source>In: Proc. UAI</source>
          , pp,
          <fpage>372</fpage>
          -
          <lpage>381</lpage>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>