Skip to main content
QUICK REVIEW

[Paper Review] WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct

Haipeng Luo, Qingfeng Sun|arXiv (Cornell University)|Aug 18, 2023
Topic ModelingComputer Science27 citations
TL;DR

WizardMath is an open-source Llama-2–based model trained with Reinforcement Learning from Evol-Instruct Feedback (RLEIF) to achieve state-of-the-art mathematical reasoning on GSM8k and MATH, surpassing many open-source models and some closed-source ones on these benchmarks.

ABSTRACT

Large language models (LLMs), such as GPT-4, have shown remarkable performance in natural language processing (NLP) tasks, including challenging mathematical reasoning. However, most existing open-source models are only pre-trained on large-scale internet data and without math-related optimization. In this paper, we present WizardMath, which enhances the mathematical CoT reasoning abilities of LLMs without using external python tools, by applying our proposed Reinforcement Learning from Evol-Instruct Feedback (RLEIF) method to the domain of math. Through extensive experiments on two mathematical reasoning benchmarks, namely GSM8k and MATH, we reveal the extraordinary capabilities of our model. Remarkably, WizardMath-Mistral 7B surpasses top-tier open-source LLMs by a substantial margin with higher data efficiency. Furthermore, WizardMath 70B even outperforms GPT-3.5-Turbo, Claude 2, Gemini Pro and GPT-4-early-version. Additionally, our preliminary exploration highlights the pivotal role of instruction evolution and process supervision in achieving exceptional math performance. For more details refer to https://github.com/nlpxucan/WizardLM

Motivation & Objective

  • Motivate the need for better open-source mathematical reasoning in LLMs.
  • Propose a novel training framework (RLEIF) that combines Evol-Instruct, instruction reward modeling, and process-supervised rewards.
  • Demonstrate state-of-the-art performance on GSM8k and MATH compared with open-source and some closed-source models.

Proposed method

  • Fine-tune Llama-2 with supervised instruction-following data including step-by-step math solutions.
  • Develop Evol-Instruct to generate diverse and progressively harder/easier math instructions (downward and upward evolution).
  • Train two reward models: Instruction Reward Model (IRM) for instruction quality and Process-supervised Reward Model (PRM) for per-step solution feedback.
  • Apply Proximal Policy Optimization (PPO) using a final reward r = rI × rA to conduct reinforcement learning with evolved data.

Experimental results

Research questions

  • RQ1Can RLEIF and Evol-Instruct-based data augmentation improve open-source LLMs’ mathematical reasoning to surpass baseline open-source models?
  • RQ2How does WizardMath perform on GSM8k and MATH compared with close-source and other open-source models?
  • RQ3What is the impact of scaling model size (7B, 13B, 70B) on GSM8k and MATH performance under the RLEIF framework?

Key findings

  • WizardMath 70B achieves 81.6 pass@1 on GSM8k, with a +24.8 improvement over a baseline of 56.8.
  • WizardMath 70B achieves 22.7 pass@1 on MATH, with a +9.2 improvement over a baseline of 13.5.
  • WizardMath 13B reaches 63.9 pass@1 on GSM8k, with a +35.2 improvement over the baseline of 28.7.
  • WizardMath 13B reaches 14.0 pass@1 on MATH, with a +10.1 improvement over the baseline of 3.9.
  • WizardMath 7B reaches 54.9 pass@1 on GSM8k, with a +3.3 improvement over the baseline of 51.6, and 10.7 on MATH, with a +7.7 improvement over the baseline of 2.9.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.