<!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>G. Sousa);</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Guilherme Sousa</string-name>
          <email>guilherme.santos-sousa@irit.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rinaldo Lima</string-name>
          <email>rinaldo.jose@ufrpe.br</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Cassia Trojahn</string-name>
          <email>cassia.trojahn@irit.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Complex Ontology Matching, Embeddings, LLM.</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IRIT: Institut de Recherche en Informatique de Toulouse</institution>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Univ. Grenoble Alpes</institution>
          ,
          <addr-line>Inria, CNRS, Grenoble INP, LIG, F-38000 Grenoble</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Universidade Federal Rural de Pernambuco</institution>
          ,
          <addr-line>Recife</addr-line>
          ,
          <country country="BR">Brazil</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>This paper presents the 2024 results of an enhanced version of the CANARD system, which integrates Large Language Models (LLMs) to address the challenges of complex alignments. By leveraging LLM-based embeddings, the system better captures semantic and contextual relationships, improving both precision and coverage. Four architectural settings - Label Embedding Similarity (LES), Embeddings of SPARQL Query (ESQ), Subgraph Embeddings (SE) and Instance Embeddings (IE) - were explored to improve the alignment quality. Experiments on the Populated Conference dataset from the OAEI Complex Track demonstrate improvements over baseline approaches, with an increase in F-measure up to 45% in some cases. However, challenges such as runtime overhead in IE and noise in SE components were identified, where future work can explore better aggregation techniques or fine-tuned LLMs.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR</p>
      <p>ceur-ws.org
with the source CQA. In step 4, similar instances in the target KG are retrieved for those retrieved in
step 3. In step 5, the subgraph of the target instances is retrieved. In step 6 the labels of the entities
in the subgraphs are retrieved and in step 7 their similarity is measured against the labels retrieved
in step 2. In step 8 the correspondences with summed similarity higher than a threshold are kept
and in step 9 the final alignment is written in EDOAL format. Two main improvements have been
implemented, corresponding to the two similarity evaluations in the instance matching step and in the
subgraph similarity measure. By using embeddings to compute those similarities, the matcher improves
its capacity to retrieve the relevant entities to each case. Also, since LLMs have increased language
understanding, using embeddings generated by LLMs improves similarity computation.</p>
    </sec>
    <sec id="sec-2">
      <title>1.1. Embeddings Generation</title>
      <p>Multiple embedding applications are possible in the proposed architecture. Since subgraphs are involved
in the similarity computation to the CQA entities (step 7 of Figure 1), some aggregation techniques are
applied. For the similarity computation with embeddings three aggregation strategies were considered:</p>
      <p>Label Embedding Similarity (LES) Entity labels from the source and target KGs are processed
through pre-trained LLMs. Those LLMs have an associated tokenizer that splits the text into multiple
tokens. Those tokens are then input to the LLM that generates one embedding for each token. The final
embedding for each label is derived by averaging all embedding from the output of the model’s last
hidden layer. All embeddings from the CQA side are cross-compared with all tokens in the subgraph
labels resulting in n:m comparisons. The similarities lower than a threshold are filtered out and the
resulting ones are added to the final similarity.</p>
      <p>Embeddings of SPARQL query (ESQ) In this setting the embeddings generated for all entities in
the CQA (similar to the LES step) are averaged resulting in a single embedding for the CQA. Then this
embedding is compared with the ones from the subgraph entities resulting in 1:m comparisons.</p>
      <p>Subgraph embeddings (SE) For this setting, the embedding for the CQA is computed as in the ESQ
setting, and the embeddings for the subgraph are aggregated. Two types of aggregation are considered
depending on the type of the subgraph. If the CQA is unary (one variable in the SPARQL query) the
corresponding subgraph is a triple composed of subject, predicate, object, and also the subject type and
object type. For binary CQAs (two variables) the corresponding subgraph is a path that connects the
entities retrieved in the variables.</p>
      <p>In the instance matching step (step 4 Figure 1), an embedding is generated for all entities in the datasets
without the BNodes. Then, for any given entity the most similar ones by computing their embedding
similarity. This setup is named Instance Embeddings (IE) and can be applied simultaneously with the
CQA embedding settings LES, ESQ, and SE.</p>
    </sec>
    <sec id="sec-3">
      <title>1.2. Adaptations Made for the Evaluation</title>
      <p>Some adaptations were made to evaluate the system in the OAEI complex track. The matcher was
evaluated in the Populated Conference dataset as it contains CQAs and instances as required by
CANARD to execute and later by the evaluator to compare the results.</p>
      <p>The Populated Conference dataset contains 5 populated ontologies and all pairs were evaluated with
the proposed approach. For each pair, a range of similarity thresholds was evaluated to determine the
optimal value for filtering alignments. Two distinct threshold values are needed in this approach, one
for the CQA-related similarity and the other for the instance matching step. For the similarity in step 7
(Figure 1), values ranging between 0.5 and 1.0 incrementing by 0.1 were considered. For the instance
matching step (step 4 in Figure 1), thresholds of 0.8, 0.85, and 0.9 were employed to verify the impact of
the threshold in this step. Only a few thresholds were considered in the step 4 to reduce the number of
combinations to be tested.</p>
      <p>
        The embedding generation (before the main execution), involves processing all KG labels and instances
