Knowledge Rumination for Pre-trained Language Models

Yunzhi Yao, Peng Wang, Shengyu Mao, Chuanqi Tan, Fei Huang +2 more
5/15/2023
cs.CLcs.AIcs.IR

Official code: zjunlp/knowledge-rumination (17 stars, MIT, PyTorch, last commit 2023-06-29).

Abstract

Previous studies have revealed that vanilla pre-trained language models (PLMs) lack the capacity to handle knowledge-intensive NLP tasks alone; thus, several works have attempted to integrate external knowledge into PLMs. However, despite the promising outcome, we empirically observe that PLMs may have already encoded rich knowledge in their pre-trained parameters but fail to fully utilize them when applying them to knowledge-intensive tasks. In this paper, we propose a new paradigm dubbed Knowledge Rumination to help the pre-trained language model utilize that related latent knowledge without retrieving it from the external corpus. By simply adding a prompt like "As far as I know" to the PLMs, we try to review related latent knowledge and inject them back into the model for knowledge consolidation. We apply the proposed knowledge rumination to various language models, including RoBERTa, DeBERTa, and GPT-3. Experimental results on six commonsense reasoning tasks and GLUE benchmarks demonstrate the effectiveness of our proposed approach, which proves that the knowledge stored in PLMs can be better exploited to enhance performance. Code is available in https://github.com/zjunlp/knowledge-rumination.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

[EMNLP 2023] Knowledge Rumination for Pre-trained Language Models

171Shell, PythonJan 5, 20233 years agoMIT
commonsense-reasoninggpt-3knowledge-ruminationlarge-language-modelsnatural-language-processing+4 more

Similar Papers

Cite this paper

@article{yao2023knowledge,
  title  = {Knowledge Rumination for Pre-trained Language Models},
  author = {Yunzhi Yao and Peng Wang and Shengyu Mao and Chuanqi Tan and Fei Huang and Huajun Chen and Ningyu Zhang},
  year   = {2023},
  eprint = {2305.08732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.08732v3}
}

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

Discussion