arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12728cs.CL
收藏

相关还是随机:LLM能真正进行类比推理吗?

Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Princeton University(普林斯顿大学);Nanyang Technological University(南洋理工大学);Salesforce Research(Salesforce 研究);Institute of High Performance Computing (IHPC), Agency for Science, Technology and Research (A*STAR), Singapore(高性能计算研究所,新加坡科技研究局)

Chengwei Qin, Wenhan Xia, Tan Wang, Fangkai Jiao, Yuchen Hu, Bosheng Ding, Ruirui Chen, Shafiq Joty

AI总结:

本文探讨了LLMs能否真正进行类比推理,发现自生成随机示例在某些任务上与相关示例效果相当甚至更好,并指出示例准确性是关键因素,据此设计了提升性能且降低推理成本的新方法。

摘要:

类比推理是人类的一种独特能力,通过从相关的过往经验中迁移策略来应对陌生挑战。心理学的一个关键发现是,与无关的过往经验相比,回忆相关经验能帮助人类更好地处理新任务。巧合的是,NLP社区最近也发现,在上下文中自生成相关示例比人工设计的提示更能帮助大型语言模型(LLMs)解决给定问题。然而,目前尚不清楚相关性是否是激发这种能力的关键因素,即LLMs从自生成的相关示例中获得的收益是否大于无关示例?在本研究中,我们系统地探讨了LLMs能否在多样化的推理任务集合上真正进行类比推理。通过大量实验和分析,我们发现自生成的随机示例在某些任务上能出人意料地取得相当甚至更好的性能,例如,使用随机生物示例在GSM8K上提升了4%的性能。我们发现自生成示例的准确性是关键因素,随后设计了两种新方法,不仅提升了性能,还显著降低了推理成本。总体而言,我们旨在深化对LLM类比推理的理解,并希望本研究能激发关于自生成上下文设计的进一步研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