Title: REVISITING KNOWLEDGE BASE EMBEDDING AS TEN-SOR DECOMPOSITION

Abstract: We study the problem of knowledge base (KB) embedding, which is usually addressed through two frameworks-neural KB embedding and tensor decomposition. In this work, we theoretically analyze the neural embedding framework and subsequently connect it with tensor based embedding. Specifically, we show that in neural KB embedding the two commonly adopted optimization solutionsmargin-based and negative sampling losses-are closely related to each other. We also reach the closed-form tensor that is implicitly approximated by popular neural KB approaches, revealing the underlying connection between neural and tensor based KB embedding models. Grounded in the theoretical results, we further present a tensor decomposition based framework KBTD to directly approximate the derived closed form tensor. Under this framework, the neural KB embedding models, such as NTN (Socher et al., 2013), TransE (Bordes et al., 2013), Bilinear (Jenatton et al., 2012), and DISTMULT (Yang et al., 2015), are unified into a general tensor optimization architecture. Finally, we conduct experiments on the link prediction task in WordNet and Freebase, empirically demonstrating the effectiveness of the KBTD framework.

1. INTRODUCTION:

Knowledge bases (KBs) power many of semantic-oriented techniques and applications, such as question answering and intelligent personal assistant. A classical example is the automatic answer to the query "Who is Barack Obama's wife" by KB-supported search engines. Most if not all of KBs achieve this by storing the facts about the world in the form of RDF triplets (W3C, 1999), wherein a triplet (subject, predicate, object) , in short (s, r, o), records a piece of fact about the relation between the two entities-the subject and object. To automatically construct Web-scale KBs with billions of facts (triplets), a significant line of effort has been devoted to knowledge base embedding-the technique of encoding entities and their relational information into latent representations (Bordes et al., 2011; 2013; Socher et al., 2013; Yang et al., 2015) .

In particular, the direction of neural embedding has been extensively explored for learning representations for KBs, offering state-of-the-art performance for validating and completing unseen facts (Yang et al., 2015) . Briefly, given a KB represented by triplets T = {(s, r, o)}, neural embedding models take these known triplets as positive instances and corrupted triplets {(s , r, o )} as negative ones. For each triplet, a scoring function f (s, r, o)parameterized with a neural network-is designed to project the associated entities s, o and their relational information r into a scalar. Most of the existing models are then trained through two popular choices of loss functions, including the margin-based ranking loss by NTN (Socher et al., 2013) , TransE (Bordes et al., 2013) , and DIST-MULT (Yang et al., 2015) , as well as several practices of the Negative Sampling loss (Mikolov et al., 2013) by Bilinear (or LFM) (Jenatton et al., 2012) and CONV (Toutanova et al., 2015) . In addition, another line of KB embedding is focused on tensor decomposition based frameworks, such as RESCAL (Nickel et al., 2011; 2012) .

Notwithstanding the rapid development and progress of KB embedding techniques, insights concerning their underlying mechanisms are to date sorely lacking. For example, a natural question that arises is what are the relationships or differences between the margin-based ranking loss and the negative sampling loss for neural KB embedding. Moreover, what is the quantity that is optimized by conventional neural KB embedding models? With an eye toward comprehensively understanding s,r,o) closed-form tensor log KB embedding, we investigate (1) the connection between margin-based ranking loss and negative sampling loss in neural KB models, (2) the relationship between neural KB models and classical tensor-based KB models, and (3) the universal framework for KB learning.

