Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Bases

Boxi Cao, Hongyu Lin, Xianpei Han, Le Sun, Lingyong Yan +3 more
6/17/2021
cs.CLcs.AI

Official code: c-box/LANKA (29 stars, Python, last commit 2021-12-08).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

c-box/LANKAOfficial100%

Code for ACL2021 long paper: Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Bases

290PythonMay 24, 20214 years ago

Similar Papers

Cite this paper

@article{cao2021knowledgeable,
  title  = {Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Bases},
  author = {Boxi Cao and Hongyu Lin and Xianpei Han and Le Sun and Lingyong Yan and Meng Liao and Tong Xue and Jin Xu},
  year   = {2021},
  eprint = {2106.09231},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09231}
}

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

Discussion