ACL Findings2025
Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?
Chengwei Qin, Wenhan Xia, Tan Wang, Fangkai Jiao, Yuchen Hu, Bosheng Ding, Ruirui Chen, Shafiq Joty
摘要
Analogical reasoning is a unique ability of humans to address unfamiliar challenges by transferring strategies from relevant past experiences.One key finding in psychology is that compared with irrelevant past experiences, recalling relevant ones can help humans better handle new tasks.Coincidentally, the NLP community has also recently found that selfgenerating relevant examples in the context can help large language models (LLMs) better solve a given problem than hand-crafted prompts.However, it is yet not clear whether relevance is the key factor eliciting such capability, i.e., can LLMs benefit more from selfgenerated relevant examples than irrelevant ones?In this work, we systematically explore whether LLMs can truly perform analogical reasoning on a diverse set of reasoning tasks.With extensive experiments and analysis, we show that self-generated random examples can surprisingly achieve comparable or even better performance on certain tasks, e.g., 4% performance boost on GSM8K with random biological examples.We find that the accuracy of self-generated examples is the key factor and subsequently design two novel methods with improved performance and significantly reduced inference costs.Overall, we aim to advance a deeper understanding of LLM analogical reasoning and hope this work stimulates further research in the design of self-generated contexts. InputOutput Q: The second and ninth terms of an arithmetic sequence are 2 and 30, respectively.What is the fiftieth term?# Instruction: ## Recall relevant examples: ## Solve the initial problem:# Relevant examples: Q: In an arithmetic sequence, the first term is 3 and the A: To find the tenth term, we can use the formula for the common difference is 4. What is the tenth term?nth term of the sequence ... So the tenth term is 39.... # Solve the initial problem:We can use the formula for the nth term of an arithmetic sequence a_n = a_1 + (n-1)d.We are given the values of a_2 and a_9 ... So the fiftieth term is 194. Prompt: self-generate relevant examplesYour task is to tackle mathematical problems.When presented with a math problem, recall relevant problems as examples.Afterward, proceed to solve the initial problem. # Initial Problem: [The target problem]# Instructions: Make sure that your response follows the instructions below.## Analogous Problems: Offer five diverse examples of math problems that are relevant or analogous to the initial problem.For each problem, elaborate on the solution and conclude with the ultimate answer (enclosed in ).For each problem: -After "Q: ", describe the problem -After "A: ", explain the solution and enclose the ultimate answer in .## Solve the Initial Problem: Q: Copy and paste the initial problem here.A: Explain the solution and enclose the ultimate answer in here. Prompt: self-generate random examplesYour task is to tackle mathematical problems.When presented with a math problem, recall random problems as examples.Afterward, proceed to solve the initial problem. # Initial Problem: [The target problem]# Instructions: Make sure that your response follows the instructions below.## Random Problems: Randomly offer five diverse examples of math problems.For each problem, elaborate on the solution and conclude with the ultimate answer (enclosed in ).For each problem: -After "Q: ", describe the problem -After "A: ", explain the solution and enclose the ultimate answer in .## Solve the Initial Problem: Q: Copy and paste the initial problem here.A: Explain the solution and enclose the ultimate answer in here.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- STaR: Bootstrapping Reasoning With Reasoning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Reflexion: language agents with verbal reinforcement learning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Large Language Models are Zero-Shot Reasoners 引用了 STaR: Bootstrapping Reasoning With Reasoning
- Large Language Models are Zero-Shot Reasoners 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models 引用了 STaR: Bootstrapping Reasoning With Reasoning
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models 引用了 Reflexion: language agents with verbal reinforcement learning
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
它引用的 Paper24
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
- Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo 等NeurIPS 2022 · 8,168 次引用
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
- Graph of Thoughts: Solving Elaborate Problems with Large Language ModelsMaciej Besta, Nils Blach, Ales Kubicek, Robert Gerstenberger 等AAAI 2024 · 1,292 次引用
- STaR: Bootstrapping Reasoning With ReasoningEric Zelikman, Yuhuai Wu, Jesse Mu, Noah D. GoodmanNeurIPS 2022 · 1,126 次引用
相关 Paper
- Large Language Models as Analogical ReasonersMichihiro Yasunaga, Xinyun Chen, Yujia Li, Panupong Pasupat 等ICLR 2024 · 155 次引用
- AnaloBench: Benchmarking the Identification of Abstract and Long-context AnalogiesXiao Ye, Andrew Wang, Jacob Choi, Yining Lu 等EMNLP 2024 · 3 次引用
- MetaLadder: Ascending Mathematical Solution Quality via Analogical-Problem Reasoning TransferHonglin Lin, Zhuoshi Pan, Qizhi Pei, Xin Gao 等EMNLP Findings 2025
- Unlocking Scientific Concepts: How Effective Are LLM-Generated Analogies for Student Understanding and Classroom Practice?Zekai Shao, Siyu Yuan, Lin Gao, Yixuan He 等CHI 2025 · 12 次引用
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon 等ICML 2023 · 700 次引用
