Skip to main content
QUICK REVIEW

[Paper Review] LLMs4OL: Large Language Models for Ontology Learning

Hamed Babaei Giglou, Jennifer D’Souza|arXiv (Cornell University)|Jul 31, 2023
Natural Language Processing TechniquesComputer Science10 citations
TL;DR

The paper proposes LLMs4OL, evaluating multiple LLM families on three ontology learning tasks across diverse domains; foundational LLMs struggle with complex OL tasks, but fine-tuning can make them helpful assistants for ontology construction.

ABSTRACT

We propose the LLMs4OL approach, which utilizes Large Language Models (LLMs) for Ontology Learning (OL). LLMs have shown significant advancements in natural language processing, demonstrating their ability to capture complex language patterns in different knowledge domains. Our LLMs4OL paradigm investigates the following hypothesis: extit{Can LLMs effectively apply their language pattern capturing capability to OL, which involves automatically extracting and structuring knowledge from natural language text?} To test this hypothesis, we conduct a comprehensive evaluation using the zero-shot prompting method. We evaluate nine different LLM model families for three main OL tasks: term typing, taxonomy discovery, and extraction of non-taxonomic relations. Additionally, the evaluations encompass diverse genres of ontological knowledge, including lexicosemantic knowledge in WordNet, geographical knowledge in GeoNames, and medical knowledge in UMLS.

Motivation & Objective

  • Motivate and define the LLMs4OL paradigm for automatic ontology learning from text.
  • Assess whether nine model families (and a biomedical model) can perform OL tasks in zero-shot and fine-tuned settings.
  • Empirically compare models across diverse ontological domains (lexicosemantic, geographical, biomedical, and schema.org).
  • Investigate whether LLMs require fine-tuning to be effective assistants in ontology construction.

Proposed method

  • Define OL primitives: lexical entries L, conceptual types T, taxonomy H_T, non-taxonomic relations R, and axioms A.
  • Formulate three OL tasks as prompts: Term Typing (A), Taxonomy Discovery (B), Non-Taxonomic Relation Extraction (C).
  • Develop eight cloze prompt templates and corresponding eight prefix prompts per task to induce zero-shot outputs.
  • Evaluate ten to eleven LLMs (across encoder, decoder, and encoder-decoder families) on multiple ontological sources (WordNet, GeoNames, UMLS subontologies, schema.org).
  • Use MAP@1 for Task A and F1 for Tasks B and C as evaluation metrics; compare zero-shot and fine-tuned performances.
  • Provide a finetuning workflow illustration and release code, prompts, and datasets publicly.
Figure 1: The LLMs4OL task paradigm is an end-to-end framework for ontology learning in various knowledge domains, i.e. lexicosemantics (WordNet), geography (GeoNames), biomedicine (NCI, MEDICIN, SNOMEDCT), and web content types (schema.org). The three OL tasks empirically validated in this work are
Figure 1: The LLMs4OL task paradigm is an end-to-end framework for ontology learning in various knowledge domains, i.e. lexicosemantics (WordNet), geography (GeoNames), biomedicine (NCI, MEDICIN, SNOMEDCT), and web content types (schema.org). The three OL tasks empirically validated in this work are

Experimental results

Research questions

  • RQ1RQ1: How effective are LLMs for automated term typing to construct an ontology?
  • RQ2RQ2: How effective are LLMs at recognizing a type taxonomy (is-a hierarchy) between types?
  • RQ3RQ3: How effective are LLMs at discovering non-taxonomic relations between types?

Key findings

  • Zero-shot results show highly varying performance across domains and models; WordNet typing reaches up to 91.7% MAP@1 with GPT-3.5, but GeoNames typing peaks around 39.4% (GPT-4) and other domains often fall lower.
  • For taxonomy discovery, GPT-4 achieves up to 78.1% on UMLS, with Flan-T5-XL reaching 64.3% among open-source models; schema.org also shows notable results (up to ~74.4% with GPT-3 family).
  • Non-taxonomic relation extraction on UMLS reaches up to 49.5% with Flan-T5-XL in zero-shot settings across 7,537 type pairs.
  • Across tasks, larger parameter counts generally improve performance (e.g., GPT-4, GPT-3.5, Flan-T5-XL, BLOOM-3b tend to outperform smaller variants).
  • Foundational LLMs are not yet sufficient for high-quality OL requiring significant reasoning and domain expertise; finetuning can make them useful assistants to alleviate knowledge acquisition bottlenecks in ontology construction.
Figure 2: An illustration of the LLM finetuning workflow on tasks for ontology learning.
Figure 2: An illustration of the LLM finetuning workflow on tasks for ontology learning.

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.