OntoURL: A Benchmark for Evaluating Large Language Models on Symbolic Ontological Understanding, Reasoning and Learning

Xiao Zhang, Huiyuan Lai, Qianru Meng, Johan BosarXiv 2025

TL;DR

This paper introduces ONTOURL, the first comprehensive benchmark designed to systematically evaluate how well Large Language Models (LLMs) handle structured symbolic knowledge in the form of ontologies. By testing 20 open-source models across 15 tasks, the authors reveal that while LLMs excel at memorizing and understanding explicit ontological facts, they struggle significantly with complex logical reasoning and structure generation.

What Problem Does This Paper Address?

Large Language Models are powerful statistical pattern matchers, but can they truly comprehend and manipulate formal, logic-based symbolic knowledge? Ontologies—which define concepts, hierarchies, and relationships in specialized domains like medicine, finance, or law—traditionally rely on strict description logic to maintain consistency and support automated reasoning.

There is an ongoing debate about whether LLMs can replicate this symbolic reasoning or if they are simply mimicking context. Existing evaluation datasets are fragmented, usually focusing on just one or two isolated aspects of an ontology. This paper addresses the lack of a unified, systematic framework to evaluate LLMs across the full spectrum of ontological capabilities: understanding explicit data, reasoning over implicit logic, and learning/generating new structures.

Methods

The authors propose a three-level taxonomy inspired by Bloom's Taxonomy of educational objectives: Ontological Understanding (the base), Ontological Reasoning (the middle), and Ontological Learning (the top).

Figure 2: The taxonomy of LLM ontological capa- bilities, inspired by Bloom’s taxonomy. Each ca- pability is positioned within a triangular structure and briefly explained on the right.

To build a benchmark around this taxonomy, they developed a rigorous four-step pipeline:

  1. Extraction: Pulling classes, instances, and properties from raw ontology files using rule-based scripts and an ontology reasoner (HermiT) to uncover implicit relations.
  2. Question Formulation: Converting these elements into natural language questions (multiple-choice, true/false, or open-ended generation).
  3. Distractor Generation: Creating challenging multiple-choice options by selecting semantically plausible but structurally incorrect "distractors" (such as taxonomic siblings, ancestors, or descendants).
  4. Quality Control: Applying balancing strategies based on concept depth to avoid bias, and conducting a thorough human expert verification process to ensure syntactic and semantic correctness.
Figure 3: The pipeline of ONTOURL construction: (1) elements are extracted from ontologies using rule- based extraction (understanding and learning tasks) and an ontology reasoner HermiT (reasoning tasks); (2) the extracted elements are transformed into natural language questions; (3) distractors are added to form multiple-choice questions; and (4) the generated data is filtered and evaluated.

Datasets

The newly introduced benchmark, ONTOURL, consists of 57,303 questions derived from 40 expert-created, open-source ontologies. It spans 8 diverse domains:

  • Sciences (e.g., Gene Ontology, Cell Ontology)
  • Health & Medicine
  • Business & Finance
  • Earth & Environment
  • Arts, Media & Entertainment
  • Food & Agriculture
  • Human & Society
  • Legal

The dataset is divided into 15 distinct tasks mapping directly to the three taxonomy dimensions.

Key Insights and Ideas

  • The "U-Shaped" Depth Curve: Model accuracy follows a distinct U-shaped pattern relative to a concept's depth in the ontology hierarchy. LLMs perform well at shallow (highly abstract) levels and deep (highly specific leaf-node) levels, but their performance drops sharply at intermediate depths. The authors hypothesize that mid-level concepts are too specific to benefit from broad generalization, yet too abstract to be directly memorized from pretraining data.
  • The Chain-of-Thought (CoT) Paradox: Implementing CoT prompting actually decreased LLM performance on Understanding and Reasoning tasks, while significantly improving Learning (generation) tasks. This suggests that ontology-specific inference patterns differ fundamentally from the commonsense or mathematical reasoning prevalent in pretraining corpora, causing CoT to misguide the model during strict logic tasks. However, CoT's structured generation process heavily aids models in organizing knowledge during content creation.
  • LLMs vs. Humans: In a human evaluation against three PhD-level experts, LLMs substantially outperformed humans in explicit Understanding (+22.9 percentage points) and Reasoning (+10.6 pp) tasks, largely because humans struggle to recall massive, specialized domain vocabularies without tools. However, humans completely crushed LLMs in Learning/Generation tasks (a -31.6 pp gap for LLMs), highlighting the models' severe limitations in creatively synthesizing new symbolic structures.

Key Results

  • Top Performers: The largest models, Qwen2.5-72B and LLaMA3.3-70B, consistently achieved the best results. Qwen2.5-72B led the pack, scoring 92.6% on instance classification and 93.4% on constraint reasoning.
  • Understanding vs. Reasoning: Models performed reliably on explicit hierarchical understanding (80–94% accuracy) but saw a substantial decline when multi-relationship reasoning was required (dropping to 60–70%).
  • Logic Failure: Advanced logical tasks, such as SWRL-based reasoning and Description Logic reasoning (interpreting formal operators like $\exists, \forall, \sqcap$), proved incredibly difficult, with scores hovering low between 60% and 75%.
  • Generation Failure: For structural learning tasks (like building class hierarchies or property relations), models frequently failed to output syntactically valid triples in zero-shot settings, making current LLMs unreliable for automated ontology deployment.

Limitations and Future Work

The authors acknowledge that ONTOURL currently features restricted domain coverage, incomplete task types, and an English-only scope.

As a long-term project, future work will focus on expanding the benchmark to include more diverse domains and complex task types. Additionally, the results underscore a critical need for the AI research community to develop better prompting, fine-tuning, or hybrid neuro-symbolic architectures capable of bridging the gap between statistical language generation and precise symbolic logic.

Summary updated

BibTeX
@misc{zhang2025ontourl,
  author = {Xiao Zhang and Huiyuan Lai and Qianru Meng and Johan Bos},
  title = {{OntoURL: A Benchmark for Evaluating Large Language Models on Symbolic Ontological Understanding, Reasoning and Learning}},
  year = {2025},
  eprint = {2505.11031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11031},
}
Figure