# Ontology Matching with Large Language Models and Prioritized Depth-First Search

arXiv: https://arxiv.org/abs/2501.11441 · HTML: https://mlsanity.com/paper/2501.11441/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- Builds on 20 of its 50 references that are in the map.
- First posted on arXiv 20 Jan 2025.

## Builds on (most cited first, 20 of 20)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [The Llama 3 Herd of Models](https://mlsanity.com/paper/2407.21783/) (2024)
- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://mlsanity.com/paper/2005.11401/) (2020)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://mlsanity.com/paper/1908.10084/) (2019)
- [Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing](https://mlsanity.com/paper/2107.13586/) (2021)
- [Retrieval-Augmented Generation for Large Language Models: A Survey](https://mlsanity.com/paper/2312.10997/) (2023)
- [BERTMap: A BERT-based Ontology Alignment System](https://mlsanity.com/paper/2112.02682/) (2021)
- [OLaLa: Ontology Matching with Large Language Models](https://mlsanity.com/paper/2311.03837/) (2023)
- [Exploring Large Language Models for Ontology Alignment](https://mlsanity.com/paper/2309.07172/) (2023)
- [Indoor and Outdoor 3D Scene Graph Generation via Language-Enabled Spatial Ontologies](https://mlsanity.com/paper/2312.11713/) (2023)
- [Machine Learning-Friendly Biomedical Datasets for Equivalence and Subsumption Ontology Matching](https://mlsanity.com/paper/2205.03447/) (2022)
- [Using ChatGPT for Entity Matching](https://mlsanity.com/paper/2305.03423/) (2023)
- [LLMs4OM: Matching Ontologies with Large Language Models](https://mlsanity.com/paper/2404.10317/) (2024)
- [DeepOnto: A Python Package for Ontology Engineering with Deep Learning](https://mlsanity.com/paper/2307.03067/) (2023)
- [Ontology Embedding: A Survey of Methods, Applications and Resources](https://mlsanity.com/paper/2406.10964/) (2024)
- [Exploring the In-context Learning Ability of Large Language Model for Biomedical Concept Linking](https://mlsanity.com/paper/2307.01137/) (2023)
- [Conversational Ontology Alignment with ChatGPT](https://mlsanity.com/paper/2308.09217/) (2023)
- [Ontology alignment repair through modularization and confidence-based heuristics](https://mlsanity.com/paper/1307.5322/) (2013)
- [Dividing the Ontology Alignment Task with Semantic Embeddings and Logic-based Modules](https://mlsanity.com/paper/2003.05370/) (2020)
- [What makes a good concept anyway ?](https://mlsanity.com/paper/2409.06150/) (2024)

## Built on by (most cited first, 5 of 5)

- [OntoAligner: A Comprehensive Modular and Robust Python Toolkit for Ontology Alignment](https://mlsanity.com/paper/2503.21902/) (2025)
- [Large Language Models as Oracles for Ontology Alignment](https://mlsanity.com/paper/2508.08500/) (2025)
- [KROMA: Ontology Matching with Knowledge Retrieval and Large Language Models](https://mlsanity.com/paper/2507.14032/) (2025)
- [SCOPE and SCION: A Benchmark and an Auditable Reference Pipeline for Schema Induction and Fusion from Text](https://mlsanity.com/paper/2607.21610/) (2026)
- [Can LLMs Reliably Annotate Bioassay Metadata to Improve Data Readiness?](https://mlsanity.com/paper/2610.01616/) (2026)

## Abstract (arXiv)

Ontology matching (OM) plays a key role in enabling data interoperability and knowledge sharing, but it remains challenging due to the need for large training datasets and limited vocabulary processing in machine learning approaches. Recently, methods based on Large Language Model (LLMs) have shown great promise in OM, particularly through the use of a retrieve-then-prompt pipeline. In this approach, relevant target entities are first retrieved and then used to prompt the LLM to predict the final matches. Despite their potential, these systems still present limited performance and high computational overhead. To address these issues, we introduce MILA, a novel approach that embeds a retrieve-identify-prompt pipeline within a prioritized depth-first search (PDFS) strategy. This approach efficiently identifies a large number of semantic correspondences with high accuracy, limiting LLM requests to only the most borderline cases. We evaluated MILA using the biomedical challenge proposed in the 2023 and 2024 editions of the Ontology Alignment Evaluation Initiative. Our method achieved the highest F-Measure in four of the five unsupervised tasks, outperforming state-of-the-art OM systems by up to 17%. It also performed better than or comparable to the leading supervised OM systems. MILA further exhibited task-agnostic performance, remaining stable across all tasks and settings, while significantly reducing LLM requests. These findings highlight that high-performance LLM-based OM can be achieved through a combination of programmed (PDFS), learned (embedding vectors), and prompting-based heuristics, without the need of domain-specific heuristics or fine-tuning.