(0, f (s , r, o ) -f (s, r, o) + γ) local margin-based loss (Softplus) log 1 + e f (s ,r,o )-f (s,r,o)+γ local negative sampling loss log 1 + e f (s ,r,o )-f (s,r,o) + e f (s ,r,o ) + e -f (

Contributions.:

In this work, we unveil two fundamentals of KB embedding, according to which we further present a tensor decomposition based KB embedding framework-KBTD, yielding significant outperformance over neural KB embedding models in most cases.

First, with softplus' smooth approximation to ReLU in the margin-based loss (Dugas et al., 2001) , we show that the margin-based loss is closely connected to the negative sampling loss (See rows 2 & 3 in Table 1 ). In specific, both losses aim to encourage positive triplets (s, r, o) and penalize corrupted ones (s , r, o ), and the slight difference lies in the extra reward or penalization to corresponding triplets in the negative sampling loss.

Second, we derive the closed form tensor (See row 4 in Table 1 ) whose entry is implicitly fitted (approximated) by scoring function f (s, r, o), when optimizing neural KB embedding models through the negative sampling loss. This closed form generalizes the ultimate objective of previous attempts on designing various scoring functions, such as NTN, TransE, Bilinear, and DISTMULT. This finding also links the neural KB embedding framework with the tensor-based KB embedding approach.

Third, building upon the discoveries, we propose a tensor decomposition based KB embedding framework, KBTD, to directly fit the closed form tensor with by leveraging the scoring functions proposed in several popular neural models. Our extensive experiments on WordNet and Free-Base demonstrate the outstanding performance of KBTD over the conventional margin-based neural framework. In addition, we point out the limitation of dissimilarity/distance based scoring function design, which is wildly adopted by the TransE/H/R/D models (Bordes et al., 2013; Wang et al., 2014; Lin et al., 2015; Ji et al., 2015) .

The rest of this paper is organized as follows. Section 2 discusses related work. Section 3 unveils the connection between the margin-based ranking loss and the negative sampling loss. Section 4 performs the theoretical analysis and subsequently presents our KBTD framework. Section 5 introduces the detailed experiments on the link prediction task for KBs. Section 6 concludes this paper.

2. RELATED WORK:

Knowledge base embedding is being extensively explored and developed over the last few years, during which the major breakthroughs are resulted from the neural embedding and tensor factorization models (Bordes et al., 2013; Nickel et al., 2012) . Our work focuses on understanding the fundamentals of neural KB embedding, as well as its connection with tensor models.

Neural KB Embedding: Loss Functions. Neural knowledge base embedding is usually formulated as an optimization problem with different loss functions. The majority of existing KB models employ the margin-based ranking loss, which was first proposed (Collobert et al., 2011) for addressing the efficiency issue of softmax (Bengio et al., 2003) in the field of natural language models. A brief collection of recent margin-based KB embedding methods include the SE, Unstructured, and SME models (Bordes et al., 2011; 2012; 2014) , SLM and NTN (Socher et al., 2013) , DISTMULT (Yang et al., 2015) , TransE (Bordes et al., 2013 ), TransH (Wang et al., 2014 ), TransR (Lin et al., 2015) , TransD (Ji et al., 2015) , and ProjE (Shi & Weninger, 2017) . In addition, there are several models-Bilinear model (Jenatton et al., 2012) and CONV (Toutanova et al., 2015) -that adopt the negative sampling (NE) loss. Our work contributes to this line of research by providing the relationship between margin-based and negative sampling based KB embedding models.

Neural KB Embedding: Scoring Functions. As summarized in (Yang et al., 2015) , given a KB represented by a list of triplets, neural models learn embeddings by utilizing a neural network, wherein the first layer projects the two entities of each triplet into latent low-dimensional vectors, and the second layer leverages a scoring function to operate on each pair of entity vectors with relationspecific parameters. The major difference between neural KB models lie in the various ways that they design the scoring functions -TransE, NTN, Bilinear, and DISTMULT (See details in Table 3 of Section 5). To date, few attempts have been conducted to understand any common grounds behind these models. Our work furthers this direction by proposing a general tensor decomposition framework (KBTD) which unifies existing neural KB models.

Tensor Decomposition for KB Embedding. Tensor decomposition has seen successes in structural and relational learning over decades (Kolda & Bader, 2009; Sun et al., 2006) . Recent years also witness the natural application of this technique on learning KB embeddings, including the BCTF model (Sutskever et al., 2009) , and RESCAL (Nickel et al., 2011) . In this work, we show the closed relationship between tensor decomposition based KB embedding and neural KB embedding models.

3. CONNECTING MARGIN-BASED LOSS WITH NEGATIVE SAMPLING LOSS:

Given a KB with entity set E and relation set R, represented by a set of triplets T = {(s, r, o)} with s, o ∈ E and r ∈ R, the goal of neural KB models is to learn a scoring function f (s, r, o) which evaluates an arbitrary triplet and outputs a scalar to measure the acceptability of this triplet, where high/low score indicates that the input triplet tends to be correct/wrong. As summarized by (Yang et al., 2015) , most existing scoring functions can be unified by a neural network, where the first layer projects the two entities of each triplet into latent low-dimensional vectors, and the second layer applies either linear or bilinear transformation (or both) on entity vectors with relation-specific parameters.

The scoring function is then fitted to a loss function to learn the representations of both entities and relations. The majority of neural KB embedding models adopt either a margin-based ranking loss or a negative sampling loss. Both loss functions leverage the known triplets T as positive samples and the corrupted triplets T as the negative ones. Following the literature, given a known triplet (s, r, o) ∈ T , its corrupted triplets T (s,r,o) are constructed by replacing either the subject entity s or the object entity t with an arbitrary entity from E, i.e., T (s,r,o) = {(s , r, o)|s ∈ E} ∪ {(s, r, o )|o ∈ E}. Given both positive and corrupted triplets, the objective of the margin-based ranking loss is to minimize:

LMARGIN = (s,r,o)∈T (s ,r,o )∈T (s,r,o) max 0, γ + f (s , r, o ) -f (s, r, o) .

Its challenge lies in, however, the second summation, which takes O(|E|) complexity to enumerate the whole entity set E and is extremely time demanding. Therefore, in practice, the second summation is commonly approximated with sampling and the sample size is usually set to one (Bordes et al., 2013) . Considering the local loss function MARGIN (s, r, o) for each positive triplet (s, r, o) associated with one (sampled) corrupted triplet (s , r, o ), the max(0, •) loss can be smoothly approximated by the softplus function (Dugas et al., 2001) , that is: r,o) .

