KELM: Knowledge Enhanced Pre-Trained Language Representations with Message Passing on Hierarchical Relational Graphs

Yinquan Lu, Haonan Lu, Guirong Fu, Qun Liu
9/9/2021
cs.CLcs.AI

Official code: nlp-anonymous-happy/anonymous-KG-guided-NLP (15 stars, Python, Apache-2.0, last commit 2021-10-26).

Abstract

Incorporating factual knowledge into pre-trained language models (PLM) such as BERT is an emerging trend in recent NLP studies. However, most of the existing methods combine the external knowledge integration module with a modified pre-training loss and re-implement the pre-training process on the large-scale corpus.

Show full abstract

Re-pretraining these models is usually resource-consuming, and difficult to adapt to another domain with a different knowledge graph (KG). Besides, those works either cannot embed knowledge context dynamically according to textual context or struggle with the knowledge ambiguity issue. In this paper, we propose a novel knowledge-aware language model framework based on fine-tuning process, which equips PLM with a unified knowledge-enhanced text graph that contains both text and multi-relational sub-graphs extracted from KG. We design a hierarchical relational-graph-based message passing mechanism, which can allow the representations of injected KG and text to mutually update each other and can dynamically select ambiguous mentioned entities that share the same text. Our empirical results show that our model can efficiently incorporate world knowledge from KGs into existing language models such as BERT, and achieve significant improvement on the machine reading comprehension (MRC) task compared with other knowledge-enhanced models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
153Python, ShellApr 15, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{lu2021kelm,
  title  = {KELM: Knowledge Enhanced Pre-Trained Language Representations with Message Passing on Hierarchical Relational Graphs},
  author = {Yinquan Lu and Haonan Lu and Guirong Fu and Qun Liu},
  year   = {2021},
  eprint = {2109.04223},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04223}
}

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

Discussion