<!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>Training Relation Embeddings under Logical Constraints</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Adam Poliak</string-name>
          <email>azpoliak@cs</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Benjamin Van Durme</string-name>
          <email>vandurme@cs</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Language and Speech Processing</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Human Language Technology Center of Excellence Johns Hopkins University</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Pushpendre Rastogi</institution>
        </aff>
      </contrib-group>
      <fpage>25</fpage>
      <lpage>31</lpage>
      <abstract>
        <p>We present ways of incorporating logical rules into the construction of embedding based Knowledge Base Completion (KBC) systems. Enforcing “logical consistency” in the predictions of a KBC system guarantees that the predictions comply with logical rules such as symmetry, implication and generalized transitivity. Our method encodes logical rules about entities and relations as convex constraints in the embedding space to enforce the condition that the score of a logically entailed fact must never be less than the minimum score of an antecedent fact. Such constraints provide a weak guarantee that the predictions made by our KBC model will match the output of a logical knowledge base for many types of logical inferences. We validate our method via experiments on a knowledge graph derived from WordNet.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>Method</title>
      <p>t = [eT ;e0T ]T . We will use the semicolon symbol ; as an infix operator to denote vector concatenation, i.e. (x;y) = [xT ;yT ]T .
Finally, x y denotes that the vector x is elementwise larger than y and B(x;r) denotes the L2 ball centered at x with radius r.</p>
      <p>Score Function: A majority of the existing work on embedding based KBC measures the correctness of a fact via a scoring
function, score: R E E!R, with the property that when score(f ) &gt; score(f 0), fact f is more likely to be correct than f 0. The
two major classes of score functions are:
score(f ) = hr;ti
(1)
score(f ) = jjr tjj2 (2)
In Equations (1–2), r and t are vector representations of r and t = (e;e0), respectively, that are constituents of f = (r;(e;e0)). For
brevity, we will omit this expansion from here onwards.</p>
      <p>
        Unconstrained Objectives for Learning Score Function Rendle et al. 2009 proposed the Bayesian Personalized Ranking
(BPR) objective as a way of tuning recommendation systems when a user can only observe positive training data, such as correct
facts, but the facts that are absent may be either correct or incorrect. In this paper we will focus on the BPR objective since this
objective has been used for learning the parameters of a KBC system by various researchers
        <xref ref-type="bibr" rid="ref12">Rendle et al. (2009)</xref>
        ;
        <xref ref-type="bibr" rid="ref4">Demeester et al.
(2016)</xref>
        ;
        <xref ref-type="bibr" rid="ref13">Riedel et al. (2013)</xref>
        .
        <xref ref-type="bibr" rid="ref20">Wang and Cohen 2016</xref>
        experimentally showed that the BPR objective outperforms other objectives
such as Hinge Loss and Log Loss.
      </p>
      <p>BPR posits that the training data is a single joint sample of U(U 1) bernoulli random variables fbff0 j f 2 U ;f 0 2 U ;f 0 =6 f g.
bff0 equals 1 when f is in F and f 0 is in F c and 0 otherwise. bff0 is parameterized by its probability pff0 and all bff0
are conditionally independent given the probabilities pff0 . The probability values must obey the reasonable condition that
pff0 = 1 pf0f . A natural way to satisfy this condition is to parameterize pff0 as (score(f ) score(f 0)) where is the sigmoid
function.2 The BPR estimator is simply the L2 regularized MLE estimator of this probabilistic model, with regularization strength
. Table 1 lists instances of the BPR objective that arise with different score functions.</p>
      <p>Model
A j t = (e;e0)
R j t = e</p>
      <p>B
t = (e;e0;eT e0)
C j t = (e;e0)
e0
e0
T j t = e</p>
      <p>D
t = (e;e0jje e0jj)
(1)
(1)
(2)
(2)
score</p>
      <sec id="sec-2-1">
        <title>Minimization Objective (J)</title>
        <p>X log
