Reasoning

Analogical Prompting

First page
Analogical Prompting
Paper summary

Google's Analogical Prompting guides LLM reasoning by having the model self-generate relevant exemplars on the fly.

Ask this paper

Key points
01

Self-generated exemplars: Rather than requiring curated few-shot demonstrations, the model is prompted to recall or generate relevant analogous problems before solving the target question.

02

Analogical-reasoning inspiration: Draws on the cognitive-science concept of analogical reasoning, where humans solve new problems by invoking similar past cases.

03

No labeled exemplars needed: Unlike CoT, which requires demonstrations of the reasoning process, Analogical Prompting requires no labeled reasoning data at all.

04

Benchmark gains: Improves over standard CoT and zero-shot baselines across math, commonsense, and code reasoning tasks, with particularly strong gains on math word problems.

Abstract

Chain-of-thought (CoT) prompting for language models demonstrates impressive performance across reasoning tasks, but typically needs labeled exemplars of the reasoning process. In this work, we introduce a new prompting approach, analogical prompting, designed to automatically guide the reasoning process of large language models. Inspired by analogical reasoning, a cognitive process in which humans draw from relevant past experiences to tackle new problems, our approach prompts language models to self-generate relevant exemplars or knowledge in the context, before proceeding to solve the given problem. This method presents several advantages: it obviates the need for labeling or retrieving exemplars, offering generality and convenience; it can also tailor the generated exemplars and knowledge to each problem, offering adaptability. Experimental results show that our approach outperforms 0-shot CoT and manual few-shot CoT in a variety of reasoning tasks, including math problem solving in GSM8K and MATH, code generation in Codeforces, and other reasoning tasks in BIG-Bench.

Every Monday
Get next week’s papers.
Subscribe on Substack