Language Model Analysis for Ontology Subsumption Inference

Yuan He, Jiaoyan Chen, Ernesto Jiménez-Ruiz, Hang Dong, Ian Horrocks
2/14/2023
cs.CLcs.AIcs.LO

No official code found. Best implementation: KRR-Oxford/DeepOnto (300 stars, Apache-2.0, last commit 2026-04-29).

Abstract

Investigating whether pre-trained language models (LMs) can function as knowledge bases (KBs) has raised wide research interests recently. However, existing works focus on simple, triple-based, relational KBs, but omit more sophisticated, logic-based, conceptualised KBs such as OWL ontologies. To investigate an LM's knowledge of ontologies, we propose OntoLAMA, a set of inference-based probing tasks and datasets from ontology subsumption axioms involving both atomic and complex concepts. We conduct extensive experiments on ontologies of different domains and scales, and our results demonstrate that LMs encode relatively less background knowledge of Subsumption Inference (SI) than traditional Natural Language Inference (NLI) but can improve on SI significantly when a small number of samples are given. We will open-source our code and datasets.

View on arXivView PDF

Code Implementations(1)

KRR-Oxford/DeepOntoCommunity100%
Apache-2.0

A package for ontology engineering with deep learning and language models.

30028Java, ScalaNov 21, 20215 months agoApache-2.0
deep-learninglanguage-modelontologiesontology-engineeringowlapi

Similar Papers

Cite this paper

@article{he2023language,
  title  = {Language Model Analysis for Ontology Subsumption Inference},
  author = {Yuan He and Jiaoyan Chen and Ernesto Jiménez-Ruiz and Hang Dong and Ian Horrocks},
  year   = {2023},
  eprint = {2302.06761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06761v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.06761.svg)](https://codeofpaper.com/paper/2302.06761)

Discussion