Pattern-based prompting for accurate extraction of ontology assertional (A-box) axioms using LLMs for ontology population

Research output: Contribution to journalArticlepeer-review

1 Downloads (Pure)

Abstract

Existing research has demonstrated that advanced Large Language Models (LLMs), such as GPT-4, Falcon-40B, and LLaMA2, can support Ontology Population (OP) by extracting and integrating assertional axioms from text. However, their tendency to hallucinate undermines trust in high-precision applications, causing ontology developers to hesitate before adopting LLM-based methods. In this study, we first surveyed existing OP experiments to select the most accurate model, identifying GPT as the leading candidate. We then analysed where and why hallucinations occurred during OP and observed that they predominantly arose when the model lacked clear guidance on the ontology's structure. To mitigate this, we devised a prompting strategy grounded in ontology design patterns, explicitly conveying schema constraints to the LLM. Experimental results on a real-world use case demonstrate that our pattern-based prompts significantly reduce hallucinations and yield more accurate axiom extraction compared to conventional prompts. These findings indicate that leveraging ontology design patterns in LLM prompts substantially enhances the reliability of automated OP workflows.

Original languageEnglish
Pages (from-to)1438-1447
Number of pages10
JournalProcedia Computer Science
Volume270
DOIs
Publication statusPublished - 2025
Event29th International Conference on Knowledge-Based and Intelligent Information and Engineering Systems, KES 2025 - Osaka, Japan
Duration: 10 Sept 202512 Sept 2025

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 2 - Zero Hunger
    SDG 2 Zero Hunger

Keywords

  • Agriculture
  • Design Patterns
  • Few-shot Prompting Strategy
  • GPT
  • Knowledge Base
  • Ontology Population

Fingerprint

Dive into the research topics of 'Pattern-based prompting for accurate extraction of ontology assertional (A-box) axioms using LLMs for ontology population'. Together they form a unique fingerprint.

Cite this