<!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>Efficient Learning of Entity and Predicate Embeddings for Link Prediction in Knowledge Graphs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pasquale Minervini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudia d'Amato</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nicola Fanizzi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Floriana Esposito</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LACAM - Department of Computer Science - Universita` degli Studi di Bari Aldo Moro</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Knowledge Graphs are a widely used formalism for representing knowledge in the Web of Data. We focus on the problem of predicting missing links in large knowledge graphs, so to discover new facts about the world. Recently, representation learning models that embed entities and predicates in continuous vector spaces achieved new state-of-the-art results on this problem. A major limitation in these models is that the training process, which consists in learning the optimal entity and predicate embeddings for a given knowledge graph, can be very computationally expensive: it may even require days of computations for large knowledge graphs. In this work, by leveraging adaptive learning rates, we propose a principled method for reducing the training time by an order of magnitude, while learning more accurate link prediction models. Furthermore, we employ the proposed training method for evaluating a set of novel and scalable models. Our evaluations show significant improvements over state-of-the-art link prediction methods on the WORDNET and FREEBASE datasets.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Knowledge Graphs (KGs) are graph-structured Knowledge Bases (KBs), where
factual knowledge about the world is represented in the form of relationships between
entities. They are widely used for representing relational knowledge in a variety of
domains, such as citation networks and protein interaction networks. An example of their
widespread adoption is the Linked Open Data (LOD) Cloud, a set of interlinked KGs
such as Freebase [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and WordNet [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. As of April 2014, the LOD Cloud was composed
by 1,091 interlinked KBs, describing over 8 106 entities, and 188 106 relationships
holding between them 1.
      </p>
      <p>
        Despite their large size, many KGs are still largely incomplete. For example
consider Freebase 2, a core element in the Google Knowledge Vault project [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]: 71% of
the persons described in Freebase have no known place of birth, 75% of them have no
known nationality, and the coverage for less frequent predicates can be even lower [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        In this work we focus on the problem of completing missing links in large KGs, so to
discover new facts about the world. In the literature, this problem is referred to as link
prediction or knowledge graph completion, and has received a considerable attention
over the last years [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4,5</xref>
        ].
1 State of the LOD Cloud 2014: http://lod-cloud.net/
      </p>
    </sec>
    <sec id="sec-2">
      <title>2 Publicly available at https://developers.google.com/freebase/data</title>
      <p>
        Recently, representation learning [
        <xref ref-type="bibr" rid="ref7">6</xref>
        ] models such as the Translating Embeddings
model (TransE) [
        <xref ref-type="bibr" rid="ref8">7</xref>
        ] achieved new state-of-the-art link prediction results on large and
Web-scale KGs [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4,5</xref>
        ]. Such models learn a unique distributed representation, or
embedding, for each entity and predicate in the KG: each entity is represented by a
lowdimensional continuous embedding vector, and each predicate is represented by an
operation in the embedding vector space, such as a translation (as in [
        <xref ref-type="bibr" rid="ref8">7</xref>
        ]) or an affine
transformation (as in [
        <xref ref-type="bibr" rid="ref9">8</xref>
        ]). We refer to these models as embedding models, and to the
learned distributed representations as embeddings.
      </p>
      <p>The embeddings of all entities and predicates in the KG are learned jointly: the
learning process consists in minimizing a global loss functional considering the whole
KG, by back-propagating the loss to the embeddings 3. As a consequence, the learned
entity and predicate embeddings retain global, structural information about the whole
KG, and can be used to serve several kinds of applications. In link prediction, the
confidence of each candidate edge can be measured as a function of the embeddings of its
source entity, its target entity, and its predicate.</p>
      <p>
        A major limitation in embedding models proposed so far, however, is that the
learning procedure (i.e. learning the optimal embeddings of all entities and predicates in the
KG) can be very time-consuming: it is based on an incremental optimization algorithm
that may require days of computation to converge for large KGs [
        <xref ref-type="bibr" rid="ref11">10</xref>
        ].
      </p>
      <p>In this work, we propose a novel principled method for significantly reducing the
learning time in embedding models, based on adaptive per-parameter learning rates.
Furthermore, we employ the proposed training method for evaluating a variety of novel
embedding models: our evaluations achieves new state-of-the-art link prediction results
on the WORDNET and FREEBASE datasets.
2</p>
      <sec id="sec-2-1">
        <title>Basics</title>
        <p>RDF Graphs The most widely used formalism for representing knowledge graphs
is the W3C Resource Description Framework (RDF) 4, a recommended standard for
representing knowledge on the Web. An RDF KB, also referred to as RDF graph, is a
set of RDF triples in the form hs; p; oi, where s, p and o respectively denote the subject,
the predicate and the object of the triple: s and o are entities, and p is a relation type.
Each triple hs; p; oi describes a statement, which is interpreted as “A relationship p
holds between entities s and o”.</p>
        <p>Example 2.1 (Shakespeare). The statement “William Shakespeare is an author who
wrote Othello and the tragedy Hamlet” can be expressed by the following RDF triples:
hShakespeare;
hShakespeare;
hShakespeare;
hHamlet;
profession;
author;
author;
genre;</p>
        <sec id="sec-2-1-1">
          <title>Authori</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>Hamleti</title>
        </sec>
        <sec id="sec-2-1-3">
          <title>Othelloi</title>
        </sec>
        <sec id="sec-2-1-4">
          <title>Tragedyi</title>
          <p>
            3 In natural language processing, a similar procedure is used by the word2vec model [
            <xref ref-type="bibr" rid="ref10">9</xref>
            ] for
learning an unique distributed representation for each word in a corpus of documents.
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4 http://www.w3.org/TR/rdf11-concepts/</title>
      <p>An RDF graph can be viewed as a labeled directed multigraph, where each entity
is a vertex, and each RDF triple is represented by a directed edge whose label is a
predicate, and emanating from its subject vertex to its object vertex. In RDF KBs, the
Open-World Assumption holds: a missing triple does not mean that the corresponding
statement is false, but rather that its truth value is unknown (it cannot be observed). In
the following, given an RDF graph G, we denote as EG the set of all entities occurring
as subjects or objects in G, and as RG the set of all predicates occurring in G:
EG = fs j 9hs; p; oi 2 Gg [ fo j 9hs; p; oi 2 Gg;</p>
      <p>RG = fp j 9hs; p; oi 2 Gg:
For instance, in the case of the RDF graph shown in Ex. 2.1, the sets EG and RG
are the following: EG = fAuthor; Shakespeare; Hamlet; Othello; Tragedyg
and RG = fprofession; author; genreg.</p>
      <p>Furthermore, we denote as SG = EG RG EG the space of possible triples of
G, i.e. the set of all triples that can be created by using the entities and predicates in G
(note that G SG). We refer to all triples in G as observed triples, and to all triples in
SG n G as unobserved triples.</p>
      <p>
        Energy-Based Models Embedding models for KGs can be described in terms of
Energy-Based Models (EBMs) [
        <xref ref-type="bibr" rid="ref12">11</xref>
        ]: EBMs are a versatile and flexible framework for
modeling dependencies between variables. In the fields of representation learning and
deep learning [
        <xref ref-type="bibr" rid="ref7">6</xref>
        ], EBMs are employed as building blocks for constructing hierarchical
models that achieve ground-breaking results in several learning tasks.
      </p>
      <p>
        A fundamental component in an EBM is a scalar-valued energy function (or
scoring function) E ( ), parametrized by , which associates a scalar energy value to the
configuration of a set of variables. The energy of a configuration of a set of variables is
inversely proportional to its probability: more likely configurations are associated with
lower energy values, while less likely configurations are associated with higher energy
values. Several tractable methods have been proposed for learning the parameters of an
energy function [
        <xref ref-type="bibr" rid="ref12 ref7">11,6</xref>
        ]. In particular, the problem of learning the optimal parameters ^
can be cast as solving the following optimization problem [
        <xref ref-type="bibr" rid="ref12">11</xref>
        ]:
^ = arg min L(E ; D);
      </p>
      <p>2
where is the parameter space, and L( ) is a loss functional which measures the
quality of the energy function E ( ) on the data D. Intuitively, the loss functional L( )
assigns a lower loss to energy functions that associate a lower energy (corresponding to
a higher probability) to correct answers, and higher energy (corresponding to a lower
probability value) to all other incorrect answers.</p>
      <p>
        Energy-Based Models for RDF Graphs As discussed in [
        <xref ref-type="bibr" rid="ref13">12</xref>
        ], embedding models
for KGs define an energy distribution E : SG ! R over the space of possible triples
SG. For instance, the models proposed in [
        <xref ref-type="bibr" rid="ref13 ref14 ref8 ref9">8,7,13,12</xref>
        ] are used for assigning a score
E(hs; p; oi) to each triple hs; p; oi in SG. In a link prediction setting, such models are
used as follows. First, the optimal parameters ^ of the energy function are learned:
the parameters are composed by the embeddings of all entities and predicates in the
KG. Then, the energy function E^( ) is used for ranking unobserved triples: those with
lower energy values have a higher probability of representing true statements, and are
considered more likely candidates for a completion of the KG.
      </p>
      <p>Consider the RDF graph shown in Ex. 2.1. In such a graph, we prefer learning an
energy-based model that assigns a lower energy (a higher probability value) to the triple
hOthello; genre; Tragedyi, which is unobserved but represents the true statement
“Othello is a Tragedy”, and a higher energy (a lower probability value) to other
unobserved triples, for example hHamlet; genre; Authori.
3</p>
      <sec id="sec-3-1">
        <title>Energy-Based Embedding Models</title>
        <p>
          Several EBMs have been proposed in the literature for addressing the problem of link
prediction in KGs [
          <xref ref-type="bibr" rid="ref13 ref14 ref15 ref16 ref8 ref9">8,14,7,13,12,15</xref>
          ]. These models share a fundamental characteristic:
they can be used for learning a distributed representation (or embedding) for each entity
and predicate in the KG. We refer to such models as embedding models, and denote
the distributed representation of an entity or predicate z by adding a subscript to the
corresponding vector or matrix representation, as in ez 2 Rk.
        </p>
        <p>
          Formally, let G be an RDF graph. For each entity x 2 EG, embedding models learn
a continuous vector representation ex 2 Rk, with k 2 N, called the embedding vector
of x. Similarly, for each predicate p 2 RG, embedding models learn an operation on the
embedding vector space, characterized by a set of embedding parameters. This can be
an empty set of parameters, as in the Unstructured model proposed in [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ]; a translation
vector ep 2 Rk, as in the Translating Embeddings model proposed in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ]; or a more
complex set of parameters.
        </p>
        <p>The distributed representations of all entities and predicates in G are then used for
defining an energy distribution E : SG ! R over the space of possible triples of G.
In particular, the energy E(hs; p; oi) of a triple hs; p; oi is defined as a function of the
distributed representations of its subject s, its predicate p and its object o.</p>
        <p>
          In Tab. 1, we report the energy functions adopted by several models proposed in the
literature. For each model, we report the number of parameters needed for storing the
distributed representations of all entities and predicates: ne = jEGj denotes the number
of entities in the KG, nr = jRGj denotes the number of predicates, and k; d 2 N
are user-defined hyper-parameters. In general, if the number of parameters in a model
grows super-linearly with the number of entities and predicates in the KG, it becomes
increasingly harder for the model to scale to very large and Web-scale KGs.
The Translating Embeddings model Among the models outlined in Tab. 1, the
recently proposed Translating Embeddings model (TransE) [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] has interesting
characteristics, and recently received a considerable attention [
          <xref ref-type="bibr" rid="ref5">4</xref>
          ]:
– It achieves more accurate link prediction results than other state-of-the-art methods
on several datasets.
– The number of parameters in TransE scales linearly in the number of entities ne
and predicates nr in the KG: this allows TransE to potentially scale to large KGs.
        </p>
        <p>The TransE model is very simple. In TransE, each entity x 2 EG is represented by
its embedding vector ex 2 Rk, and each predicate p 2 RG is represented by a (vector)
translation operation ep 2 Rk. The energy of a triple hs; p; oi is given by the L1 or L2
distance between (es + ep) and eo:</p>
        <p>
          E(hs; p; oi) = k(es + ep)
eokf1;2g:
In TransE, all the embedding and translation vectors are learned jointly from the KG by
using Stochastic Gradient Descent, as discussed in Sect. 4. The number of parameters
needed by the TransE model for storing all the embedding and translation vectors is
(nek + nrk), a quantity that grows linearly with ne and nr. For such a reason, TransE
can potentially scale to very large and highly-relational KGs [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ].
        </p>
        <p>
          A New Set of Embedding Models In the following, we propose a set of variants of the
TransE model, which preserve its scalability properties. Let d(x; y) be a dissimilarity
function, from the following set: d(x; y) 2 fkx yk1; kx yk2; xT yg, i.e. chosen
from the L1 and L2 distance, and the negative inner product. We propose the following
embedding models, where each is defined by the corresponding energy function E( ):
– TransE : E(hs; p; oi) = d(es + ep; eo);
– TransE+ : E(hs; p; oi) = d(es + ep;1; eo + ep;2);
– ScalE : E(hs; p; oi) = d(es ep; eo);
– ScalE+ : E(hs; p; oi) = d(es ep;1; eo ep;2);
where es; eo 2 Rk are the embedding vectors of the entities appearing as the subject s
and the object o; ep; 2 Rk are the embedding parameters of the predicate p, denoting
either a translation or a scaling vector; and denotes the Hadamard (element-wise)
product, corresponding to the vector scaling operation. The energy function in TransE
is the same used in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ], but also allows using the negative inner product as a dissimilarity
measure between the (translated) subject and object embedding vectors, if it shows to
Algorithm 1 Learning the model parameters via SGD
Require: Learning rate , Batch size n, Iterations
Ensure: Optimal model parameters (embeddings) ^
1: Initialize the model parameters 0
2: for t 2 h1; : : : ; i do
3: ex ex=kexk; 8x 2 EG
4: T SAMPLEBATCH(G; n)
5: gt r P(y;y~)2T + E (y)
6: t gt
7: t t 1 + t
8: end for
9: return
fNormalize all entity embedding vectorsg
fSample a batch of observed and corrupted triplesg
        </p>
        <p>E (y~) + fCompute the gradient of the lossg
fCompute the update to model parameters (embeddings)g
fUpdate the model parametersg
improve the performance on the validation set. The TransE+ model generalizes TransE
by also translating the object embedding vector eo.</p>
        <p>The ScalE and ScalE+ models are similar to the previous two models, but replace
the vector translation with a scaling operation. The rationale behind ScalE and ScalE+
is the following: scaling the embedding vector of an entity can be seen as weighting the
(latent) features of such an entity in the embedding vector space.</p>
        <p>All proposed models share the same advantages as the TransE model: (i) the
required number of parameters is O (nek + nrk), which grows linearly with ne and nr,
and (ii) the energy function and its gradient w.r.t. the embedding of entities and
predicates can be computed very efficiently, using element-wise vector operations.
4</p>
      </sec>
      <sec id="sec-3-2">
        <title>Improving the Efficiency of the Embeddings Learning Process</title>
        <p>
          In [
          <xref ref-type="bibr" rid="ref13 ref8 ref9">8,7,12</xref>
          ], authors propose a method for jointly learning the embeddings of all entities
and predicates in a KG G. The method relies on a stochastic optimization process, that
iteratively updates the embeddings by reducing the energy of triples in G (observed
triples) while increasing the energy of triples in SG n G (unobserved triples).
        </p>
        <p>During the learning process, unobserved triples are randomly generated by means
of a corruption process, which replaces either the subject or the object of each observed
triple with another entity in G. More formally, given an observed triple y 2 G, let CG(y)
denote the set of all corrupted triples obtained by replacing either its subject or object
with another entity in G:</p>
        <p>CG(hs; p; oi) = fhs~; p; oi j s~ 2 EGg [ fhs; p; o~i j o~ 2 EGg:
The embeddings of all entities and predicates in the KG, which compose the model
parameters, can be learned by minimizing a margin-based ranking loss. More formally,
learning the optimal model parameters ^, corresponding to all the entity and predicate
embeddings, is equivalent to solving the following constrained minimization problem:
minimize</p>
        <p>2
subject to</p>
        <p>X
y2G</p>
        <p>X
y~2CG(y)
8x 2 EG : kexk = 1;
+ E (y)</p>
        <p>E (y~) +
(1)
where [x]+ = maxf0; xg, and 0 is a hyper-parameter referred to as margin.
The objective function in Eq. 1 (corresponding to the loss functional L( ) discussed in
Sect. 2) enforces the energy of observed triples to be lower than the energy of
unobserved triples. The constraints in the optimization problem prevent the training process
to trivially solve the problem by increasing the entity embedding norms.
Stochastic Gradient Descent In the literature, the constrained loss minimization
problem in Eq. 1 is solved using Stochastic Gradient Descent (SGD) in mini-batch mode, as
summarized in Alg. 1. On each iteration, the algorithm samples a batch of triples from
the knowledge graph G. Batches are obtained by first randomly permuting all triples
in G, partitioning them into nb batches of the same size, and then iterating over such
batches. A single pass over all triples in G is called an epoch. Then, for each triple y in
the batch, the algorithm generates a corrupted triple y~ uniformly sampled from CG(y):
this leads to a set T of observed/corrupted pairs of triples hy; y~i. The observed/corrupted
triple pairs are used for computing the gradient of the objective (loss) function in Eq. 1
w.r.t. the current model parameters . Finally, is updated in the steepest descent
direction of the objective function. This procedure is repeated until convergence.</p>
        <p>
          The main drawback of SGD is that it requires an initial, careful tuning of the global
learning rate , which is then used for updating all model parameters, regardless of their
peculiarities. However, if an entity x 2 EG occurs in a limited number of triples in G,
the corresponding embedding vector ex 2 Rk will be updated less often, and it will
require a much longer time to be learned. For such a reason, SGD may be very
timeconsuming and slow to converge. For instance, it was reported in [
          <xref ref-type="bibr" rid="ref11">10</xref>
          ] that learning the
optimal embeddings in TransE may require days of computation for large KGs.
        </p>
        <p>A possible solution to this problem consists in associating smaller learning rates
to parameters updated more often, such as the embedding vectors of entities appearing
more frequently, and larger learning rates to parameters updated less often.
Adaptive Learning Rates In order to reduce the time required for learning all entity
and predicate embeddings, in this work we propose leveraging Adaptive Per-Parameter
Learning Rates. While SGD uses a global, fixed learning rate for updating all
parameters, we propose relying on methods for estimating the optimal learning rate for each
parameter, while still being tractable for learning very large models.</p>
        <p>
          We consider two highly-scalable criteria for selecting the optimal learning rates,
namely the Momentum method [
          <xref ref-type="bibr" rid="ref17">16</xref>
          ] and AdaGrad [
          <xref ref-type="bibr" rid="ref18">17</xref>
          ]: they specify alternate ways of
computing the parameters update t, defined in Alg. 1 on line 6.
        </p>
        <p>Momentum Method The idea behind this method is to accelerate the progress along
dimensions where the sign of the gradient does not change, while slowing the progress
along dimensions where the sign of the gradient continues to change. The new update
rule is defined as follows:
t
t 1
mgt;
where</p>
        <p>m 2 R is a user-defined hyper-parameter.
AdaGrad This method is based on the idea that the learning rate of each parameter
should grow with the inverse of gradient magnitudes. The update rule in AdaGrad is:
t</p>
        <p>
          a
qPt
j=1 gj2
gt;
where a 2 R is a user-defined hyper-parameter. AdaGrad adds nearly no complexity,
it has very strong convergence guarantees [
          <xref ref-type="bibr" rid="ref18">17</xref>
          ], and it has shown remarkable results on
large scale learning tasks in distributed environments [
          <xref ref-type="bibr" rid="ref19">18</xref>
          ].
5
        </p>
      </sec>
      <sec id="sec-3-3">
        <title>Empirical Evaluations</title>
        <p>This section is organized as follows. In Sect. 5.1 we describe experimental settings,
datasets and evaluation metrics. In Sect. 5.2, we show that adaptive learning rates
sensibly improve both the efficiency of the learning process, and the predictive accuracy of
embedding models. In Sect. 5.3, we empirically evaluate the novel embedding models
proposed in Sect. 3, by training them using adaptive learning rates.
5.1</p>
        <p>
          Experimental Settings
Link Prediction In these experiments, we used the metrics proposed in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] for
evaluating the rank of each test triple. In particular, for each test triple hs; p; oi, its object
        </p>
        <p>
          Metric
Unstructured [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ]
        </p>
        <p>
          RESCAL [
          <xref ref-type="bibr" rid="ref20">19</xref>
          ]
        </p>
        <p>
          SE [
          <xref ref-type="bibr" rid="ref9">8</xref>
          ]
SME lin. [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ]
SME bil. [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ]
        </p>
        <p>
          LFM [
          <xref ref-type="bibr" rid="ref15">14</xref>
          ]
TransE [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ]
TransEA
o is replaced with every entity o~ 2 EG in the KG G in turn, generating a set of
corrupted triples in the form hs; p; o~i. The energies of corrupted triples are first computed
by the model, then sorted in ascending order, and used to compute the rank of the
correct triple. This procedure is repeated by corrupting the subject. Aggregated over all
the test triples, this procedure leads to the following two metrics: the averaged rank,
denoted by MEAN RANK, and the proportion of ranks not larger than 10, denoted by
HITS@10. This is referred to as the RAW setting.
        </p>
        <p>
          In the FILTERED setting, corrupted triples that exist in either the training, validation
or test set were removed before computing the rank of each triple. In both settings, a
lower MEAN RANK is better, while a higher HITS@10 is better.
Learning Time For comparing Momentum and AdaGrad with SGD on the task of
solving the optimization problem in Eq. 1, we empirically evaluated such methods on
the task of learning the parameters in TransE on WN18 and FB15K, using the optimal
hyper-parameter settings reported in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ]: k = 20, = 2, d = L1 for WN18, and
k = 50, = 1, d = L1 for FB15K. Following the evaluation protocol in [
          <xref ref-type="bibr" rid="ref21">20</xref>
          ], we
compared the optimization methods by using a large grid of hyper-parameters. Let G =
f10 6; 10 5; : : : ; 101g and G = f1 10 4; 1 10 3; : : : ; 1 10 1; 0:5g. The grids of
hyper-parameters considered for each of the optimization methods were the following:
SGD and AdaGrad: rate ; a 2 G .
        </p>
        <p>Momentum: rate m 2 G , decay rate
2 G .</p>
        <p>For each possible combination of optimization method and hyper-parameter values, we
performed an evaluation consisting in 10 learning tasks, each using a different random
initialization of the model parameters.</p>
        <p>
          Fig. 1 shows the behavior of the loss functional for each of the optimization
methods, using the best hyper-parameter settings selected after 100 training epochs. We can
immediately observe that, for both WORDNET (WN18) and FREEBASE (FB15K),
AdaGrad (with rate a = 0:1) yields sensibly lower values of the loss functional than
SGD and Momentum, even after very few iterations (&lt; 10 epochs). The duration of
each epoch was similar in all methods: each epoch took approx. 1.6 seconds in
WORDNET (WN18), and approx. 4.6 seconds in FREEBASE (FB15K) on a single i7 CPU.
Quality of Learned Models We also measured the quality of models learned by
AdaGrad, in terms of the MEAN RANK and HITS@10 metrics, in comparison with SGD.
For this purpose, we trained TransE using AdaGrad (instead of SGD) with a = 0:1 for
100 epochs, denoted as TransEA, and compared it with results obtained with TransE
from the literature on Link Prediction tasks on the WORDNET and FREEBASE datasets.
Hyper-parameters were selected according to the performance on the validation set,
using the same grids of hyper-parameters used for TransE in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] for the Link
Prediction tasks. The results obtained by TransEA, in comparison with state-of-the-art results
reported in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ], are shown in Tab. 3. Despite the sensibly lower number of training
iterations (we trained the model using AdaGrad for only 100 epochs, while in [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] TransE
was trained using SGD for 1,000 epochs), TransEA yields more accurate link
prediction models (i.e. with lower MEAN RANK and higher HITS@10 values) than every
other prediction model in the comparison.
5.3
        </p>
        <p>
          Evaluation of the Proposed Embedding Models
