[Paper Review] Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango
The paper uses counterfactual prompting to dissect chain-of-thought prompting, showing a symbiotic role of text and patterns and introducing CCOT to trim prompts while preserving performance.
The past decade has witnessed dramatic gains in natural language processing and an unprecedented scaling of large language models. These developments have been accelerated by the advent of few-shot techniques such as chain of thought (CoT) prompting. Specifically, CoT pushes the performance of large language models in a few-shot setup by augmenting the prompts with intermediate steps. Despite impressive results across various tasks, the reasons behind their success have not been explored. This work uses counterfactual prompting to develop a deeper understanding of CoT-based few-shot prompting mechanisms in large language models. We first systematically identify and define the key components of a prompt: symbols, patterns, and text. Then, we devise and conduct an exhaustive set of experiments across four different tasks, by querying the model with counterfactual prompts where only one of these components is altered. Our experiments across three models (PaLM, GPT-3, and CODEX) reveal several surprising findings and brings into question the conventional wisdom around few-shot prompting. First, the presence of factual patterns in a prompt is practically immaterial to the success of CoT. Second, our results conclude that the primary role of intermediate steps may not be to facilitate learning how to solve a task. The intermediate steps are rather a beacon for the model to realize what symbols to replicate in the output to form a factual answer. Further, text imbues patterns with commonsense knowledge and meaning. Our empirical and qualitative analysis reveals that a symbiotic relationship between text and patterns explains the success of few-shot prompting: text helps extract commonsense from the question to help patterns, and patterns enforce task understanding and direct text generation.
Motivation & Objective
- Identify the key semantic components of a few-shot prompt: symbols, patterns, and text.
- Experimentally isolate the role of each component with counterfactual prompts across multiple tasks and LLMs.
- Demonstrate the interdependent influence of text and patterns on chain-of-thought success.
- Propose a concise prompting scheme CCOT that reduces tokens by ~20% while maintaining or improving performance.
Proposed method
- Define three semantic prompt components: symbols, patterns, and text.
- Design counterfactual prompts that alter only one component at a time to measure impact.
- Evaluate prompts on four reasoning tasks across PaLM-62B, GPT-3, and CODEX.
- Analyze attention patterns to understand inference mechanisms under different prompts.
Experimental results
Research questions
- RQ1What is the role of symbols, patterns, and text in the success of chain-of-thought prompting?
- RQ2How do counterfactual alterations to each component affect model performance across tasks and models?
- RQ3Can a concise prompting approach retain performance while reducing prompt length (CCOT)?
- RQ4How do text-pattern interactions explain the efficacy of few-shot reasoning in LLMs?
Key findings
- The exact type of symbols has negligible impact on performance; abstract placeholders can be effective.
- Patterns are necessary but not sufficient; without patterns, COT underperforms and sometimes degrades to direct prompting.
- Text is essential to provide commonsense and semantics that enable patterns to guide generation.
- Text and patterns form a symbiotic relationship that largely explains COT success, with each contributing complementary information.
- CCOT reduces token usage by about 20% without harming, and sometimes improving, task solve rate.
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.