(f;f)2F Fc</p>
        <sec id="sec-2-1-1">
          <title>X log( (hr;ti hr;ti))+ (Xjjrjj2+Xjjejj2)</title>
          <p>(f;f)2F Fc r2R t2E</p>
          <p>X log( (hr1;ei+hr2;e0i+he;e0i
(f;f)2F Fc</p>
          <p>X log( (jjr tjj2 jjr tjj2))+ (Xjjrjj2+Xjjejj2)
(f;f)2F Fc r2R t2E
jjr1 ejj2+jjr2 e0jj2+jje e0jj2!
jjr1 ejj2
jjr2 e0jj2</p>
          <p>jje e0jj2
hr1;ei hr2;e0i he;e0i))+ (Xjjrjj2 +Xjjejj2)
r2R
t2E
+</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>Pr2Rjjrjj2+Pt2E jjejj2</title>
          <p>Logical Consistency of Embeddings through Constraints Our general scheme for incorporating logical relations into
embeddings is to ensure that during the learning of the vector representation of entities and relations, the score of a consequent fact will
be greater than the score of any of its antecedents. In other words if f1;:::;fn 1 =) fn then score(fn) mini2[1;n 1](score(fi)).
If this does not hold true, then it will be possible for our KB to assign a low score to a logically entailed fact even though all
of its antecedents have a high score.</p>
          <p>We analyze common logical rules found in large scale KBs and for different combinations of a logical rule and scoring function
we devise inequalities that the score function should satisfy. We translate those inequalities into constraints that restrict the entity
and relation representations in a KB. We use the projected subgradient descent algorithm for learning the parameters of our KBS
system. Algorithm 1 shows a specific instance, for Model A and batch size 1, of our parameter learning algorithm with a general
set of rules L. We now show how to construct convex constraints from logical rules.
2.1</p>
          <p>Constraints for Logical Consistency: Relational Implication
We now present the constraints for guaranteeing that the predictions from embeddings based KBC systems are consistent with
logical rules starting with implication rules. An implication rule of the form, RELIMP(r;r0), specifies that if a fact f = (r;t) is
correct, then (r0;t) must also be correct. For example, the rule RELIMP(Husband Of, Spouse Of) enforces that if our KB
predicts the fact, (HusbandOf,(Don, Mel)), then it will also predict (SpouseOf,(Don, Mel)). As explained above
we can enforce such a rule by ensuring that score(r0;t) score(r;t) 8t 2 T . 3</p>
          <p>When we use the inner product score function (1) then this inequality can be enforced by ensuring that hr0 r;ti 0 for all
t 2 T . We constrain t to lie in a subset of Rd, say T, then the implication rule can be enforced by constraining r0 r to lie in
the dual cone of T, denoted T . A very convenient special case arises when we chose T to be a “self dual cone” for which T = T .
The set of positive real vectors Rd+ is one example of such a self dual cone. 4</p>
          <p>When we use the L2 distance score function (2) then the restriction on the score function translates into the following constraints
on the vector representations: jjr tjj2 jjr0 tjj2 0 =) hr r0;r0 + r 2ti 0 =) hr r0;r0 + ri=2 hT(r r0). Here
hT(x) is the value of the support function of T at x which is defined as hT(x) = supt2Thx;ti. It is necessary and sufficient for the
feasibility of this constraint that the hT function should be finite for at least one value of x = r r0. Once we have fixed r r0 then
r+r0 can be easily chosen from the halfspace H (r0 r;2hT(r r0)). Note that if hT is difficult to compute then implementing
this constraint will also be difficult, therefore we must chose T wisely.</p>
          <p>One example of a good choice of T is Rd+. hRd+ (r r0) is finite and zero iff r r0 0 therefore, the value of r+r0 must lie
