Can LLMs Reason in the Wild with Programs?

Yuan Yang, Siheng Xiong, Ali Payani, Ehsan Shareghi, Faramarz Fekri

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

Abstract

Large Language Models (LLMs) have shown superior capability to solve reasoning problems with programs. While being a promising direction, most of such frameworks are trained and evaluated in settings with a prior knowledge of task requirements. However, as LLMs become more capable, it is necessary to assess their reasoning abilities in more realistic scenarios where many real-world problems are open-ended with ambiguous scope, and often require multiple formalisms to solve. To investigate this, we introduce the task of reasoning in the wild, where an LLM is tasked to solve a reasoning problem of unknown type by identifying the sub-problems and their corresponding formalisms, and writing a program to solve each sub-problem, guided by a tactic. We create a large tactic-guided trajectory dataset containing detailed solutions to a diverse set of reasoning problems, ranging from well-defined single-form reasoning (e.g., math, logic), to ambiguous and hybrid ones (e.g., commonsense, combined math and logic). This allows us to test various aspects of LLMs reasoning at the fine-grained level such as the selection and execution of tactics, and the tendency to take undesired shortcuts. In experiments, we highlight that existing LLMs fail significantly on problems with ambiguous and mixed scope, revealing critical limitations and overfitting issues (e.g. accuracy on GSM8K drops by at least 50%). We further show the potential of finetuning a local LLM on the tactic-guided trajectories in achieving better performance. Project repo is available at https://github.com/gblackout/Reason-in-the-Wild.
Original languageEnglish
Title of host publicationEMNLP 2024, The 2024 Conference on Empirical Methods in Natural Language Processing, Findings of EMNLP 2024
EditorsYaser Al-Onaizan, Mohit Bansal, Yun-Nung (Vivian) Chen
Place of PublicationKerrville TX USA
PublisherAssociation for Computational Linguistics (ACL)
Pages9806–9829
Number of pages24
ISBN (Electronic)9798891761681
Publication statusPublished - 2024
EventEmpirical Methods in Natural Language Processing 2024 - Hyatt Regency Miami Hotel, Miami, United States of America
Duration: 12 Nov 202416 Nov 2024
https://aclanthology.org/volumes/2024.emnlp-main/
https://2024.emnlp.org/
https://aclanthology.org/events/emnlp-2024/#2024emnlp-main

Conference

ConferenceEmpirical Methods in Natural Language Processing 2024
Abbreviated titleEMNLP 2024
Country/TerritoryUnited States of America
CityMiami
Period12/11/2416/11/24
Internet address

Cite this