<!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>
      <journal-title-group>
        <journal-title>Athens, Greece
* Corresponding author.
$ msx@tju.edu.cn (S. Ma); zhe.wang@grifith.edu.au (Z. Wang); k.wang@grifith.edu.au (K. Wang);
zhuang@tju.edu.cn (Z. Zhuang)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Type-enhanced Inductive Knowledge Graph Completion</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Suxue Ma</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhe Wang</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kewen Wang</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhiqiang Zhuang</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 country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>School of Information and Communication Technology, Grifith University</institution>
          ,
          <addr-line>Brisbane</addr-line>
          ,
          <country country="AU">Australia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Inductive knowledge graph completion has gained significant attention due to the dynamic nature of entities and facts in knowledge graphs (KGs). The goal of this task is to predict missing links between entities that are unseen during training. Graph neural networks (GNNs) have proven to be efective in handling this task. However, existing GNN-based methods overlook the type information of entities in KGs and thus may make incorrect predictions, which also limits the interpretability of the GNN-based models for KG completion. To address this limitation, we propose to incorporate type information into an existing GNN-based model for inductive KG completion. Experimental results show that our proposed approach is efective in improving the performance of inductive link prediction.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Knowledge Graph</kwd>
        <kwd>Link Prediction</kwd>
        <kwd>Graph Neural Networks</kwd>
        <kwd>Type Information</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>target relation. For example, the target triple (albert_einstein, worksAt, theory_of_relativity)
may be predicted as true because there is evidence in the subgraph suggesting albert_einstein
and theory_of_relativity are connected. However, they are linked by the relation develops not
worksAt. By imposing type constraints and recognizing that theory_of_relativity is not a
workplace, we can readily rectify this classification error. Secondly, the inclusion of type information
can enhance the interpretability of models. Without the guidance type constraints, models may
generate predictions that are clearly wrong and can be easily recognized by humans, as
exempliifed by the erroneous prediction (albert_einstein, worksAt, theory_of_relativity). Introducing
type information can help reduce such errors, thereby enhancing the model’s reliability.</p>
      <p>
        In this paper, we propose to incorporate type information from KGs into an existing
GNNbased model for inductive knowledge graph completion. This is achieved by a novel integration
of type information in subgraph structures by prioritizing triples that are more likely to adhere
to the type constraints. This is not straightforward since type information can be incomplete
and the numbers of entities of diferent types can be diverse. To resolve these issues, we
develop a method for inferring new entity type information from the existing entities and
type hierarchies. Our model is the first attempt for incorporating type information into
inductive KGC models. We note that while several works have been done on utilising type
information for standard KGC [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ][
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], they cannot be directly applied to inductive KGC. Just
as most inductive KGC settings, we only consider unseen entities, while relations and type
information are seen in the training set. This is because in real-life applications, the relations
and type information are usually more stable whereas entities may change. For instance, in
e-commerce platforms, new products and users continually emerge, yet their types often remain
consistent with the existing knowledge graph. Experimental results show that our proposed
approach is efective in improving the performance of inductive link prediction, particularly
in terms of ranking accuracy. The code and data used in our experiments are all available at
https://github.com/Bohemianc/ISWC23-typed-inductive-LP.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Our Approach</title>
      <p>In this section, we provide a detailed description of our solution that utilizes type information.
First, we introduce the two forms of information we use, namely entity types and type
hierarchies, and explain how we infer new entity types through type hierarchies. Second, we explain
how we efectively integrate graph structures with type information, including details of joint
training.</p>
      <sec id="sec-2-1">
        <title>2.1. Type Mapping</title>
        <p>We consider two forms of type information: (1) types of entities, such as
(albert_einstein, rdf:type, Physicist) expressing that Einstein is a physicist, (2) and type
hierarchies, such as (Physicist, rdfs:subClassOf, Scientist) expressing that physicists belong
to the category of scientists. Let ℰ ,  , and ℛ denote the entity set, type set, and relation set
in the KG, respectively. Entity type assertions are defined as (, rdf:type, ) with  ∈ ℰ and
 ∈  , while type hierarchy assertions are defined as (1, rdfs:subClassOf, 2) with 1, 2 ∈  .
Additionally, we refer to (1, , 2) with 1, 2 ∈ ℰ as an instance triple, and (1, , 2) with
1, 2 ∈  as a type triple.</p>
        <p>
          In contrast to most existing works utilising type information [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], we use explicit entity
type assertions, which are more accurate than learnable type representations. However, this
leads to two issues: incomplete entity type information and type imbalance (i.e., the numbers
of entities of diferent types can be diverse). We believe that the impact of type imbalance
on type representation is caused by overly specific entity types. For example, if there are
much more mathematicians than physicists in the KG, the model will consider the type triple
(Mathematician, develops, Theory) to be more likely than (Physicist, develops, Theory), while
(Scientist, develops, Theory) is a more reasonable type triple that is not afected by type
imbalance. To address these two issues, we use type hierarchies to explicitly infer new entity type
assertions. Specifically, we apply the inference rule
        </p>
        <p>(, rdf:type, ) ∧ (, rdfs:subClassOf, ) → (, rdf:type, ).</p>
        <p>We recursively use this rule to supplement entity type assertions to address the incomplete