in the halfspace hr r0;r0 +ri 0. Unfortunately, the problem of finding r and r0 vectors that satisfy this constraint is non-convex
and it is not possible to project on to this set given a pair of vectors that violate the constraints. We remedy this situation by
adding an additional constraint that r + r0 must also lie in the negative orthant, i.e. r + r0 0. Table 2 presents all the derived
constraints. Unfortunately, since the T model defines t = e e0, therefore it is not possible to set T = Rd+. In the case of the T
model if we constrain e to lie in B(0; ) then t must lie in B(0;2 ) and hT(r r0) = 2 (r r0) =) hr r0;r0+ri 4 . One way
to make this constraint amenable to efficient projection is to enforce that r+r0 = 4 (r r0) and jjr r0jj2 jjr1 =r0)jj jjr0jj2 j2 :5j.
This constraint becomes trivial if = 0:25
2.1.1</p>
          <p>Reverse Relational Implication and Symmetry
A reverse relational implication rule denoted by REVIMP(r;r0) specifies that if (r;(x;y)) is correct, then (r0;(y;x)) is also correct
for all (x;y) 2 T . This rule can be enforced through the inequality that score(r0;y;x) score(r;x;y). Depending on the model
let r = (r1;r2) or (r1;r2;1 or 0) as shown in Table 1, and similarly decompose r0. We will omit this detail in later sections. Under
models A and B, this inequality translates to the following constraint hy;r01i+hx;r02i hx;r1i+hy;r2i and under models C and
D, the necessary constraints are hr1 r02;r1 + r02 2xi hr01 r2;r01 + r2 2yi. Stronger versions of these constraints, which
are more efficient to enforce, are shown in Table 2.</p>
          <p>A symmetry rule denoted as SYMM(r) specifies that if the fact (r;(e;e0)) is known to be correct then (r;(e0;e)) is also correct.
We can only comply with this logical rule in an embedding base KB by ensuring that score(r;e;e0) = score(r;e0;e). Under all
4 score models this rule can be enforced only by ensuring that r1 = r2.
2.1.2</p>
          <p>Entailment
A type A entailment logical rule denoted as ENTAILA(r;e;r0;e0) specifies that (r;(e;x)) implies (r0;(e0;x)) for all x in E.5 A Type
B entailment rule, ENTAILB(r;e;r0;e0) specifies that (r;(x;e)) implies (r0;(x;e0)). r and r0 may denote the same relation. For
example, the rule ENTAILB(IsA,Man,IsA,Mortal) can be used to enforce that if (IsA,(Socrates,Man)) then the
KB must also predict that (IsA, (Socrates,Mortal)). The final constraints required to implement a type B entailment
rule are shown in Table 3.6
2.1.3</p>
          <p>Property Transitivity
A property transitivity rule denoted PROTRANS(r;r0;e0;r00;e00) specifies that if (r;(x;y)) and (r0;(y;e0)) are true then (r00;(x;e00)) is
also true. For example, the rule PROTRANS(Partner,Convicted,Criminal,Suspected,Criminal) can be used to
incorporate the common sense rule that if an entity is the partner of a convicted criminal then it will be suspected of being a criminal
into the embeddings based KB. Note that the score of the hypothesis fact (r00;(x;e00)) should be high if the antecedent facts have high
3We abuse notation in saying that score(r;(x;y))=score(r;x;y).</p>
          <p>4Other self-dual cones, distinct from Rd+ also exist such as the Lorentz cone fx 2 Rd j xd
details on the geometry of closed convex cones and their polar and dual sets.</p>
          <p>5We use the term, entailment, in the sense of entailment of properties. Note that this is different from implication.</p>
          <p>6Details: To implement a type B entailment rule we need to ensure that score(r0;x;e0) score(r;x;e) for all x2E. Under model A this inequality translates
to, hr01 r1;xi hr2;ei hr02;e0i. Model B requires hr01 r1 +e0 e;xi hr2;ei hr02;e0i. Model C requires hr1 r01;r1 +r01 2xi hr02 e0 +r2
e;r02 e0 r2 +ei, and finally the constraints over model D’s score functions are hr1 r01;r1 +r01i+he e0;e+e0i hr02 e0 r2 +e;r02 e0 +r2 ei
2hr1 r01 e e0;xi.</p>
          <p>
            qPid=11xi2g. We refer the reader to
            <xref ref-type="bibr" rid="ref7">Gruber (2007)</xref>
            for more
