Knowledge Enhanced Contextual Word Representations

Matthew E. Peters, Mark Neumann, Robert L. Logan, Roy Schwartz, Vidur Joshi +2 more
9/9/2019
cs.CL

Official code: allenai/kb (371 stars, Python, Apache-2.0, last commit 2020-06-02).

Abstract

Contextual word representations, typically trained on unstructured, unlabeled text, do not contain any explicit grounding to real world entities and are often unable to remember facts about those entities. We propose a general method to embed multiple knowledge bases (KBs) into large scale models, and thereby enhance their representations with structured, human-curated knowledge.

Show full abstract

For each KB, we first use an integrated entity linker to retrieve relevant entity embeddings, then update contextual word representations via a form of word-to-entity attention. In contrast to previous approaches, the entity linkers and self-supervised language modeling objective are jointly trained end-to-end in a multitask setting that combines a small amount of entity linking supervision with a large amount of raw text. After integrating WordNet and a subset of Wikipedia into BERT, the knowledge enhanced BERT (KnowBert) demonstrates improved perplexity, ability to recall facts as measured in a probing task and downstream performance on relationship extraction, entity typing, and word sense disambiguation. KnowBert's runtime is comparable to BERT's and it scales to large KBs.

View on arXivView PDF

Code Implementations(1)

allenai/kbOfficial100%
Apache-2.0

KnowBert -- Knowledge Enhanced Contextual Word Representations

37150Python, JsonnetSep 3, 20196 years agoApache-2.0

Similar Papers

Cite this paper

@article{peters2019knowledge,
  title  = {Knowledge Enhanced Contextual Word Representations},
  author = {Matthew E. Peters and Mark Neumann and Robert L. Logan and Roy Schwartz and Vidur Joshi and Sameer Singh and Noah A. Smith},
  year   = {2019},
  eprint = {1909.04164},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.04164}
}

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

Discussion