Similarly, the loss function w.r.t θ s takes the form Despite the negative sample based approximation, there is another practical difficulty when type vector is used as the subject representation.
computing the value of u(s (j) , r (i) , q (i) ) requires to query the KB for all types of each negative sample s (j) .