straint for model A: he00;r020i
c = hr020;e00i (1
)he0;r02i+hx;r010
r1i
          </p>
          <p>hy; r2 +(1
score for any possible entity y. A natural way in which we can incorporate such a rule into score based KBC models is by ensuring
that score(r00;x;e00) maxy2E min(score(r;x;y);score(r0;y;e0)). In order to derive efficient constraints that can enforce this
inequality we strengthen the constraint imposed on the score function by replacing the min function in the lower bound to a convex
combination of the scores, i.e. let 2 (0;1), we enforce the inequality that score(r00;x;e00) maxy2E score(r;x;y)+(1 )score(r0;y;e0) .</p>
          <p>Since a convex combination of two values is greater than their minimum, this stronger inequality translates to the following
con(1 r1+e00 , b = (1 )(r01+e0)+ r1 ,</p>
          <p>)r01i. Let a = r010
)hr02;e0i , and let E contain the set fe j e 2 Eg. For Model B, the above inequality on the score function leads
to the the constraint: 8x;y 2 E; hx;yi hx;ai + hy;bi + c. Remember that our goal is to devise a set E, and constraints on
relation embeddings such that it is efficient to project onto it and for which the above inequality can be guaranteed. The following
proposition – proof ommitted for lack of space – shows how to construct such a set:</p>
          <p>d
Proposition 1. Let x;y be members of R+ \B(a;jjajj) and a
0 then hx;yi
hx+y;ai.</p>
          <p>The above proposition shows that if a = b and c
d
0 then by setting E = R+ \B(a;jjajj) we can satisfy the above constraints.</p>
          <p>Alg. 1 Projected SGD for Model A, Batch Size=1</p>
          <p>ProjL (t;t)
2.1.4</p>
          <p>Type Implication</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Rule</title>
      </sec>
      <sec id="sec-2-3">
        <title>RELIMP(r;r0)</title>
      </sec>
      <sec id="sec-2-4">
        <title>REVIMP(r;r0)</title>
      </sec>
      <sec id="sec-2-5">
        <title>Model A, R, B C, D A,B</title>
        <p>C, D</p>
        <p>R</p>
        <p>Constraints
r r0
r r0 r
r02 r1, r01
r1 r02
matrix(r0)</p>
        <p>r2
r1, r2 r01
matrix(r)</p>
        <p>r2.</p>
        <p>A type implication rule, denoted as TYPEIMP(r;e;r0), specifies that if the fact (r;(x;y)) is correct then (r0;(x;e)) is also correct
8(x;y) 2 T . In other words, this rule enforces that positional arguments of a relation possess certain properties. For example, the
rule TYPEIMP(Husbandof,Man,Gender) can enforce that if our KB predicts the fact that (Husbandof,(Don,Mel))
then it also predicts that (Gender,(Don,Man)).</p>
        <p>
          Under model A the TYPEIMP(r; e; r0) rule translates to the following inequality for the parameters hx; r01i hx; r1i
hy;r2i he;r02i8(x;y) 2 T . Let a = e+ r01 r1, b = r2 and c = hr02;ei. Under model B, the restriction on the score function
translates to: hx;yi ha;xi + hb;xi + c. The analysis for this case again relies on Propostion 1 and the analysis for models C
and D is yet out of reach. See Table 3.
The problem of enforcing consistency between the predictions made by a machine learning system and a first order logic system,
which is what our work attempts to do, has a large history of research but we will only be able to review recent work on learning
representations of entities and relations of a knowledge graph and refer the reader to reviews of neural-symbolic systems
          <xref ref-type="bibr" rid="ref5">Garcez
et al. (2002)</xref>
          ;
          <xref ref-type="bibr" rid="ref10">Hammer and Hitzler (2007)</xref>
          for more references.
        </p>
        <p>
          <xref ref-type="bibr" rid="ref6">Grefenstette 2013</xref>
          presented a novel model for simulating propositional logic with the help of tensors, however their model
