<!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>Embedding Metadata-Enriched Graphs?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Robert David</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Centre for Public Administration Research</institution>
          ,
          <addr-line>Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Semantic Web Company</institution>
          ,
          <addr-line>Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Vienna University of Economics and Business, Institute for Data</institution>
          ,
          <addr-line>Process and Knowledge Management, Welthandelsplatz 1, 1020 Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Vienna University of Technology</institution>
          ,
          <addr-line>Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2090</year>
      </pub-date>
      <abstract>
        <p>This paper presents an on-going research where we study the problem of embedding meta-data enriched graphs, with a focus on knowledge graphs in a vector space with transformer based deep neural networks. Experimentally, we compare ceteris paribus the performance of a transformer-based model with other non-transformer approaches. Due to their recent success in natural language processing we hypothesize that the former is superior in performance. We test this hypothesizes by comparing the performance of transformer embeddings with nontransformer embeddings on di erent downstream tasks. Our research might contribute to a better understanding of how random walks inuence the learning of features, which might be useful in the design of deep learning architectures for graphs when the input is generated with random walks.</p>
      </abstract>
      <kwd-group>
        <kwd>Graph Embedding</kwd>
        <kwd>Knowledge Graph Embedding</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>Metadata</kwd>
        <kwd>Random Walks</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Deep Learning (DL) has drastically improved the state-of-the-art on many tasks
in Natural Language Processing (NLP) and Computer Vision (CV) since its
breakthrough in 2012 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. For the former, [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] claim that DL is able to learn word
embeddings which capture material science concepts without any supervision,
and that these embeddings can be used to predict materials years before their
discovery. This success has been largely attributed to its ability to learn features
of a concept in an unsupervised manner, therefore eliminating most, if not all, the
? This research has received funding form the Teaming.AI project, which is part of
the European Union's Horizon 2020 research and innovation program under grant
agreement No 957402.
      </p>
      <p>Copyright ©2021 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
need for feature engineering. Unsurprisingly, this success and the prospect of next
to none feature engineering lead to an interest in this machine learning technique
from both the graph and semantic web research community. Speci cally, a stream
of research emerged which dedicates itself to learning representations of nodes,
edges, sub-graphs, or a whole graph, and any combination of these.</p>
      <p>Two approaches for embedding are DeepWalk, which claims to be the rst
that introduces DL for network analytics, and RDF2Vec, where the former is
from the literature on graph embeddings while the latter is from the specialized
community on Knowledge Graph (KG) embeddings. Both rst use random walks
to generate sequences which are then fed into a technique originated in NLP.
They hence treat the result of a random walk as being equivalent to a sentence.</p>
      <p>In our research, we are interested in enriching these random walks with
metadata present in the graph or KG and the e ect this has on di erent DL models.
In particular, we study the ability of transformer based DL models to learn
embeddings from random walks enriched with meta-data. We hypothesize that
the former is superior ceteris paribus to non-transformer methods in learning
representations evaluated by their performance on downstream tasks.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background on Graph Embedding Approaches with</title>
    </sec>
    <sec id="sec-3">
      <title>Deep Learning and Random Walks</title>
      <p>
        At the core of graph embedding approaches with DL and random walks is the
