Lune

ICLR2024顶会

Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification

Aojun Zhou, Ke Wang, Zimu Lu, Weikang Shi, Sichun Luo, Zipeng Qin, Shaoqing Lu, Anya Jia, Linqi Song, Mingjie Zhan, Hongsheng Li

摘要

Recent progress in large language models (LLMs) like GPT-4 and PaLM-2 has brought significant advancements in addressing math reasoning problems. In particular, OpenAI's latest version of GPT-4, known as GPT-4 Code Interpreter, shows remarkable performance on challenging math datasets. In this paper, we explore the effect of code on enhancing LLMs' reasoning capability by introducing different constraints on the Code Usage Frequency of GPT-4 Code Interpreter. We found that its success can be largely attributed to its powerful skills in generating and executing code, evaluating the output of code execution, and rectifying its solution when receiving unreasonable outputs. Based on this insight, we propose a novel and effective prompting method, explicit code-based self-verification (CSV), to further boost the mathematical reasoning potential of GPT-4 Code Interpreter. This method employs a zero-shot prompt on GPT-4 Code Interpreter to encourage it to use code to self-verify its answers. In instances where the verification state registers as ``False'', the model shall automatically amend its solution, analogous to our approach of rectifying errors during a mathematics examination. Furthermore, we recognize that the states of the verification result indicate the confidence of a solution, which can improve the effectiveness of majority voting. With GPT-4 Code Interpreter and CSV, we achieve an impressive zero-shot accuracy on MATH dataset (53.9% →\to 84.3%).

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 54 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Large Language Models Cannot Self-Correct Reasoning Yet 引用了 Large Language Models are Zero-Shot Reasoners
  • Large Language Models Cannot Self-Correct Reasoning Yet 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models 引用了 Language Models are Few-Shot Learners
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Measuring Massive Multitask Language Understanding 引用了 Language Models are Few-Shot Learners
  • MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning 引用了 Measuring Massive Multitask Language Understanding
  • MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning 引用了 Large Language Models are Zero-Shot Reasoners
  • MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving 引用了 MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning
  • ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Large Language Models are Zero-Shot Reasoners 引用了 Language Models are Few-Shot Learners
  • Large Language Models are Zero-Shot Reasoners 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning 引用了 Measuring Massive Multitask Language Understanding
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning 引用了 MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning 引用了 Large Language Models are Zero-Shot Reasoners
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning 引用了 Language Models are Few-Shot Learners
  • MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models 引用了 Measuring Massive Multitask Language Understanding
  • QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper54

  1. Large Language Models Cannot Self-Correct Reasoning YetJie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng 等ICLR 2024 · 858 次引用
  2. MAmmoTH: Building Math Generalist Models through Hybrid Instruction TuningXiang Yue, Xingwei Qu, Ge Zhang, Yao Fu 等ICLR 2024 · 558 次引用
  3. ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem SolvingZhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen 等ICLR 2024 · 289 次引用
  4. MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical ReasoningKe Wang, Houxing Ren, Aojun Zhou, Zimu Lu 等ICLR 2024 · 188 次引用
  5. QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language ModelsYuhui Xu, Lingxi Xie, Xiaotao Gu, Xin Chen 等ICLR 2024 · 179 次引用

它引用的 Paper16

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  3. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo 等NeurIPS 2022 · 8,168 次引用
  4. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
  5. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran 等NeurIPS 2023 · 5,068 次引用

相关 Paper

  1. SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step ReasoningNing Miao, Yee Whye Teh, Tom RainforthICLR 2024 · 195 次引用
  2. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon 等ICML 2023 · 700 次引用
  3. On the self-verification limitations of large language models on reasoning and planning tasksKaya Stechly, Karthik Valmeekam, Subbarao KambhampatiICLR 2025
  4. Competition-Level Problems are Effective LLM EvaluatorsYiming Huang, Zhenghao Lin, Xiao Liu, Yeyun Gong 等ACL Findings 2024 · 7 次引用
  5. Reasoning in Large Language Models Through Symbolic Math Word ProblemsVedant Gaur, Nikunj SaunshiACL Findings 2023 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