<!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>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>ADVIS Lab, Dept of Computer Science, University of Illinois at Chicago</institution>
          ,
          <addr-line>Chicago IL 60607</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <abstract>
        <p>AgreementMakerDeep (AMD) is a new flexible and extensible ontology matching system. It exploits the contextual and structural information of ontologies by infusing knowledge to pre-trained masked language model, and then filter the output mappings using knowledge graph embedding techniques. AMD learns from classes and their relations between classes by constructing vector representations into the low dimensional embedding space with knowledge graph embedding methods. The results demonstrate that AMD achieves a competitive performance in many OAEI tracks, but AMD has limitations for property and instance matching.</p>
      </abstract>
      <kwd-group>
        <kwd>Ontology matching</kwd>
        <kwd>Large Language model</kwd>
        <kwd>Knowledge graph embedding</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR</p>
      <p>ceur-ws.org
https://ellenzhuwang.github.io (Z. Wang)
CEUR
Workshop
Proceedings</p>
      <p>© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
    </sec>
    <sec id="sec-2">
      <title>2. Specific Techniques Used</title>
      <p>The architecture of AMD is shown in Fig. 1, including ontology parsing, textual matching with
large pre-train language models, knowledge graph embedding, model learning and candidate
selection.</p>
      <p>Ontology parsing. owlready2 [15] is used to extract meta information of classes from
the source and target ontology, such as super/sub-classes, labels, annotations, partof and
disjointwith. BeautifulSoup [16] is used to extract synonyms.</p>
      <p>Textual matching. We apply several text per-processing techniques like stop-words removal
and tokenization on class labels and annotations. AMD uses sentence-BERT [17] to compute
cosine similarity between two concept labels and annotations in unsupervised tasks. We consider
to use textual matching results as our mapping candidations.</p>
      <p>Knowledge graph embedding. We characterize the structure information of ontologies by
relations translated from one class to another class using a modified TransR [ 18] model into
relational embedding spaces.
2.0.1. Problem Formulation.</p>
      <p>Given two ontologies O and O’, we construct knowledge graph X and Y, and define the
correspondence between two concepts as following triplets  , ′ = &lt; ,  ,  ′ &gt;, where r is the relation
between c and c’. The problem is to find mapping set M = {(  ,   ) ×  |  ≡   }. In this study,
we focus on one-to-one alignment and the relation between concepts is equality.</p>
      <p>
        Let  ⃗(  )= { 1,  2, ...  } and  ⃗(  )= { 1′,  2′, ...  ′} be two d-dimensional vectors sets of size m and
