Generated Knowledge Prompting for Commonsense Reasoning

Jiacheng Liu, Alisa Liu, Ximing Lu, Sean Welleck, Peter West +3 more
10/15/2021
cs.CL

Official code: liujch1998/GKP (101 stars, Python, last commit 2023-06-08).

Abstract

It remains an open question whether incorporating external knowledge benefits commonsense reasoning while maintaining the flexibility of pretrained sequence models. To investigate this question, we develop generated knowledge prompting, which consists of generating knowledge from a language model, then providing the knowledge as additional input when answering a question.

Show full abstract

Our method does not require task-specific supervision for knowledge integration, or access to a structured knowledge base, yet it improves performance of large-scale, state-of-the-art models on four commonsense reasoning tasks, achieving state-of-the-art results on numerical commonsense (NumerSense), general commonsense (CommonsenseQA 2.0), and scientific commonsense (QASC) benchmarks. Generated knowledge prompting highlights large-scale language models as flexible sources of external knowledge for improving commonsense reasoning. Our code is available at https://github.com/liujch1998/GKP

View on arXivView PDF

Code Implementations(1)

liujch1998/GKPOfficial100%
10112PythonMar 14, 20223 years ago

Similar Papers

Cite this paper

@article{liu2021generated,
  title  = {Generated Knowledge Prompting for Commonsense Reasoning},
  author = {Jiacheng Liu and Alisa Liu and Ximing Lu and Sean Welleck and Peter West and Ronan Le Bras and Yejin Choi and Hannaneh Hajishirzi},
  year   = {2021},
  eprint = {2110.08387},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.08387}
}

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

Discussion