TL;DR
Auto-CoT is a new method that automates the creation of "Chain-of-Thought" (CoT) prompts, eliminating the need for tedious manual prompt engineering. By intelligently clustering questions and using the model to generate its own reasoning demonstrations, it achieves performance on par with human-designed prompts across a wide array of complex reasoning benchmarks.
What Problem Does This Paper Address?
Large Language Models (LLMs) excel at complex reasoning when they are prompted to "show their work"—a technique known as Chain-of-Thought (CoT) prompting. Currently, there are two main ways to do this:
- Zero-Shot-CoT: Adding a simple phrase like "Let’s think step by step." It’s easy but often less accurate.
- Manual-CoT: Providing the model with several hand-written examples of questions followed by step-by-step reasoning. This is much more effective but requires significant human effort to "engineer" the right demonstrations for every new task.
The authors identify a major bottleneck: Manual-CoT is unscalable. Furthermore, they found that simply retrieving similar questions to use as examples (a common shortcut) often fails because LLMs tend to make the same mistakes on similar hard problems, leading to "error amplification."
Methods
The authors propose Auto-CoT, which automates the construction of few-shot demonstrations through a two-stage process:
- Question Clustering: Instead of looking for similar questions, Auto-CoT looks for diverse ones. It uses Sentence-BERT to create vector representations of all questions in a dataset and then applies $k$-means clustering to partition them into groups.
- Demonstration Sampling: For each cluster, the algorithm selects a representative question (the one closest to the cluster center). It then uses the Zero-Shot-CoT method to have the LLM generate a reasoning chain for that question.
- Quality Control Heuristics: To ensure the generated demonstrations are reliable, the authors apply simple filters. For instance, they reject questions that are too long or reasoning chains that have too many steps, as these are more likely to contain "hallucinations" or logic errors.
The final prompt for a test question consists of these automatically generated demonstrations from different clusters, providing the model with a diverse set of reasoning "skills" to draw from.
Datasets
The researchers evaluated Auto-CoT on ten public benchmark reasoning tasks across three categories:
- Arithmetic Reasoning: MultiArith, GSM8K, AddSub, AQUA-RAT, SingleEq, and SVAMP.
- Commonsense Reasoning: CSQA and StrategyQA.
- Symbolic Reasoning: Last Letter Concatenation and Coin Flip.
Key Insights and Ideas
- Diversity is a Defense: The most striking insight is that diversity beats similarity. When you provide demonstrations that are too similar to the target question, you risk feeding the model examples where it previously failed in the same way. By forcing the demonstrations to come from different clusters, Auto-CoT ensures the model sees a variety of logic patterns, making it more robust.
- LLMs are Robust to "Noise": The authors found that even if one or two of the eight automatically generated demonstrations contain errors, the model's overall performance doesn't tank. As long as the majority of the "thought process" shown in the prompt is sound, the LLM can still reason correctly.
- Simplicity as a Proxy for Quality: The paper shows that simple heuristics—like limiting the number of tokens or reasoning steps—are surprisingly effective at filtering out the "convoluted" mistakes LLMs make when thinking out loud.
Key Results
Auto-CoT consistently performed on par with, and sometimes better than, Manual-CoT, despite requiring zero human intervention.
- Performance Parity: On the MultiArith benchmark, Auto-CoT achieved 92.0% accuracy, slightly edgeing out the 91.7% achieved by human-engineered Manual-CoT.
- Massive Gains over Zero-Shot: Compared to the basic "Let's think step by step" (Zero-Shot-CoT), Auto-CoT showed dramatic improvements, such as jumping from 78.7% to 92.0% on MultiArith and 40.7% to 47.9% on GSM8K.
- Model Agnostic: The method proved effective across different high-end models, including GPT-3 (
text-davinci-002) and Codex (code-davinci-002).
Limitations and Future Work
While Auto-CoT is a major step toward "promptless" reasoning, it still has limitations:
- Dependence on Zero-Shot Capability: Auto-CoT relies on the model being "decent" enough to generate at least some correct reasoning chains on its own. For extremely niche or difficult tasks where a model fails 100% of the time in zero-shot mode, Auto-CoT would have no "good" examples to sample from.
- Heuristic Refinement: The current quality control relies on simple length constraints. The authors suggest that future work could involve more sophisticated "verifiers" to check the logical consistency of the generated chains.
- Streaming Scenarios: The paper introduces a "streaming" version (Auto-CoT*) for when questions arrive one by one, but notes this area needs more exploration to handle real-time data shifts.
Summary updated