Papers › Do PLMs Know and Understand Ontological Knowledge?

Do PLMs Know and Understand Ontological Knowledge?

12 Sep 2023arXiv:2309.05936archive 2025-07-28

Weiqi Wu, Chengyue Jiang, Yong Jiang, Pengjun Xie, Kewei Tu

Ontological knowledge, which comprises classes and properties and their relationships, is integral to world knowledge. It is significant to explore whether Pretrained Language Models (PLMs) know and understand such knowledge. However, existing PLM-probing studies focus mainly on factual knowledge, lacking a systematic probing of ontological knowledge. In this paper, we focus on probing whether PLMs store ontological knowledge and have a semantic understanding of the knowledge rather than rote memorization of the surface form. To probe whether PLMs know ontological knowledge, we investigate how well PLMs memorize: (1) types of entities; (2) hierarchical relationships among classes and properties, e.g., Person is a subclass of Animal and Member of Sports Team is a subproperty of Member of ; (3) domain and range constraints of properties, e.g., the subject of Member of Sports Team should be a Person and the object should be a Sports Team. To further probe whether PLMs truly understand ontological knowledge beyond memorization, we comprehensively study whether they can reliably perform logical reasoning with given knowledge according to ontological entailment rules. Our probing results show that PLMs can memorize certain ontological knowledge and utilize implicit knowledge in reasoning. However, both the memorizing and reasoning performances are less than perfect, indicating incomplete knowledge and understanding.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2309.05936")

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 8 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

vickywu1022/ontoprobe-plms officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 8 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran
4unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from vickywu1022/ontoprobe-plms. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

MRR vickywu1022/ontoprobe-plms/metric.py official repository ran no licence file found · pointer only · fb31cb7a3029c5a7 · report
MRR_avg vickywu1022/ontoprobe-plms/metric.py official repository ran no licence file found · pointer only · a298647943f0dd08 · report
domain_manual_textb vickywu1022/ontoprobe-plms/test-gpt/probing_gpt.py official repository ran no licence file found · pointer only · 8ac78d7341d5459e · report
get_batch_curr_num_token vickywu1022/ontoprobe-plms/probing.py official repository ran no licence file found · pointer only · 67d3518e92b4271a · report
group_logits vickywu1022/ontoprobe-plms/probing.py official repository ran no licence file found · pointer only · 2dc0e6274c60ffb3 · report
range_manual_textb vickywu1022/ontoprobe-plms/test-gpt/probing_gpt.py official repository ran no licence file found · pointer only · e23b43db014c438f · report
split_by_Acc vickywu1022/ontoprobe-plms/get_memorized.py official repository ran no licence file found · pointer only · 211adb57bd1a1067 · report
split_by_MRR vickywu1022/ontoprobe-plms/get_memorized.py official repository ran no licence file found · pointer only · de6cfddda3efcae3 · report
evaluate_batch vickywu1022/ontoprobe-plms/metric.py official repository unverified no licence file found · pointer only · 5249b5134477a0e2 · report
load_candidates vickywu1022/ontoprobe-plms/data.py official repository unverified no licence file found · pointer only · 781f228a2f7d1135 · report
load_soft_emb_with_conj vickywu1022/ontoprobe-plms/utils.py official repository unverified no licence file found · pointer only · a2f9f1bb06efa8bb · report
load_soft_emb_without_conj vickywu1022/ontoprobe-plms/utils.py official repository unverified no licence file found · pointer only · 0225cb3676246cd4 · report

Tasks

Logical ReasoningMemorizationWorld Knowledge

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections