<!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>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Péter Kardos</string-name>
          <email>kardos@inf.u-szeged.hu</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Máté Vass</string-name>
          <email>vassmate@inf.u-szeged.hu</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Miklós Krész</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Richárd Farkas</string-name>
          <email>rfarkas@inf.u-szeged.hu</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Innorenew CoE</institution>
          ,
          <addr-line>6310 Izola, Livade 6a</addr-line>
          ,
          <country country="SI">Slovenia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Primorska</institution>
          ,
          <addr-line>6000 Koper, Titov trg 4</addr-line>
          ,
          <country country="SI">Slovenia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of Szeged</institution>
          ,
          <addr-line>6720 Szeged, Dugonics tér 13</addr-line>
          ,
          <country country="HU">Hungary</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <abstract>
        <p>This paper presents the results of the DogMa Matcher in the OAEI 2025 competition. DogMa is a Large Language Model-based system for the Knowledge Graph Entity Matching (KGEM) task in the OAEI 2025 Knowledge Graph Track. The system formulates entity matching as a Retriever-LLM selection problem, where entities are represented as concise, graph-aware textual summaries. Each entity in the source Knowledge Graph is summarized using an instruction-tuned LLM that integrates both textual descriptions and local relational context. Candidate entities are then retrieved from the target graph via dense vector similarity, and a second LLM determines whether any candidate represents the same real-world entity. This combination of graph-informed summarization and selective LLM reasoning yields high precision and recall across heterogeneous Knowledge Graphs, outperforming embedding-based methods in our internal evaluations. DogMa demonstrates that context-engineered LLMs can efectively exploit semi-structured graph information for accurate and interpretable entity alignment.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Knowledge Graphs</kwd>
        <kwd>Ontology Alignment</kwd>
        <kwd>Entity Matching</kwd>
        <kwd>Large Language Models</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>in the initial candidate selection process, thereby enabling a more robust and comprehensive alignment
pipeline.</p>
    </sec>
    <sec id="sec-2">
      <title>1.2. Specific techniques used</title>
      <p>Our proposed system follows a Retriever–Augmented Generation (RAG)-like design with three main
stages:
1. Entity Representation (Dogtag) Generation: Each node in the input KGs is converted into a
compact textual description called a Dogtag. These are produced by an LLM-based summarizer
that compresses node-level textual content (labels, abstracts, types, infoboxes) and incorporates
salient information from local graph neighbors like wiki mention links or other relations.
2. Candidate Retrieval: For each entity in the smaller KG (anchor entity), we retrieve
the top- most similar entities from the larger KG using an SBert [4] embedder model
(BAAI/bge-large-en-v1.5).
3. LLM Selection: The retrieved candidates are then passed to an instruction-tuned LLM
(Llama-3.1-70B-Instruct [5]), which decides whether any candidate refers to the same
real-world entity. The LLM can also abstain if no suitable match exists.</p>
      <p>All operations are performed in inference mode only, with deterministic decoding (temperature = 0,
sampling disabled). The system enforces one-to-one alignments through post-hoc deduplication.</p>
      <p>The prompt used for the LLM-based selection step is shown below:</p>
    </sec>
    <sec id="sec-3">
      <title>1.3. Adaptations made for the evaluation</title>
      <p>For the OAEI 2025 Knowledge Graph Track, the following adaptations were applied:
• Input preprocessing: OWL files were parsed into node-level representations using RDFLib.</p>
      <p>Entity attributes, labels, and neighbor relations were serialized into a textual context for
summarization.
• Summarization model: Dogtags were generated by prompting Llama-3.1-70B-Instruct
with a zero-shot summarization template designed to include both textual and relational content.
• Retriever configuration: Top- retrieval was set to  = 10 using cosine similarity of
bge-large-en-v1.5 embeddings.
• Merging alignments: To improve recall while preserving precision, the final alignment was
obtained by merging the high-confidence Exact match pairs (entity pairs with corresponding
labels) with additional matches from the LLM-based method. A dynamic similarity threshold —
set as the median similarity score of the exact matches — filtered secondary pairs, which were
only added if they exceeded this threshold and did not violate 1:1 consistency.</p>
    </sec>
    <sec id="sec-4">
      <title>1.4. Link to the system and parameters file</title>
      <p>DogMa can be downloaded from https://github.com/kiscsonti/DogMa-Ontology-Matcher alongside the
alignment files.</p>
      <sec id="sec-4-1">
        <title>2. Results</title>
        <p>Our system was evaluated on the Knowledge Graph Track KG pairs. We present our results in Table 1.</p>
        <p>mcu-marvel
Method P R F1
ExactMatch 88.39 66.22 75.72
DogMa 52.89 45.05 48.66
DogMa Merged 82.61 78.70 80.61
memoryalpha-memorybeta stexpanded-memoryalpha</p>
        <p>P R F1 P R F1