MARGIN(s, r, o) = max 0, γ + f (s , r, o ) -f (s, r, o) ≈ log 1 + e γ+f (s ,r,o )-f (s,

(1)

On the other hand, the negative sampling loss aims to optimize the following objective:

EQUATION

)

where b is the number of negative samples and σ(•) is the sigmoid function. Similarly, the expectation term can be replaced with its Monte Carlo approximation. To align with our previous discussion on the margin-based ranking loss, we also set negative sample size b = 1 and derive the local objective for a certain positive triplet (s, r, o) to be: s,r,o) .

NEG(s, r, o) = -log σ(f (s, r, o)) -log σ(-f (s , r, o )) = log 1 + e f (s ,r,o )-f (s,r,o) + e f (s ,r,o ) + e -f (

(3)

Eq. 1 and Eq. 3 reveal the close relationship between margin-based ranking loss and negative sampling loss in neural KB embedding. First, observed from the similar term e f (s ,r,o )-f (s,r,o) , both loss functions implicitly encourage positive triplets to have relatively higher scores than the corrupted ones. Second, the extra term e f (s ,r,o ) + e -f (s,r,o) in the negative sampling loss suggests that in addition to the implicit comparison, it explicitly rewards the positive triplets to have high scores, and also encourages the corrupted ones to have low scores.

4. UNIFYING NEURAL KB EMBEDDING AS TENSOR DECOMPOSITION:

From the above section, we observe that the margin-based loss and negative sampling loss share very similar form. In this section, we unify existing neural KB embedding models by assuming a general scoring function f : E × R × E → R and the use of negative sampling loss. We present a theoretical analysis in Section 4.1, followed by our KBTD framework which formally defines KB embedding problem as a tensor decomposition problem in Section 4.2. Additionally, the connection between KBTD and classical tensor decomposition models (Nickel et al., 2011; 2012) is discussed in Section 4.2.

4.1. THEORETICAL ANALYSIS OF NEURAL KB EMBEDDING:

To facilitate our analysis, we represent the KB triplets as a three-way binary tensor X ∈ {0, 1} E×R×E , where X s,r,o = 1 indicates (s, r, o) ∈ T , while X s,r,o = 0 for non-existing or unknown triplets. The loss function L NEG in Eq. 2 can be re-formatted with X s,r,o as

- s,r,o Xs,r,o log σ (f (s, r, o)) + b 2 E o ∼P N log σ -f (s, r, o ) + b 2 E s ∼P N log σ -f (s , r, o) ,

where P N is a uniform distribution over all entities, i.e., P N (•) = 1 |E| . We further break down the summation and arrive at the following form:

EQUATION

where d out s,r = o X s,r,o is the out-degree of entity s under relation r, and d in o,r = s X s,r,o is the in-degree of entity o under relation r. Then we explicitly express the two expectation terms:

E o ∼P N log σ -f (s, r, o ) = o 1 |E| log σ -f (s, r, o ) = 1 |E| log σ (-f (s, r, o)) + o =o 1 |E| log σ -f (s, r, o ) E s ∼P N log σ -f (s , r, o) = 1 |E| log σ (-f (s, r, o)) + s =s 1 |E| log σ -f (s , r, o) .

Then, by utilizing the above expectation terms, the local loss function for each specific triplet (s, r, o) in Eq. 4 can be defined as

(s, r, o) = -Xs,r,o log σ (f (s, r, o)) - b • d out s,r + d in o,r 2 |E| log σ (-f (s, r, o)) .

Table 2 : The comparison between RESCAL and our KBTD framework with parameters Θ initialized in the bilinear way, that is,

Θ = {a 1 , • • • , a |E| , W 1 , • • • , W |R| }. RESCAL min Θ s,r,o X s,r,o -a s W r a t 2 KBTD min Θ s,r,o W s,r,o Y s,r,o -a s W r a t 2

The work in (Levy & Goldberg, 2014) suggested that for sufficient large embedding dimensionality, each individual f (s, r, o) can assume a value independence1 . Following this assumption enables us to treat the objective L as a function of independent f (s, r, o) terms. The partial derivative with respect to f (s, r, o) can be taken as:

∂L ∂f (s, r, o) = ∂ (s, r, o) ∂f (s, r, o) = -Xs,r,oσ (-f (s, r, o)) + b • d out s,r + d in o,r |E| σ (f (s, r, o)) .

By setting the derivative to zero, we have

EQUATION

The RHS of Eq. 5 defines a "transformed" tensor based on X , and the LHS of Eq. 5 implies a regression problem, i.e., try to fit the (s, r, o)-entry of the transformed tensor with the scoring function f (s, r, o). In next section, we formally define this problem and then propose our KBTD framework.

4.2. KBTD: NEURAL KB EMBEDDING AS TENSOR DECOMPOSITION:

In this section, we formalize the KB embedding problem analyzed in Section 4.1 as a tensor decomposition problem. We further present our framework-KBTD-to learn latent embedding for KB entities and relations. Its connection with classical tensor decomposition methods is also discussed.

First, as mentioned at the end of Section 4.1, RHS of Eq. 5 defines a transformed tensor based on X . Here we denote it to be tensor Y ∈ R |E|×|R|×|E| , with the (s, r, o)-entry defined to be

EQUATION

Second, our discussion in Section 4.1 actually implies a weighted tensor decomposition problem. This is mainly due to the negative sampling mechanism -we only care about positive triplets and corrupted triplets. This mechanism can be characterized by a binary tensor W ∈ {0, 1} |E|×|R|×|E| , wherein W s,r,o = 1 if and only if (s, r, o) is either a positive triplet or a corrupted triplet. Given the definition of tensor Y and tensor W, we can formalize the following tensor decomposition problem:

EQUATION

)

