[Paper Review] Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Sampling
Reprompting is an automated, iterative Gibbs sampling algorithm that discovers high-performing Chain-of-Thought (CoT) prompts for few-shot reasoning tasks without human intervention. By using stronger models to generate initial CoT solutions and iteratively refining them through self-reprompting, it achieves up to +17 accuracy points over human-written CoT baselines on Big-Bench Hard tasks.
We introduce Reprompting, an iterative sampling algorithm that automatically learns the Chain-of-Thought (CoT) recipes for a given task without human intervention. Through Gibbs sampling, Reprompting infers the CoT recipes that work consistently well for a set of training samples by iteratively sampling new recipes using previously sampled recipes as parent prompts to solve other training problems. We conduct extensive experiments on 20 challenging reasoning tasks. Results show that Reprompting outperforms human-written CoT prompts substantially by +9.4 points on average. It also achieves consistently better performance than the state-of-the-art prompt optimization and decoding algorithms.
Motivation & Objective
- To address the scalability and generalizability limitations of human-written Chain-of-Thought (CoT) prompts, which require expert effort and are model-specific.
- To develop an automated method that discovers effective CoT prompts for a given model using only a few labeled question-answer pairs.
- To enable knowledge transfer from stronger to weaker LLMs by optimizing CoT prompts specifically for the target model.
- To ensure fairer model comparisons by identifying model-specific CoT recipes rather than relying on one-size-fits-all prompts.
- To improve few-shot reasoning performance through iterative, self-improving prompt generation using Gibbs sampling.
Proposed method
- Reprompting frames CoT prompt discovery as a joint distribution over reasoning recipes, which is intractable to compute directly.
- It uses Gibbs sampling to iteratively sample new CoT recipes by using previously generated solutions as parent prompts to solve other training examples.
- Initial recipes are generated via zero-shot prompting, then refined through multiple rounds of self-reprompting with different training examples.
- The algorithm combines solutions from diverse training problems into a shared, high-performing prompt set that generalizes to test instances.
- It supports model combination by using a stronger LLM (e.g., ChatGPT) to generate initial CoT solutions and a weaker LLM (e.g., InstructGPT) to refine them.
- The process converges to a stable set of CoT recipes that consistently solve training problems and generalize to unseen test examples.
Experimental results
Research questions
- RQ1Can an automated algorithm discover effective Chain-of-Thought prompts without human intervention for multi-step reasoning tasks?
- RQ2How does iterative self-reprompting via Gibbs sampling improve CoT prompt quality compared to zero-shot or human-written prompts?
- RQ3To what extent can a weaker LLM benefit from CoT prompts generated by a stronger LLM through reprompting?
- RQ4Does the performance of a CoT prompt depend heavily on the target LLM, necessitating model-specific optimization?
- RQ5Can reprompting outperform the state-of-the-art, human-written CoT prompting on benchmark reasoning tasks?
Key findings
- Reprompting achieved up to +17.0 accuracy points over the previous state-of-the-art method, which relied on human-written CoT prompts, on Big-Bench Hard tasks.
- On five BBH tasks, Reprompting consistently outperformed zero-shot, few-shot, and human-written CoT baselines across both ChatGPT and InstructGPT.
- Using ChatGPT to generate initial CoT solutions and then reprompting with InstructGPT led to up to +71.0 performance improvements over using InstructGPT alone.
- InstructGPT outperformed even ChatGPT on certain tasks when using CoT prompts optimized specifically for itself, highlighting model-specific prompt sensitivity.
- The method demonstrated that CoT recipes effective on one model may fail on another, underscoring the need for model-specific prompt optimization.
- Reprompting successfully generated high-quality CoT recipes from only a few training examples, enabling strong few-shot generalization without slowing down inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.