Manuscript Offprint

arXiv:2611.12095

From Fluent Text to Ontology-Compatible Definitions: A Quality-Control Agentic Workflow

Kun Feng, Chenchen Chu, Yan Liu, Haojie Sun, Jijun Tang, Chen Tian, Shuolin Xiao, Jianping He, Zhao Li

ARTICLE INFO

Keywords:

Large language models

Biomedical ontologies

Structured knowledge systems

Knowledge compatibility

Quality control

Ontology engineering

ABSTRACT

Biomedical ontologies are structured knowledge systems that must evolve continuously to represent newly emerging knowledge, but their manual maintenance remains time-consuming and labor-intensive. Textual definitions are especially costly because they must be readable to humans and compatible with controlled entities, relations, and logical constraints. Large language models (LLMs) offer a promising way to assist ontology engineering tasks, including definition generation. However, textual plausibility does not guarantee knowledge-system compatibility. A generated definition may be fluent and close to a reference definition, yet still fail to ground its implied entities or violate ontology-level constraints. Directly inserting such definitions into ontology libraries may therefore introduce entity-level hallucinations and logical inconsistencies. To address this problem, we propose two structured-knowledge incompatibility metrics, Entity Error Rate (EER) and Logical Inconsistency Rate (LIR), to quantify entity grounding and logical consistency for LLM-generated ontology definitions. We further develop an agentic quality-control (QC) workflow that treats definition generation as an iterative process rather than a direct decoding step: it generates definitions, extracts axioms, checks entity existence and logical consistency, and uses the resulting diagnostics to drive repair loops. Comprehensive experiments on Disease Ontology, Uberon Ontology, and Uberon-Constraint-Stress demonstrate that EER and LIR complement conventional reference-based metrics by evaluating whether generated content can be grounded and checked inside the target ontology. The workflow effectively decreases EER while maintaining strong conventional text-generation performance. LIR further exposes sparse ontology-level logical failures that are invisible to text similarity metrics, although their repair remains limited.

References (45)

  • Lims4ol: Large language models for ontology learning, in: International semantic web conference, Springer
  • Language models are few-shot learners
  • Preprint submitted to Elsevier
  • Structured prompt interrogation and recursive extraction of semantics (spires): A method for populating knowledge bases using zero-shot learning
  • The ontology lookup service, a lightweight cross-platform tool for controlled vocabulary queries
  • Mireot: The minimum information to reference an external ontology term
  • The llama 3 herd of models
  • Neon-gpt: a large language model-powered pipeline for ontology learning, in: European Semantic Web Conference, Springer
  • Hermit: an owl 2 reasoner
  • A translation approach to portable ontology specifications
  • Lora: Low-rank adaptation of large language models
  • Obo foundry in 2021: operationalizing open data principles to evaluate ontologies
  • Robot: a tool for automating ontology workflows
  • Survey of hallucination in natural language generation
  • The incredible ELK: From polynomial procedures to efficient reasoning with $\mathcal{E}\mathcal{L}$ ontologies
  • From human experts to machines: An llm supported approach to ontology and knowledge graph construction (opens arXiv in a new tab)
  • Biomistral: A collection of open-source pretrained large language models for medical domains, in: Findings of the association for computational linguistics: ac1 2024, pp. 5848–5864
  • Knowledge graphs, large language models, and hallucinations: An nlp perspective
  • Large language models for ontology engineering: a systematic literature review
  • Rouge: A package for automatic evaluation of summaries, in: Text summarization branches out, pp. 74–81
  • Self-refine: Iterative refinement with self-feedback
  • Ontology development kit: a toolkit for building, maintaining and standardizing biomedical ontologies
  • Factscore: Fine-grained atomic evaluation of factual precision in long form text generation, in: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 12076–12100
  • Uberon, an integrative multi-species anatomy ontology
  • Unifying large language models and knowledge graphs: A roadmap
  • Bleu: a method for automatic evaluation of machine translation, in: Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311–318
  • Sentence-bert: Sentence embeddings using siamese bert-networks, in: Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp. 3982–3992
  • Biolord: Learning ontological representations from definitions for biomedical concepts and their textual descriptions, in: Findings of the Association for Computational Linguistics: EMNLP 2022, pp. 1454–1465
  • Toolformer: Language models can teach themselves to use tools
  • Disease ontology: a backbone for disease semantic integration
  • Human disease ontology 2018 update: classification, content and workflow expansion
  • The human disease ontology 2022 update
  • Reflexion: Language agents with verbal reinforcement learning
  • The obo foundry: coordinated evolution of ontologies to support biomedical data integration
  • Qwen2.5: A party of foundation models
  • Ontogenix: Leveraging large language models for enhanced ontology engineering from datasets
  • OWL 2 Web Ontology Language Document Overview (Second Edition)
  • Bioportal: enhanced functionality via new web services from the national center for biomedical ontology to access and use ontologies in software applications
  • ReAct: Synergizing Reasoning and Acting in Language Models
  • Ontochat: a framework for conversational ontology engineering using language models, in: European semantic web conference, Springer
  • BERTScore: Evaluating Text Generation with BERT
  • The Low-Rank Adaptation (LoRA) and supervised fine-tuning (SFT) settings are shared by the definition generator and axiom extractor unless otherwise noted
  • The same LoRA configuration is used for definition generation and axiom extraction
  • This supports the interpretation that the QC loops mainly filter or repair knowledge-compatibility failures rather than trading away conventional text quality
  • Darker cells indicate better values: higher conventional scores and lower EER. Arrows in column headers indicate the preferred metric direction