BERTMap: A BERT-Based Ontology Alignment System

Yuan He, Jiaoyan Chen, Denvar Antonyrajah, Ian Horrocks

Abstract

BERTMap is a novel ontology alignment system that leverages fine-tuned BERT models to predict semantic mappings between different ontologies. By combining deep contextual embeddings with symbolic logic-based refinement, it outperforms traditional rule-based systems on complex biomedical datasets, even in unsupervised settings.

Introduction

Ontology alignment is the process of identifying semantically related entities across different knowledge frameworks. In fields like bioinformatics and medicine, linking terms such as "muscle layer" and "muscularis propria" is essential for data integration. Historically, this task relied on lexical and structural matching, which often fail when terms are synonyms but look different. While machine learning has been proposed as a solution, previous attempts often required massive amounts of manually labeled data or relied on context-free word embeddings. BERTMap addresses these limitations by treating alignment as a natural language inference task.

System Architecture

The BERTMap pipeline consists of four main stages designed to bridge the gap between neural prediction and symbolic reasoning:

  1. Corpus Construction: The system automatically generates training data (synonyms and non-synonyms) from intra-ontology labels, cross-ontology mappings, and complementary external sources.
  2. Fine-tuning: A pre-trained Bio-Clinical BERT model is fine-tuned as a binary classifier to predict whether two labels are synonyms.
  3. Mapping Prediction: To handle the computational complexity of large ontologies, BERTMap uses a sub-word inverted index (based on BERT’s WordPiece tokenizer) to efficiently select a pool of likely candidates for the BERT classifier.
  4. Mapping Refinement: The system applies symbolic logic to clean up predictions. This includes Extension (finding matches among parents and children) and Repair (using logic-based reasoning to ensure mathematical consistency).
The BERTMap architecture, illustrating the flow from corpus construction to prediction and refinement.

Experimental Evaluation

The authors evaluated BERTMap on the OAEI Large BioMed Track, specifically the FMA-SNOMED and FMA-NCI tasks. They also introduced FMA-SNOMED+, a more challenging version using the latest, more comprehensive SNOMED labels.

Key Results and Insights

BERTMap demonstrates a superior ability to find "hidden" matches, such as identifying "third cervical" as semantically equivalent to "C3." A key finding is the importance of the hybrid approach: the "Mapping Repair" step acts as a crucial guardrail, maintaining high precision by filtering inconsistent neural predictions.

Precision, Recall, and F1-score as a function of the similarity threshold, showing peak performance at 0.999.

In unsupervised settings on FMA-SNOMED, BERTMap achieved a higher F1-score than leading systems, surpassing AML by 1.4% and LogMap by 4.2%. The system proved highly robust to hyperparameter changes, consistently reaching peak performance at a high similarity threshold (0.999), as shown in the threshold analysis. This indicates that the model is most effective when it is highly confident in its matches.

Conclusion and Future Work

BERTMap successfully integrates deep contextual embeddings with symbolic logic, outperforming state-of-the-art systems even without pre-existing manual mappings. While it slightly underperformed on the FMA-NCI task, future work will focus on scaling to industrial-scale ontologies and exploring full "ontology embeddings" to represent entire structures in vector space.

Summary updated

BibTeX
@inproceedings{he2022bertmap,
  author = {Yuan He and Jiaoyan Chen and Denvar Antonyrajah and Ian Horrocks},
  title = {{BERTMap: A BERT-Based Ontology Alignment System}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20510},
}
Figure