Elamur Research

Language Models As or For Knowledge Bases

Paper · 2021 · Simon Razniewski, Andrew Yates, Nora Kassner et al.

Summary

This DL4KG 2021 position paper by Razniewski, Yates, Kassner and Weikum asks whether large pre-trained language models (LMs) such as BERT, GPT and T5 could stand in for explicit knowledge bases (KBs) like Wikidata when queried through LAMA-style prompting. The authors run no benchmark. Instead they give a qualitative comparison, illustrated with anecdotal probes of the GPT-3 daVinci model, mostly about Alan Turing.

They compare the two paradigms on intrinsic aspects: probabilistic prediction versus lookup, correlation versus explicit fact, awareness of missing facts, coverage, curatability and provenance. They also cover pragmatic issues: entity disambiguation, rare or numeric values, and subjects with zero or many objects. LMs come out ahead in open-ended coverage of unusual relations. However, the authors argue LMs cannot replace KBs because their outputs are poorly calibrated, hard to fix, untraceable to sources and prone to hallucination.

They instead propose an "LM-for-KB" role, in which an LM gives an independent, text-based second opinion on candidate triples during KB curation. This matters for teams deciding how to build and maintain reliable factual resources.

Key points

  • GPT-3 confidence examples: GPT-3 gives the correct birthplace of Turing (London) 83% confidence. It splits Yann LeCun's citizenship between France (67%) and Canada (26%), while his true second citizenship, USA, scores very low.
  • Hallucinated and wrong facts:
    • For the never-married Turing, GPT-3 invents a spouse ("Sara Lavington", 21%), whereas Wikidata records an explicit no-value spouse statement.
    • It names Warrington instead of Wilmslow as his place of death, and the error cannot be traced to a source or corrected.
  • Lists and empty answers: Wikidata lists all 73 Turing Award winners. Prompting GPT-3 for winners yields a mix of correct and incorrect names with no principled ranking cutoff. For "first woman on the moon", where the true answer is empty, it still suggests astronauts.
  • Where LMs win: LMs capture relations missing from KB schemas, such as colleagues or a film's biographical subject (e.g., Turing's real co-workers, and "The Imitation Game" being about Turing).
  • Proposed hybrids:
    • LMs could verify new candidate facts, adding evidence that is independent of the KG, unlike KG embeddings.
    • "KB-for-LM" retrieval hybrids are suggested as a further direction.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Simon Razniewski, Andrew Yates, Nora Kassner and Gerhard Weikum. 2021. Language Models As or For Knowledge Bases. arXiv:2110.04888 (DL4KG 2021).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2110.04888 · arXiv 2110.04888

@misc{razniewski2021language,
  title = {{Language Models As or For Knowledge Bases}},
  author = {Simon Razniewski, Andrew Yates, Nora Kassner and Gerhard Weikum},
  year = {2021},
  doi = {10.48550/arxiv.2110.04888},
  eprint = {2110.04888},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2110.04888}
}

References

