<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Can Pattern Learning Enhance Complex Logical Query Answering?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yunjie He</string-name>
          <email>yunjie.he@ipvs.uni-stuttgart.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mojtaba Nayyeri</string-name>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bo Xiong</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yuqicheng Zhu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeny Kharlamov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefen</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Staab</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Bosch Center for Artificial Intelligence</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>The International Max Planck Research School for Intelligent Systems</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of Oslo</institution>
          ,
          <country country="NO">Norway</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>University of Southampton</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>University of Stuttgart</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Logical patterns, such as symmetry and composition, have been proven to be beneficial in the knowledge graph completion task. However, their influence has been unexplored in first-order logical (FOL) query reasoning methods. In this work, we present an inductive bias for query embedding models, Patternaware Cone Embedding (PConE), to support learning and reasoning with logical patterns. PConE combines the advantages of cones and the rotation operator for powerful algebraic operations for pattern inference. Our experiments demonstrate how the capability to capture logical patterns positively impacts the results of query answering.</p>
      </abstract>
      <kwd-group>
        <kwd>Query answering</kwd>
        <kwd>Knowledge graphs</kwd>
        <kwd>Query embedding</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>CEUR
Workshop
Proceedings
© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
q = # $
= ∃&amp;: ()*ℎ,-*-./012/3ℎ&amp; &amp;, ./2,5 673</p>
      <p>∨ )*ℎ,-*-./012/3ℎ&amp; &amp;, 972/3- 673 )
