Large Language Models as Analogical Reasoners
Yasunaga, Michihiro, Chen, Xinyun, Li, Yujia, Pasupat, Panupong, Leskovec, Jure, Liang, Percy, Chi, Ed H., Zhou, Denny
–arXiv.org Artificial Intelligence
Chain-of-thought (CoT) prompting for language models demonstrates impressive performance across reasoning tasks, but typically needs labeled exemplars of the reasoning process. In this work, we introduce a new prompting approach, Analogical Prompting, designed to automatically guide the reasoning process of large language models. Inspired by analogical reasoning, a cognitive process in which humans draw from relevant past experiences to tackle new problems, our approach prompts language models to self-generate relevant exemplars or knowledge in the context, before proceeding to solve the given problem. This method presents several advantages: it obviates the need for labeling or retrieving exemplars, offering generality and convenience; it can also tailor the generated exemplars and knowledge to each problem, offering adaptability. Experimental results show that our approach outperforms 0-shot CoT and manual few-shot CoT in a variety of reasoning tasks, including math problem solving in GSM8K and MATH, code generation in Codeforces, and other reasoning tasks in BIG-Bench.
arXiv.org Artificial Intelligence
Oct-7-2023
- Country:
- North America
- United States
- Minnesota > Hennepin County
- Minneapolis (0.14)
- California > Santa Clara County
- Palo Alto (0.04)
- Minnesota > Hennepin County
- Canada > Ontario
- Toronto (0.04)
- United States
- Europe
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- France > Grand Est
- Meurthe-et-Moselle > Nancy (0.04)
- United Kingdom > England
- Asia > China
- Hong Kong (0.04)
- North America
- Genre:
- Research Report > New Finding (0.66)
- Industry:
- Transportation (0.46)
- Health & Medicine (0.46)
- Technology: