MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline

Minpeng Liao, Wei Luo, Chengxi Li, Jing Wu, Kai Fan
1/16/2024
cs.CL

Official code: MARIO-Math-Reasoning/MARIO (28 stars, MIT, last commit 2024-05-08).

Abstract

Large language models (LLMs) have seen considerable advancements in natural language understanding tasks, yet there remains a gap to bridge before attaining true artificial general intelligence, especially concerning shortcomings in mathematical reasoning capabilities. We postulate that the inherent nature of LLM training, which focuses on predicting probabilities of next token, presents challenges in effectively modeling mathematical reasoning that demands exact calculations, both from data-driven and theoretical standpoints. In this paper, we address this challenge by enriching the data landscape and introducing a novel math dataset, enhanced with a capability to utilize a Python code interpreter. This dataset is derived from GSM8K and MATH and has been further refined through a combination of GPT-4 annotations, human review, and self-training processes, where the errors in the original GSM8K training set have been fixed. Additionally, we propose a tentative, easily replicable protocol for the fine-tuning of math-specific LLMs, which has led to a significant improvement in the performance of a 7B-parameter LLM on the GSM8K and MATH datasets. We are committed to advancing the field of mathematical reasoning in LLMs and, to that end, we have made source code for data generation / training / inference, and the model checkpoints publicly available at \url{https://github.com/MARIO-Math-Reasoning/MARIO}. We hope this will facilitate further research and development within the community.

View on arXivView PDF

Code Implementations(1)

MIT
281PythonJan 8, 20242 years agoMIT

Similar Papers

Cite this paper

@article{liao2024mario,
  title  = {MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline},
  author = {Minpeng Liao and Wei Luo and Chengxi Li and Jing Wu and Kai Fan},
  year   = {2024},
  eprint = {2401.08190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.08190v3}
}

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/2401.08190.svg)](https://codeofpaper.com/paper/2401.08190)

Discussion