Measuring Mathematical Problem Solving With the MATH Dataset

Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart +3 more
3/5/2021
cs.LGcs.AIcs.CL

Official code: hendrycks/math (1,394 stars, MIT, last commit 2025-09-06).

Abstract

Many intellectual endeavors require mathematical problem solving, but this skill remains beyond the capabilities of computers. To measure this ability in machine learning models, we introduce MATH, a new dataset of 12,500 challenging competition mathematics problems. Each problem in MATH has a full step-by-step solution which can be used to teach models to generate answer derivations and explanations. To facilitate future research and increase accuracy on MATH, we also contribute a large auxiliary pretraining dataset which helps teach models the fundamentals of mathematics. Even though we are able to increase accuracy on MATH, our results show that accuracy remains relatively low, even with enormous Transformer models. Moreover, we find that simply increasing budgets and model parameter counts will be impractical for achieving strong mathematical reasoning if scaling trends continue. While scaling Transformers is automatically solving most other text-based tasks, scaling is not currently solving MATH. To have more traction on mathematical problem solving we will likely need new algorithmic advancements from the broader research community.

View on arXivView PDF

Code Implementations(1)

hendrycks/mathOfficial100%
MIT

The MATH Dataset (NeurIPS 2021)

1,394117PythonFeb 10, 20211 years agoMIT
logicmathreasoning

Similar Papers

Cite this paper

@article{hendrycks2021measuring,
  title  = {Measuring Mathematical Problem Solving With the MATH Dataset},
  author = {Dan Hendrycks and Collin Burns and Saurav Kadavath and Akul Arora and Steven Basart and Eric Tang and Dawn Song and Jacob Steinhardt},
  year   = {2021},
  eprint = {2103.03874},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.03874}
}

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

Discussion