relied on high-dimensional boolean embeddings of the entities and relations, and it only guaranteed adherence to the RELIMP rule
out of the ones presented in this paper.
          <xref ref-type="bibr" rid="ref14">Rockta¨schel et al. 2014</xref>
          ;
          <xref ref-type="bibr" rid="ref15">Rockta¨schel et al. 2015</xref>
          generalized Grefenstette’s work learning
embeddings of entities and relations that were real valued and low dimensional and their learning mechanism could accomodate
arbitrary first order logic formulae into the parameter learning objective by propositionalizing the formulae. Their method has two
drawbacks in comparison to our proposal — 1) The process of propositionalization can be very expensive, especially for rules
like PROTRANS and TYPEIMP that quantify over tuples of entities, and 2) Their method of differentiation through logic does not
guarantee that the learnt embeddings will always be able to predict unseen relations that are logically entailed given the rules and
the training data.
        </p>
        <p>
          <xref ref-type="bibr" rid="ref2 ref3">Bowman et al. 2015</xref>
          a,b presented a neural network based method for predicting the existence of natural logic relations between
two entities. Their approach too had the drawback that it could not guarantee the inference of logically entailed facts.
          <xref ref-type="bibr" rid="ref8">Guo et al.
2015</xref>
          presented a method based on LLE
          <xref ref-type="bibr" rid="ref16">Roweis and Saul (2000)</xref>
          for incorporating side information in the form of semantic
categories of entities but their method is not capable of incorporating the range of logical rules that we can. Demeester et al. 2016
and
          <xref ref-type="bibr" rid="ref19">Vendrov et al. 2016</xref>
          proposed an approach to constrain the learnt embeddings in a way that is identical to the method prescribed
by us in Subsection 2.1. Our work generalizes their approach in two ways — Firstly, we generalize their proposed constraints by
using the language of convex geometry, and secondly, we propose constraints for many more logical rules and score functions than
either of the two papers.
          <xref ref-type="bibr" rid="ref20">Wang and Cohen 2016</xref>
          presented a novel method of factorizing the adjacency matrix of a proof graph of a
probabilistic logic language to learn embeddings of first order logic formulas. Our method is conceptually simpler than theirs and
requires fewer training stages. Finally,
          <xref ref-type="bibr" rid="ref9">Guo et al. 2016</xref>
          proposed an alternative method for embedding rules and entities based on
t-norm fuzzy logics which was very similar to
          <xref ref-type="bibr" rid="ref15">Rockta¨schel et al. 2015</xref>
          ’s approach.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiment: Logical Deduction and Knowledge Base Completion on WordNet</title>
      <p>Our method for training embeddings based KBC systems allows for a very interesting application of solving logical puzzles using
an embeddings based KBC system without using an external logical-symbolic subsystem. We perform a controlled experiment
where we compare the performance of an embedding based KBC system trained with the constraints versus a system that has
been trained without those constraints.</p>
      <p>
        Data Consider the logical deduction problem shown in Table 5. This is a simplified version of a logical puzzle presented in
        <xref ref-type="bibr" rid="ref17">Russell et al. 1995</xref>
        . In this puzzle, Nono is a country that possesses a W M D and Benedict has traded with Nono. The KB
has to deduce whether Benedict is a criminal based on just two input facts and 3 rules. The total number of facts is 52 4 = 100.
      </p>
      <p>Rules
RELIMP(TradeWith,TransactWith)
ENTAILB(Possess,WMD,Considered,Enemy)
PROTRANS(TransactWith,Enemy,
Considered,Criminal,Considered)</p>
      <p>Facts
(Possess,(Nono,WMD))
(TradeWith,(Benedict,Nono))</p>
      <p>Query ?
(Considered,(Benedict,Criminal))</p>
      <p>Evaluation We train two versions of two KBC systems, Models A and B, with batch size= 1, = 0:001; = 0:1;S = 200;d = 50,
