Automatic Ontology Construction Using LLMs as an External Layer of Memory, Verification, and Planning for Hybrid Intelligent Systems

📅 2026-04-22
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the limitations of large language models (LLMs) in long-term memory retention, structured understanding, and multi-step reasoning by proposing a hybrid intelligent system architecture. The approach employs an automated pipeline to construct RDF/OWL ontologies from heterogeneous data as an external memory layer, integrating vector-based retrieval with graph-based reasoning to establish an LLM-driven generate–verify–refine loop. By combining named entity recognition, relation extraction, triple generation, and SHACL/OWL constraint validation, the system substantially enhances the explainability and reliability of its inferences. Evaluated on multi-step planning tasks such as the Tower of Hanoi, the proposed framework outperforms baseline LLMs and enables formal verification and systematic error correction of its outputs.

Technology Category

Knowledge Representation and Reasoning: OntologiesMachine Learning: Large Multimodal Models (LMMs)Cognitive Modeling & Cognitive Systems: Conceptual Inference and Reasoning

Application Category

Semantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsGraph Algorithms and Modeling for the Web: Foundation models and LLMs for Web-related graphsSearch and Retrieval-Augmented AI: Large language models for search
📝 Abstract
This paper presents a hybrid architecture for intelligent systems in which large language models (LLMs) are extended with an external ontological memory layer. Instead of relying solely on parametric knowledge and vector-based retrieval (RAG), the proposed approach constructs and maintains a structured knowledge graph using RDF/OWL representations, enabling persistent, verifiable, and semantically grounded reasoning. The core contribution is an automated pipeline for ontology construction from heterogeneous data sources, including documents, APIs, and dialogue logs. The system performs entity recognition, relation extraction, normalization, and triple generation, followed by validation using SHACL and OWL constraints, and continuous graph updates. During inference, LLMs operate over a combined context that integrates vector-based retrieval with graph-based reasoning and external tool interaction. Experimental observations on planning tasks, including the Tower of Hanoi benchmark, indicate that ontology augmentation improves performance in multi-step reasoning scenarios compared to baseline LLM systems. In addition, the ontology layer enables formal validation of generated outputs, transforming the system into a generation-verification-correction pipeline. The proposed architecture addresses key limitations of current LLM-based systems, including lack of long-term memory, weak structural understanding, and limited reasoning capabilities. It provides a foundation for building agent-based systems, robotics applications, and enterprise AI solutions that require persistent knowledge, explainability, and reliable decision-making.
Problem

Research questions and friction points this paper is trying to address.

long-term memory
structured understanding
reasoning capabilities
knowledge persistence
explainability
Innovation

Methods, ideas, or system contributions that make the work stand out.

ontology construction
large language models
knowledge graph
hybrid intelligent systems
semantic reasoning
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
P
Pavel Salovskii
Partenit.io
I
Iuliia Gorshkova
Partenit.io