entity type issue. To address the type imbalance issue, we use type hierarchy assertions to select
the most general type among an entity’s multiple types, such as types Person and Location.
Note that we do not consider the type Thing to prevent mapping all entities to this type.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Fusing Graph Structures with Type Information</title>
        <p>
          Next, we introduce how to integrate graph structures with type information. For graph
structures, we adopt the method proposed in RMPI [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], which is one of the state-of-art models in
inductive KGC. This method transforms the sampled subgraph from the KG into another graph
in which each node is an instance triple in the KG. Then, it applies a GNN to the transformed
graph and obtain the final score using a linear layer. For type information, we assume that
both relations and types during inference are already present during training, and thus we can
represent relations and types using relation-specific and type-specific embeddings. Inspired
by the translation-based principle in TransE [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], given a type triple (1, , 2), we expect that
t1 + r ≈ t2, where t1, t2 and r ∈ R are embeddings of types or relations. Although we map
entities to general types, the types of an entity are not necessarily unique. For entities with
multiple types, we take the average score of corresponding type triples to obtain the likelihood
of the type triple being true. By fusing graph structures and type information, our method
prioritize those instance triples that are more likely to adhere to the type constraints. The score
of an instance triple (, , ) is calculated as
2(, , ) =
1
        </p>
        <p>∑︁
| ()| × | ()| 1∈ (),2∈ ()
score(, , ) = 1(, , ) + 2(, , ),
−|| t1 + r − t2||2,
(1)
(2)
where 1 is the score function of RMPI, 2 is the score function of type triples, and  () is the
set of types of an entity .</p>
        <p>Following previous works, we adopt margin ranking loss for training. Specifically, we apply
margin ranking loss to the final score score(, , ) and jointly train the two energy
functions 1 and 2. An alternative training strategy is to separately train the energy functions,</p>
        <p>Methods</p>
        <p>GraIL</p>
        <p>TACT
CoMPILE
RMPI-NE</p>
        <p>Ours
Methods</p>
        <p>GraIL</p>
        <p>TACT
CoMPILE
RMPI-NE</p>
        <p>Ours</p>
        <p>
          v1
similar to AutoETER [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. However, optimizing 2 alone using margin ranking loss can lead
to issues, as the corresponding type triple of a negative instance triple may not
necessarily be false. For example, the type triple (Scientist, develops, Theory) of the negative triple
(feynman, develops, theory_of_relativity) still holds.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Experiments</title>
      <p>
        We conducted experiments on two benchmark knowledge graphs, FB15k-237 and NELL995,
each with 4 versions split by GraIL [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Since the existing datasets lack type information, we
obtained original entity types from external knowledge graphs or entity names and completed
them as detailed in Section 2.1. Specifically, for FB15k-237, we map the anonymous entities
in FB15k-237 to entities in DBpedia by sameAs.org1, and then retrieved entity types and type
hierarchies through the meta-relations rdf:type and rdfs:subClassOf by querying DBpedia2. As
for NELL995, its entity names inherently include a specific type of entities, and the associated
website provides type hierarchies3. Our baselines include GraIL [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], TACT [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], CoMPILE [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and
RMPI-NE [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. We select RMPI-NE, a variant of RMPI, as the representative of models proposed
in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] due to its superior performance than other variants. In our model, we also use RMPI-NE
to calculate 1(, , ) in Equation 2. Our experiments aimed to demonstrate the efectiveness
of our type-enhanced model in improving performance of inductive link prediction.
1http://sameas.org/store/freebase/
2https://dbpedia.org/sparql
3http://rtw.ml.cmu.edu/resources/results/08m/NELL.08m.1115.ontology.csv.gz
      </p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>This work was partially supported by the National Natural Science Foundation of China under
grant 61976153.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>K.</given-names>
            <surname>Teru</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Denis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Hamilton</surname>
          </string-name>
          ,
          <article-title>Inductive relation prediction by subgraph reasoning</article-title>
          ,
          <source>in: International Conference on Machine Learning, PMLR</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>9448</fpage>
          -
          <lpage>9457</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Geng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. Z.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <article-title>Relational message passing for fully inductive knowledge graph completion</article-title>
          ,
          <source>arXiv preprint arXiv:2210.03994</source>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>G.</given-names>
            <surname>Niu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , S. Pu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Autoeter: Automated entity type representation for knowledge graph embedding</article-title>
          , arXiv preprint arXiv:
          <year>2009</year>
          .
          <volume>12030</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Universal representation learning of knowledge bases by jointly embedding instances and ontological concepts</article-title>
          ,
          <source>in: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery &amp; Data Mining</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1709</fpage>
          -
          <lpage>1719</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Usunier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Garcia-Duran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Yakhnenko</surname>
          </string-name>
          ,
          <article-title>Translating embeddings for modeling multi-relational data</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>26</volume>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Topology-aware correlations between relations for inductive link prediction in knowledge graphs</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>35</volume>
          ,
          <year>2021</year>
          , pp.
          <fpage>6271</fpage>
          -
          <lpage>6278</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Mai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <article-title>Communicative message passing for inductive relation reasoning</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>35</volume>
          ,
          <year>2021</year>
          , pp.
          <fpage>4294</fpage>
          -
          <lpage>4302</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>