where f Θ is the scoring function parameterized by Θ.

Revisiting RESCAL (Nickel et al., 2011; 2012) . Before introducing how we optimize Eq. 7, we would like to discuss the connection between KBTD and RESCAL-a classical tensor decomposition model for KB embedding. 

(Y s,r,o -f Θ (s, r, o)) 2 ;

representations a s , a o and W r . To learn the representations, however, RESCAL directly factorizes the binary tensor X , while our model decomposes a transformed real-value tensor Y. Second, KBTD also differs with RESCAL in the way they treat the unobserved triplets. Notice that given a KB of observed (positive) triplets, the unobserved triples includes both positive and negative ones. This issue is known as the one-class problem (Moya & Hush, 1996; Pan et al., 2008) . Two common solutions to this problem are AMAN (all missing as negative) and AMAU (all missing as unknown).

The RESCAL model simply adopts the AMAN strategy by assuming all unobserved triplets as negative ones. However, our model is able to implicitly compromise between AMAN and AMAU by only treating corrupted triplets as negative.

KBTD Learning. The detailed optimization procedure for KBTD is described in Algorithm 1. We optimize the objective function in Eq. 7 using mini-batch stochastic gradient descent with Ada-Grad (Duchi et al., 2011) . At each main iteration (Line 3-10), we first sample a mini-batch of positive triplets (Line 4) and then sample their corrupted triplets whose size is controlled by a multiplier λ (Line 6-10). The parameters are updated with respect to the sampled positive triplets as well as corresponding corrupted ones. In this setting, we avoid generating the dense tensors Y and W, which may in practice result in memory issues.