94.49 88.23 91.25 96.59 90.89 93.66
95.46 86.90 90.98 95.22 91.74 93.44
92.93 93.64 93.28 94.83 94.94 94.89</p>
        <p>swg-starwars</p>
        <p>P R F1
93.67 62.00 74.61
93.44 80.11 86.26
92.06 85.82 88.83
swtor-starwars</p>
        <p>P R F1
94.20 88.66 91.35
90.76 86.56 88.61
93.67 93.21 93.44</p>
      </sec>
      <sec id="sec-4-2">
        <title>3. General Comments</title>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>3.1. Comments on the Results</title>
      <p>Strengths: DogMa demonstrates that high-quality textual summarization of graph nodes enables
robust retrieval and matching. The LLM Selector efectively reasons over candidate sets and leverages
implicit world knowledge to resolve dificult equivalences.</p>
      <p>Weaknesses: Our approach is computationally expensive: each node in the smaller KG triggers one
LLM call. This limits scalability for very large graphs.</p>
    </sec>
    <sec id="sec-6">
      <title>3.2. Ways to Improve the System</title>
      <p>Future improvements include:
• Reducing cost via lightweight selectors or small LLMs distilled from the current system.
• Incorporating global structural information (e.g., communities, influence paths) beyond local
neighbors.</p>
      <p>• Exploring prompt-order-invariant selection mechanisms to mitigate positional bias.</p>
    </sec>
    <sec id="sec-7">
      <title>3.3. Comments on the OAEI Procedure</title>
      <p>The OAEI framework provides a solid and reproducible evaluation setup. However, due to partial gold
standards, true precision and recall are underestimated. We recommend augmenting gold alignments
to include additional verified correspondences.</p>
      <sec id="sec-7-1">
        <title>4. Consclusions</title>
        <p>We introduced DogMa, an LLM-based system for Knowledge Graph Entity Matching in the OAEI 2025
track. DogMa formulates alignment as a Retriever–LLM selection task, where entities are represented
through graph-aware textual summaries and matched via dense retrieval followed by LLM-based
verification.</p>
        <p>Results indicate that integrating local relational context into entity representations substantially
improves matching quality, yielding high precision and recall across heterogeneous graphs. Despite
its computational overhead, DogMa shows that context-engineered LLMs can efectively reason over
semi-structured data, bridging symbolic and neural alignment methods.</p>
      </sec>
      <sec id="sec-7-2">
        <title>Acknowledgments</title>
        <p>This research has been supported by the European Union project RRF-2.3.1-21-2022-00004 within
the framework of the Artificial Intelligence National Laboratory. Miklós Krész was supported by the
Slovenian Research and Innovation Agency (ARIS) through research program P1-0404 and by the
research program Cognicom (0013103) at the University of Primorska. He is also grateful for the support
of ARIS grant J7-60122.</p>
      </sec>
      <sec id="sec-7-3">
        <title>Declaration on Generative AI</title>
        <p>During the preparation of this work, the authors used ChatGPT for rephrasing, grammar and spell
checking. After using these tools, the generated text was reviewed and edited and the authors take full
responsibility for the publication’s content.
Heidelberg, 2023, p. 561–578. URL: https://doi.org/10.1007/978-3-031-47240-4_30. doi:10.1007/
978-3-031-47240-4_30.
[4] 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
and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP),
Association for Computational Linguistics, Hong Kong, China, 2019, pp. 3982–3992. doi:10.18653/
v1/D19-1410.
[5] A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur,
A. Schelten, A. Vaughan, et al., The llama 3 herd of models, arXiv preprint arXiv:2407.21783 (2024).
doi:10.48550/arXiv.2407.21783. arXiv:2407.21783.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Mei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Yao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Bi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Cai</surname>
          </string-name>
          , J. Liu,
          <string-name>
            <given-names>M.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.-Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Xia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <article-title>A survey of context engineering for large language models</article-title>
          ,
          <year>2025</year>
          . URL: https://arxiv.org/abs/2507.13334. arXiv:
          <volume>2507</volume>
          .
          <fpage>13334</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <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>
          ,
          <source>in: Proceedings of the 12th Knowledge Capture Conference</source>
          <year>2023</year>
          , K-CAP '
          <fpage>23</fpage>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2023</year>
          , p.
          <fpage>131</fpage>
          -
          <lpage>139</lpage>
          . doi:
          <volume>10</volume>
          .1145/3587259.3627571.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F.</given-names>
            <surname>Gosselin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zouaq</surname>
          </string-name>
          ,
          <article-title>Sorbet: A siamese network for ontology embeddings using a distance-based regression loss and bert</article-title>
          ,
          <source>in: The Semantic Web - ISWC</source>
          <year>2023</year>
          : 22nd International Semantic Web Conference, Athens, Greece, November 6-
          <issue>10</issue>
          ,
          <year>2023</year>
          , Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>I</given-names>
          </string-name>
          , Springer-Verlag, Berlin,
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>