<!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>Predicting Relations between RDF Entities by Multi-Order Interaction Neural Network</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Qiang Gao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fei Guo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yunjie Wu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaowang Zhang?</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhiyong Feng</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>College of Intelligence and Computing, Tianjin University</institution>
          ,
          <addr-line>Tianjin</addr-line>
          ,
          <country>China Tianjin</country>
          <institution>Key Laboratory of Cognitive Computing and Application</institution>
          ,
          <addr-line>Tianjin</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we present a multi-order interaction neural network (MINN) for relation prediction, which can calculate the 2ndorder and 3rd-order feature interactions and automatically combine them within linear complexity. The proposed MINN contains three layers: embedding, multi-order interaction pooling (MI-Pooling), and Deep &amp; Wide layer. In embedding layer, we convert sparse input features into dense representations to narrow the size of features. In MI-Pooling layer, the 2nd-order and 3rd-order feature interactions are calculated and combined in linear time. The results of MI-Pooling will be input into a deep neural network (DNN) for learning nonlinear feature in the last Deep &amp; Wide layer, which will output the nal prediction value. The experiments evaluating on two well-known datasets, WN18 and FB15k, show that MINN e ciently performs better than most of the state-of-the-art sparse models in relation prediction.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In general, some relations among entities are uncertain in the semantic web due
