<!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>Knowledge Graph Embedding for Triples Fact Validation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>MONDECA</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>boulevard de Strasbourg</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paris</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France. &lt;firstname.lastname@mondeca.com&gt;</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>This poster1 presents a methodology for designing and implementing a knowledge graph fact checking using graph embeddings models. The implementation has been tested on the dataset of task 1 of the ISWC 2019 challenge to assess the correctness of a statement. We trained 6 embedding models : DistMult, HolE, TransE, TransR, ComplEx and RDF2VEC. Several machine learning algorithms have been tested to classify the triples given their embeddings using a 4-fold cross validation scheme on the entire dataset. The results indicate that RDF2VEC gives the higher AUC score of 0:877 for the prediction of the correctness of the statements. According to the evaluation report obtained from the challenge board, our team's score came third among nine participating teams to the fact validation task 1 challenge.</p>
      </abstract>
      <kwd-group>
        <kwd>Knowledge Graph embedding</kwd>
        <kwd>Fact validation</kwd>
        <kwd>drugs dataset</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>A knowledge graph (KG) is an oriented graph formed of a set of entities
corresponding of the vertices of the graph, and a set of relations which consist of
edges connecting the entities. A KG aims at representing entities of a given
domain with their relations. We saw a rapid growth of this type of data in the
recent years, mainly because of the wide possibilities of applications, such as
disambiguation or question answering.</p>
      <p>
        Given a knowledge base constituted of positives and negatives statements,
the task 1 of the ISWC 2019 challenge 2 aims to give an idea of the correctness of
any new statement similar entities. A training set and a testing set both made of
25,000 statements distributed between positives and negatives triples are given.
11,990 drugs and diseases form the entities of the graph, linked by 5 di erent
predicates giving information on the interactions between the drugs and diseases.
Some entities existing in true statements are never seen in false statements, and
some entities present in the testing graph are not used in the training set. We
present in this paper our machine learning approach to tackle the problem.
1 Copyright c 2019 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
2 https://dice-group.github.io/semantic-web-challenge.github.io/
Because of their symbolic nature, knowledge graph can be hard to manipulate
for some computing tasks. A new strategy has been elaborated to bypass this
issue, called knowledge graph embedding [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], which gained massive attention in
the recent years for its exibility and various applications [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The aim of this
type of method is to transform the components of the graph, i.e. the entities and
the relations into continuous vector spaces, which describe the topological and
semantic relations of the di erent components with numerical values.
      </p>
      <p>
        The majority of knowledge graph embedding methods are based on the
maximization of a scoring function, for example the dot product of the embeddings
of the subject, object and predicate of a given known statement [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However,
other types of methods such as RDF2VEC [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] takes into account the semantic
and topological local environment of every entity of the graph by generating
large amount of random walks and then applying the Word2Vec algorithm on
the generated walks.
      </p>
      <p>
        The embeddings can then be used for many tasks such as link prediction,
entity classi cation or triplet classi cation. Triplet classi cation consists of
classifying new triplets as true or false. However, the public datasets used for this
tasks such as WN11 or FB13 do not have any explicitly false triplets [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], and
they have to be generated, contrary to the dataset given in this task.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Our Approach for Fact Validation</title>
      <sec id="sec-2-1">
        <title>Knowledge Graph Embedding on RDF Triples</title>
        <p>Our approach has been to transpose the semantic and topology of the entire
training graph into a vector space to be able to describe any triple by a set
of numeric value. It is then possible to apply statistic and machine learning
methods to separate the vector space in the purpose of distinguishing true and
false statements by their describing vectors.</p>
        <p>To have a vector space describing the graph, we used di erent methods of
knowledge graph embedding found in the literature. We tried the following 6
embedding models : DistMult, HolE, TransE, TransR, ComplEx which are based
on a scoring function, and RDF2VEC which is based on a Word2Vec model
trained on random walks of the graph. The RDF2VEC model was trained in 10
epochs with a window of 8 using the skip-gram scheme, while we used 200 epochs
for all the other models. We chose a dimension of 150 for the vector space, and
tried as well a 300-length vector model for RDF2VEC 3.</p>
        <p>
          Once we compute the the embeddings for every entity and relation, we express
the embedding of a statement (hsubjecti hpredicatei hobjecti) by combining the
three given vectors. We then tackle the problem as a binary classi cation task,
3 We used the python library Ampligraph [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] for the implementation of DistMult,
HolE, TransE and Complex, pykeen for transR and the o cial implementation of
RDF2VEC
        </p>
        <p>Knowledge Graph Embedding for Triples Fact Validation
by training di erent machine learning algorithms on the training dataset, trying
to separate true and false statements by their corresponding embeddings in the
vector space.</p>
        <p>To nd the best embedding model and machine learning classi er, we split
the released training set into a training and a validation (or development) set
with a 0.75/0.25 split. The embedding models were trained on this entire dataset
available, while the machine learning models were trained on the training set and
tested and optimized on the validation set.</p>
        <p>Once the machine learning models were trained, we applied them on the
validation set constituted of new true and false statements, previously unseen
by the model. A truth score was then given for each statement as the output of
the classi cation.
3.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Machine Learning Classi ers</title>
        <p>We tested two machine learning algorithms to classify the triples given their
embeddings for the 6 models : MultiLayerPerceptron (MLP) and RandomForest
(RF). The MLP followed a gridsearch parameters optimization for the hidden
layers shape, the optimization technique and the hidden layer activation
function. The best parameters were 2 hidden layers of size 300 and 100, the ADAM
optimization strategy and a ReLU activation function. The models have rst
been trained on the training set and applied on the development set. They have
been implemented with scikit-learn library in Python.</p>
        <p>The results are presented in Table 1. The RDF2VEC embedding gives the
best results with MLP model, with an AUC score of 0:877 for the prediction
regarding the correctness of the development dataset statements.
We used the embedding model which gave the best AUC score in the
development data set, i.e. RDF2VEC, and tested it on the test dataset with the same
parameters. We trained this model on all the data available, that is the training,
validation and test sets, to have an embedding vector for each entity and relation
present in the test set. We then trained the machine learning model which gave
the best score in the development process, i.e. an MLP, on the triplets
embeddings of the training and validation sets and applied it on the embeddings of the
test triplets to classify them as true or false.</p>
        <p>Our approach has been submitted4 using the GERBIL interface provided by
the organizers of the challenge. The evaluation given by the organizers using
GERBIL shows a value of 0:9979 corresponding to AUC.</p>
        <p>At the time of writing this paper, our team represented with the nickname
\Mdk Team" was ranked third out of nine participants in the leaderboards of the
challenge. The AUC di erence with the winner team is 0:0018. As four systems
have a score higher than 0.9900, we can
5</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion and Future Work</title>
      <p>
        This poster proposes a fact validation work ow for the task 1 of the ISWC 2019
challenge. The presented method consists of the training of an knowledge graph
embedding model on the entire dataset, whose inputs are used for machine
learning models. Based on our implementation and experiments, RDF2VEC which
is based on the generation of random walks outperform all the scoring function
based embedding models. As four systems have a score higher than 0.9900 in the
competition, we can question the di culty of this challenge. our system should
thus be tested on other datasets. Moreover, the main drawback of the current
model is that it can not take as input previously unseen entity or relation to
map them to the vector space. New approaches such as graph neural networks
could overcome this issue because they directly classify subsets of a graph and
seem to give good results on graph classi cation tasks in the literature [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Usunier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Garcia-Duran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          , and
          <string-name>
            <given-names>O.</given-names>
            <surname>Yakhnenko</surname>
          </string-name>
          .
          <article-title>Translating embeddings for modeling multi-relational data</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          , pages
          <volume>2787</volume>
          {
          <fpage>2795</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>L.</given-names>
            <surname>Costabello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Pai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Van</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>McGrath</surname>
          </string-name>
          ,
          <string-name>
            <surname>and N. McCarthy.</surname>
          </string-name>
          <article-title>AmpliGraph: a Library for Representation Learning on Knowledge Graphs, Mar</article-title>
          .
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>T. N.</given-names>
            <surname>Kipf</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Welling</surname>
          </string-name>
          .
          <article-title>Semi-supervised classi cation with graph convolutional networks</article-title>
          .
          <source>arXiv preprint arXiv:1609.02907</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>P.</given-names>
            <surname>Ristoski</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Paulheim</surname>
          </string-name>
          . Rdf2vec:
          <article-title>Rdf graph embeddings for data mining</article-title>
          .
          <source>pages 498{514</source>
          , 10
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Mao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>L.</given-names>
            <surname>Guo</surname>
          </string-name>
          .
          <article-title>Knowledge graph embedding: A survey of approaches and applications</article-title>
          .
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          ,
          <volume>29</volume>
          (
          <issue>12</issue>
          ):
          <volume>2724</volume>
          {
          <fpage>2743</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , J. Feng, and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>Knowledge graph embedding by translating on hyperplanes</article-title>
          .
          <source>In Twenty-Eighth AAAI conference on arti cial intelligence</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>