32 references, from the paper's own bibliography.

  1. authorJ. Devlin, authorM.-W. Chang, authorK. Lee, authorK. Toutanova, titleBERT: Pre-training of deep bidirectional transformers for language understanding, in: booktitleNAACL, year2019. our card
  2. authorA. Radford, authorJ. Wu, authorR. Child, authorD. Luan, authorD. Amodei, authorI. Sutskever, titleLanguage models are unsupervised multitask learners, year2019. noteOpenAI technical report. OpenAlex ↗ · Scholar ↗
  3. authorC. Raffel, authorN. Shazeer, authorA. Roberts, authorK. Lee, authorS. Narang, authorM. Matena, authorY. Zhou, authorW. Li, authorP. J. Liu, titleExploring the limits of transfer learning with a unified text-to-text transformer, journalarXiv (year2019). our card
  4. authorP. Liu, authorW. Yuan, authorJ. Fu, authorZ. Jiang, authorH. Hayashi, authorG. Neubig, titlePre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing, journalarXiv (year2021). our card
  5. authorF. Petroni, authorT. Rocktäschel, authorS. Riedel, authorP. Lewis, authorA. Bakhtin, authorY. Wu, authorA. Miller, titleLanguage models as knowledge bases?, in: booktitleEMNLP, year2019. our card
  6. authorN. Poerner, authorU. Waltinger, authorH. Schütze, titleE-BERT: Efficient-yet-effective entity embeddings for BERT, in: booktitleFindings of EMNLP, year2020. our card
  7. authorC. Wang, authorX. Liu, authorD. Song, titleLanguage models are open knowledge graphs, journalarXiv (year2021a). OpenAlex ↗ · Scholar ↗
  8. authorR. Wang, et al., titleK-adapter: Infusing knowledge into pre-trained models with adapters, journalarXiv (year2021b). our card
  9. authorB. Heinzerling, authorK. Inui, titleLanguage models as knowledge bases: On entity representations, storage capacity, and paraphrased queries, in: booktitleEACL, year2021. our card
  10. authorA. Roberts, authorC. Raffel, authorN. Shazeer, titleHow much knowledge can you pack into the parameters of a language model?, in: booktitleEMNLP, year2020. our card
  11. authorF. Petroni, authorP. Lewis, authorA. Piktus, authorT. Rocktäschel, authorY. Wu, authorA. H. Miller, authorS. Riedel, titleHow context affects language models' factual predictions, in: booktitleAKBC, year2020. our card
  12. authorK. Guu, authorK. Lee, authorZ. Tung, authorP. Pasupat, authorM.-W. Chang, titleRealm: Retrieval-augmented language model pre-training, in: booktitleICML, year2020. our card
  13. authorP. Lewis, et al., titleRetrieval-augmented generation for knowledge-intensive NLP tasks, in: booktitleNeurIPS, year2021. our card
  14. authorY. Elazar, authorN. Kassner, authorS. Ravfogel, authorA. Ravichander, authorE. Hovy, authorH. Schütze, authorY. Goldberg, titleMeasuring and improving consistency in pretrained language models, journalarXiv (year2021). our card
  15. authorB. Cao, authorH. Lin, authorX. Han, authorL. Sun, authorL. Yan, authorM. Liao, authorT. Xue, authorJ. Xu, titleKnowledgeable or educated guess? revisiting language models as knowledge bases, in: booktitleACL, year2021. our card
  16. authorT. Young, authorD. Hazarika, authorS. Poria, authorE. Cambria, titleRecent trends in deep learning based natural language processing, journalComputational intelligence magazine (year2018). OpenAlex ↗ · Scholar ↗
  17. authorS. Razniewski, authorP. Das, titleStructured knowledge: Have we made progress? an extrinsic study of KB coverage over 19 years, in: booktitleCIKM, year2020. OpenAlex ↗ · Scholar ↗
  18. authorN. Noy, et al., titleIndustry-scale knowledge graphs: lessons and challenges, journalCACM (year2019). OpenAlex ↗ · Scholar ↗
  19. authorG. Weikum, authorL. Dong, authorS. Razniewski, authorF. Suchanek, titleMachine knowledge: Creation and curation of comprehensive knowledge bases, in: booktitleFoundations and Trends in Databases, year2021. OpenAlex ↗ · Scholar ↗
  20. authorJ. Taylor, titleAutomated knowledge base construction, AKBC invited talk, year2020. notehttps://youtu.be/JsB4T35We0w?t=12032. OpenAlex ↗ · Scholar ↗
  21. authorA. Piscopo, authorE. Simperl, titleWhat we talk about when we talk about Wikidata quality: a literature survey, in: booktitleSymposium on Open Collaboration, year2019. OpenAlex ↗ · Scholar ↗
  22. authorK. Shenoy, authorF. Ilievski, authorD. Garijo, authorD. Schwabe, authorP. Szekely, titleA study of the quality of Wikidata, journalarXiv (year2021). OpenAlex ↗ · Scholar ↗
  23. authorE. M. Bender, authorT. Gebru, authorA. McMillan-Major, authorS. Shmitchell, titleOn the dangers of stochastic parrots: Can language models be too big?, in: booktitleFAccT, year2021. OpenAlex ↗ · Scholar ↗
  24. authorH. Arnaout, authorS. Razniewski, authorG. Weikum, authorJ. Z. Pan, titleNegative knowledge for open-world Wikidata, in: booktitleCompanion Proceedings of the Web Conference, year2021. OpenAlex ↗ · Scholar ↗
  25. authorA. Rohrbach, et al., titleObject hallucination in image captioning, in: booktitleEMNLP, year2018. our card
  26. authorC. Wang, authorR. Sennrich, titleOn exposure bias, hallucination and domain shift in neural machine translation, in: booktitleACL, year2020. our card
  27. authorC. Zhu, authorA. S. Rawat, authorM. Zaheer, authorS. Bhojanapalli, authorD. Li, authorF. Yu, authorS. Kumar, titleModifying memories in transformer models, in: booktitlearXiv, year2020. OpenAlex ↗ · Scholar ↗
  28. authorN. D. Cao, authorW. Aziz, authorI. Titov, titleEditing factual knowledge in language models, in: booktitleEMNLP, year2021. our card
  29. authorQ. Wang, authorZ. Mao, authorB. Wang, authorL. Guo, titleKnowledge graph embedding: A survey of approaches and applications, journalTKDE (year2017). OpenAlex ↗ · Scholar ↗
  30. authorT. Févry, authorL. B. Soares, authorN. FitzGerald, authorE. Choi, authorT. Kwiatkowski, titleEntities as experts: Sparse memory access with entity supervision, in: booktitleEMNLP, year2020. our card
  31. authorH. Sun, authorL. B. Soares, authorP. Verga, authorW. W. Cohen, titleAdaptable and interpretable neural memory over symbolic knowledge, in: booktitleNAACL, year2021. OpenAlex ↗ · Scholar ↗
  32. authorN. Kassner, authorO. Tafjord, authorH. Schutze, authorP. Clark, titleEnriching a model's notion of belief using a persistent memory, in: booktitlearXiv, year2021. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/razniewski-2021-language-models-as-or-knowledge/