There is a computational issue that comes from the log operator. For an unobserved triplet (s, r, o) (i.e., X s,r,o = 0), Y s,r,o = log 0 = -∞. Previously, two approaches have been proposed for addressing it (Levy & Goldberg, 2014) . One is to smooth the logarithm by adding a small constant to tensor X , generating a dense tensor. The other one is to apply an additional shifted-truncated operator, that is, max(Y s,r,o -c, 0), generating a sparse tensor with the loss of certain information. Due to the obvious drawbacks, we instead propose to use a simple and effective solution, wherein the operation log x is replaced with log( + x) with as a tunable parameter.

5. EXPERIMENTS:

In this section, we evaluate the proposed KBTD framework on the canonical link prediction task against several popular KB embedding methods on two datasets extracted from WordNet and Free-Base. In this task, we are given a KB with a certain fraction of triplets removed, and our target is to predict these missing triplets. We first introduce our experimental setup in Section 5.1, followed by detailed discussion on experimental results in Section 5.2.

5.1. EXPERIMENTAL SETUP:

Datasets. We use WordNet (WN18) and FreeBase (FB15k) datasets as introduced in (Bordes et al., 2013) where WN18 consists of 151, 442 triplets with 40,943 entities and 18 relations, and FB15k contains 592,213 triplets with 14,951 entities and 1,345 relations. We use the same training/validation/test split as in (Bordes et al., 2013; Yang et al., 2015) . Baselines. We compare our proposed framework with TransE (Bordes et al., 2013) , NTN (Socher et al., 2013) , Bilinear (Jenatton et al., 2012) and DISTMULT (Yang et al., 2015) . The original TransE model is based on dissimilarity/distance function. To fit our framework, we define the scoring function for TransE to be negative dissimilarity/distance function, i.e., f (s, r, o) = -a s + a r -a o 2 2 . For NTN, Bilinear and DISTMULT, we inherit the scoring functions from their paper. The detailed scoring functions as well as their parameters are listed in Table 3 . For the meaning of parameters and the intuition behind scoring functions, readers can refer to the original papers.

NTN u 1,••• ,|R| , W [1:k] 1,••• ,|R| , V 1,••• ,|R| , a 1,••• ,|E| u r tanh asW [1:k] r ao + Vr as ao + br TransE w 1,••• ,|R| , a 1,••• ,|E| -as + wr -ao 2 2 Bilinear W 1,••• ,|R| , a 1,••• ,|E| a s Wrao DISTMULT w 1,••• ,|R| , a 1,••• ,|E| a s diag(wr)ao

Evaluation Protocol.:

We exactly follow the experimental procedure and treatment used in TransE (Bordes et al., 2013) and DISTMULT (Yang et al., 2015) . For each triplet (s, r, o) in the test set, the subject entity s is replaced with each of entities from entity set E in turn. We apply corresponding scoring function f on those corrupted triplets and then sort them in non-increasing order to get the rank of the correct triplet. This procedure is then repeated for the object entity o. For evaluation metrics, we consider Mean Reciprocal Rank (MRR) which is defined to be an average of the reciprocal rank of the correct triplets over all test triplets, and HITS@10 (top-10 accuracy). If possible, we list the experimental results reported in (Yang et al., 2015) directly. In addition, we apply the filtered setting from (Bordes et al., 2013; Yang et al., 2015) in evaluation. In this setting, for one certain test triplet (s, r, o), we removed from the list of corrupted triplets all the triplets which appear in training, validation, or test set, except (s, r, o) itself. This setting, for example, can avoid cases where lots of triplets in training set rank above the one of interest.

