<!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>Reranking Triples by Leveraging Text Descriptions for Link Prediction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bin Zhang</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ximin Sun</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mingda Wang</string-name>
          <email>wangmingda@sgec.sgcc.com.cn</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bin Zheng</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bo Sun</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhenfeng Han</string-name>
          <email>zhenfenghan@tju.edu.cn</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>College of Intelligence and Computing, Tianjin University</institution>
          ,
          <addr-line>Tianjin</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Link prediction task intends to complete Knowledge Graphs (KGs) which are always far from complete. Textual descriptions of entities in KG provide additional information that may not be explicitly represented in the structured part of the KG. Current methods aim to learn the representation of KG and predict missing links by utilizing structured and textual information. In this poster, we propose a novel rerank method that introduces the natural language inference task to leverage textual information of entities in a diferent way. The experiment demonstrates that our rerank method improves the quality of link prediction.</p>
      </abstract>
      <kwd-group>
        <kwd>Link prediction</kwd>
        <kwd>Knowledge graph</kwd>
        <kwd>Natural language inference</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        Various Knowledge Graphs (KGs) such as Freebase and ConceptNet have been
published to share linked data and have been crucial for many tasks.
However, according to the Open World Assumption, KGs are never complete. Due
to this fact, diferent KG representation learning (RL) models map KGs to a
low dimensional vector space and predict missing facts. TransE [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] regards the
relationships as translating operations between two entities on the same vector
space. TransH [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] models relationships as translation on hyperplanes and entities
are projected to the hyperplanes which allow entities to play diferent roles.
      </p>
      <p>
        However, these translation-based RL methods only utilize the structural
information of KG and ignore the rich information contained in entity
descriptions. Fig. 1 presents an example of a tirple with entity descriptions sampled
Copyright © 2021 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
from Freebase. Therefore, some methods such as DKRL [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] leverage the textual
descriptions of entities to enhance the representations of entities, which improves
the quality of link prediction.
      </p>
      <p>
        Motivated by [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], we reduce triple classification to NLI and propose a novel
rerank method to improve the quality of link prediction by diferently utilizing
the textual descriptions of entities. Specifically, we train translation-based RL
methods and use them to generate data used to train the NLI model. We sort
the triples depend on the scores of translation-based RL methods. Then we use
a linear combination of scores calculated by two types of model to rerank the
triples.
      </p>
      <p>( Dominican Republic, form of government, Republic )</p>
      <p>The Dominican Republic is a
nation on the island of Hispaniola,
part of the Greater Antilles
archipelago …</p>
      <p>A republic is a form of government</p>
      <p>in which power is held by the
people and representatives they</p>
      <p>
        elect …
We only introduce the TransE model because these translation-based RL models
are similar. Given entity set E, relationship set R and triple set S in which each
triple (h, r, t) consist of two entities h, t and a relationship r, the task of the
model is to learn embeddings of entities and relationships. TransE[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] regards the
relationship r as translation from h to t. The score function is
      </p>
      <p>d(h + r, t) = ∥h + r − t∥22
TransE uses margin-based ranking loss:</p>
      <p>LRL =
∑</p>
      <p>∑
(h,r,t)∈S (h′,r,t′)∈S′</p>
      <p>[γ + d(h + r, t) − d (h′ + r, t′)]+
where γ is a margin hyperparameter, [n]+ represents the positive part of a
number n, and the negative triple set S′ consists of corrupted triples which replace
the head or tail entity with a random entity.
(1)
(2)</p>
      <sec id="sec-1-1">
        <title>Natural Language Inference</title>
        <p>Given a dataset D = {(s1, s2)i , yi}iN=1, Natural Language Inference (NLI) intents
to learn a function fNLI (s1, s2) → {E, N, C} which predict the relationship
of input pair (s1, s2). The input (s1, s2) are two natural language sentences
and denote the premise and hypothesis respectively. The label y is one of three
classes {entailment, neutral, contradiction} which represent entailment, natural
and contradiction relationships between premise and hypothesis.
2.3</p>
      </sec>
      <sec id="sec-1-2">
        <title>Reducing Triple Classification to NLI</title>
        <p>
          To leverage text description of entities through NLI, we need to generate
sequence pair and relevant label from triples S. We transform three classes
{entailment, neutral, contradiction} to two classes {entailment, contradiction} for
N
the consistency of datasets. We construct NLI dataset D = {(s1, s2)i , yi}i=1 from
triple datasets S and S′. For each triple (h, r, t) ∈ S, we construct {(s1, s2) , y}
by mapping two entities (h, t) to relevant textual descriptions (htext, ttext), where
s1 = [htext; ttext], s2 = [h; r; t] and y = 1. If triple (h, r, t) ∈ S′ , y = 0. In order to
ensure the quality of generated dataset, we construct the negative triple dataset
S′ by transforming the first top negative sample of link prediciton by TransE.
We use Bert [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] as our NLI model, which use cross entropy loss:
i
        </p>
        <p>LNLI = N1 ∑ − [yi · log (pi) + (1 − yi) · log (1 − pi)]
