<!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>Interpreting Link Prediction on Knowledge Graphs</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Roma Tre University</institution>
          ,
          <addr-line>Rome</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Link Prediction (LP) on Knowledge Graphs (KGs) has recently become a sparkling research topic, bene ting from the explosion of machine learning techniques. Several relation-learning models are published every year, mostly relying on KG embeddings. So far, however, not much has been done to interpret the features they learn and predict, and the circumstances that allow them to achieve satisfactory performances. Our research aims at opening the black box of LP models, trying to explain their behaviors. In this work we rst discuss the current limitations of LP benchmarks, showing how the use of global metrics on largely skewed datasets hinders our understanding of these models; we then report the main takeaways from our recent comparative analysis of state-of-the-art LP models [3], identifying the most in uential structural features of the graph for predictive e ectiveness.</p>
      </abstract>
      <kwd-group>
        <kwd>Knowledge Graphs Knowledge Graph Embeddings Link Prediction</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Knowledge Graphs (KGs) model data as nodes linked by labeled edges. In a
KG nodes represent entities; each edge connects a head entity to a tail entity
through the relation speci ed by its label, resulting in a fact. KGs are employed
in several domains, ranging from question answering to information retrieval
and content-based recommendation. All KGs tend to su er from
incompleteness; Link Prediction (LP) tackles this issue by leveraging the known facts to
infer the missing ones. LP research has been largely in uenced by the recent
advancements in machine learning; most LP models nowadays map the KG
elements into vectors dubbed KG embeddings, learned automatically based on
scoring functions that estimate the plausibility of the training facts. For
instance, hBarack Obama, born in, Honolului is expected to yield a better score
than hBarack Obama, born in, Beijing i. In this framework, predicting the tail of
an incomplete fact hh, r, ?i amounts to nding the entity that results in the best
Copyright c 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0). This volume is published
and copyrighted by its editors. SEBD 2020, June 21-24, 2020, Villasimius, Italy.
score when used as its tail. Head prediction is performed analogously. Despite
the popularity of LP techniques, their strengths, weaknesses and limitations are
still unknown, and the graph structural features driving predictions have been
hardly investigated. Roughly speaking, we still do not really know what makes
a fact easy or hard to learn and predict, and whether the corresponding
predictions can be trusted or not. Our research focuses on interpreting the behavior of
LP models, aiming at providing tools for explaining their predictions. As a rst
step towards this goal, in this paper we summarize our ndings on the
limitations of current benchmarks in showing how di erent papers in LP literature t
together. Then, we report the main results of our comparative analysis. Finally,
we discuss our research plans for building interpretable methods for LP.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Works</title>
      <p>
        Works related to ours are mostly meta-analyses focusing on speci c LP
methodologies. These works tend to address very speci c hypotheses to interpret LP
behaviours, and run experiments on a few selected models to verify them. For
instance, the authors of [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] study geometrical properties of the embedding
vectors, measuring their Alignment To Mean (ATM) and conicity. They show that
models that operate by adding embeddings tend to learn signi cantly sparser
vectors than the ones multiplying them; in the latter, higher conicity also seems
to correlate to better performances. The work of [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] points out that the
current evaluation practices just ensure that models prioritize correct answers over
wrong ones on test facts. In this way, only questions that do have an answer are
taken into account. The authors argue that this approach is more akin to
question answering than LP, and propose a novel measure that includes questions
with no correct answers (e.g. nonsensical questions, such as hApple; gender; ?i).
      </p>
      <p>Finally, we acknowledge that LP is also being researched on standard graphs.
In this scenario edges are usually non-labeled, so modeling relations is
unnecessary: this makes it a related but ultimately very di erent task from LP on KGs.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Interpreting Link Prediction Results</title>
      <p>
        Since the seminal work of [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], dozens of models have been developed in just a
few years (see [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] for a survey). We argue that a crucial step towards
interpreting these models lies in providing informative evaluation practices. We brie y
highlight the most prominent limitations of current LP evaluation practices and
benchmarks, and then summarize our main ndings when comparing LP models.
3.1
      </p>
      <sec id="sec-3-1">
        <title>Benchmark Limitations</title>
        <p>All the currently most popular LP datasets have been generated by sampling
facts from a KG and splitting them uniformly at random into a training, a
validation and a test set. As a side e ect, in such datasets the number of mentions
of both entities and relations display signi cantly skewed distributions: less than
15% entities can be featured in more than 80% training facts. Furthermore, since
the training and test set are random splits from the same original sample, the
most mentioned entities in training are largely over-represented in testing too.</p>
        <p>
          Since current evaluation practices rely almost solely on global metrics (e.g.
Hits@K, Mean Rank, Mean Reciprocal Rank ) over the entire test set, LP models
can exhibit good performances, in proportion, by just learning to predict the
most mentioned entities, while ignoring the others. In FB15k [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], one of the rst
LP datasets and a de facto standard, \United States" is both the most mentioned
entity and the most common answer to relation \nationality"; in this setting, a
model can obtain decent results by just learning to predict U.S. citizens only.
        </p>
        <p>
          In our work [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] we have observed experimentally that LP models are indeed