Implementation Details. All the models in our framework were implemented using PyTorch in a machine with one 12GB GPU. Since the complexities of the aforementioned approaches vary a lot, in order to achieve the best accuracy for all the models, we cross-validate using the validation set to find the best hyperparameters. We found that, except for TransE on WN18, all the methods on both datasets can share the same hyper-parameters: (1) dimensionality d = 100; (2) smoothing parameter = 0.01; (3) multiplier λ mentioned in Algorithm 1 was set to 2; (4) the learning rate of AdaGrad algorithm was set to 0.1 (0.01 for TransE on WN18); (5) 2 -regularization applied to all the parameters using the weight 0.0001; (6) the mini-batch size is set to 2,048 (4,800 for TransE on WN18); (6) b = 1 in Eq. 6 (200 for TransE on WN18). For the additional hyper-parameter in NTN method, i.e., the number of slices k, was set to 2. We allow all the algorithms to run at most 10,000 epochs over the training data, and the best model was selected by early stopping using HITS@10 

5.2. EXPERIMENTAL RESULTS:

Table 4 and Table 5 list the overall results on the WN18 and FB15k datasets for several popular models under both our KBTD framework and the neural KB embedding framework, respectively. In general, we have the following key observations and insights:

(1) On the WN18 dataset, the KBTD framework achieves the best performance among most cases.

In terms of MRR, KBTD outperforms all baselines except DISTMULT with an impressive improvement up to 60.4% (0.85 v.s. 0.53) on NTN. In terms of HITS@10, KBTD outperforms baselines except TransE with an improvement up to 36.9% (90.50 v.s. 66.10) on NTN. Similar results can also be observed on the FB15k dataset in Table 5 . In terms of both MRR and HITS@10, KBTD outperforms all baselines except TransE with an improvement greater than 42.7% on NTN.

(2) It is notable that KBTD outperforms NTN by large margins on both datasets. We conjecture that this comes from the very high model complexity of NTN, as suggested by Table 6 . In our KBTD framework, we reduce the previously considered margin-based ranking problem in the original NTN to a simple regression problem. As a result, KBTD enables the efficient training procedure to significantly boost up NTN with respect to both the MRR and HITS@10 metrics.

(3) It is also worth noting that under the KBTD framework, most models generate comparable or better results than their neural KB embedding versions. In terms of HITS@10, KBTD underperforms TransE by 9. 6% (82.18 v.s. 90.90) on WN18 and 7.3% (49.94 v.s. 53.90 ) on FB15k. We attribute this underperformance to the constraint on TransE's scoring function. As showed in Table 3 , when instantiating the KBTD framework with TransE, the scoring function is set to be the negative dissimilarity function-f (s, r, o) = -a s + w r -a o 2 2 , which is for sure non-positive. However, the tensor Y in Eq. 7 that KBTD aims to fit allows both positive and negative entries. In specific, for the observed triplets and a moderate b, tensor entries are usually positive; for the corrupted triplets and a small , tensor entries reach negative values. On the contrary, the scoring functions of NTN, Bilinear, and DISTMULT are able to model both positive and negative tensor entries. That said, the non-positive constraint of TransE's scoring function limits its ability to learn better latent KB representations in this link prediction task.

6. CONCLUSION:

In this work, we provide a theoretical analysis of conventional neural KB embedding models and unveil the link between them and tensor-based KB embedding models. We show that the existing neural KB models can be unified into one tensor decomposition framework. We further propose the KBTD framework to directly fit the derived closed-form tensor. Our extensive experiments suggest that KBTD achieves consistent performance improvements over NTN, Bilinear, and DISTMULT under the neural KB embedding framework.

For further work, one interesting direction is to exploit efficient and scalable algorithms that extend KBTD to web-scale KBs. Another direction is to leverage the effective techniques from the matrix factorization community to enhance our tensor framework, such as the usage of bias terms and rich contextual information.

:

We realize that there has been discussion that this supposition may not be rigorous enough(Arora et al.,

2016).

Figures and Tables:

See detailed notations in Sections 3 and 4. A brief introduction is listed below: • (s, r, o) & (s , r, o ): the known and corrupted triplets, respectively; • E & R: the entity and relation sets of a given knowledge base, with s, o ∈ E and r ∈ R; • X ∈ {0, 1} E×R×E : a three-way binary tensor, with Xs,r,o = 1 indicating (s, r, o) ∈ T and otherwise 0; • d out s,r = o Xs,r,o & d in o,r = s Xs,r,o: the out-/in-degree of entity s/o under relation r, respectively; • b: the number of negative samples.

Knowledge Base Embedding. local margin-based loss (ReLU) max

Table content: <table/>