∧ ¬1-=&gt;&gt;=*- 6. ?/0=,5/ , &amp; ∧ @A2*ℎB,=C- ($, &amp;)
*
$
(
4
4
(
*
/</p>
      <sec id="sec-2-1">
        <title>L. Messi</title>
        <p>&amp;'(123-#</p>
      </sec>
      <sec id="sec-2-2">
        <title>Argentina NFT</title>
        <p>!"#$ℎ&amp;'()*</p>
        <p>!-#.+$
+$ℎ'*$*,-./#-0ℎ1</p>
      </sec>
      <sec id="sec-2-3">
        <title>Rosario</title>
      </sec>
      <sec id="sec-2-4">
        <title>World Cup</title>
        <p>/*(4,-./#-0ℎ1
. # 0 1
- /- ℎ
+$ℎ'*$*,</p>
      </sec>
      <sec id="sec-2-5">
        <title>J. Mascherano</title>
      </sec>
      <sec id="sec-2-6">
        <title>C. Ronaldo</title>
        <p>!-#.+$
Paris !"#$ℎ&amp;'()*
+$ℎ'*$*,-./#-0ℎ1
Europe Cup/*(4,
1
ℎ
0
#
/*(4,-./ +$ℎ'*$*,-./#-0ℎ1
-./#-0ℎ1</p>
      </sec>
      <sec id="sec-2-7">
        <title>K. Mbappé</title>
        <p>&amp;'(123-#</p>
      </sec>
      <sec id="sec-2-8">
        <title>France NFT</title>
        <p>!-#.+$</p>
      </sec>
      <sec id="sec-2-9">
        <title>Pepe</title>
      </sec>
      <sec id="sec-2-10">
        <title>Maceió</title>
        <p>
          !"#$ℎ&amp;'()*
&amp;'(123-# Portugal NFT &amp;'(123-#
/*(44($*
!"#$$#%"
operators. Examples of patterns found within KGs encompass symmetry (e.g.,   ),
inversion (e.g.,   and ℎ ℎ  ), and composition (e.g., when an athlete     a
team and     ℎ , it implies ℎ   ℎ ). As these logical patterns greatly
influence the interplay of entities and relations, related work [
          <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
          ] has demonstrated that an
embedding’s ability to support them improves its link prediction quality. However, similar
accommodation of logical patterns in the embedding space is still lacking for query embeddings.
        </p>
        <p>In this poster, we propose a novel method, PConE, to support the acquisition and
representation of logical patterns for query answering. We describe its basic working mechanism and the
evaluation strategy and present experimental evidence to demonstrate its eficiency in handling
ifrst-order logical queries with a lightweight structure (with only half the parameters of other
baseline models).</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>2. PConE</title>
      <p>PConE defines each relation as a rotation from the source entity set to the answer/intermediate
entity set, where entities and entity sets are modeled as vectors and cones, respectively. Each
cone q is parameterized by q = (h , h ), where |h |2 = 1, |h |2 = 1 with | ⋅ |2 being the L2
norm, and h , h ∈ ℂ represent the counter-clockwise upper and lower boundaries of the cone,
such that h ≡     , h ≡     , where  { ,} represent the angle between the boundary and the
axis,  is the embedding dimension. First-order logical operators, conjunction, disjunction, and
#</p>
      <p>#</p>
      <sec id="sec-3-1">
        <title>France NFT</title>
        <p>1"
1$</p>
      </sec>
      <sec id="sec-3-2">
        <title>Europe Cup</title>
      </sec>
      <sec id="sec-3-3">
        <title>Mbappé</title>
      </sec>
      <sec id="sec-3-4">
        <title>Rosario</title>
      </sec>
      <sec id="sec-3-5">
        <title>Paris</title>
        <p>1#
(ii) Composition
0&amp;$3."/01"*ℎ2!(x,z) ∧ ;!$2=&gt;"1!(z, y)
→ (%ℎ!&amp;%&amp;."/01"*ℎ2!(x, y)</p>
      </sec>
      <sec id="sec-3-6">
        <title>K. Mbappé</title>
      </sec>
      <sec id="sec-3-7">
        <title>L. Messi</title>
        <p>
          #$
#"
(iii) Inversion
D"1/(% (x, y)
⇄ D+1%ℎ;!$#&amp; (y, x)
negation, are translated into geometric operators in the complex vector space. We derive the
ifnal query embedding by executing geometric operators on the selected entity sets along the
computation graph. The model is trained to minimize the distance between the query cone
embedding and the answer entity vector. The geometric operators are designed below.
Relational Transformation Given a set of entities and a relation, the transformation operator
selects the neighboring entities by relation. Existing query embedding methods [
          <xref ref-type="bibr" rid="ref1 ref2 ref3 ref6">2, 1, 6, 3</xref>
          ]
apply multi-layer perceptron networks to accomplish this task. They do not accommodate the
learning of potential logical patterns which can help in reasoning logical queries. To capture
diverse patterns, we represent each relation r ∈ ℂ2× as a counterclockwise relational rotation
on query embeddings about the origin of the complex plane such that r = (r , r ), where
|r | = 1, |r | = 1, and r , r ∈ ℂ . Given the query embedding q = (h , h ) and a relation r,
the transformed query embedding (h′ , h′ ) is defined as h′ = h ∘ r , h′ = h ∘ r . Figure 2
illustrate the relational transformation process in the presence of various patterns.
Logical Operators Given the input of multiple entity sets modeled by cone embeddings, the
intersection operator computes their intersections through a neural network-based
permutationinvariant function. Given the cone embedding of a set of entities q, the negation operator finds
its corresponding negation q¬ as the complement of the cone. In addition, given the input
of multiple entity sets q1, ..., q , the union operator finds the disjunction set as the union of
multiple cone embeddings in the same complex plane.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Preliminary Results</title>
      <p>We evaluate our model on a wider range of datasets and dataset splits in addition to existing
query answering benchmark datasets to thoroughly assess how learning logical patterns afects
query answering.</p>
      <p>
        Model Performance Table 1 summarizes the performance of all methods on answering
various query types in two benchmark datasets WN18RR [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and NELL [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. On nearly all query
2p
4.6
9.8
12.3
14.5
17.6
14.5
13.0
16.1
17.7
types, PConE consistently outperforms all baseline approaches.
      </p>
      <p>Respective Influences of Logical Patterns
Tono bqeutetreiresstiundvyoltvhiengsploecgiificcaimlppaatctetronfsP,CaomnoEre 4308 PBCasoenlEine
lisdanwat-tiedaoresniepnsttgihinndvtaaoontla,fivavseleeydctsaNiitsne,EagitLsnhoLdrem.ieqℎWas u,deeer ci eao,stfe.bgtaThosheer,eid zqseouuntebhrtgehyreotaeurnsept--, rcccyauA%33332460 34.43%1.4% 28.6%28.2% 34.83%2.2%28.92%9.7%
volveiasllathcorenejulongcitcivaelpsaettteorfnqs.uTerhieescathteagtoirny-  2286 26.22%5.5%
ℎ  corresponds to queries that do not in- Inverse SQyumemrieestrwyiCtho mreplaotsiiotnionpatteJroninst Others
volve any of these logical patterns. Figure Figure 3: Average performances of PConE and
3 shows the average performances of PConE Baseline model (ConE) over query
suband neural baseline model on these subgroups. groups with diferent logical patterns.
It is observed that PConE outperforms the
neural baseline model on queries that had
logical patterns, especially inverse relations. However, PConE does not generalize as well to queries
that were not influenced by logical patterns compared to the baseline model.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusion</title>
      <p>Logical patterns in complex query answering remains understudied. To the best of our
knowledge, PConE is the initial study to investigate how logical patterns improve logical query
reasoning. On the other hand, due to natural geometry features, the relational rotational
projection can only be used to cone embedding. We will develop more generic and efective ways to
improve relation pattern learning in complex query reasoning.</p>
    </sec>
    <sec id="sec-6">
      <title>5. Acknowledgement</title>
      <p>The authors thank the International Max Planck Research School for Intelligent Systems
(IMPRSIS) for supporting Yunjie He, Bo Xiong and Yuqicheng Zhu.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>H.</given-names>
            <surname>Ren</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. Leskovec,</surname>
          </string-name>
          <article-title>Query2box: Reasoning over knowledge graphs in vector space using box embeddings, in: ICLR, OpenReview</article-title>
          .net,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wu</surname>
          </string-name>
          , Cone:
          <article-title>Cone embeddings for multi-hop reasoning over knowledge graphs</article-title>
          ,
          <source>in: NeurIPS</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>19172</fpage>
          -
          <lpage>19183</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Ren</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Leskovec</surname>
          </string-name>
          ,
          <article-title>Beta embeddings for multi-hop logical reasoning in knowledge graphs</article-title>
          ,
          <source>in: NeurIPS</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Nie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <article-title>Rotate: Knowledge graph embedding by relational rotation in complex space, in: ICLR (Poster), OpenReview</article-title>
          .net,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Nayyeri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yaghoobzadeh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vahdati</surname>
          </string-name>
          ,
          <string-name>
            <surname>M. M. Alam</surname>
            ,
            <given-names>H. S.</given-names>
          </string-name>
          <string-name>
            <surname>Yazdi</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <article-title>Lossaware pattern inference: A correction on the wrongly claimed limitations of embedding models</article-title>
          ,
          <source>in: PAKDD (3)</source>
          , volume
          <volume>12714</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2021</year>
          , pp.
          <fpage>77</fpage>
          -
          <lpage>89</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>W. L.</given-names>
            <surname>Hamilton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Bajaj</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zitnik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Jurafsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Leskovec</surname>
          </string-name>
          ,
          <article-title>Embedding logical queries on knowledge graphs</article-title>
          ,
          <source>in: NeurIPS</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>2030</fpage>
          -
          <lpage>2041</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Line: Logical query reasoning over hierarchical knowledge graphs</article-title>
          ,
          <source>in: KDD, ACM</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>615</fpage>
          -
          <lpage>625</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>