Can LLMs Reason in the Wild with Programs?
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
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 subproblems and their corresponding formalisms, and writing a program to solve each subproblem, 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 github.com/gblackout/Reason-in-the-Wild
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 18 of its 22 references that are in the map. First posted on arXiv 19 Jun 2024.
Builds on
18 of 22 references.
Closest ancestors · 8
Same direction, newest first
- 2024Advancing LLM Reasoning Generalists with Preference Trees2 Apr
- 2023Program-Aided Reasoners (better) Know What They Know16 Nov
- 2023Language Models can be Logical Solvers10 Nov
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Provers23 Oct
- 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning20 May
- 2022PAL: Program-aided Language Models18 Nov
- 2022ReAct: Synergizing Reasoning and Acting in Language Models6 Oct
- 2022FOLIO: Natural Language Reasoning with First-Order Logic2 Sep
Other references · 10
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2023Cognitive Architectures for Language Agentscited by 422
- 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 276
- 2023FireAct: Toward Language Agent Fine-tuningcited by 247
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2023Harnessing the Power of Large Language Models for Natural Language to First-Order Logic Translationcited by 59
- 2021proScript: Partially Ordered Scripts Generation via Pre-trained Language Modelscited by 21
Built on by
Citing papers per year: 2024: 4; 2025: 7; 2026: 2.
13 papers.
Sort:
By area:
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Modelscited by 20
- 2024Deliberate Reasoning in Language Models as Structure-Aware Planning with an Accurate World Modelcited by 20
- 2025TableMaster: A Recipe to Advance Table Understanding with Language Modelscited by 18
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learningcited by 15
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidancecited by 11
- 2024Shortcut Learning in In-Context Learning: A Surveycited by 8
- 2025ALinFiK: Learning to Approximate Linearized Future Influence Kernel for Scalable Third-Party LLM Data Valuationcited by 6
- 2024The Compressor-Retriever Architecture for Language Model OScited by 5
- 2026PathWise: Planning through World Model for Automated Heuristic Design via Self-Evolving LLMscited by 5
- 2025Deliberate Planning in Language Models with Symbolic Representationcited by 3
- 2025CMQCIC-Bench: A Chinese Benchmark for Evaluating Large Language Models in Medical Quality Control Indicator Calculationcited by 0
- 2026ROG: Retrieval-Augmented LLM Reasoning for Complex First-Order Queries over Knowledge Graphs2 Feb 2026
- 2026PathWise: Planning through World Model for Automated Heuristic Design via Self-Evolving LLMs28 Jan 2026
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning27 May 2025
- 2025Deliberate Planning in Language Models with Symbolic Representation2 May 2025
- 2025ALinFiK: Learning to Approximate Linearized Future Influence Kernel for Scalable Third-Party LLM Data Valuation2 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025CMQCIC-Bench: A Chinese Benchmark for Evaluating Large Language Models in Medical Quality Control Indicator Calculation17 Feb 2025
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance4 Feb 2025
- 2025TableMaster: A Recipe to Advance Table Understanding with Language Models31 Jan 2025
- 2024Shortcut Learning in In-Context Learning: A Survey4 Nov 2024
- 2024Deliberate Reasoning in Language Models as Structure-Aware Planning with an Accurate World Model4 Oct 2024
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Models29 Sep 2024
1 more
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learningcited by 15
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidancecited by 11
- 2026ROG: Retrieval-Augmented LLM Reasoning for Complex First-Order Queries over Knowledge Graphscited by 0
- 2026ROG: Retrieval-Augmented LLM Reasoning for Complex First-Order Queries over Knowledge Graphs2 Feb 2026
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning27 May 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance4 Feb 2025
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Modelscited by 20
- 2025TableMaster: A Recipe to Advance Table Understanding with Language Modelscited by 18
- 2024Shortcut Learning in In-Context Learning: A Surveycited by 8
- 2025ALinFiK: Learning to Approximate Linearized Future Influence Kernel for Scalable Third-Party LLM Data Valuationcited by 6
- 2024The Compressor-Retriever Architecture for Language Model OScited by 5
- 2025Deliberate Planning in Language Models with Symbolic Representationcited by 3
- 2025CMQCIC-Bench: A Chinese Benchmark for Evaluating Large Language Models in Medical Quality Control Indicator Calculationcited by 0
- 2025Deliberate Planning in Language Models with Symbolic Representation2 May 2025
- 2025ALinFiK: Learning to Approximate Linearized Future Influence Kernel for Scalable Third-Party LLM Data Valuation2 Mar 2025
- 2025CMQCIC-Bench: A Chinese Benchmark for Evaluating Large Language Models in Medical Quality Control Indicator Calculation17 Feb 2025
- 2025TableMaster: A Recipe to Advance Table Understanding with Language Models31 Jan 2025
- 2024Shortcut Learning in In-Context Learning: A Survey4 Nov 2024
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Models29 Sep 2024
- 2024The Compressor-Retriever Architecture for Language Model OS2 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models
- 2024A Closer Look at Logical Reasoning with LLMs: The Choice of Tool Matters
- 2024Can LLMs Reason with Rules? Logic Scaffolding for Stress-Testing and Improving LLMs
- 2025Frontier LLMs Still Struggle with Simple Reasoning Tasks
- 2024LLMs for Relational Reasoning: How Far are We?
- 2023Are LLMs the Master of All Trades? : Exploring Domain-Agnostic Reasoning Skills of LLMs
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?
- 2025Reasoning LLMs are Wandering Solution Explorers