n, we compute their distance with simple cosine similarity by d( ⃗(  ),  ⃗(  )) = 1-sim( ⃗(  ),  ⃗(  ))
as follows:
( ⃗(
 ),  ⃗(  )) = ∑  ( ⃗(
=1
 ),  ⃗(  ))
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
We define the probability of the aligned labels between concepts   and   by (  |  ) as follows:
(  |  ) =  ( ⃗(
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(4)
(5)
where  is the sigmoid function.
      </p>
      <sec id="sec-2-1">
        <title>2.1. Masked Language Modeling</title>
        <p>In bio-ML track, we train on ontologies corpus for semi-supervised tasks. We finetune BioBERT
[19] following [20]. The text encoder takes a sequence of tokens from triples {ℎ,  , } as inputs,
and computes a numbers of L layers to obtain contextualized representations   ∈ ℝ × , where
 is the number of tokens in our vocabulary and d is the dimension.</p>
        <p>Concept prediction Concepts are the dominant elements in ontology matching problem,
therefore, predicting the concepts forces the model to learn the of semantic information. At the
same time, we infuse structural knowledge by triples to enable the ability of the model to learn
the contextualized representations for each ontology. Here, the concept prediction is to predict
head or tail concept, and the diference is position embedding of the masked tokens.</p>
        <p>For all the concepts  ∈  , we randomly select 30% of them to predict. And for each selected
concept   , the token   ℎ or    is replaced with the special token [MASK] in probability of 80%,
another random token in 10% and the rest remain itself. The loss of concept prediction is defined
as:</p>
        <p>++
ℒ2 = − ∑ log  ( + | &lt;+ ) (3)</p>
        <p>+</p>
        <p>Relation prediction Relations express the way of connection head and tail concepts, and
also provide enrich hierarchy as structural information. We considers to concatenate all tokens
in  to predict, because relation labels usually have few words or tokens and are meaningless
by separated tokens. For the training tasks, relation prediction is similar process as concepts
prediction by masking randomly. Thus, the loss of relation prediction is written as:
++
ℒ2 = − ∑ log  ( + | &lt;+ )</p>
        <p>+
Therefore, the masked language modeling loss function can now be written as,
ℒ</p>
        <p>= ℒ2 + ℒ2
where we take a linear combination of both the loss terms.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Knowledge graph embedding</title>
        <p>In AMD, we apply a modified TransR method which translates concepts and relations into
concept space and relation-specify concept spaces, since there are multiple relations in the
ontologies e.g subclassof and disjointwith. In the original TransR, the projected vectors are
defined as   =   ,  ′ =  ′  , and the score function as   (,  ′) = ‖  +  −  ′‖22 [18]. Inspired by
Sun et al. [4], the absolute scores of positive triples are lower than the negative ones, so we
modify the loss function by using two  hyper-parameters as follows:
ℒ
= ∑ ∑
( )∈ (  )∈ 
(0, (
 ( ) −  1) − (  (  ) +  2))
(6)
where T denotes ℎ,  ,  and   represent negative triples,  1,  2,  &gt; 0 and  2 &gt;  1. Negative
triples are generated from negative sampling method by following AMD[14] and Multi-OM [6].</p>
        <p>During the process that computes vectors, we need to generate negative triples. Following the
work of Sun et al. [4] and Li et al. [6], we refine the uniform negative sampling by choosing from
the k-nearest neighbors in the embedding space, and setting constraints of select candidates
excluding from the subclassOf or disjointWith related concepts. In this way, we can avoid vector
sparsity and obtain better quality of vector representations for the concepts.</p>
        <p>Candidate selection We select candidates based on a threshold of the classes knowledge
graph embedding vectors similarity, and then compare the similarity with baseline if the pairs
are in baseline result sets. Note that, we generate candidates using our models without any
reference alignments in all tracks, except bio-ML.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Parameter settings</title>
        <p>Ontology pre-processing. Ontologies always are in the format of owl or rdf, but the inputs of
masked language model and knowledge graph embedding models require the format of word
or token embeddings. Firstly, we extract meta information from ontologies using owlready2
1, such as ID, labels, resource, descriptions of class(or called concepts). The nature language
information of relations are extracted from restriction, property, subClass or superClass. Since
the ontologies in the tasks were developed by diferent organizations, we process the ontology
parsing from diferent tags, e.g rdf:ID=”isPartOf” and rdf:resource =”UNDEFINED_part_of”.</p>
        <p>MLM pre-training settings. In practice, we use RoBERTa implementation by
Huggingface2 as the base pre-trained model in our all experiments. LaKERMap is initialized with the
roberta.base parameters, and the base model size is 12 layers and 768-dimensional hiddden
states( = 12,  = 768) . For the MLM training task, we use the words or tokens in knowledge
triples as our corpora for fine tuning. We select the first 5 mapping pairs from lexical matching
method in few-shot learning. Hyper-parameters are the same in [21].</p>
        <p>KGE training settings. We use the outputs of MLM as word or token embedding in the
initialization for knowledge graph embbedding training process, as the dimension of d is set to
768. The remainder of our hyper-parameters in KGE are setup followed AMD [14].</p>
        <p>The threshold for textual matching is 0.925, and the threshold for candidate selection is 0.9.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Datasets</title>
        <p>We use the datasets provide by OAEI. AMD is able to be executed by organizers in four schema
matching tracks, including Conference, Anatomy, bio-ML and Common Knowledge Graph track.
However, AMD supports most of tracks in our local environment setups exclude for interactive
matching track.
1https://github.com/pwin/owlready2
2https://huggingface.co/roberta-base</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.5. Adaptations made for the evaluation</title>
        <p>Our framework uses Python with Pytorch 3 and RDFLib 4, and is packed for SEALS using MELT.
We use the best parameter set in local alignments for the OAEI submission, see section 2.3.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <sec id="sec-3-1">
        <title>3.1. Anatomy</title>
        <p>The Anatomy track results of AMD are shown in Table 1. In this year, AMD returns 1282
correspondences in 36 seconds. The result shows that AMD can be competitive among the
top promising matching systems. The performance in term of evaluation metrics is slightly
decreased, but runtime is significally faster than last year, which is crucial for ontology matching
systems.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Conference</title>
        <p>The Conference track results of AMD are shown in Table 1. As expected, the performance
of AMD in the conference track is not good, with the F-measure only slightly higher when
comparing baseline method(StringEquiv). AMD shows a lack of ability to extract and match
the properties in M2 and M3 evaluation variants. However, AMD has higher values in term of
Precision in most tasks.
3.3. bio-ML</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. General comments</title>
      <sec id="sec-4-1">
        <title>4.1. Comments on the result</title>
        <p>Overall, the results show that AMD is able to complete several tasks in diferent domains on
class-level matching in a timely manner. In this year, we have improvements in anatomy and
3https://pytorch.org
4https://github.com/RDFLib
bio-ML tracks in terms of evaluation metrics. By contrast to last year, we solved memory issues
for large scale ontologies. Moreover, we consider to enable semi-supervised capability of AMD,
and it is beneficial to train on triples in intra-ontology and inter-ontology.</p>
        <p>However, AMD is still under development that it is only able to return class correspondences,
and is not able to match properties and instances in the current stage for some tracks.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Improvements</title>
        <p>The current development of AMD touches on several aspects. Besides considering properties
and instances matching, we will utilize joint embedding to combine contextualized knowledge
graph embeddings like coKE and additional knowledge resources such as WebIsA [22] as a
lexicon database. Moreover, we will adapt AMD with more diferent data types parsing and
parameters selections for diferent tracks.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>In this paper, we have introduced an ontology matching system called AMD. In this year, we
consider to use BERT-like pre-train language model to obtain contextualized representations.
To improve the overall performance, we adapted a modified transR model to fit the ontology
matching problem: thus, we learn low-dimensional representations for each class and relation
to capture the hidden semantics of ontologies, rather than measuring the similarities between
classes directly, as in other traditional systems. AMD makes full use of the textual and structure
knowledge of ontologies. The results demonstrate the high eficiency and the promising
performance of our proposed matching method as compared to other systems results in several
tracks.
[3] D. Faria, C. Pesquita, E. Santos, M. Palmonari, I. F. Cruz, F. M. Couto, The
AgreementMakerLight Ontology Matching System, in: International Conference on Ontologies,
DataBases, and Applications of Semantics (ODBASE), Springer, 2013, pp. 527–541.
[4] Z. Sun, W. Hu, Q. Zhang, Y. Qu, Bootstrapping Entity Alignment with Knowledge Graph</p>
      <p>Embedding, in: IJCAI, volume 18, 2018, pp. 4396–4402.
[5] J. Euzenat, P. Shvaiko, Ontology Matching, Springer-Verlag, Heidelberg (DE), 2007.
[6] W. Li, X. Duan, M. Wang, X. Zhang, G. Qi, Multi-view embedding for biomedical ontology
matching., OM@ ISWC 2536 (2019) 13–24.
[7] A. Laadhar, F. Ghozzi, I. Megdiche, F. Ravat, O. Teste, F. Gargouri, Partitioning and Local
Matching Learning of Large Biomedical Ontologies, in: ACM SIGAPP Symposium on
Applied Computing, 2019, pp. 2285–2292.
[8] S. Melnik, H. Garcia-Molina, E. Rahm, Similarity Flooding: A Versatile Graph Matching</p>
      <p>Algorithm and Its Application to Schema Matching, 2002, pp. 117–128.
[9] I. F. Cruz, W. Sunna, Structural Alignment Methods with Applications to Geospatial
Ontologies, Transactions in GIS, Special Issue on Semantic Similarity Measurement and
Geospatial Applications 12 (2008) 683–711.
[10] P. Kolyvakis, A. Kalousis, D. Kiritsis, Deepalignment: Unsupervised ontology matching
with refined word vectors, in: Proceedings of the 2018 Conference of the North American
Chapter of the Association for Computational Linguistics: Human Language Technologies,
Volume 1 (Long Papers), 2018, pp. 787–798.
[11] P. Ristoski, J. Rosati, T. Di Noia, R. De Leone, H. Paulheim, RDF2Vec: RDF Graph
Embeddings Their Applications, Semantic Web 10 (2019) 721–752.
[12] M. Cheatham, P. Hitzler, String similarity metrics for ontology alignment, in: International
semantic web conference, Springer, 2013, pp. 294–309.
[13] J. Hao, M. Chen, W. Yu, Y. Sun, W. Wang, Universal Representation Learning of Knowledge
Bases by Jointly Embedding Instances and Ontological Concepts, in: ACM SIGKDD
International Conference on Knowledge Discovery &amp; Data Mining, 2019, pp. 1709–1719.
[14] Z. Wang, I. F. Cruz, Agreementmakerdeep results for oaei 2021., in: ISWC International
Workshop on Ontology Matching (OM), CEUR Workshop Proceedings, CEUR-WS.org,
2021, pp. 124–130.
[15] J.-B. Lamy, Owlready: Ontology-oriented programming in python with automatic
classification and high level constructs for biomedical ontologies, Artificial intelligence in
medicine 80 (2017) 11–28.
[16] L. Richardson, Beautiful soup documentation, April (2007).
[17] N. Reimers, I. Gurevych, Sentence-bert: Sentence embeddings using siamese bert-networks,
in: Proceedings of the 2019 Conference on Empirical Methods in Natural Language
Processing, Association for Computational Linguistics, 2019. URL: http://arxiv.org/abs/1908.10084.
[18] Y. Lin, Z. Liu, M. Sun, Y. Liu, X. Zhu, Learning entity and relation embeddings for
knowledge graph completion, in: AAAI Conference on Artificial Intelligence, 2015.
[19] E. Alsentzer, J. Murphy, W. Boag, W.-H. Weng, D. Jin, T. Naumann, M. McDermott, Publicly
available clinical BERT embeddings, in: Proceedings of the 2nd Clinical Natural Language
Processing Workshop, Association for Computational Linguistics, Minneapolis, Minnesota,
USA, 2019, pp. 72–78. URL: https://www.aclweb.org/anthology/W19-1909. doi:10.18653/
v1/W19- 1909.
[20] Z. Wang, Contextualized structural self-supervised learning for ontology matching, arXiv
preprint arXiv:2310.03840 (2023).
[21] Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer,
V. Stoyanov, Roberta: A robustly optimized bert pretraining approach, arXiv preprint
arXiv:1907.11692 (2019).
[22] J. Seitner, C. Bizer, K. Eckert, S. Faralli, R. Meusel, H. Paulheim, S. P. Ponzetto, A large
database of hypernymy relations extracted from the web., in: Proceedings of the Tenth
International Conference on Language Resources and Evaluation (LREC’16), 2016, pp.
360–367.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>I. F.</given-names>
            <surname>Cruz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Palandri Antonelli</surname>
          </string-name>
          , C. Stroe,
          <source>AgreementMaker: Eficient Matching for Large Real-World Schemas and Ontologies, PVLDB</source>
          <volume>2</volume>
          (
          <year>2009</year>
          )
          <fpage>1586</fpage>
          -
          <lpage>1589</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>I. F.</given-names>
            <surname>Cruz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Palandri Antonelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Stroe</surname>
          </string-name>
          ,
          <article-title>Eficient Selection of Mappings and Automatic Quality-driven Combination of Matching Methods</article-title>
          , volume
          <volume>551</volume>
          <source>of CEUR Workshop Proceedings</source>
          ,
          <year>2009</year>
          , pp.
          <fpage>49</fpage>
          -
          <lpage>60</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>