Large Language Model for OWL Proofs

Hui Yang, Jiaoyan Chen, Uli Sattler

TL;DR

This paper introduces an automated framework to evaluate how well Large Language Models (LLMs) can construct and explain logical proofs using OWL ontologies. By breaking down the proving process into extraction, simplification, and explanation steps, the authors reveal that while top models like GPT-4o-mini excel at simple transitive chains, their performance degrades significantly when faced with high logical complexity, noise, or incomplete premises.

What Problem Does This Paper Address?

While LLMs have shown impressive capabilities in basic deductive reasoning (like answering multiple-choice logic questions), their ability to generate proofs—faithful, human-readable explanations of why a conclusion follows from a set of premises—remains largely underexplored.

The authors tackle this challenge within the context of Web Ontology Language (OWL) ontologies, specifically focusing on the Description Logic fragment ($\mathcal{EL}$) widely used in biomedical and financial domains. In real-world knowledge engineering, systems must not only deduce new facts but also justify them. This paper investigates whether LLMs can reliably navigate complex ontological structures to extract relevant premises, simplify compound logical expressions, and generate valid step-by-step proofs, even when the input data is cluttered with irrelevant noise or missing crucial information.

LLM Proof Construction Overview

Methods

The authors formalize proof generation into three sequential tasks of increasing difficulty:

  1. Extraction: Identifying the minimal set of axioms (justifications) required to prove a target conclusion from a larger pool.
  2. Simplification: Stripping away the logically irrelevant parts of complex axioms to retain only what is strictly necessary for the proof.
  3. Explanation: Producing a logically valid, step-by-step derivation segmented by crucial intermediate results.

Additionally, they introduce a Logic Completeness task to evaluate if an LLM can detect when the provided premises are insufficient to support the conclusion.

To understand what drives LLM performance, the authors experiment with different prompting strategies:

  • Inference Rules vs. No Rules: Providing explicit logical rules to guide the model.
  • Examples vs. No Examples: Using in-context few-shot examples to demonstrate the expected output format.
  • Formal Logic vs. Natural Language: Comparing raw symbolic logic syntax against natural language verbalizations to see if the representation format impacts reasoning.

Datasets

The evaluation framework leverages three prominent, real-world ontologies:

  • SNOMED CT: A massive, logically complex clinical healthcare terminology.
  • Foodon: A comprehensive food ontology.
  • GO-Plus: The Gene Ontology extended dataset.

The authors sampled target conclusions across varying "atomic distances" (the length of the shortest chain of direct concept relationships) and justification sizes to ensure a balanced mix of straightforward and highly intricate reasoning patterns.

Key Insights and Ideas

  • Logic, Not Language, is the Bottleneck: Surprisingly, translating formal logic into natural language descriptions resulted in less than an 8% drop in performance. This indicates that the primary barrier for LLMs is the underlying logical complexity of the task, not the syntax or representation format.
  • The "Hard Case" Blindspot: LLMs struggle severely with complex derivation patterns that go beyond simple transitive chains (e.g., $A \sqsubseteq B \sqsubseteq C$). When a conclusion has a low atomic distance but requires a large justification size involving existential quantifiers ($\exists r.C$), even the best models experience a massive drop in accuracy.
  • Prompting Sensitivities Vary by Model Scale: For open-source models like Qwen3-32B, providing in-context examples yields a massive boost—up to a 16-fold increase in derivation accuracy. Meanwhile, explicit inference rules heavily benefit Qwen but slightly hinder GPT-4o-mini, suggesting that commercial models may have already internalized these logical rules during pre-training.
  • Fragility to Imperfect Data: Real-world data is rarely clean. Introducing irrelevant "noisy" axioms or removing necessary premises causes a sharp decline in an LLM's ability to successfully map out a proof.

Key Results

  • Top Performers: GPT-4o-mini and Qwen3-32B emerged as the strongest models, consistently achieving over 95% Jaccard similarity on the axiom extraction task under standard, clean settings.
  • The Complexity Crash: On SNOMED CT's designated "hard cases," GPT-4o-mini's overall derivation accuracy plummeted from 80.30% to 32.39%, and its ability to output the correct format dropped by nearly half.
  • Impact of Noise: When the ratio of useful axioms to noisy axioms was increased from 1:1 to 1:20, GPT-4o-mini's overall derivation accuracy dropped by 53%.
  • Incompleteness Detection: Models proved highly effective at recognizing when a premise set was incomplete, maintaining an F1-score of around 0.93. However, as more premises were removed, their ability to identify the remaining relevant axioms dropped by up to 38%.

Limitations and Future Work

The primary limitation of this study is its focus on the $\mathcal{EL}$ fragment of Description Logic. While highly practical, $\mathcal{EL}$ lacks several complex logical constructors like negation ($\neg$) or universal restrictions ($\forall r.C$).

The authors note that future work should extend this automated evaluation framework to more expressive fragments, such as the full OWL 2 DL specification. They also plan to explore broader sampling strategies and apply LLMs to more advanced ontology engineering tasks, such as the automated extraction of deductive modules.

Summary updated

BibTeX
@inproceedings{yang2026large,
  author = {Hui Yang and Jiaoyan Chen and Uli Sattler},
  title = {{Large Language Model for OWL Proofs}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792395},
}
Figure