Skip to main content
QUICK REVIEW

[Paper Review] Ontology engineering with Large Language Models

Patricia Mateiu, Adrian Groza|arXiv (Cornell University)|Jul 31, 2023
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

The paper fine-tunes a GPT-3 model to translate natural language sentences into OWL Functional Syntax and integrates it as a Protégé plugin for ontology enrichment under human supervision.

ABSTRACT

We tackle the task of enriching ontologies by automatically translating natural language sentences into Description Logic. Since Large Language Models (LLMs) are the best tools for translations, we fine-tuned a GPT-3 model to convert Natural Language sentences into OWL Functional Syntax. We employ objective and concise examples to fine-tune the model regarding: instances, class subsumption, domain and range of relations, object properties relationships, disjoint classes, complements, cardinality restrictions. The resulted axioms are used to enrich an ontology, in a human supervised manner. The developed tool is publicly provided as a Protge plugin.

Motivation & Objective

  • Motivate ontology engineering challenges and the potential of LLMs to reduce costs and effort in ontology creation.
  • Propose a GPT-3 based approach to translate natural language into Description Logic / OWL Functional Syntax.
  • Develop a Protégé plugin that enriches ontologies using LLM-generated axioms under human supervision.
  • Create a dataset of NL prompts and OWL translations to train and evaluate the model.

Proposed method

  • Fine-tune a GPT-3 (davinci) model on 150 prompt–axiom pairs to map NL sentences to OWL Functional Syntax axioms.
  • Use a dataset covering classes, object properties, instances, domain/range, disjointness, complements, and cardinality.
  • Represent multiword terms with underscores and use lowercase for class/property names; preserve capitalization for individuals.
  • Append generated axioms to ontologies via the OWLAPI within a Protégé plugin.
  • Experiment with prompt engineering strategies (zero-shot, few-shot, and fine-tuning) to assess translation quality.
  • Employ Protégé integration to support ontology creation and enrichment from NL input under human supervision.

Experimental results

Research questions

  • RQ1Can LLMs reliably translate natural language to OWL Functional Syntax for ontology enrichment?
  • RQ2What prompting strategies (zero-shot, few-shot, fine-tuning) yield the most consistent and usable DL axioms?
  • RQ3How can a Protégé plugin leverage LLM-generated axioms while ensuring correct ontology integration?
  • RQ4What conventions and data formatting (naming, ordering of axioms) improve translation accuracy?
  • RQ5What is the impact of an LLM-based augmenter on the ontology engineering workflow?

Key findings

  • A fine-tuned GPT-3 model can produce OWL Functional Syntax axioms from NL sentences that can be appended to Protégé ontologies via OWLAPI.
  • The approach supports class declarations, class subsumption, individuals, object properties, and various DL constructors (domain/range, disjointness, complements, cardinality).
  • Zero-shot prompts were unreliable; few-shot prompts showed inconsistencies and extraneous axioms; fine-tuning with a dedicated dataset provided best results.
  • The Protégé plugin demonstrates a practical workflow where NL descriptions are translated to axioms and integrated into ontologies under human supervision.
  • A dataset of 150 prompt–translation pairs was created for training and a 50-pair validation set was used to tune hyperparameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.