Knowledge Prompting in Pre-trained Language Model for Natural Language Understanding

Jianing Wang, Wenkang Huang, Qiuhui Shi, Hongbin Wang, Minghui Qiu +2 more
10/16/2022
cs.CL

Official code: wjn1996/KP-PLM (15 stars, Python, last commit 2022-10-29).

Abstract

Knowledge-enhanced Pre-trained Language Model (PLM) has recently received significant attention, which aims to incorporate factual knowledge into PLMs. However, most existing methods modify the internal structures of fixed types of PLMs by stacking complicated modules, and introduce redundant and irrelevant factual knowledge from knowledge bases (KBs).

Show full abstract

In this paper, to address these problems, we introduce a seminal knowledge prompting paradigm and further propose a knowledge-prompting-based PLM framework KP-PLM. This framework can be flexibly combined with existing mainstream PLMs. Specifically, we first construct a knowledge sub-graph from KBs for each context. Then we design multiple continuous prompts rules and transform the knowledge sub-graph into natural language prompts. To further leverage the factual knowledge from these prompts, we propose two novel knowledge-aware self-supervised tasks including prompt relevance inspection and masked prompt modeling. Extensive experiments on multiple natural language understanding (NLU) tasks show the superiority of KP-PLM over other state-of-the-art methods in both full-resource and low-resource settings.

View on arXivView PDF

Code Implementations(1)

wjn1996/KP-PLMOfficial100%

(Accepted By EMNLP2022 main long)Knowledge Prompting in Pre-trained Language Model for Natural Language Understanding

151PythonJun 27, 20224 years ago

Similar Papers

Cite this paper

@article{wang2022knowledge,
  title  = {Knowledge Prompting in Pre-trained Language Model for Natural Language Understanding},
  author = {Jianing Wang and Wenkang Huang and Qiuhui Shi and Hongbin Wang and Minghui Qiu and Xiang Li and Ming Gao},
  year   = {2022},
  eprint = {2210.08536},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08536}
}

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

Discussion