and d~ = 25 using Algorithm 1. Both KBs were trained in one pass using the two training facts. The only difference was that
the baseline system did not constrain the embeddings to obey logically derived geometric constraints. After training we queried the
KBs for the scores of all possible facts. We ranked all the facts based on their scores, excluding the training facts, and marked all
facts that could be logically entailed from the two training facts as correct results and the rest of them as incorrect. We performed 10
runs and in each run we computed the MRR, P@10, MAP for the two models. Finally we averaged these quantities over 10 runs.</p>
      <p>Results Table 6 shows that our method was able to rank logically entailed facts with much higher precision and recall than the
baseline systems. This validates our intuition that logical rules can be usefully incorporated into the parameter learning mechanism
of a KBC system via simple geometric constraints even for low dimensional embeddings. The reason for the large improvement
in performance by the ELKB system in comparison to the baseline is that the ELKB model makes the score of entailed facts
higher than the score of non-entailed facts because of the constraints during learning. E.g. the scores of entailed facts such as
(Considered,(Nono, Enemy)), and (TransactWith,(Benedict, Nono)) are forced to be high in comparison
to non-entailed facts such as (Trade With,(Benedict,WMD)). In comparison the baseline method does not have this
systematic advantage and its scores remain unchanged.
4.1</p>
      <p>
        Link Prediction on WordNet
In the link prediction task, the KBC system is given incomplete facts, with either a missing head entity or tail entity, i.e. given
either (r;( ;e0)), or (r;(e; )) the system has to predict e or e0 respectively. We evaluated the utility of proposed constraints by
comparing the performance of model A and model B trained with and without the constraints. We now present the results of
our experiments on the WN18 knowledge graph,7 derived from WordNet, and released by
        <xref ref-type="bibr" rid="ref1">Bordes et al. 2013</xref>
        , which is a popular
testbed for KBC algorithms
        <xref ref-type="bibr" rid="ref21">Wang et al. (2014)</xref>
        ;
        <xref ref-type="bibr" rid="ref11">Lin et al. (2015)</xref>
        ;
        <xref ref-type="bibr" rid="ref18">Toutanova et al. (2015)</xref>
        ;
        <xref ref-type="bibr" rid="ref22">Yang et al. (2015)</xref>
        .
      </p>
      <p>
        Data The WN18 dataset comes with standard train, development and test splits. These three splits of the data contain 141442,
5000, and 5000 facts respectively. The total number of relations in the WN18 dataset is 18 and the number of entities is 40,943.
Recently
        <xref ref-type="bibr" rid="ref9">Guo et al. 2016</xref>
        publicly released a list of logical rules8 which we directly incorporated into our framework. All of their
rules were REVIMP rules.
      </p>
      <p>For all the models we fixed batch size= 10, = 0:001; = 0:125;S = 200;d~ = 100, for model T , d = 100 and otherwise d = 200.
Following existing work we measured the MRR, HITS@3 and Hits@10 metrics and report their average over the two tasks of
head entity prediction and tail entity prediction. Instead of training in a single pass we trained our models for 50 epochs on the
WN18 dataset and chose the best parameters using early stopping on the validation set. In other words, we used the parameters
from that epoch which performed the best on the validation set in terms of the HITS@10 metric. Finally, we combined the
predictions of the best performing T model and the best performing system based on model B. In order to combine the two
ranking systems we trained a logistic regression classifier using the default settings in vowpal webbit9 to first predict whether
model T or model B will produce a better ranking and then output that system’s ranking over entities for evaluation. Our logistic
regression classifier had 73% accuracy on the training data and 70% accuracy over the test data. By using this third system
we were able to create a single ranking system that performed better than model T which is very similar to the TransE model.10</p>
      <p>Results Table 7 shows that both the constrained and
