atlas

Research map / Large language models / Reasoning and chain of thought

Large Language Models as Analogical Reasoners

ICLR 2024 · Large language models › Reasoning and chain of thought · approach: Chain-of-thought training and analysis · 13 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes analogical prompting, where an LLM self-generates relevant exemplars and high-level knowledge in a single prompt before solving the target problem, requiring no labeled exemplars or retrieval.

Problem

Chain-of-thought prompting either uses generic reasoning instructions (0-shot CoT), which may be insufficient for complex tasks, or requires costly labeled exemplars (few-shot CoT) and retrieval machinery for relevant ones.

Approach

Prompt the LLM to recall three relevant, distinct problems with solutions (and optionally a tutorial on core concepts) in the same prompt before solving the target problem, so exemplars are self-generated and tailored per problem, inspired by human analogical reasoning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace fixed few-shot CoT exemplars with self-generated relevant exemplarsGPT3.5-turbo · GSM8Kaccuracy: 76.7% -> 77.8%Helped
Replace fixed few-shot CoT exemplars with self-generated relevant exemplarsGPT3.5-turbo · MATHaccuracy: 34.9% -> 37.3%Helped
Add self-generated knowledge to self-generated exemplarsGPT3.5-turbo-16k · CodeforcesAcc@1: 13% -> 15%Helped
Add self-generated knowledge to self-generated exemplarsGPT3.5-turbo-16k · CodeforcesAcc@10: 25% -> 29%Helped
Replace fixed few-shot CoT exemplars with self-generated exemplarsGPT3.5-turbo · Temporal sequencesaccuracy: 58.0% -> 57.6%Hurt
Encourage diversity among self-generated exemplars (ablation)Analogical prompting · GSM8Kaccuracy: 75.9% -> 77.8%Helped
Encourage diversity among self-generated exemplars (ablation)Analogical prompting · MATHaccuracy: 35.2% -> 37.3%Helped
Generate knowledge before rather than after exemplars (ablation)Analogical prompting · CodeforcesAcc@1: 14% -> 15%Helped
Generate knowledge before rather than after exemplars (ablation)Analogical prompting · CodeforcesAcc@10: 27% -> 29%Helped
Add self-consistency to analogical prompting (ablation)GPT3.5-turbo · GSM8Kaccuracy: 77.8% -> 85.3%Helped
Add self-consistency to analogical prompting (ablation)GPT3.5-turbo · MATHaccuracy: 37.3% -> 46.0%Helped
Vary the number of self-generated exemplars from 1 to 5 (ablation)GPT3.5-turbo analogical prompting · GSM8Kaccuracy: 76.1; 77.0; 77.5; 77.3; 77.8Mixed

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K MATH BIG-Bench Codeforces

Benchmarks: GSM8K MATH Codeforces BIG-Bench word sorting BIG-Bench logical deduction five objects BIG-Bench temporal sequences BIG-Bench reasoning about colored objects BIG-Bench formal fallacies

Metrics: accuracy Acc@1 Acc@10

Baselines: 0-shot 0-shot CoT few-shot CoT few-shot retrieved CoT self-consistency

Builds on: chain-of-thought prompting few-shot CoT zero-shot CoT Sentence-BERT retrieval recitation-augmented generation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy