[Paper Review] LLMs4OM: Matching Ontologies with Large Language Models
LLMs4OM proposes a retrieval-augmented generation framework that leverages zero-shot prompting with concept, parent, and child representations to improve ontology matching using large language models (LLMs). It outperforms traditional OM systems on 20 diverse OAEI datasets, especially in complex scenarios, demonstrating that LLMs can surpass state-of-the-art methods when guided by structured context and efficient retrieval.
Ontology Matching (OM), is a critical task in knowledge integration, where aligning heterogeneous ontologies facilitates data interoperability and knowledge sharing. Traditional OM systems often rely on expert knowledge or predictive models, with limited exploration of the potential of Large Language Models (LLMs). We present the LLMs4OM framework, a novel approach to evaluate the effectiveness of LLMs in OM tasks. This framework utilizes two modules for retrieval and matching, respectively, enhanced by zero-shot prompting across three ontology representations: concept, concept-parent, and concept-children. Through comprehensive evaluations using 20 OM datasets from various domains, we demonstrate that LLMs, under the LLMs4OM framework, can match and even surpass the performance of traditional OM systems, particularly in complex matching scenarios. Our results highlight the potential of LLMs to significantly contribute to the field of OM.
Motivation & Objective
- To evaluate the effectiveness of large language models (LLMs) in ontology matching (OM), a critical task for knowledge integration and data interoperability.
- To address limitations of direct LLM prompting—such as context length constraints and hallucination—by introducing a two-module framework: retrieval and matching.
- To investigate how different ontology representations (concept, concept-parent, concept-children) affect LLM performance in OM.
- To benchmark state-of-the-art LLMs and retrieval models across multiple OM tracks and domains to identify optimal configurations.
Proposed method
- The LLMs4OM framework employs a two-stage architecture: first, a retrieval module selects candidate target concepts using four retrieval methods—TF-IDF, sentence-BERT, SPECTER2, and OpenAI text-embedding-ada.
- The second stage uses LLMs to assess match confidence between source concepts and retrieved candidates via zero-shot prompting with three concept representations: C (concept), CP (concept-parent), and CC (concept-children).
- Retrieval is optimized using top-k results (k=5, 10, 20), balancing recall and inference efficiency.
- The framework integrates Retrieval-Augmented Generation (RAG) to reduce O(n²) complexity to O(kn), improving scalability and reducing hallucination risks.
- Seven SOTA LLMs—LLaMA-2, GPT-3.5, Mistral, Vicuna, MPT, Falcon, and Mamba—are evaluated across 20 OAEI datasets.
- Performance is measured using F1-score, with detailed ablation on representation types and retrieval model effectiveness.
Experimental results
Research questions
- RQ1RQ1: How do the three concept representations—concept (C), concept-parent (CP), and concept-children (CC)—impact matching efficacy in LLM-based OM?
- RQ2RQ2.1: Which retrieval model performs best across different OM tracks in the RAG module?
- RQ3RQ2.2: How does recall vary across retrieval techniques (TF-IDF, sentence-BERT, SPECTER2, text-embedding-ada) at different top-k settings?
- RQ4RQ3.1: Which LLM achieves the highest performance per OM track?
- RQ5RQ3.2: How does LLM performance vary across the three concept representations across different OM tracks?
Key findings
- The text-embedding-ada retriever achieved the highest recall at 90.88% for top-k=5, outperforming sentence-BERT (86.09%), SPECTER2 (82.10%), and TF-IDF (75.15%).
- GPT-3.5 achieved the highest F1-score across multiple tracks: 99.63% on TAXR-NCBI(Fungi), 91.90% on TAXR-NCBI(Protozoa), and 88.94% on TAXR-NCBI(Plantae), surpassing traditional systems like OLaLa and LogMap.
- LLaMA-2-7B achieved 94.30% F1 on MI-EMMO, outperforming Matcha (91.8%) and AML (75.5%) on DOID-ORDO.
- The CP representation consistently improved LLM performance in Biodiversity and Phenotype tracks, with F1 increases up to 89.83% on DOID-ORDO and 85.01% on HP-MP.
- The Bio-ML track showed low performance across all LLMs, with F1 scores around 53% (text-embedding-ada) and 44% (sentence-BERT), even with domain-specific LLMs like BioMistral-7B, indicating a need for specialized approaches.
- Despite strong retrieval recall, LLMs struggled with Bio-ML tasks, suggesting that retrieval quality alone does not guarantee high matching accuracy in highly specialized domains.
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.