through LLMs and is computationally intensive. To address this, embeddings were precomputed and
cached for reuse during the matching process. The computation using LLMs was computed using GPU
acceleration and the usage in the evaluation was done only with CPU. The tested models are GritLM-7B
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], sfr-mistral [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], Glove [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and Stella-base 1.
      </p>
      <p>
        The evaluation was automatically performed using the evaluator proposed in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] that was used
to evaluate the alignments of matchers in the complex track for the OAEI campaign. Two metrics
from those available in this evaluator were selected. Coverage (query F-measure based on CQAs) and
precision. Both metrics consider the comparison of instance sets.
      </p>
      <p>Considering all parameter variations of input ontologies, embedding models, and thresholds, 1800
combinations of parameters were tested to identify the most promising configurations. This was followed
by additional evaluations incorporating embeddings into the linking step for the top-performing settings.
These adaptations allowed the system to demonstrate substantial improvements over baseline methods,
achieving higher precision and coverage scores on the tested dataset.
1.2.1. Link to the System and Parameters File
The baseline approach can be found in https://framagit.org/IRIT_UT2J/ComplexAlignmentGenerator.
The embedding variation used in this paper can be found at https://gitlab.irit.fr/melodi/
ontology-matching/complex/canarde.</p>
      <sec id="sec-3-1">
        <title>2. Results</title>
        <p>In this section, the results of the evaluation of the Populated Conference dataset are presented. In
the query-oriented evaluation, the GritLM-7B with the ESQ setting was the one with the highest
query-oriented f-measure and precision. In the precision-oriented evaluation, the Stella-base model
with ESQ setting and the instance embeddings IE setting with 0.85 threshold reaches higher results in
all precision-oriented metrics. The results of this evaluation are presented in Table 1.</p>
        <p>
          As shown in Table 1, LES and ESQ achieve the highest performance when LLMs are utilized. These