In this section, we evaluate the embedding models inspired by TransE and proposed
in Sect. 3: ScalE, TransE+ and ScalE+. Model hyper-parameters were selected
according to the performance on the validation set. In the following experiments, we
considered a wider grid of hyper-parameters: in particular, we selected the
embedding vector dimension k in f20; 50; 100; 200; 300g, the dissimilarity function d(x; y)
in fkx yk1; kx yk2; xT yg, and the margin in f1; 2; 5; 10g. All models were
trained using AdaGrad, with a = 0:1, for only 100 epochs. The reduced training time
enabled us to experiment with a wider range of hyper-parameters in comparison with
related works in literature [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ].
        </p>
        <p>
          Results are summarized in Tab. 4. We can see that, despite their very different
geometric interpretations, all of the embedding models proposed in Sect. 3 achieve
sensibly higher results in terms of HITS@10 in comparison with every other link prediction
models outlined in Sect. 3. An explanation is that both TransE [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] and the proposed
models TransE+, ScalE and ScalE+ have a limited model capacity (or complexity)
in comparison with other models. For such a reason, they are less prone to underfitting
for lack of training instances than other more expressive link prediction models, such
as RESCAL [
          <xref ref-type="bibr" rid="ref20">19</xref>
          ], SME [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ] and NTN [
          <xref ref-type="bibr" rid="ref14">13</xref>
          ].
        </p>
        <p>
          In each experiment, the proposed models ScalE and ScalE+ always improve over
