Evaluating Language Models for Knowledge Base Completion

Blerta Veseli, Sneha Singhania, Simon Razniewski, Gerhard Weikum
3/20/2023
cs.CLcs.AI

No official code found. Best implementation: bveseli/LMsForKBC (7 stars, last commit 2025-08-10).

Abstract

Structured knowledge bases (KBs) are a foundation of many intelligent applications, yet are notoriously incomplete. Language models (LMs) have recently been proposed for unsupervised knowledge base completion (KBC), yet, despite encouraging initial results, questions regarding their suitability remain open. Existing evaluations often fall short because they only evaluate on popular subjects, or sample already existing facts from KBs. In this work, we introduce a novel, more challenging benchmark dataset, and a methodology tailored for a realistic assessment of the KBC potential of LMs. For automated assessment, we curate a dataset called WD-KNOWN, which provides an unbiased random sample of Wikidata, containing over 3.9 million facts. In a second step, we perform a human evaluation on predictions that are not yet in the KB, as only this provides real insights into the added value over existing KBs. Our key finding is that biases in dataset conception of previous benchmarks lead to a systematic overestimate of LM performance for KBC. However, our results also reveal strong areas of LMs. We could, for example, perform a significant completion of Wikidata on the relations nativeLanguage, by a factor of ~21 (from 260k to 5.8M) at 82% precision, usedLanguage, by a factor of ~2.1 (from 2.1M to 6.6M) at 82% precision, and citizenOf by a factor of ~0.3 (from 4.2M to 5.3M) at 90% precision. Moreover, we find that LMs possess surprisingly strong generalization capabilities: even on relations where most facts were not directly observed in LM training, prediction quality can be high.

View on arXivView PDF

Code Implementations(1)

bveseli/LMsForKBCCommunity100%
70Mar 16, 20231 years ago

Similar Papers

Cite this paper

@article{veseli2023evaluating,
  title  = {Evaluating Language Models for Knowledge Base Completion},
  author = {Blerta Veseli and Sneha Singhania and Simon Razniewski and Gerhard Weikum},
  year   = {2023},
  eprint = {2303.11082},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.11082v1}
}

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/2303.11082.svg)](https://codeofpaper.com/paper/2303.11082)

Discussion