idea to represent the graph as a sequence of random walks, which is the
input to the DL model [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The random walk is hence a feature engineering
preprocessing step to enable the use of existing DL embedding approaches, which
are usually from NLP. Two frequently used approaches are Continuous
bag-ofwords (CBOW) and skip-gram, which are explained in more detail in the next
paragraph. DeepWalk and RDF2Vec are examples for approaches that use them,
where the former is from the literature on graph embeddings, while the latter
is more specialized for knowledge graphs serialized with the Resource
Description Framework (RDF). For this embedding family, the random walks are of
paramount importance as they are the input to the DL model. The model hence
relies on the properties of the paths created by the random walk, which in turn
logically implies that the DL model is constrained by (i) the degree to which
they preserve the graph properties, and (ii) the expressiveness of these paths.
We hypothesize that adding meta-data leads to an increase in performance for a
given task ceteris paribus, given the DL model is capable to learn the structure
of meta-data enriched paths. Which is the motivation for this research. In the
next paragraph, we exemplary describe RDF2Vec.
      </p>
      <p>
        RDF2Vec is a KG embedding approach speci cally designed for RDF
seralized KGs, which uses random walks to rst generate sequences of a xed length
d. These sequences are then fed into a 3-layer multi-layer perceptron for
training [
        <xref ref-type="bibr" rid="ref3 ref4">3,4</xref>
        ]. The vector representation can then be obtained from the hidden layer.
In the original paper, the authors set d to either 4 or 8, and use 500 or 200 walks
per entity, depending on the data set. These sequences can be generated with
either random graph walks or the Weisfeiler-Lehman algorithm. As a training
strategy one can either use CBOW or Skip-gram, where one is the inverse of
the other. In the former, the 3-layer perceptron attempts to predict one missing
word in a sequence, while in the latter it attempts to predict surrounding words
of a given word.
3
      </p>
    </sec>
    <sec id="sec-4">
      <title>Related Work</title>
      <p>
        In our research we focus on embedding graphs with random walks and DL.
Naturally, this implies similarities with these approaches. However, we di erentiate
ourslefes in two important ways. First, our graph walks can in principle contain
a massive amount of meta-data which need to be processed by the DL model.
Which leads to the second distinction, which is the use of a transformer based
model as they have started to outperform recurrent models in NLP [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. This
might indicate an increased capability to learn structure from sequences, which
actually is the research question we contribute to.
      </p>
      <p>
        Due to their success in NLP, the semantic web community has also started
to investigate DL for graph embeddings. For example, [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] use them to generate
embeddings for context-aware and temporal KGs. Their initial empirical results
may provide evidence for their increased capability to learn structure from
sequences. In particular, they report improvement by a factor of up to 15 on Hit@3
compared to their baseline models TransE, SimplE, and Hol3. However, they also
report a decrease in performance and no increase at all for Hit@1. In addition,
they acknowledge that the baseline models have performance issues which, as
they argue, may be due to a skewed distribution in the data set. Our research
is similar to theirs as we also study the problem of designing DL architectures
that are best suited for learning structure from sequences with additional
information. We however have a focus on meta-data, while they have a focus on time
and context. This is not a sharp distinction as context may be added to the KG
via meta-data. Finally, our research might shine light on why the transformer
models were not able to improve the performance on the above mentioned Hit@1.
      </p>
      <p>In our research we do not intend to introduce a new DL architecture or
propose a pre-processing method as the authors above. Instead, we contribute
to a better understanding of how DL learns the graph structure when it has only
access to a set of paths generated by random walks. This means that we will
not alter the architecture and its hyperparameters (for example the number of
lters or the kernel size), except for the case where we want to keep the number
of parameters approximately equal among all architectures. Please nd more
experimental details in the next section.
4</p>
    </sec>
    <sec id="sec-5">
      <title>Experiment Details</title>
      <p>We have a strong focus on reproducability and comparability in our research
(Fig. 1). To ensure that, we take the following steps. First, we will take care
to control all involved random number generators with seeds and will mention</p>
      <p>Compare
Performance on
Downstream Tasks</p>
      <p>Random Walk
Representations
:bob
foaf:name
"Bob"</p>
      <p>Add Meta-Data
Deep Learning
DeepWalk
RDF2Vec
Transformer Model, e.g. RETRA
:bob
foaf:name
"Bob"
dct:creator &lt;http://example.com/crawler1&gt;
dct:source &lt;http://example.net/text.html&gt;</p>
      <p>Encode Sequence
them in the paper. Second, we will separate the random walk generation from
the training loop as we rst generate the sequences and save them. These will
then be the input to the approaches. Third, will record and save the order in
which these sequences are presented to the DL model. The sequences and order
will be made publicly available. Fourth, we will perform preliminary short
experiments that are speci cally designed to test reproducability. Fifth, we will make
sure that the number of model parameters are approximately equal given the
respective approach and architecture restrictions, e.g. some approaches may have
di erent parameter scaling factors. Evaluation data sets we are considering are,
inter alia, American Association of University Professors (AAUP), Angewandte
Informatik und Formale Beschreibungsverfahren (AIFB), and British Geological
Survey (BGS).
5</p>
    </sec>
    <sec id="sec-6">
      <title>Discussion and Outlook</title>
      <p>In this paper, we report on an on-going research were we study the problem
of embedding graphs represented as a sequence of meta-data enriched random
walks with DL. We are in particular interested in the embedding capabilities
of transformer based models. In our experiment design we put sizeable e ort
in ensuring reproducability and comparability. Since the quality of embeddings
have a huge in uence on downstream tasks (e.g. node prediction and link
prediction), our research might have broad implications for many streams of reserach.
Among others, results of our research might have an in uence on the quality of
knowledge completion and fact checking technologies, e.g. detecting fake news
and tracing back a news story to its origins. Further, our research might aid the
design of DL architectures for graphs if the input is the result of random walks.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Cai</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zheng</surname>
            ,
            <given-names>V.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
          </string-name>
          , K.C.C.
          <article-title>: A comprehensive survey of graph embedding: Problems, techniques, and applications</article-title>
          .
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>30</volume>
          (
          <issue>9</issue>
          ),
          <volume>1616</volume>
          {
          <fpage>1637</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>LeCun</surname>
          </string-name>
          , Y.,
          <string-name>
            <surname>Bengio</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hinton</surname>
          </string-name>
          , G.:
          <article-title>Deep learning</article-title>
          .
          <source>Nature</source>
          <volume>521</volume>
          (
          <issue>7553</issue>
          ),
          <volume>436</volume>
          {
          <fpage>444</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Ristoski</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>Rdf2vec: Rdf graph embeddings for data mining</article-title>
          .
          <source>In: The Semantic Web { ISWC 2016</source>
          . pp.
          <volume>498</volume>
          {
          <fpage>514</fpage>
          . Springer International Publishing, Kobe, Japan (
          <year>October 2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ristoski</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Di Noia,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>De</surname>
          </string-name>
          <string-name>
            <surname>Leone</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>Rdf2vec: Rdf graph embeddings and their applications</article-title>
          .
          <source>Semantic Web</source>
          <volume>10</volume>
          (
          <issue>4</issue>
          ),
          <volume>721</volume>
          {
          <fpage>752</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Tshitoyan</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dagdelen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weston</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dunn</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rong</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kononova</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Persson</surname>
            ,
            <given-names>K.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ceder</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jain</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Unsupervised word embeddings capture latent knowledge from materials science literature</article-title>
          .
          <source>Nature</source>
          <volume>571</volume>
          (
          <issue>7763</issue>
          ),
          <volume>95</volume>
          {
          <fpage>98</fpage>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Vaswani</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shazeer</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parmar</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Uszkoreit</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jones</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gomez</surname>
            ,
            <given-names>A.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaiser</surname>
          </string-name>
          , u.,
          <string-name>
            <surname>Polosukhin</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Attention is all you need</article-title>
          .
          <source>In: Proceedings of the 31st International Conference on Neural Information Processing Systems</source>
          . p.
          <volume>6000</volume>
          {
          <fpage>6010</fpage>
          . NIPS'
          <volume>17</volume>
          , Curran Associates Inc.,
          <string-name>
            <surname>Red</surname>
            <given-names>Hook</given-names>
          </string-name>
          ,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Werner</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rettinger</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Halilaj</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          , Luttin, J.: RETRA:
          <article-title>Recurrent transformers for learning temporally contextualized knowledge graph embeddings</article-title>
          .
          <source>In: The Semantic Web</source>
          . pp.
          <volume>425</volume>
          {
          <fpage>440</fpage>
          . Springer International Publishing,
          <string-name>
            <surname>Cham</surname>
          </string-name>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>