[Paper Review] Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Data
This paper proposes Automate-CoT, a fully automatic framework that generates, prunes, and selects optimal chain-of-thought (CoT) prompts from labeled data without human-annotated rationales. By leveraging a variance-reduced policy gradient strategy, it achieves state-of-the-art performance across arithmetic (+2.7%), commonsense (+3.4%), symbolic (+3.2%), and non-reasoning tasks (+2.5%) reasoning benchmarks.
Chain-of-thought (CoT) advances the reasoning abilities of large language models (LLMs) and achieves superior performance in complex reasoning tasks. However, most CoT studies rely on carefully designed human-annotated rational chains to prompt LLMs, posing challenges for real-world applications where labeled data is available without rational chains. This paper proposes a new strategy, Automate-CoT (Automatic Prompt Augmentation and Selection with Chain-of-Thought), that can bypass human engineering of CoT by automatically augmenting rational chains from a small labeled dataset, and then pruning low-quality chains to construct a candidate pool of machine-generated rationale chains based on the labels. Finally, it selects the optimal combination of several rationale chains from the pool for CoT prompting by employing a variance-reduced policy gradient strategy to estimate the significance of each example. Automate-CoT enables a quick adaptation of the CoT technique to different tasks. Experimental results demonstrate the effectiveness of our method, where competitive results are achieved on arithmetic reasoning (+2.7%), commonsense reasoning (+3.4%), symbolic reasoning (+3.2%), and non-reasoning tasks (+2.5%). The code is available at https://github.com/SHUMKASHUN/Automate-CoT.
Motivation & Objective
- Address the high human cost and scalability issues of manually engineering chain-of-thought (CoT) exemplars for few-shot prompting in LLMs.
- Overcome sensitivity issues in CoT prompting, including order, complexity, diversity, and style sensitivity, which degrade model performance.
- Develop a task-agnostic, automatic pipeline to generate, filter, and select high-quality CoT exemplars directly from labeled datasets.
- Enable rapid adaptation of CoT prompting to new downstream tasks without requiring human-annotated reasoning chains.
Proposed method
- Automatically generate multiple candidate rationale chains (pseudo-chains) using a large language model (LLM) on a small set of labeled questions.
- Prune low-quality chains by enforcing consistency between generated rationale chains and ground-truth answers, retaining only those that support correct predictions.
- Construct a candidate pool of high-quality, consistent rationale chains based on label alignment.
- Apply a variance-reduced policy gradient estimator to optimize the selection of the most effective combination of exemplars for each task.
- Use the black-box LLM’s prediction accuracy as a reward signal to train the selection policy, minimizing gradient variance.
- Iteratively refine the exemplar selection process to maximize downstream performance without requiring model fine-tuning.
Experimental results
Research questions
- RQ1Can we automatically generate high-quality chain-of-thought rationale chains from labeled data without human-annotated rationales?
- RQ2How can we effectively filter out incorrect or low-quality rationale chains during automatic generation?
- RQ3To what extent can automatic exemplar selection outperform manually engineered CoT prompts across diverse reasoning tasks?
- RQ4Can a policy gradient-based selection strategy mitigate sensitivity issues like order, complexity, and style in CoT prompting?
- RQ5Does the proposed method generalize across arithmetic, commonsense, symbolic, and non-reasoning reasoning tasks?
Key findings
- Automate-CoT achieves a +2.7% absolute improvement on the GSM8K arithmetic reasoning benchmark compared to baseline CoT methods.
- On the CommonsenseQA dataset, Automate-CoT improves performance by +3.4%, demonstrating strong gains in commonsense reasoning.
- For symbolic reasoning tasks (e-SNLI), the method achieves a +3.2% improvement, indicating effectiveness in logical and textual reasoning.
- Even on non-reasoning tasks like SST-2 sentiment classification, Automate-CoT delivers a +2.5% performance boost, showing broad applicability.
- The variance-reduced policy gradient strategy enables stable and effective selection of optimal exemplar combinations, outperforming Auto-CoT and manual CoT in most settings.
- The pruning step significantly reduces noise by filtering out rationale chains that do not align with correct answers, improving overall chain quality.
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.