configurations involve fewer embedding aggregations than SE. Notably, as the number of aggregations
increases, such as in the SE configurations, the performance of all models decreases. This degradation can
be attributed to the loss of semantic information and increased noise caused by combining embeddings
without a weight transformation mechanism or filtering, such as those used in Graph Neural Networks
1https://huggingface.co/infgrad/stella-base-en-v2
model
base (levenshtein)
GritLM-7B (LES)
sfr-mistral (i-LES)
GritLM-7B (ESQ)
sfr-mistral (i-ESQ)
glove (SE)
glove (i-SE)
stella-base (ESQ+IE 0.9)
stella-base (ESQ+IE 0.85)
GritLM-7B (ESQ+IE 0.9)
[
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. Also, increasing the model size consistently improves performance across all configurations.
However, the results among the LLMs don’t diverge much. Another observation is that the IE setting
enhances precision-oriented metrics across all models but in some cases, the results in the query-oriented
evaluation are reduced.
        </p>
        <p>Also, the improved architecture was compared with other matchers in the same dataset. The results
of this comparison are presented in Table 2.</p>
        <p>Matcher
Matcha-DL
AMLC
CANARD 2018
CANARD 2024 (Stella-base IE 0.85)
CANARD 2024 (GritLM-7B ESQ)</p>
      </sec>
      <sec id="sec-3-2">
        <title>3. General Comments</title>
        <p>The results demonstrate that the integration of Large Language Models (LLMs) enhances the
performance of the CANARD framework in the Populated Conference dataset. The usage of embeddings
increased the precision and F-measure by up to 45% over the baseline, showing their efectiveness in
capturing semantic nuances. The LES and ESQ configurations were the most efective, and applying
the instance embeddings also increased the performance of the matcher in the precision-oriented that
is instance-based evaluation.</p>
        <p>However, some weaknesses were still present for example the Instance Embeddings (IE) setting
incurred significant computational overhead due to the exhaustive comparison of embeddings, particularly
for large datasets. Also, the aggregation of subgraph embeddings used in the setting SE occasionally
introduced noise, leading to reduced performance in comparison to other configurations.</p>
        <p>Several improvements can address the identified weaknesses. The IE step can be optimized using
approximate similarity measures or clustering techniques to reduce the search space. Techniques
like weighted aggregation or Graph Neural Networks (GNNs) could improve the quality of subgraph
embeddings by better preserving semantic relationships. Also, using domain-specific fine-tuning of
LLMs on ontology-related tasks could further enhance the relevance of embeddings. Is also possible
to combine embedding-based methods with symbolic reasoning approaches to enhance the ability to
capture complex logical relationships.</p>
      </sec>
      <sec id="sec-3-3">
        <title>4. Conclusions</title>
        <p>This paper presented an enhanced ontology matching system that integrates Large Language Models
(LLMs) into the CANARD framework to deal with complex alignment tasks. The use of LLM-based
embeddings improved performance in the conducted evaluation of the Populated Conference dataset.
While the system excelled in capturing semantic relationships, challenges such as high runtime in
certain configurations and reduced performance in subgraph embeddings highlight areas for future
optimization. Proposed improvements include eficiency enhancements, fine-tuning of LLMs, and
advanced aggregation techniques.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Hertling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Paulheim</surname>
          </string-name>
          , Olala:
          <article-title>Ontology matching with large language models</article-title>
          , in: K. B.
          <string-name>
            <surname>Venable</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Garijo</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          Jalaian (Eds.),
          <source>Proceedings of the 12th Knowledge Capture Conference</source>
          <year>2023</year>
          ,
          <string-name>
            <surname>K-CAP</surname>
          </string-name>
          <year>2023</year>
          ,
          <article-title>Pensacola</article-title>
          , FL, USA, December 5-
          <issue>7</issue>
          ,
          <year>2023</year>
          , ACM,
          <year>2023</year>
          , pp.
          <fpage>131</fpage>
          -
          <lpage>139</lpage>
          . URL: https://doi.org/10. 1145/3587259.3627571. doi:
          <volume>10</volume>
          .1145/3587259.3627571.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>É.</given-names>
            <surname>Thiéblin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Haemmerlé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Trojahn</surname>
          </string-name>
          ,
          <article-title>Results of CANARD in OAEI 2020</article-title>
          , in: P. Shvaiko,
          <string-name>
            <given-names>J.</given-names>
            <surname>Euzenat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Jiménez-Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Hassanzadeh</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          Trojahn (Eds.),
          <source>Proceedings of the 15th International Workshop on Ontology Matching co-located with the 19th International Semantic Web Conference (ISWC</source>
          <year>2020</year>
          ),
          <article-title>Virtual conference (originally planned to</article-title>
          be in Athens, Greece),
          <source>November 2</source>
          ,
          <year>2020</year>
          , volume
          <volume>2788</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>176</fpage>
          -
          <lpage>180</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2788</volume>
          /oaei20_paper6.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>N.</given-names>
            <surname>Muennighof</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kiela</surname>
          </string-name>
          ,
          <article-title>Generative representational instruction tuning</article-title>
          ,
          <source>CoRR abs/2402</source>
          .09906 (
          <year>2024</year>
          ). URL: https://doi.org/10.48550/arXiv.2402. 09906. doi:
          <volume>10</volume>
          .48550/ARXIV.2402.09906. arXiv:
          <volume>2402</volume>
          .
          <fpage>09906</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R.</given-names>
            <surname>Meng</surname>
          </string-name>
          , Y. LIU,
          <string-name>
            <given-names>S. R.</given-names>
            <surname>JOTY</surname>
          </string-name>
          , C. XIONG,
          <string-name>
            <given-names>Y.</given-names>
            <surname>ZHOU</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. YAVUZ</surname>
          </string-name>
          ,
          <article-title>Sfr-embedding-mistral: Enhance text retrieval with transfer learning [salesforce ai research blog]</article-title>
          .
          <year>2024</year>
          , Available also from: https://blog. salesf orceairesearch. com/sfr-embedded-mistral (????).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Pennington</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          , Glove:
          <article-title>Global vectors for word representation</article-title>
          , in: A.
          <string-name>
            <surname>Moschitti</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Pang</surname>
          </string-name>
          , W. Daelemans (Eds.),
          <source>Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, October 25-29</source>
          ,
          <year>2014</year>
          , Doha,
          <string-name>
            <surname>Qatar,</surname>
          </string-name>
          <article-title>A meeting of SIGDAT, a Special Interest Group of the ACL</article-title>
          , ACL,
          <year>2014</year>
          , pp.
          <fpage>1532</fpage>
          -
          <lpage>1543</lpage>
          . URL: https: //doi.org/10.3115/v1/d14-
          <fpage>1162</fpage>
          . doi:
          <volume>10</volume>
          .3115/V1/D14- 1162.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>É.</given-names>
            <surname>Thiéblin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Haemmerlé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Trojahn</surname>
          </string-name>
          ,
          <article-title>Automatic evaluation of complex alignments: An instancebased approach</article-title>
          ,
          <source>Semantic Web</source>
          <volume>12</volume>
          (
          <year>2021</year>
          )
          <fpage>767</fpage>
          -
          <lpage>787</lpage>
          . URL: https://doi.org/10.3233/SW-210437. doi:
          <volume>10</volume>
          . 3233/SW- 210437.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Long</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. S.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <article-title>A comprehensive survey on graph neural networks</article-title>
          ,
          <source>IEEE Trans. Neural Networks Learn. Syst</source>
          .
          <volume>32</volume>
          (
          <year>2021</year>
          )
          <fpage>4</fpage>
          -
          <lpage>24</lpage>
          . URL: https://doi.org/10.1109/ TNNLS.
          <year>2020</year>
          .
          <volume>2978386</volume>
          . doi:
          <volume>10</volume>
          .1109/TNNLS.
          <year>2020</year>
          .
          <volume>2978386</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>