Training set T = {(s, r, o)}, entity and relation set E and R, corrupted triplets multiplier λ, mini-batch size B output: Models parameters Θ, including entity and relation embeddings 1 Initialize model parameters Θ;

Table content: <table><tr><td colspan="2">2 while do</td></tr><tr><td/><td>/ * Sample a mini-batch of size B</td><td>* /</td></tr><tr><td>3</td><td>T batch ← sample(T, B);</td></tr><tr><td/><td>/ * Sample corrupted triplets for this mini-batch</td><td>* /</td></tr><tr><td>4 5</td><td>T batch ← ∅; for (s, r, o) ∈ T batch do</td></tr><tr><td>6</td><td>for i = 1 to λ do</td></tr><tr><td>7</td><td>s ← sample(E);</td></tr><tr><td>8</td><td>o ← sample(E);</td></tr></table>

Scoring Functions and Parameters.

Table content: <table><tr><td>Model Name Parameters Θ</td><td>Scoring Function fΘ(s, r, o)</td></tr></table>

Experimental Results on the WN18 Dataset.

Table content: <table><tr><td/><td colspan="4">Results from Neural KB Embedding Results from our KBTD framework</td></tr><tr><td/><td>MRR</td><td>HITS@10</td><td>MRR</td><td>HITS@10</td></tr><tr><td>NTN</td><td>0.53</td><td>66.10</td><td>0.85</td><td>90.50</td></tr><tr><td>TransE</td><td>0.38</td><td>90.90</td><td>0.39</td><td>82.18</td></tr><tr><td>Bilinear</td><td>0.89</td><td>92.80</td><td>0.92</td><td>94.62</td></tr><tr><td>DISTMULT</td><td>0.83</td><td>94.20</td><td>0.81</td><td>94.62</td></tr><tr><td/><td colspan="3">Table 5: Experimental Results on the FB15k Dataset.</td><td/></tr><tr><td/><td colspan="4">Results from Neural KB Embedding Results from our KBTD framework</td></tr><tr><td/><td>MRR</td><td>HITS@10</td><td>MRR</td><td>HITS@10</td></tr><tr><td>NTN</td><td>0.25</td><td>41.40</td><td>0.37</td><td>59.06</td></tr><tr><td>TransE</td><td>0.31</td><td>53.90</td><td>0.30</td><td>49.94</td></tr><tr><td>Bilinear</td><td>0.31</td><td>51.90</td><td>0.31</td><td>54.95</td></tr><tr><td>DISTMULT</td><td>0.35</td><td>57.70</td><td>0.35</td><td>59.91</td></tr></table>

Model Complexity in terms of #Parameters. d is the embedding dimension, and k in NTN is the number of slices.

Table content: <table><tr><td>Methods</td><td># Parameters</td></tr><tr><td>NTN</td><td>O(|R| d 2 k + |E| d)</td></tr><tr><td>TransE</td><td>O(|R| d + |E| d)</td></tr><tr><td>Bilinear</td><td>O(|R| d 2 + |E| d)</td></tr><tr><td>DISTMULT</td><td>O(|R| d + |E| d)</td></tr><tr><td colspan="2">score on the validation sets. By taking advantages of GPU computation, every training experiment</td></tr><tr><td>can be finished within 4 hours.</td><td/></tr></table>

Peer review (iclr2018):
 The paper proposes a unified view of multiple methods for learning knowledge base embeddings. The paper*s motivations are interesting but the execution does fit standard for a publication at ICLR. Main reasons: * Section 3 does not bring much value. It is a rewriting trick that many knew but never thought of publishing * Section 4.1 is either incorrect or clearly misleading. What happens to the summation terms related to the negative samples (o~=o* and s!=s*) between the last equation and the 2 before that (on the expectations) at the bottom of page 4? They vanished while they are depending on the single triple (s, r, o), no? * The independence assumption at the top of page 5 is indeed clearly too strong in the case of multi-relational graphs, where triples are all interconnected. * In 4.2, writing that both RESCAL and KBTD explain a RDF triple through a similar latent form is not an observation that could explain intrinsic similarities between the methods but the direct consequence of the deliberate choice made for f(.) at the line before. * The experiments are hard to use to validate the model because they are based on really outdated baselines. Most methods in Table 4 and 5 are performing well under their best known performance.