Abstract
Chain-of-Thought (CoT) prompting has significantly advanced the reasoning capabilities of Large Language Models (LLMs). However, the manual creation of effective reasoning chains remains a significant bottleneck, sensitive to example order, complexity, and style. We present Automate-CoT, a framework that automates the augmentation and selection of reasoning exemplars using a small labeled dataset. By employing a variance-reduced policy gradient estimator, Automate-CoT optimizes the selection of discrete prompts to maximize performance. Our results demonstrate consistent improvements over manual CoT and existing automated baselines across 11 benchmarks in arithmetic, symbolic, and commonsense reasoning.
Introduction
The efficacy of Large Language Models (LLMs) in complex reasoning tasks is often unlocked through Chain-of-Thought (CoT) prompting. By providing a few-shot context with step-by-step reasoning, models can solve intricate logic and math problems. Despite its success, CoT is plagued by the "prompt engineering bottleneck." Human-written prompts are fragile; performance fluctuates based on the choice of examples, their linguistic style, and the complexity of the reasoning steps provided. Automate-CoT addresses these challenges by replacing manual effort with an automated pipeline for generating and selecting high-quality reasoning chains.
Methodology: The Automate-CoT Pipeline
The Automate-CoT framework consists of three primary stages designed to move from raw data to an optimized few-shot prompt.
- Augment: Starting with a small set of labeled questions, the system uses the LLM to generate multiple "pseudo-chains" (potential reasoning paths) for each question. This can be bootstrapped from zero-shot prompts like "Let's think step by step" if no manual examples exist.
- Prune: To ensure quality, the system filters the generated chains. If a reasoning path leads to an incorrect final answer compared to the ground truth, it is discarded. This heuristic serves as a reliable proxy for logical correctness without requiring human verification.
- Select: The final stage involves choosing the most effective subset of exemplars from the candidate pool. Since the LLM is a black-box API, the authors treat this as a reinforcement learning problem. They utilize a Variance-Reduced Policy Gradient Estimator (VR-PGE) to iteratively update the selection probabilities of exemplars based on their performance on a validation set.
Experimental Evaluation
The framework was evaluated across 11 diverse benchmarks, including arithmetic (GSM8K, SVAMP, AQuA), commonsense (CSQA, StrategyQA), and symbolic reasoning (Last Letter Concatenation). Testing primarily utilized OpenAI’s text-davinci-002 and code-davinci-002 models.
Results and Discussion
Automate-CoT consistently outperformed manual CoT and previous automated methods. In arithmetic tasks, it achieved a +2.7% average improvement. Notably, on the GSM8K dataset, it surpassed the clustering-based Auto-CoT method by 4.8%.
Complexity and Diversity
A key finding is the importance of a diverse mix of reasoning complexities. While some strategies favor only complex, "many-hop" examples, Automate-CoT identifies that a blend of simple and complex chains provides greater robustness across varying task difficulties. This diversity allows the model to handle a wider spectrum of question difficulties effectively.
Efficiency and Scalability
Compared to traditional fine-tuning, which often requires thousands of labeled examples, Automate-CoT achieves state-of-the-art results with as few as 100 examples. Furthermore, the method is approximately 12x more cost-effective than fine-tuning in terms of API and compute resources, making it a viable solution for scaling reasoning capabilities.
Conclusion and Limitations
Automate-CoT effectively removes the human-in-the-loop requirement for high-performance CoT prompting. While the method currently relies on API log-probabilities for its RL optimization—a feature not always available in all LLM interfaces—it represents a significant step toward self-improving reasoning systems. Future work will focus on further reducing the labeled data requirement and formalizing the linguistic factors that contribute to prompt efficacy.
Summary updated