unconstrained versions of model A perform quite poorly. This
is to be expected since model A scores a triplet (r;(e;e0)) as
hr;ei+hr;e0i. Regardless of e0, the ranking produced by the
model will remain the same. Therefore model A is clearly
unsuitable for this task, for similar reason model C is also an
unsuitable model. However the drastic improvement in the
performance of model B when it is trained according to the Table 7: MRR, HITS@3 and HITS@10 of the constrained and
constraints corresponding to the REVIMP rules demonstrates unconstrained versions of models A, B and unconstrained T. B+T
the utility of our proposed constraints. After adding the con- reports the results of combining models B and model T.
straints, the MRR increased almost 3 times and the value of
HITS@10 by 4 times from 0:137. Recall that at test / inference time the constraints do not play any role so the only role of the
constraints is as a form of regularization on the parameters of the model.
7We found that the performance of models C;D and R was too low therefore we do not report their results.
8aclweb.org/anthology/attachments/D/D16/D16-1019.Attachment.zip
9https://github.com/JohnLangford/vowpal_wabbit
10The main differences between model T and TransE are that TransE used hinge loss versus the BPR objective. TransE does not regularize the relation
embeddings and forces the entity embeddings to lie on the unit sphere, instead in model T we add a quadratic regularization term to regularize the embeddings.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Bordes</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Usunier</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Garcia-Duran</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weston</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Yakhnenko</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>Translating embeddings for modeling multi-relational data</article-title>
          .
          <source>In NIPS</source>
          , pages
          <fpage>2787</fpage>
          -
          <lpage>2795</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Bowman</surname>
            ,
            <given-names>S. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potts</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Manning</surname>
            ,
            <given-names>C. D.</given-names>
          </string-name>
          (
          <year>2015a</year>
          ).
          <article-title>Learning distributed word representations for natural logic reasoning</article-title>
          .
          <source>In Proceedings of the AAAI Spring Symposium on Knowledge Representation and Reasoning.</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Bowman</surname>
            ,
            <given-names>S. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Potts</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Manning</surname>
            ,
            <given-names>C. D.</given-names>
          </string-name>
          (
          <year>2015b</year>
          ).
          <article-title>Recursive neural networks can learn logical semantics</article-title>
          .
          <source>In Proceedings of the 3rd Workshop on Continuous Vector Space Models and their Compositionality</source>
          , pages
          <fpage>12</fpage>
          -
          <lpage>21</lpage>
          , Beijing, China. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Demeester</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          , Rockta¨schel, T., and
          <string-name>
            <surname>Riedel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Lifted rule injection for relation embeddings</article-title>
          .
          <source>In Proceedings of the EMNLP</source>
          , pages
          <fpage>1389</fpage>
          -
          <lpage>1399</lpage>
          , Austin, Texas. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Garcez</surname>
            ,
            <given-names>A. S. d.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gabbay</surname>
            ,
            <given-names>D. M.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Broda</surname>
            ,
            <given-names>K. B.</given-names>
          </string-name>
          (
          <year>2002</year>
          ).
          <source>Neural-Symbolic Learning System: Foundations and Applications</source>
          . Springer-Verlag New York, Inc., Secaucus, NJ, USA.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Grefenstette</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>Towards a formal distributional semantics: Simulating logical calculi with tensors</article-title>
          .
          <source>In Second Joint Conference on Lexical and Computational Semantics (*SEM)</source>
          , Volume
          <volume>1</volume>
          , pages
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          , Atlanta, Georgia, USA. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Gruber</surname>
            ,
            <given-names>P. M.</given-names>
          </string-name>
          (
          <year>2007</year>
          ).
          <source>Convex and Discrete Geometry</source>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Semantically smooth knowledge graph embedding</article-title>
          .
          <source>In Proceedings of the ACL</source>
          , pages
          <fpage>84</fpage>
          -
          <lpage>94</lpage>
          , Beijing, China. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Jointly embedding knowledge graphs and logical rules</article-title>
          .
          <source>In Proceedings of the EMNLP</source>
          , pages
          <fpage>192</fpage>
          -
          <lpage>202</lpage>
          , Austin, Texas. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>Hammer</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Hitzler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          (
          <year>2007</year>
          ).
          <article-title>Perspectives of neural-symbolic integration</article-title>
          , volume
          <volume>77</volume>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sun</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Learning entity and relation embeddings for knowledge graph completion</article-title>
          .
          <source>In The 29th AAAI Conference on Artificial Intelligence</source>
          , pages
          <fpage>2181</fpage>
          -
          <lpage>2187</lpage>
          . AAAI.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Rendle</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freudenthaler</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gantner</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Schmidt-Thieme</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Bpr: Bayesian personalized ranking from implicit feedback</article-title>
          .
          <source>In Proceedings of the UAI</source>
          , pages
          <fpage>452</fpage>
          -
          <lpage>461</lpage>
          . AUAI Press.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>Riedel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yao</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McCallum</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Marlin</surname>
            ,
            <given-names>B. M.</given-names>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>Relation extraction with matrix factorization and universal schemas</article-title>
          .
          <source>In Proceedings of the ACL</source>
          , pages
          <fpage>74</fpage>
          -
          <lpage>84</lpage>
          , Atlanta, Georgia. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>Rockta</surname>
          </string-name>
          ¨schel, T.,
          <string-name>
            <surname>Bosˇnjak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Riedel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2014</year>
          ).
          <article-title>Low-dimensional embeddings of logic</article-title>
          .
          <source>In Proceedings of the ACL 2014 Workshop on Semantic Parsing</source>
          , pages
          <fpage>45</fpage>
          -
          <lpage>49</lpage>
          , Baltimore, MD. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <surname>Rockta</surname>
          </string-name>
          ¨schel, T.,
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Riedel</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Injecting logical background knowledge into embeddings for relation extraction</article-title>
          .
          <source>In NAACL.</source>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <surname>Roweis</surname>
            ,
            <given-names>S. T.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Saul</surname>
            ,
            <given-names>L. K.</given-names>
          </string-name>
          (
          <year>2000</year>
          ).
          <article-title>Nonlinear dimensionality reduction by locally linear embedding</article-title>
          .
          <source>Science</source>
          ,
          <volume>290</volume>
          (
          <issue>5500</issue>
          ):
          <fpage>2323</fpage>
          -
          <lpage>2326</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <surname>Russell</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norvig</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Intelligence</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          (
          <year>1995</year>
          ).
          <article-title>A modern approach</article-title>
          .
          <source>Artificial Intelligence</source>
          . Prentice-Hall, Egnlewood Cliffs,
          <volume>25</volume>
          :
          <fpage>27</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <surname>Toutanova</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pantel</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poon</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Choudhury</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Gamon</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Representing text for joint embedding of text and knowledge bases</article-title>
          .
          <source>In Proceedings of the EMNLP</source>
          , pages
          <fpage>1499</fpage>
          -
          <lpage>1509</lpage>
          , Lisbon, Portugal. ACL.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <surname>Vendrov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kiros</surname>
            ,
            <given-names>J. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fidler</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Urtasun</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Order-embeddings of images and language</article-title>
          .
          <source>In Proceedings of the International Conference on Learning Representations.</source>
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <string-name>
            <surname>Wang</surname>
          </string-name>
          , W. Y. and
          <string-name>
            <surname>Cohen</surname>
            ,
            <given-names>W. W.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Learning first-order logic embeddings via matrix factorization</article-title>
          .
          <source>In Proceedings of the 25th International Joint Conference on Artificial Intelligence (IJCAI</source>
          <year>2016</year>
          ), New York, NY. AAAI.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          , Zhang, J.,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          (
          <year>2014</year>
          ).
          <article-title>Knowledge graph embedding by translating on hyperplanes</article-title>
          .
          <source>In Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence</source>
          , pages
          <fpage>1112</fpage>
          -
          <lpage>1119</lpage>
          . AAAI Press.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yih</surname>
          </string-name>
          , W.-t.,
          <string-name>
            <surname>He</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Deng</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Embedding entities and relations for learning and inference in knowledge bases</article-title>
          .
          <source>In Proceedings of the International Conference on Learning Representations.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>