Skip to main content
QUICK REVIEW

[Paper Review] Generated Knowledge Prompting for Commonsense Reasoning

Jiacheng Liu, Alisa Liu|arXiv (Cornell University)|Oct 15, 2021
Topic ModelingComputer Science47 citations
TL;DR

The paper introduces Generated Knowledge Prompting (GKP), which generates knowledge statements from a language model to accompany questions, improving performance on four commonsense benchmarks without task-specific supervision or a structured knowledge base. GKP achieves new state-of-the-art on NumerSense, CommonsenseQA 2.0, and QASC in various settings.

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. 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

Motivation & Objective

  • Investigate whether external knowledge benefits commonsense reasoning for large pretrained models.
  • Develop a knowledge-generation approach that does not rely on task-specific supervision or curated knowledge bases.
  • Show that generated knowledge can improve zero-shot and finetuned models across multiple benchmarks.
  • Demonstrate the quality, quantity, and integration strategies of generated knowledge for boosting inference.

Proposed method

  • Generate question-related knowledge statements using a few-shot prompting setup with a language model (GPT-3).
  • Create M knowledge statements per question by sampling continuations conditioned on the question.
  • Integrate knowledge by prompting an inference model with the question concatenated with each knowledge statement, and select the highest-confidence prediction via p_I(a|q_m).
  • Use an aggregation strategy to choose the best supporting knowledge and corresponding answer.
  • Compare against baselines including no knowledge, random/context sentences, template-based self-talk, and retrieval-based knowledge.
  • Evaluate across NumerSense, CommonsenseQA, CommonsenseQA 2.0, and QASC with zero-shot and finetuned inference models.

Experimental results

Research questions

  • RQ1Can generated, natural-language knowledge statements improve commonsense reasoning without task-specific supervision?
  • RQ2How does the quality and quantity of generated knowledge affect performance across different datasets?
  • RQ3What integration strategy best leverages multiple knowledge statements during inference?
  • RQ4How does GKP compare to template-based, random, context, and retrieval-based baselines?

Key findings

  • GKP improves both zero-shot and finetuned models across NumerSense, CSQA, CSQA2, and QASC.
  • On NumerSense, GKP yields a 6% improvement over the previous best zero-shot method.
  • On CSQA2, GKP improves the state-of-the-art non-retrieval method by about 2 percentage points.
  • On QASC, GKP improves the state-of-the-art by about 3 percentage points.
  • Knowledge quality, quantity, and integration strategy are the main drivers of performance; more high-quality statements help up to around M=20 statements per question.
  • GKP can match or surpass retrieval-based approaches in many cases, and significantly amplifies smaller inference models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.