用知识图谱增强大模型,让系统能长期记忆并验证推理结果。
Automatic Ontology Construction Using LLMs as an External Layer of Memory, Verification, and Planning for Hybrid Intelligent Systems
- 大模型外挂结构化知识图谱,自动从文档、API等构建可验证的语义网络。
- 在汉诺塔等多步任务中,知识图谱使推理准确率显著提升。
- 适合需要可靠决策和可解释性的智能体、机器人及企业级AI应用。
本文提出一种混合智能系统架构,将大语言模型(LLM)扩展为具有外部本体记忆层的系统。不同于仅依赖参数化知识和向量检索(RAG)的方式,该方法采用RDF/OWL表示法构建并维护结构化知识图谱,实现持久、可验证且语义严谨的推理。核心贡献在于从异构数据源(包括文档、API、对话日志)自动构建本体的流水线:完成实体识别、关系抽取、归一化与三元组生成后,利用SHACL和OWL约束进行验证,并持续更新图谱。推理时,LLM结合向量检索、图谱推理与外部工具交互。在汉诺塔等规划任务上的实验表明,本体增强显著提升了多步推理性能。同时,本体层支持生成结果的形式化验证,形成生成-验证-修正闭环。该架构解决了当前基于LLM系统缺乏长期记忆、结构性理解弱、推理能力不足等关键问题,为智能体、机器人及企业级AI应用提供持久知识、可解释性与可靠决策的基础。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。