cs.AIOct 28, 2026

Can LLMs Faithfully Solve Ontology Engineering Tasks? A Mechanistic Interpretability Study

Authors: Bohui Zhang, Albert Meroño-Peñuela, Elena Simperl

Organizations: King’s College London, United Kingdom · Technical University of Munich, Germany

Abstract

Ontological knowledge underpins large language model (LLM) performance on knowledge-intensive tasks. However, existing evaluations of LLMs' ontological understanding largely rely on behavioral correctness, leaving the underlying mechanisms unexplained. Existing mechanistic interpretability work has largely focused on instance-level factual knowledge, leaving ontological knowledge under-explored. To bridge this gap, we introduce MIOE, a causal-abstraction benchmark that evaluates interchange interventions for two ontology engineering tasks: entity typing and subsumption prediction. MIOE tests whether learned internal intervention targets can change an ontology-level target answer while preserving class-specific auxiliary information. Across Qwen3-8B and Qwen3-4B, we evaluate SAE-, DBM-, and DAS-based methods, including multi-task and multi-layer variants. Distributed subspace methods give the strongest results and generalize across prompt settings, but the induced changes remain only partially separated from auxiliary class-specific information. Multi-task objectives and contiguous layer-window interventions improve this balance, while class-level analyses reveal substantial variation across ontology classes. These results suggest that ontological predictions are mechanistically accessible in LLMs, although current methods do not yet isolate a cleanly disentangled causal mechanism for ontological knowledge.

Figures & tables

Appendix figures & tables23 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Agent-OM: Leveraging LLM Agents for Ontology Matching

    Dec 1, 2023Zhangcheng Qiang, Weiqing Wang, Kerry TaylorSemantic Mapping

  2. From Subsumption to Satisfiability: LLM-Assisted Active Learning for OWL Ontologies

    Apr 17, 2026Haoruo Zhao, Wenshuo Tang, Duncan Guthrie +3Active LearningOntology Learning

  3. OntoLearner: A Modular Python Library for Ontology Learning with Large Language Models

    Jul 2, 2026Hamed Babaei Giglou, Jennifer D'Souza, Andrei Aioanei +2Relation ExtractionOntology Learning