Skip to main content
QUICK REVIEW

[Paper Review] Towards Ontology Construction with Language Models

Maurice Funk, Simon Hosemann|arXiv (Cornell University)|Sep 18, 2023
Semantic Web and OntologiesComputer Science6 citations
TL;DR

This paper proposes a novel, fully automatic method for constructing concept hierarchies using large language models (LLMs), specifically GPT-3.5, by iteratively querying the LLM to generate subconcepts and verifying outputs through prompt-based validation. The approach produces reasonable, publicly available ontologies across diverse domains, demonstrating LLMs' strong potential for accelerating ontology construction while highlighting challenges like hallucinations and cultural bias.

ABSTRACT

We present a method for automatically constructing a concept hierarchy for a given domain by querying a large language model. We apply this method to various domains using OpenAI's GPT 3.5. Our experiments indicate that LLMs can be of considerable help for constructing concept hierarchies.

Motivation & Objective

  • To address the high cost and complexity of manual ontology construction by leveraging LLMs as domain experts.
  • To develop a method that generates concept hierarchies (is-a relations) without requiring a predefined schema or prior ontology structure.
  • To evaluate the feasibility and quality of LLM-generated ontologies through manual inspection across multiple domains.
  • To explore the role of prompt engineering and verification mechanisms in reducing hallucinations and improving reliability.
  • To lay the foundation for future integration of human experts in an interactive LLM-augmented ontology construction pipeline.

Proposed method

  • The method starts with a seed concept (e.g., 'Animals') and recursively queries the LLM to generate relevant subconcepts.
  • A traversal algorithm is used to manage the hierarchy as a directed acyclic graph (DAG), allowing multiple superconcepts per concept.
  • Each generated concept is accompanied by a textual description provided by the LLM for human inspection and validation.
  • Verification is performed via additional LLM queries to check consistency and correctness of concept relationships.
  • Prompt engineering is used to guide the LLM toward structured, domain-relevant outputs, with minimal few-shot examples.
  • The approach is fully automatic and does not require manual post-processing, with resulting ontologies made publicly available.

Experimental results

Research questions

  • RQ1Can LLMs effectively generate meaningful and coherent concept hierarchies without a predefined schema?
  • RQ2How accurate and consistent are the subconcepts and is-a relationships generated by LLMs across different domains?
  • RQ3To what extent can prompt engineering and verification reduce hallucinations and errors in LLM-generated ontologies?
  • RQ4How do cultural and linguistic biases in the LLM's training data affect the structure and content of the constructed ontologies?
  • RQ5What is the potential of LLMs to support or augment human expertise in ontology engineering?

Key findings

  • The LLM-generated ontologies are judged as reasonable and useful through manual inspection across domains such as Animals, Drinks, Music, and Plants.
  • The method successfully produces a rich set of domain-relevant concepts and their hierarchical relationships with minimal human intervention.
  • Hallucinations and errors occur but are significantly reduced through verification queries and careful prompt engineering.
  • The constructed ontologies exhibit cultural biases, such as treating 'chai' as synonymous with 'spiced tea', reflecting the training data's Western and U.S.-centric perspective.
  • The approach demonstrates that LLMs can serve as effective, scalable, and affordable tools for initial ontology construction, comparable to how LLMs assist in text generation.
  • The method is extensible to more expressive ontologies, including those with properties, disjointness constraints, and formal languages like OWL or RDF Schema.

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.