Get an A in Math: Progressive Rectification Prompting

Zhenyu Wu, Meng Jiang, Chao Shen
12/11/2023
cs.CL

No official code found. Best implementation: wzy6642/PRP (10 stars, Apache-2.0, last commit 2024-03-18).

Abstract

Chain-of-Thought (CoT) prompting methods have enabled large language models (LLMs) to generate reasoning paths and solve math word problems (MWPs). However, they are sensitive to mistakes in the paths, as any mistake can result in an incorrect answer. We propose a novel method named Progressive Rectification Prompting (PRP) to improve average accuracy on eight MWP datasets from 77.3 to 90.5. Given an initial answer from CoT, PRP iterates a verify-then-rectify process to progressively identify incorrect answers and rectify the reasoning paths. With the most likely correct answer, the LLM predicts a masked numerical value in the question; if the prediction does not match the masked value, the answer is likely incorrect. Then the LLM is prompted to re-generate the reasoning path hinted with a set of incorrect answers to prevent itself from repeating previous mistakes. PRP achieves the best performance compared against the CoT methods. Our implementation is made publicly available at https://wzy6642.github.io/prp.github.io/.

View on arXivView PDF

Code Implementations(1)

wzy6642/PRPCommunity100%
Apache-2.0

Official implementation for "Get an A in Math: Progressive Rectification Prompting" (AAAI 2024)

100PythonDec 11, 20232 years agoApache-2.0
gpt-35-turboiterativemath-word-problem-solvingmulti-step-reasoningrectification+2 more

Similar Papers

Cite this paper

@article{wu2023math,
  title  = {Get an A in Math: Progressive Rectification Prompting},
  author = {Zhenyu Wu and Meng Jiang and Chao Shen},
  year   = {2023},
  eprint = {2312.06867},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.06867v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.06867.svg)](https://codeofpaper.com/paper/2312.06867)

Discussion