subject to this issue to some extent, as they achieve better performances when
dealing with entities with more training mentions.
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Comparative Analysis of Models</title>
        <p>
          As mentioned above, relying exclusively on global metrics hides any variations
in predictive performances across di erent portions of the dataset. This makes it
di cult to analyze the conditions that facilitate or hinder predictions. We also
acknowledge the di culty of coming up with new datasets with di erent
structural properties and good semantic consistency. In order to mitigate this issue,
we have proposed a set of evaluation practices going beyond what is available
in literature, taking into account structural properties of individual facts and
entities. We have run an extensive comparative analysis [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] on a set of 16
models representative for the most successful architectures applied to LP; we have
included an additional rule-based LP model as a baseline. We have trained and
ne-tuned all models on the 5 most popular LP datasets, extracting ne-grained
results with the predictions yielded by each model for each test fact. The full
list of featured datasets and models can be found at our repository.
        </p>
        <p>We have used these results to investigate the graph structural features that
make facts easier to learn and predict, searching for the strongest correlations
with the predictive performances of the models. The structural features we found
most in uential to predictive performances are the number of peers and the
support provided by paths, as discussed below.</p>
        <p>Given a prediction, its target is the entity to predict, and its target peers
are its correct alternatives, i.e. forming a fact belonging to the dataset. When a
prediction has too many target peers, LP models seem to get confused: as they
try to optimize the embeddings for too many correct answers, they also let many
incorrect ones in, leading to a rapid decrease in performances. In a specular way,
the known entity in the prediction is called its source, and its correct alternatives
are dubbed source peers. Source peers seem to facilitate predictions, leading
to better performances; this can be explained by interpreting them as speci c
examples that enable analogical reasoning.</p>
        <p>https://github.com/merialdo/research.lpca</p>
        <p>
          In a graph, paths are chained sequences of facts. Given a fact, the paths
connecting its head and tail can provide useful patterns for prediction, e.g.
hBarack Obama, born in, Honolulu i and h Honolulu, located in, USAi can be
useful to predict hBarack Obama, nationality, USAi. In our work [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] propose a
novel RPS measure estimating the Relational Path Support of any test fact. RPS
uses TF-IDF vectors to assess the similarity between the paths co-occurring with
the speci c test fact and the ones usually co-occurring with the other facts that
feature the same relation. We have observed that most LP models, despite just
training on individual facts, are able to leverage longer-range dependencies to
some extent, as higher RPS values always correspond to far better performances.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Research plan and concluding remarks</title>
      <p>Being aware of the behaviours of current LP methods is vital to identify their
weaknesses, and to ultimately build more robust, trustworthy systems.</p>
      <p>
        In order to open the black box of LP systems, we aim at building a
fulledged explainability framework: given a prediction of a model, our framework
would yield as an explanation the training facts that have been most in uential
for it. In the categorization of [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], this amounts to a post-hoc local explanation.
The framework we aim to create should be agnostic to the architecture of the LP
model to explain, thus being applicable to a set of systems as wide as possible.
      </p>
      <p>
        As a matter of fact, explaining the predictions provided by LP models is still
an open problem. To the best of our knowledge, the only technique proposed
so far is [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]; this approach, however, still displays severe limitations, as it just
searches for meaningful paths connecting the head and tail, without any evidence
that such paths have actually been instrumental to perform the prediction.
      </p>
      <p>Our research plan also includes the development of more balanced and
insightful benchmarking workloads, in terms of both datasets and metrics.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bordes</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Usunier</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Garcia-Duran</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weston</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yakhnenko</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>Translating embeddings for modeling multi-relational data</article-title>
          .
          <source>In: NIPS</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Du</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Techniques for interpretable machine learning</article-title>
          .
          <source>CACM</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Rossi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Firmani</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Matinata</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Merialdo</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barbosa</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Knowledge graph embedding for link prediction: A comparative analysis (</article-title>
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Rossi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Matinata</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Knowledge graph embeddings: Are relation-learning models learning relations? In: PIE (</article-title>
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Sharma</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Talukdar</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , et al.:
          <article-title>Towards understanding the geometry of knowledge graph embeddings</article-title>
          .
          <source>In: ACL</source>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mao</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Knowledge graph embedding: A survey of approaches and applications</article-title>
          .
          <source>TKDE</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ru nelli</surname>
          </string-name>
          , D.,
          <string-name>
            <surname>Gemulla</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Broscheit</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meilicke</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>On evaluating embedding models for knowledge base completion</article-title>
          .
          <source>In: RepL4NLP@ACL</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paudel</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bernstein</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
          </string-name>
          , H.:
          <article-title>Interaction embeddings for prediction and explanation in knowledge graphs</article-title>
          .
          <source>In: WSDM</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>