paper-with-me

홈 › Papers

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

2023-08-15 · 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 \textit{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 \uline{c}ode-based \uline{s}elf-\uline{v}erification~(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 \textbf{(53.9\% $\to$ 84.3\%)}.

📄 PDF Abstract BibTeX arXiv:2308.07921

Code (1)

kipok/nemo-skills

Tasks

Arithmetic ReasoningMathMathematical ReasoningMath Word Problem Solving

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Residual Connection 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Semantically-Aligned Equation Generation for Solving and Reasoning Math Word Problems

2018-11-02 · NAACL 2019 6 · Ting-Rui Chiang, Yun-Nung Chen

Solving math word problems is a challenging task that requires accurate natural language understanding to bridge natural language texts and math expressions. Motivated by the intuition about how human generates the equat…

DecoderMathMath Word Problem SolvingNatural Language Understanding+1

Solving Math Word Problems by Combining Language Models With Symbolic Solvers

2023-04-16 · Joy He-Yueya, Gabriel Poesia, Rose E. Wang, Noah D. Goodman

Automatically generating high-quality step-by-step solutions to math word problems has many applications in education. Recently, combining large language models (LLMs) with external tools to perform complex reasoning and…

GSM8KLanguage ModelingLanguage ModellingMath

Solving Math Word Problems with Multi-Encoders and Multi-Decoders

2020-12-01 · COLING 2020 8 · Yibin Shen, Cheqing Jin

Math word problems solving remains a challenging task where potential semantic and mathematical logic need to be mined from natural language. Although previous researches employ the Seq2Seq technique to transform text de…

DecoderMath

Reverse Operation based Data Augmentation for Solving Math Word Problems

2020-10-04 · Qianying Liu, Wenyu Guan, Sujian Li, Fei Cheng 외

Automatically solving math word problems is a critical task in the field of natural language processing. Recent models have reached their performance bottleneck and require more high-quality data for training. We propose…

Data AugmentationMathMathematical ReasoningMath Word Problem Solving

MATHion: Solving Math Word Problems with Logically Consistent Problems

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Solving the math word problems (MWPs) is a challenging task. Some existing MWP solvers retrieve textually similar problems and draw on their solutions to solve the given problem. However, textually similar questions are …

Language ModelingLanguage ModellingMathRetrieval