where pi is the classification probability of sequence pair with Bert.
2.4</p>
      </sec>
      <sec id="sec-1-3">
        <title>Rerank Method</title>
        <p>First, given a triple (h, r, t), we use all entites to replace head or tail entity
and calculate scores of all triples called scoreT ransE . Secondly, we sort triples
depended on scores and get the top 10 triples. Then, we get their scoreBert
which is the classification probability computed by Bert. New scores are then
computed as:</p>
        <p>scorererank = scoreT ransE − λ ∗ scoreBert
and the 10 triples are reranked according to scorererank.
(3)
(4)
3</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Experiments</title>
      <p>
        We verify our rerank method on two datasets, namely, FB15k and FB15k-237.
To confirm that all entities in datasets have descriptions, we follow the process
in DKRL [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] to remove some entities and relevant triples in both datasets. The
goal of our rerank method is to improve the usability of link prediction, so we
only rerank the top 10 triples. And we also follow the evaluation setting named
“Filter” in TransE [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and use Hits@1, Hits@2, Hits@3 to evaluate our method.
      </p>
      <p>By Table 1, we show that our rerank method achieves higher scores of all
metrics compared to original TransE and TransH models on two datasets.
Besides, we even achieve 43% higher score of Hits@1 on FB15k, which demonstrates
the usability of link prediction by our model. We can conclude the efectiveness
of our rerank method.</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>Using text descriptions of entities has been proved to be an valid way to improve
the quality of link prediction. In this poster, we propose a rerank method for link
prediction which is a diferent way to leverage the text information of entities.
Experiments demonstrate that our approach is useful and promising. In future
work, we are interested in extending our rerank method for more KG Embedding
models.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Antoine</given-names>
            <surname>Bordes</surname>
          </string-name>
          , Nicolas Usunier, Alberto García-Durán, Jason Weston, Oksana Yakhnenko.:
          <article-title>Translating Embeddings for Modeling Multi-relational Data</article-title>
          .
          <source>In: 27th Annual Conference on Neural Information Processing Systems</source>
          <year>2013</year>
          , pp.
          <fpage>2787</fpage>
          -
          <lpage>2795</lpage>
          . Lake Tahoe, Nevada, United
          <string-name>
            <surname>States</surname>
          </string-name>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Zhen</surname>
            <given-names>Wang</given-names>
          </string-name>
          , Jianwen Zhang, Jianlin Feng, Zheng Chen.
          <article-title>: Knowledge Graph Embedding by Translating on Hyperplanes</article-title>
          .
          <source>In: 58th AAAI Conference on Artificial Intelligence</source>
          , pp.
          <fpage>1112</fpage>
          -
          <lpage>1119</lpage>
          . AAAI Press, Québec City, Québec, Canada (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Ruobing</given-names>
            <surname>Xie</surname>
          </string-name>
          , Zhiyuan Liu, Jia Jia, Huanbo Luan, Maosong Sun.:
          <article-title>Representation Learning of Knowledge Graphs with Entity Descriptions</article-title>
          .
          <source>In: 4th IEEE International Conference on Multimedia Big Data</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          . IEEE,
          <string-name>
            <surname>Xi</surname>
          </string-name>
          'an,
          <string-name>
            <surname>China</surname>
          </string-name>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Sean</given-names>
            <surname>Welleck</surname>
          </string-name>
          , Jason Weston, Arthur Szlam, Kyunghyun Cho.
          <article-title>: Dialogue Natural Language Inference</article-title>
          .
          <source>In: 57th Conference of the Association for Computational Linguistics</source>
          , pp.
          <fpage>3731</fpage>
          -
          <lpage>3741</lpage>
          . Association for Computational Linguistics, Florence, Italy (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Jacob</given-names>
            <surname>Devlin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ming-Wei</surname>
            <given-names>Chang</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kenton</given-names>
            <surname>Lee</surname>
          </string-name>
          , Kristina Toutanova.: BERT:
          <article-title>Pretraining of Deep Bidirectional Transformers for Language Understanding</article-title>
          .
          <source>In: 14th Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , pp.
          <fpage>4171</fpage>
          -
          <lpage>4186</lpage>
          . Association for Computational Linguistics, Minneapolis, MN, USA (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>