atlas

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

Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Sampling

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Theory of autoregressive reasoning · 4 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.

Introduces Reprompting, a Gibbs-sampling-based iterative algorithm that automatically infers chain-of-thought recipes for each LLM from a few labeled training problems, without human-written CoT.

Problem

Hand-crafting chain-of-thought prompts requires costly human expertise, and CoT prompts that work well for one LLM may be suboptimal for another, making fair LLM comparisons difficult.

Approach

Frames CoT prompt discovery as sampling from a joint distribution of recipes over training problems, using Gibbs sampling: new recipes are generated by prompting the LLM with K previously sampled recipes as parents, and rejection sampling keeps recipes that lead to correct answers. An evolutionary-like recombination and selection process converges to a set of effective recipes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Reprompting instead of human-written CoT promptingChatGPT · BBH five-task averageaccuracy: +12.9 points (83.0 vs 70.1)Helped
Use ChatGPT for initialization and InstructGPT for sampling instead of InstructGPT aloneReprompting · BBH five-task averageaccuracy: 48.8 -> 81.2Helped
Set rejection probability to 0 instead of the original setting (ablation)Reprompting · BBH Logical Deductionaccuracy: 66.3 -> 56.3Hurt
Set rejection probability to 0 instead of the original setting (ablation)Reprompting · BBH Object Countingaccuracy: 97.2 -> 52.0Hurt
Set rejection probability to 0 instead of the original setting (ablation)Reprompting · BBH Temporal Sequencesaccuracy: 93.2 -> 74.8Hurt
Always reject solutions that produce incorrect answers (p_rej=1) (ablation)Reprompting · BBH Logical Deductionaccuracy: 66.3 -> 61.9Hurt
Always reject solutions that produce incorrect answers (p_rej=1) (ablation)Reprompting · BBH Temporal Sequencesaccuracy: 93.2 -> 74.4Hurt
Remove recombination of previously sampled recipes (ablation)Reprompting · BBH Logical Deductionaccuracy: 66.3 -> 54.7Hurt
Remove recombination of previously sampled recipes (ablation)Reprompting · BBH Object Countingaccuracy: 97.2 -> 95.6Hurt
Remove recombination of previously sampled recipes (ablation)Reprompting · BBH Temporal Sequencesaccuracy: 93.2 -> 90.4Hurt
Use Reprompting instead of CoTChatGPT · BBH Date Understandingaccuracy: 76.8 -> 76.4Hurt
Use Reprompting instead of CoTChatGPT · BBH Colored Objectsaccuracy: 76.0 -> 74.0Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Big-Bench Hard GSM8K MATH

Benchmarks: Big-Bench Hard GSM8K MATH

Metrics: exact-match accuracy

Baselines: zero-shot prompting few-shot prompting CoT CoT+self-consistency Auto-CoT APO

Builds on: chain-of-thought prompting self-consistency Auto-CoT automatic prompt optimization

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