Skip to main content
QUICK REVIEW

[Paper Review] Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Bases

Boxi Cao, Hongyu Lin|arXiv (Cornell University)|Jun 17, 2021
Topic ModelingComputer Science40 references9 citations
TL;DR

This paper investigates whether pre-trained masked language models (MLMs) like BERT can reliably serve as factual knowledge bases. Through rigorous analysis of three knowledge extraction paradigms—prompt-based, case-based, and context-based—it reveals that high performance stems not from genuine knowledge retrieval, but from prompt bias, entity type guidance, and answer leakage (explicit or implicit) in external contexts. The study challenges prior conclusions about MLMs as trustworthy knowledge sources.

ABSTRACT

Previous literatures show that pre-trained masked language models (MLMs) such as BERT can achieve competitive factual knowledge extraction performance on some datasets, indicating that MLMs can potentially be a reliable knowledge source. In this paper, we conduct a rigorous study to explore the underlying predicting mechanisms of MLMs over different extraction paradigms. By investigating the behaviors of MLMs, we find that previous decent performance mainly owes to the biased prompts which overfit dataset artifacts. Furthermore, incorporating illustrative cases and external contexts improve knowledge prediction mainly due to entity type guidance and golden answer leakage. Our findings shed light on the underlying predicting mechanisms of MLMs, and strongly question the previous conclusion that current MLMs can potentially serve as reliable factual knowledge bases.

Motivation & Objective

  • To rigorously evaluate whether masked language models (MLMs) like BERT can serve as reliable factual knowledge bases.
  • To investigate the underlying mechanisms driving performance in three prominent knowledge extraction paradigms: prompt-based, case-based, and context-based retrieval.
  • To identify whether high performance is due to genuine knowledge access or artifacts such as prompt bias, entity type guidance, or answer leakage.
  • To challenge the validity of prior benchmarks and evaluations that assume MLMs possess reliable factual knowledge.

Proposed method

  • Conducted a systematic analysis of three knowledge extraction paradigms: prompt-based retrieval, case-based analogy, and context-based inference using BERT-large and RoBERTa-large.
  • Proposed a novel algorithm to induce object types for relations using Wikidata taxonomy to assess the role of type guidance in case-based paradigms.
  • Evaluated performance under controlled settings by masking the golden answer in contexts to distinguish between explicit and implicit answer leakage.
  • Grouped contexts based on whether the masked answer could be reconstructed from remaining context to isolate the impact of implicit answer leakage.
  • Used quantitative metrics such as accuracy and F1 on standard benchmarks like LAMA to compare performance across paradigms and conditions.
  • Performed ablation studies to isolate the contributions of prompts, illustrative cases, and external contexts to prediction performance.

Experimental results

Research questions

  • RQ1To what extent does prompt-based knowledge extraction from MLMs rely on prompt design rather than internal factual knowledge?
  • RQ2How do illustrative cases influence MLM predictions—do they improve factual accuracy or merely guide entity type recognition?
  • RQ3What is the true contribution of external contexts in context-based inference: answer leakage or contextual reasoning?
  • RQ4Can the performance gains from external contexts be attributed to explicit answer presence or implicit answer reconstruction?
  • RQ5To what extent do current evaluation benchmarks reflect genuine knowledge retrieval or artifacts like dataset-specific biases?

Key findings

  • Prompt-based retrieval performance is severely biased toward the prompt structure, with predictions correlating more with prompt wording than factual accuracy, indicating poor generalization.
  • Illustrative cases improve performance primarily by providing entity type guidance, not by enhancing precise answer selection within the same type category.
  • External contexts significantly boost performance mainly due to answer leakage—either explicit mention or implicit reconstruction of the answer from context.
  • Even when the golden answer is masked in the context, performance remains high if the remaining context allows reconstruction of the answer, confirming the role of implicit answer leakage.
  • The performance gain from context-based inference is not due to reasoning over context but due to the presence of sufficient answer-related evidence, whether explicit or implicit.
  • The overall findings challenge the validity of prior conclusions that MLMs can serve as reliable knowledge bases, revealing that current success stems from dataset artifacts rather than robust knowledge access.

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.