Lune

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • STaR: Bootstrapping Reasoning With Reasoning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Reflexion: language agents with verbal reinforcement learning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Large Language Models are Zero-Shot Reasoners cites STaR: Bootstrapping Reasoning With Reasoning
  • Large Language Models are Zero-Shot Reasoners cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Graph of Thoughts: Solving Elaborate Problems with Large Language Models cites STaR: Bootstrapping Reasoning With Reasoning
  • Graph of Thoughts: Solving Elaborate Problems with Large Language Models cites Reflexion: language agents with verbal reinforcement learning
  • Graph of Thoughts: Solving Elaborate Problems with Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on24

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
  3. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
  4. Graph of Thoughts: Solving Elaborate Problems with Large Language ModelsMaciej Besta, Nils Blach, Ales Kubicek, Robert Gerstenberger et al.AAAI 2024 · 1,292 citations
  5. STaR: Bootstrapping Reasoning With ReasoningEric Zelikman, Yuhuai Wu, Jesse Mu, Noah D. GoodmanNeurIPS 2022 · 1,126 citations

Related papers

  1. Large Language Models as Analogical ReasonersMichihiro Yasunaga, Xinyun Chen, Yujia Li, Panupong Pasupat et al.ICLR 2024 · 155 citations
  2. AnaloBench: Benchmarking the Identification of Abstract and Long-context AnalogiesXiao Ye, Andrew Wang, Jacob Choi, Yining Lu et al.EMNLP 2024 · 3 citations
  3. MetaLadder: Ascending Mathematical Solution Quality via Analogical-Problem Reasoning TransferHonglin Lin, Zhuoshi Pan, Qizhi Pei, Xin Gao et al.EMNLP Findings 2025
  4. Unlocking Scientific Concepts: How Effective Are LLM-Generated Analogies for Student Understanding and Classroom Practice?Zekai Shao, Siyu Yuan, Lin Gao, Yixuan He et al.CHI 2025 · 12 citations
  5. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
Dusk over the sea between two cliffs drawn in fine vertical lines