Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Qin, Chengwei, Xia, Wenhan, Wang, Tan, Jiao, Fangkai, Hu, Yuchen, Ding, Bosheng, Chen, Ruirui, Joty, Shafiq
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918042244481024
author Qin, Chengwei
Xia, Wenhan
Wang, Tan
Jiao, Fangkai
Hu, Yuchen
Ding, Bosheng
Chen, Ruirui
Joty, Shafiq
author_facet Qin, Chengwei
Xia, Wenhan
Wang, Tan
Jiao, Fangkai
Hu, Yuchen
Ding, Bosheng
Chen, Ruirui
Joty, Shafiq
contents 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 self-generating 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 self-generated 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_12728
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?
Qin, Chengwei
Xia, Wenhan
Wang, Tan
Jiao, Fangkai
Hu, Yuchen
Ding, Bosheng
Chen, Ruirui
Joty, Shafiq
Computation and Language
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 self-generating 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 self-generated 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.
title Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?
topic Computation and Language
url https://arxiv.org/abs/2404.12728