The MATH benchmark (also called the MATH dataset) is a collection of 12,500 competition mathematics problems with full step-by-step solutions, used in model evaluation to measure how well language models solve multi-step mathematical problems. Introduced in 2021 by researchers led by Dan Hendrycks, it draws problems from high school competitions such as the AMC 10, AMC 12 and AIME and grades a model by whether its final answer exactly matches the reference answer.
In artificial intelligence research, MATH became the standard yardstick for mathematical reasoning after the grade-school benchmark GSM8K grew too easy. Its history is also a case study in benchmark saturation: early large models solved only a few percent of problems, while recent reasoning models score above 90 percent on its widely used subsets.
Structure of the MATH dataset
The MATH dataset is split into 7,500 training problems and 5,000 test problems. Each problem carries a subject label, a difficulty level from 1 to 5, and a worked solution written in LaTeX whose final answer is enclosed in a \boxed{} command. The levels follow the internal grading of the source competitions, so Level 5 problems resemble the harder AIME items while Level 1 problems are routine exercises.
The problems span seven subjects, summarized in the table below together with the kind of reasoning each one demands.
| Subject | Typical content | Main reasoning demand |
|---|---|---|
| Prealgebra | Fractions, ratios, basic equations | Careful arithmetic |
| Algebra | Linear and quadratic equations, functions | Symbolic manipulation |
| Number theory | Divisibility, modular arithmetic, primes | Case analysis and invariants |
| Counting and probability | Combinatorics, expected value | Avoiding double counting |
| Geometry | Triangles, circles, areas | Spatial reasoning from text |
| Intermediate algebra | Polynomials, inequalities, sequences | Longer derivations |
| Precalculus | Trigonometry, vectors, complex numbers | Identities and transformations |
The original release also included AMPS, an auxiliary pretraining corpus of mathematics problems, intended to test whether additional math-specific data improves results. The authors reported that scaling model size alone produced only slow gains, an observation later models overturned through better data and reasoning techniques.
How MATH scores are computed
The headline metric is accuracy by exact match of the final answer. The evaluator extracts the content of the last boxed expression in the model output, applies answer normalization, and compares it with the reference. Normalization removes units, spaces and formatting differences so that equivalent expressions are counted as correct.
Normalization is the most fragile part of the protocol. Simple string rules may reject a correct answer written as 0.5 when the reference is 1/2, while more permissive checkers use symbolic equivalence with a computer algebra system. Reported scores therefore depend on the evaluation harness, and results from different codebases are not always comparable.
| Choice | Common options | Effect on score |
|---|---|---|
| Answer checking | String match or symbolic equivalence | Symbolic checks raise scores slightly |
| Prompting | Zero-shot or few-shot with examples | Few-shot helps weaker base models |
| Sampling | Single answer or majority vote | Majority voting adds several points |
| Test subset | Full 5,000 or MATH-500 | Subset scores are not identical |
| Tool use | Pure text or code execution | Code tools reduce arithmetic errors |
Because the full test set is expensive to run, many papers report MATH-500, a representative subset of 500 test problems created for research on process supervision. Its distribution of subjects and levels mirrors the full test set closely.
Careful reports also break results down by subject and by difficulty level. An aggregate score can hide a model that is strong in algebra but weak in geometry, and gains at Level 5 are usually more informative than gains at Level 1. Reporting the number of samples, the decoding temperature and the checker version makes a result reproducible and lets readers compare it with other published numbers on equal terms.
MATH compared with other mathematics benchmarks
MATH occupies the middle of the difficulty ladder for mathematical evaluation. It is clearly harder than GSM8K, which tests multi-step arithmetic word problems, and clearly easier than research-level sets such as FrontierMath. The comparison below shows where it sits.
| Benchmark | Problem source | Difficulty | Answer format |
|---|---|---|---|
| GSM8K | Written grade-school word problems | Low | Single integer |
| MATH | High school competitions | Medium to high | Normalized expression |
| AIME benchmark | Annual AIME contests | High | Integer from 0 to 999 |
| FrontierMath | New problems by research mathematicians | Very high | Automatically verifiable value |
The AIME benchmark is often preferred today for frontier models because each year adds fresh problems, which reduces the risk that test items appeared in training data.
Saturation, contamination and other limitations
The MATH benchmark shows a steep progress curve. At release, large general-purpose models scored in the single digits. Models trained on mathematical web data later passed 50 percent, and reasoning models that generate long chains of thought now exceed 90 percent on MATH-500. At that level, remaining errors are often caused by ambiguous problems or label mistakes, which is a typical sign of benchmark saturation.
- Benchmark contamination: the problems and solutions are public and widely copied online, so models may have seen them during pretraining.
- Answer-only grading: a correct final answer can come from flawed reasoning, and the metric does not check the derivation.
- Label noise: a small share of reference answers or problem statements are ambiguous or incorrect.
- Limited scope: the dataset does not test proof writing, research mathematics or long formal arguments.
Practitioners therefore treat MATH as a regression check and a historical reference point rather than a decisive frontier measurement. Robust evaluations pair it with fresh contest problems, perturbed variants of known problems and step-level grading.
Understanding it simply
The MATH benchmark is a big math exam for AI models. It holds thousands of problems from high school math contests. Some are easy. Others are hard even for strong students.
The model must solve each problem and give a final answer. A program then checks whether that answer is correct. The share of correct answers is the score. Early models failed almost every problem. Today the best models pass nine out of ten, so researchers also use newer and harder exams.
Applied in practice
A research team fine-tunes an open 7-billion-parameter language model on additional mathematics data and wants to know whether the change helped. They run the model on MATH-500 with a fixed prompt, a symbolic answer checker and one sample per problem, and compare it with the original checkpoint under identical settings.
The fine-tuned model improves from 38 percent to 47 percent overall, with the largest gains in algebra and the smallest in geometry. Level 5 accuracy rises only slightly. Before reporting the result, the team searches its training data for overlapping problem text and removes a few dozen near-duplicates, then reruns the test. The gain holds at about 8 points, which gives them a credible, contamination-checked improvement to publish alongside AIME results.