to information missing. It's meaningful and interesting to predict accurately if
a particular and unknown relation exists between two entities. For example, we
may want to kown whether two people are brothers.</p>
      <p>
        An RDF triple in semantic web can be represented as (entity1, relation,
entity2). When given such a triple, the goal of this paper is to predict if it is valid.
This task can be considered essentially as sparse prediction when a few relations
exist among a large number of entities. There are many researches about sparse
prediction recently. Factorization Machine (FM) is a classical method by using
the 2nd-order feature interactions [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The Wide&amp;Deep Learning is presented
to capture high-level nonlinear features [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. DeepFM and Neural FM (NFM)
are two excellent methods that combined 2nd-order feature interaction with
DNN [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. InteractionNN is good at learning multilevel hidden features, which
makes it perform very well on sparse prediction [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The higher-order feature
interactions that contain more complex and crucial information is usually ignored
* Copyright c 2019 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
since they would bring the cost of higher computational complexity. And it's
di cult for DNN to learn more higher-order nonlinear features. In this paper,
we propose MINN by combining 2nd-order and 3rd-order feature interaction
while the complexity remains linear.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Muti-Order Interaction Neural Network</title>
      <p>Each element of a triple is treated as a feature. We transform it into vector
represent (x1; x2; x3) as the input of MINN by one-hot encoder, where xi 2
[1:::size of f eaturei]. The MINN will output the existence probability of the
triple</p>
      <p>nally. MINN contains three main modules: embedding layer, MI-pooling,
Deep &amp; Wide layer. The architecture of model is shown in Fig. 1.</p>
      <p>R3OLQJ</p>
      <p>Embedding layer convert the sparse one-hot vector into dense representation,
which can learn the initial information and reduce computation. Formally, let an
input vector be Xin = (x1; x2; x3) and embedding matrix vecem 2 R3 K , where
K is the embedding size. We can get dense embedding feature xemb 2 RK :
xem = Xin vecem = (xv1; xv2; xv3)
(1)
Predicting Relations by Multi-Order Interaction Neural Network</p>
      <p>MI-pooling is employed for extracting the 2nd-order and 3rd-order feature
interactions from embedding features rstly. The former can be calculated by
formula (2).</p>
      <p>fSO(xem) = Xn Xn xvi xvj = 21 4
The complexities of both formulas are O(n). The two interactions are combined
by weighted summation to learn muti-order features. The weights can be learned
by the model so that the MINN could automatically select more important
information from 2nd-order and 3rd-order interactions.</p>
      <p>Finally, we employ a linear model to obtain the output in deep &amp; wide layer,
where the deep part can learn the high-level non-linear features and the wide
can learn the linear and original features.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Experiments and Evaluation</title>
      <p>We evaluate the performance of MINN on two well-known datasets, WN18 and
FB15k. Since negative samples are required for training models, we need to
generate negative datasets. We generate a new sample by random replacing one
entity of a triple, and if the sample is not in the datasets, it is a valid negative
sample. The ratio of positive and negative samples is 1:1. We randomly divide
the datasets into three parts: 70% (training), 20% (validation), and 10% (test).</p>
      <p>
        We compare MINN with the state-of-the-art sparse prediction models: FM [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
DeepFM [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], NFM [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and InteractionNN [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. RMSE(Root Mean Square Error)
and AUC(Area Under ROC) are employed as the evaluation metrics. We set the
batch size and embedding size to 256 for MINN on both dataset, and the
initial learing is 0.05. In addition, we employed early stopping to avoid over tting.
Table 1 shows the performance of di erent models.
      </p>
      <p>According to the experimental results, the following conclusions can be drawn.
Firstly, the FM learns only 2nd-order features interaction, which performs worst.
This demonstrates that 2nd-order features interaction is not enough to express
the information of input features. Secondly, the DeepFM combines FM and DNN
in parallel, and the performance of DeepFM is bettter than FM but inferior
to the others. This shows that high-level non-linear features are necessary and
low-order features play an important role when learning the high-level nonlinear
feature. Finally, comparing to NFM and InteractionNN, the MINN combines the
2nd-order and 3rd-order feature interactions for learning nonlinear feature. The
better performance demonstrates that the higher-order features have improved
the performance of the model. However, the 3rd-order interactions of the RDF
triples are not enough, that is, there is only one 3rd-order combination xv1xv2xv3
that contains 3rd-order interaction information. We will take more auxiliary
semantic information into considering to exhibit the better performance.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In this paper, we present a novel neural network MINN for relation prediction by
reducing to sparse prediction with higher-order feature interactions to extract
more semantics. Our proposed MINN provides a linear computation of 2nd-order
and 3rd-order feature interactions. The linear interaction method exactly make
higher-order feature interactions feasiable in relation predication. We believe
that our proposal is also helpful to other sparse predication. In the future work,
we will consider more datasets with more features in our experiments.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work is supported by the National Key Research and Development
Program of China (2017YFC0908401) and the National Natural Science Foundation
of China (61972455, 61672377). Xiaowang Zhang is supported by the Peiyang
Young Scholars in Tianjin University (2019XRX-0032).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Rendle</surname>
            <given-names>S.:</given-names>
          </string-name>
          <article-title>Factorization machines with LIBFM libfm</article-title>
          .
          <source>ACM TIST</source>
          ,
          <volume>3</volume>
          (
          <issue>3</issue>
          ),
          <volume>1</volume>
          {
          <fpage>22</fpage>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Cheng H. T.,
          <string-name>
            <surname>Koc</surname>
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Harmsen</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shaked</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chandra</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aradhye</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anderson</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Corrado</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chai</surname>
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ispir</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anil</surname>
            <given-names>R.</given-names>
          </string-name>
          , Haque
          <string-name>
            <given-names>Z.</given-names>
            ,
            <surname>Hong</surname>
          </string-name>
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Jain</surname>
          </string-name>
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Liu</surname>
          </string-name>
          <string-name>
            <given-names>X.</given-names>
            ,
            <surname>Shah</surname>
          </string-name>
          <string-name>
            <surname>H.</surname>
          </string-name>
          :
          <article-title>Wide &amp; deep learning for recommender systems</article-title>
          .
          <source>In: Proc. of RecSys</source>
          <year>2016</year>
          , pp.
          <volume>7</volume>
          {
          <fpage>10</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Guo</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tang</surname>
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ye</surname>
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>He</surname>
            <given-names>X.:</given-names>
          </string-name>
          <article-title>DeepFM: A factorization-machine based neural network for CTR prediction</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          <year>2017</year>
          , pp.
          <volume>1725</volume>
          {
          <fpage>1731</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>He</surname>
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chua</surname>
            <given-names>T. S.:</given-names>
          </string-name>
          <article-title>Neural factorization machines for sparse predictive analytics</article-title>
          .
          <source>In: Proc. of SIGIR</source>
          <year>2017</year>
          , pp.
          <volume>355</volume>
          {
          <fpage>364</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Zhang</surname>
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guo</surname>
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>InteractionNN: A neural network for learning hidden features in sparse prediction</article-title>
          .
          <source>In: Proc. of IJCAI</source>
          <year>2019</year>
          , pp.
          <volume>4334</volume>
          {
          <fpage>4340</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>