Lune

EMNLP Findings2023

Automatic Model Selection with Large Language Models for Reasoning

James Xu Zhao, Yuxi Xie, Kenji Kawaguchi, Junxian He, Michael Qizhe Xie

Abstract

Chain-of-Thought (CoT) and Program-Aided Language Models (PAL) represent two distinct reasoning methods, each with its own strengths. CoT employs natural language, offering flexibility and interpretability, while PAL utilizes programming language, yielding more structured and rigorous logic. We introduce a model selection method to combine the best of both worlds by employing a large language model (LLM) to dynamically select between them. Our theoretical analysis underscores the feasibility of this method, which is further corroborated by empirical results. Our proposed method demonstrates significant performance improvements across eight reasoning datasets with Codex, ChatGPT, and GPT-4. Additionally, our method is complementary to selfconsistency; when integrated, it can further enhance performance while significantly reducing computation costs. Moreover, we achieve new state-of-the-art results on GSM8K and SVAMP, with respective accuracies of 96.8% and 93.7%. 1

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.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification cites Self-Refine: Iterative Refinement with Self-Feedback
  • Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification cites Large Language Models are Zero-Shot Reasoners
  • Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification cites Language Models are Few-Shot Learners
  • Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Self-Refine: Iterative Refinement with Self-Feedback
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Language Models are Few-Shot Learners
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines cites Self-Refine: Iterative Refinement with Self-Feedback
  • DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines cites Large Language Models are Zero-Shot Reasoners
  • DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines cites Language Models are Few-Shot Learners
  • DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Metacognitive Capabilities of LLMs: An Exploration in Mathematical Problem Solving cites Large Language Models are Zero-Shot Reasoners
  • Metacognitive Capabilities of LLMs: An Exploration in Mathematical Problem Solving cites Language Models are Few-Shot Learners
  • Metacognitive Capabilities of LLMs: An Exploration in Mathematical Problem Solving cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning cites Self-Refine: Iterative Refinement with Self-Feedback
  • Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning cites Language Models are Few-Shot Learners
  • Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Self-Refine: Iterative Refinement with Self-Feedback cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Large Language Models are Zero-Shot Reasoners cites Language Models are Few-Shot Learners
  • Large Language Models are Zero-Shot Reasoners cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning cites Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning cites Large Language Models are Zero-Shot Reasoners
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning cites Language Models are Few-Shot Learners
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-VerificationAojun Zhou, Ke Wang, Zimu Lu, Weikang Shi et al.ICLR 2024 · 206 citations
  2. MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical ReasoningKe Wang, Houxing Ren, Aojun Zhou, Zimu Lu et al.ICLR 2024 · 188 citations
  3. DSPy: Compiling Declarative Language Model Calls into State-of-the-Art PipelinesOmar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang et al.ICLR 2024 · 170 citations
  4. Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient ReasoningMurong Yue, Jie Zhao, Min Zhang, Liang Du et al.ICLR 2024 · 153 citations
  5. Metacognitive Capabilities of LLMs: An Exploration in Mathematical Problem SolvingAniket Didolkar, Anirudh Goyal, Nan Rosemary Ke, Siyuan Guo et al.NeurIPS 2024 · 101 citations

Builds on14

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  3. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
  4. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran et al.NeurIPS 2023 · 5,068 citations
  5. Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan et al.NeurIPS 2023 · 4,972 citations

Related papers

  1. Empowering Multi-step Reasoning across Languages via Program-Aided Language ModelsLeonardo Ranaldi, Giulia Pucci, Barry Haddow, Alexandra BirchEMNLP 2024 · 2 citations
  2. How Do Humans Write Code? Large Models Do It the Same Way TooLong Li, Xuzheng He, Haozhe Wang, Linlin Wang et al.EMNLP 2024 · 1 citation
  3. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
  4. Large Language Models are Better Reasoners with Self-VerificationYixuan Weng, Minjun Zhu, Fei Xia, Bin Li et al.EMNLP Findings 2023 · 110 citations
  5. Self-Consistency from Only Two Samples: CoT-PoT Ensembling for Efficient LLM ReasoningRaman Saparkhan, Majd Hawasly, Md. Rizwan Parvez, Mohammad RazaACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines