CoLAKE: Contextualized Language and Knowledge Embedding

Tianxiang Sun, Yunfan Shao, Xipeng Qiu, Qipeng Guo, Yaru Hu +2 more
10/1/2020
cs.CLcs.AI

Official code: txsun1997/CoLAKE (116 stars, Python, MIT, last commit 2021-03-02).

Abstract

With the emerging branch of incorporating factual knowledge into pre-trained language models such as BERT, most existing models consider shallow, static, and separately pre-trained entity embeddings, which limits the performance gains of these models. Few works explore the potential of deep contextualized knowledge representation when injecting knowledge.

Show full abstract

In this paper, we propose the Contextualized Language and Knowledge Embedding (CoLAKE), which jointly learns contextualized representation for both language and knowledge with the extended MLM objective. Instead of injecting only entity embeddings, CoLAKE extracts the knowledge context of an entity from large-scale knowledge bases. To handle the heterogeneity of knowledge context and language context, we integrate them in a unified data structure, word-knowledge graph (WK graph). CoLAKE is pre-trained on large-scale WK graphs with the modified Transformer encoder. We conduct experiments on knowledge-driven tasks, knowledge probing tasks, and language understanding tasks. Experimental results show that CoLAKE outperforms previous counterparts on most of the tasks. Besides, CoLAKE achieves surprisingly high performance on our synthetic task called word-knowledge graph completion, which shows the superiority of simultaneously contextualizing language and knowledge representation.

View on arXivView PDF

Code Implementations(1)

txsun1997/CoLAKEOfficial100%
MIT

COLING'2020: CoLAKE: Contextualized Language and Knowledge Embedding

11617Python, ShellAug 15, 20205 years agoMIT
deep-learningknowledge-embeddingknowledge-graphlanguage-modelnatural-language-processing

Similar Papers

Cite this paper

@article{sun2020colake,
  title  = {CoLAKE: Contextualized Language and Knowledge Embedding},
  author = {Tianxiang Sun and Yunfan Shao and Xipeng Qiu and Qipeng Guo and Yaru Hu and Xuanjing Huang and Zheng Zhang},
  year   = {2020},
  eprint = {2010.00309},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.00309}
}

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

Discussion