[Paper Review] KERMIT -- A Transformer-Based Approach for Knowledge Graph Matching
KERMIT is a scalable knowledge graph matching system that combines a bi-encoder (SBERT) for efficient candidate generation and a fine-tuned cross-encoder for high-precision re-ranking. It achieves competitive F1 scores up to 0.892 on benchmark datasets, even without reference alignments, by using a high-precision matcher to generate training positives when needed.
One of the strongest signals for automated matching of knowledge graphs and ontologies are textual concept descriptions. With the rise of transformer-based language models, text comparison based on meaning (rather than lexical features) is available to researchers. However, performing pairwise comparisons of all textual descriptions of concepts in two knowledge graphs is expensive and scales quadratically (or even worse if concepts have more than one description). To overcome this problem, we follow a two-step approach: we first generate matching candidates using a pre-trained sentence transformer (so called bi-encoder). In a second step, we use fine-tuned transformer cross-encoders to generate the best candidates. We evaluate our approach on multiple datasets and show that it is feasible and produces competitive results.
Motivation & Objective
- To address the scalability and recall limitations of traditional string-based blocking methods in knowledge graph matching.
- To enable effective ontology and knowledge graph matching using contextual embeddings from pre-trained transformers.
- To reduce reliance on reference alignments by introducing a high-precision matcher for positive example generation.
- To improve matching accuracy through a two-stage pipeline combining bi-encoder candidate generation and cross-encoder re-ranking.
- To evaluate the system on diverse, large-scale datasets to demonstrate robustness and competitiveness against state-of-the-art OAEI systems.
Proposed method
- Use a pre-trained sentence transformer (SBERT) as a bi-encoder to generate initial candidate matches by computing semantic similarity between concept descriptions.
- Apply a high-precision matcher (e.g., exact string matching or rule-based logic) to generate positive training examples when no reference alignment is available.
- Sample from a reference alignment to create balanced positive and negative pairs for fine-tuning the cross-encoder.
- Fine-tune a transformer-based cross-encoder on the generated positive and negative pairs to distinguish true matches from false positives.
- Use the fine-tuned cross-encoder to re-rank the top-k candidates from the bi-encoder, selecting the highest-scoring correspondence per concept.
- Apply a logic-based alignment repair step to further improve precision by resolving inconsistencies in the final output.
Experimental results
Research questions
- RQ1Can a bi-encoder-based approach outperform traditional string-based blocking methods in knowledge graph matching while maintaining high recall?
- RQ2How effective is a high-precision matcher in generating positive training examples when no reference alignment is available?
- RQ3To what extent does fine-tuning a cross-encoder improve matching accuracy compared to zero-shot SBERT inference?
- RQ4Does the two-stage pipeline (bi-encoder + cross-encoder) achieve competitive performance on standard OAEI benchmarks?
- RQ5Can the system maintain high precision and F1 scores across diverse domains, including those with limited background knowledge?
Key findings
- KERMIT achieved an F1 score of 0.892 on the mouse-human anatomy track using the BERT cross-encoder with reference sampling, outperforming many existing OAEI systems.
- On the fma-nci dataset, the BERT cross-encoder achieved an F1 of 0.889 with reference sampling, and the ALBERT model reached 0.899 F1 with the high-precision matcher, showing strong performance without reference data.
- The unsupervised variant using the high-precision matcher outperformed reference-sampled models on fma-nci and anomed-nci, likely due to higher positive sample density.
- The ROBERTA model achieved the highest overall F1 score of 0.892 on the anatomy track when using the high-precision matcher, demonstrating strong zero-shot performance.
- On the fma-snomed track, the reference-trained ROBERTA model achieved an F1 of 0.823, approaching the performance of AML, a top 2021 system that uses domain-specific knowledge.
- The system maintained high precision (e.g., 0.97+ for ALBERT on fma-nci) even with minimal reference data, indicating strong robustness in low-resource settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.