cs.AIAug 24, 2026

Toward Effective and Reliable LLM Agents via Dynamic Ontology

Authors: Xiaohui Zhang, Zequn Sun, Chengyuan Yang, Yuanning Cui, Lingbing Guo, Wei Hu

Organizations: State Key Laboratory for Novel Software Technology, Nanjing University, China · School of Computer Science, Nanjing University of Information Science and Technology, China · School of Intelligence Science and Technology, Nanjing University, China · National Institute of Healthcare Data Science, Nanjing University, China

Abstract

Large language model (LLM) agents rely heavily on knowledge encoded in model parameters or presented as unstructured context. In domain-specific tasks, this leaves important semantic connections implicit. This often results in incomplete evidence use and brittle multi-step decisions. Ontologies offer a way to externalize domain concepts and relations as machine-interpretable structures, but constructing task-usable ontologies traditionally requires substantial effort from domain experts and is difficult to scale. Automatic construction is also challenging: an ontology that appears semantically plausible may not contain the relational structures needed for actual decision making. We present OaK, an ontology-as-a-kernel framework that dynamically constructs and refines task-oriented ontologies for LLM agents. Given task requirements and training data, OaK constructs an ontology and its knowledge graph, generates task-adaptation functions for graph reasoning, and uses judge feedback to iteratively refine both. By making relevant concepts and relations explicit, the ontology grounds knowledge retrieval and multi-step decision making. We evaluate OaK on TravelPlanner, CRMArenaPro, and ToolQA. Results show that OaK improves standard LLM agents, strengthens evidence grounding, and boosts the reliability of multi-step reasoning.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Towards Automated Ontology Generation from Unstructured Text: A Multi-Agent LLM Approach

    Apr 25, 2026Abid Talukder, Maruf Ahmed Mridul, Oshani SeneviratneMulti-Agent LLM SystemsLLM Agent Orchestration

  2. Agent-OM: Leveraging LLM Agents for Ontology Matching

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

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

    Apr 22, 2026Pavel Salovskii, Iuliia GorshkovaKG ConstructionMemory-Augmented Language Models