TransE in terms of HITS@10. We can clearly see that, by leveraging: (i) Adaptive
learning rates, and (ii) The proposed embedding models ScalE and ScalE+, we were
able to achieve a record 95.5% HITS@10 on WORDNET, and a 73.0% HITS@10 on
FREEBASE. These results are sensibly higher than state-of-the-art results reported in
[
          <xref ref-type="bibr" rid="ref8">7</xref>
          ]. It is also remarkable that, during learning, the proposed method required a much
lower learning time (100 epochs, approx. 30 minutes on FREEBASE, on a single CPU)
in comparison with [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] (1,000 epochs, and careful learning rate tuning).
        </p>
        <p>
          A significantly lower training time – from days, as reported by [
          <xref ref-type="bibr" rid="ref11">10</xref>
          ], to minutes –
can sensibly improve the applicability of embedding models for knowledge graphs in
the Web of Data.
6
        </p>
      </sec>
      <sec id="sec-3-4">
        <title>Conclusions</title>
        <p>
          We focused on the problem of link prediction in Knowledge Graphs. Recently,
embedding models like the TransE [
          <xref ref-type="bibr" rid="ref8">7</xref>
          ] model achieved new state-of-the-art link prediction
results, while showing the potential to scale to very large KGs.
        </p>
        <p>In this paper, we proposed a method for sensibly reducing the learning time in
