Iteratively Prompt Pre-trained Language Models for Chain of Thought

Boshi Wang, Xiang Deng, Huan Sun
3/16/2022
cs.CL

Official code: sunlab-osu/IterPrompt (18 stars, Python, last commit 2022-11-07).

Abstract

While Pre-trained Language Models (PLMs) internalize a great amount of world knowledge, they have been shown incapable of recalling these knowledge to solve tasks requiring complex & multi-step reasoning. Similar to how humans develop a "chain of thought" for these tasks, how can we equip PLMs with such abilities?

Show full abstract

In this work, we explore an iterative prompting framework, a new prompting paradigm which progressively elicits relevant knowledge from PLMs for multi-step inference. We identify key limitations of existing prompting methods, namely they are either restricted to queries with a single identifiable relation/predicate, or being agnostic to input contexts, which makes it difficult to capture variabilities across different inference steps. We propose an iterative context-aware prompter, which addresses these limitations by learning to dynamically synthesize prompts conditioned on the current step's contexts. Experiments on three datasets involving multi-step reasoning show the effectiveness of the iterative scheme and the context-aware prompter design.

View on arXivView PDF

Code Implementations(1)

183Python, Jupyter NotebookNov 7, 20224 years ago

Similar Papers

Cite this paper

@article{wang2022iteratively,
  title  = {Iteratively Prompt Pre-trained Language Models for Chain of Thought},
  author = {Boshi Wang and Xiang Deng and Huan Sun},
  year   = {2022},
  eprint = {2203.08383},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08383}
}

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

Discussion