embedding models based on adaptive learning rate selection, and proposed a set of new
models with interesting scalability properties. We extensively evaluated the proposed
methods in several experiments on real world large datasets. Our results show a
significant improvement over state-of-the-art link prediction methods, while significantly
reducing the required training time by an order of magnitude.</p>
        <p>The contributions in this paper sensibly improve both the effectiveness and
applicability of embedding models on large and Web-scale KGs. Source code and datasets for
reproducing the empirical evaluations discussed in this paper are available on-line 5.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>K. D. Bollacker</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Evans</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Paritosh</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Sturge</surname>
            , and
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , “
          <article-title>Freebase: a collaboratively created graph database for structuring human knowledge,”</article-title>
          <source>in Proceedings of the ACM SIGMOD International Conference on Management of Data, SIGMOD</source>
          <year>2008</year>
          , J. T. Wang, Ed. ACM,
          <year>2008</year>
          , pp.
          <fpage>1247</fpage>
          -
          <lpage>1250</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Miller</surname>
          </string-name>
          , “
          <article-title>Wordnet: A lexical database for english,” Commun</article-title>
          . ACM, vol.
          <volume>38</volume>
          , no.
          <issue>11</issue>
          , pp.
          <fpage>39</fpage>
          -
          <lpage>41</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>X.</given-names>
            <surname>Dong</surname>
          </string-name>
          , E. Gabrilovich, G. Heitz,
          <string-name>
            <given-names>W.</given-names>
            <surname>Horn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Murphy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Strohmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sun</surname>
          </string-name>
          , and W. Zhang, “
          <article-title>Knowledge vault: a web-scale approach to probabilistic knowledge fusion,” in The 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</article-title>
          , KDD '14,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Macskassy</surname>
          </string-name>
          et al.,
          <source>Eds. ACM</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>601</fpage>
          -
          <lpage>610</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <year>5</year>
          <article-title>Source code</article-title>
          and datasets: https://github.com/pminervini/DeepKGC
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          4.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          and E. Gabrilovich, “
          <article-title>Constructing and mining web-scale knowledge graphs: KDD 2014 tutorial,” in The 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</article-title>
          ,
          <source>KDD '14</source>
          ,
          <year>2014</year>
          , p.
          <year>1967</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          5. --, “
          <article-title>Constructing and mining web-scale knowledge graphs: WWW 2015 Tutorial,”</article-title>
          <source>in Proceedings of the 24th International Conference on World Wide Web, WWW</source>
          <year>2015</year>
          ,
          <year>2015</year>
          , p.
          <fpage>1523</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. C.</given-names>
            <surname>Courville</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Vincent</surname>
          </string-name>
          , “
          <article-title>Representation learning: A review and new perspectives,”</article-title>
          <source>IEEE Trans. Pattern Anal. Mach</source>
          . Intell., vol.
          <volume>35</volume>
          , no.
          <issue>8</issue>
          , pp.
          <fpage>1798</fpage>
          -
          <lpage>1828</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          7.
          <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>
          26,
          <string-name>
            <surname>C.</surname>
          </string-name>
          Burges et al., Eds. Curran Associates, Inc.,
          <year>2013</year>
          , pp.
          <fpage>2787</fpage>
          -
          <lpage>2795</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          8.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Collobert</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>Learning structured embeddings of knowledge bases,”</article-title>
          <source>in Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2011</year>
          , W. Burgard et al., Eds. AAAI Press,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          9.
          <string-name>
            <given-names>T.</given-names>
            <surname>Mikolov</surname>
          </string-name>
          , I. Sutskever,
          <string-name>
            <given-names>K.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. S.</given-names>
            <surname>Corrado</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Dean</surname>
          </string-name>
          , “
          <article-title>Distributed representations of words and phrases and their compositionality</article-title>
          ,”
          <string-name>
            <surname>C. J. C. Burges</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Bottou</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Ghahramani</surname>
            , and
            <given-names>K. Q.</given-names>
          </string-name>
          <string-name>
            <surname>Weinberger</surname>
          </string-name>
          , Eds.,
          <year>2013</year>
          , pp.
          <fpage>3111</fpage>
          -
          <lpage>3119</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          10.
          <string-name>
            <given-names>K.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Yih</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Yang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Meek</surname>
          </string-name>
          , “
          <article-title>Typed tensor decomposition of knowledge bases for relation extraction</article-title>
          ,”
          <source>in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP</source>
          <year>2014</year>
          ,
          <article-title>A</article-title>
          . Moschitti et al.,
          <source>Eds. ACL</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>1568</fpage>
          -
          <lpage>1579</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          11. Y. LeCun, S. Chopra,
          <string-name>
            <given-names>R.</given-names>
            <surname>Hadsell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ranzato</surname>
          </string-name>
          , and
          <string-name>
            <given-names>F.</given-names>
            <surname>Huang</surname>
          </string-name>
          , “
          <article-title>A tutorial on energy-based learning,” in Predicting Structured Data</article-title>
          , G. Bakir et al., Eds. MIT Press,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Glorot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>A semantic matching energy function for learning with multi-relational data - application to word-sense disambiguation</article-title>
          ,
          <source>” Machine Learning</source>
          , vol.
          <volume>94</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>233</fpage>
          -
          <lpage>259</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          13.
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Ng</surname>
          </string-name>
          , “
          <article-title>Reasoning with neural tensor networks for knowledge base completion,”</article-title>
          <source>in Advances in Neural Information Processing Systems</source>
          26,
          <string-name>
            <surname>C.</surname>
          </string-name>
          Burges et al., Eds. Curran Associates, Inc.,
          <year>2013</year>
          , pp.
          <fpage>926</fpage>
          -
          <lpage>934</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.</given-names>
            <surname>Jenatton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. L.</given-names>
            <surname>Roux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G. R.</given-names>
            <surname>Obozinski</surname>
          </string-name>
          , “
          <article-title>A latent factor model for highly multi-relational data,”</article-title>
          <source>in Advances in Neural Information Processing Systems</source>
          25,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pereira</surname>
          </string-name>
          et al., Eds. Curran Associates, Inc.,
          <year>2012</year>
          , pp.
          <fpage>3167</fpage>
          -
          <lpage>3175</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          15.
          <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 Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence</source>
          ,
          <string-name>
            <given-names>C. E.</given-names>
            <surname>Brodley</surname>
          </string-name>
          et al., Eds. AAAI Press,
          <year>2014</year>
          , pp.
          <fpage>1112</fpage>
          -
          <lpage>1119</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          16.
          <string-name>
            <surname>D. E. Rumelhart</surname>
            ,
            <given-names>G. E.</given-names>
          </string-name>
          <string-name>
            <surname>Hinton</surname>
            , and
            <given-names>R. J</given-names>
          </string-name>
          . Wilson, “
          <article-title>Learning representations by backpropagating errors</article-title>
          ,
          <source>” Nature</source>
          , vol.
          <volume>323</volume>
          , pp.
          <fpage>533</fpage>
          -
          <lpage>536</lpage>
          ,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          17.
          <string-name>
            <surname>J. C. Duchi</surname>
            , E. Hazan, and
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Singer</surname>
          </string-name>
          , “
          <article-title>Adaptive subgradient methods for online learning and stochastic optimization</article-title>
          ,
          <source>” Journal of Machine Learning Research</source>
          , vol.
          <volume>12</volume>
          , pp.
          <fpage>2121</fpage>
          -
          <lpage>2159</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          18.
          <string-name>
            <surname>J. Dean</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Corrado</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Monga</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Devin</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Mao</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          <string-name>
            <surname>Ranzato</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Senior</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Tucker</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>Q. V.</given-names>
          </string-name>
          <string-name>
            <surname>Le</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. Y.</given-names>
            <surname>Ng</surname>
          </string-name>
          , “
          <article-title>Large scale distributed deep networks</article-title>
          ,
          <source>” in Advances in Neural Information Processing Systems</source>
          25,
          <string-name>
            <given-names>F.</given-names>
            <surname>Pereira</surname>
          </string-name>
          et al., Eds. Curran Associates, Inc.,
          <year>2012</year>
          , pp.
          <fpage>1223</fpage>
          -
          <lpage>1231</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          19.
          <string-name>
            <surname>M. Nickel</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Tresp</surname>
            , and
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Kriegel</surname>
          </string-name>
          , “
          <article-title>A three-way model for collective learning on multirelational data,”</article-title>
          <source>in Proceedings of the 28th International Conference on Machine Learning</source>
          ,
          <string-name>
            <surname>ICML</surname>
          </string-name>
          <year>2011</year>
          , L. Getoor et al.,
          <source>Eds. Omnipress</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>809</fpage>
          -
          <lpage>816</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          20.
          <string-name>
            <given-names>T.</given-names>
            <surname>Schaul</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Antonoglou</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Silver</surname>
          </string-name>
          , “
          <article-title>Unit tests for stochastic optimization</article-title>
          ,” in International Conference on Learning Representations,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>