GSM8K Benchmark: How It Tests Multi-Step Maths Reasoning in AI Models

GSM8K Benchmark: How It Tests Multi-Step Maths Reasoning in AI Models

The GSM8K benchmark is a test of multi-step mathematical reasoning built from about 8,500 grade-school word problems. Each problem is a short story that requires two to eight steps of elementary arithmetic, and the model must work through the steps to reach a single numeric answer. The central question it answers is whether a model can reason its way through a problem, rather than guessing the answer from surface patterns.

GSM8K became one of the most cited reasoning tests in AI because it has something many benchmarks lack: a single verifiable answer. A model’s reasoning can be checked automatically, which made the benchmark a proving ground for chain-of-thought prompting and for training methods that reward correct intermediate reasoning. This article explains how it works, how it is scored, and what its results do and do not prove.

Key takeaways

  • The GSM8K benchmark contains about 8,500 grade-school maths word problems.
  • Each problem needs two to eight steps of addition, subtraction, multiplication or division.
  • It was introduced by OpenAI researchers in 2021, led by Karl Cobbe.
  • Scoring is exact match on the final numeric answer.
  • Frontier models now score in the 90s, so GSM8K no longer separates strong models.

What is the GSM8K benchmark?

GSM8K stands for Grade School Math 8K, and the name describes the dataset precisely: roughly 8,000 grade-school maths problems. It was introduced by OpenAI in 2021 in the paper “Training Verifiers to Solve Math Word Problems”, with Karl Cobbe as first author. The paper studied whether a model could be trained to check its own reasoning, and GSM8K was the dataset built for that study.

The problems were written by people, not generated by templates. The authors first hired freelance writers to produce about 1,000 problems and solutions, then expanded collection through a data-labelling provider. Every problem went through human quality checks for errors, redundancy and diversity, with an estimated error rate below 2%. Linguistic diversity was a deliberate priority: the problems are meant to read like natural stories, not like variations on a single pattern.

Each problem is a short story about everyday quantities: a baker selling loaves, a shopkeeper counting stock, a child saving pocket money. The maths itself is elementary, using only addition, subtraction, multiplication and division. The difficulty lies in chaining the steps correctly, working out which quantities matter, and keeping track of intermediate results.

How the dataset is organised

The released files contain 7,473 training problems and 1,319 test problems, for a total of 8,792 records. The paper rounds these to about 7,500 training and 1,000 test problems, which is why you will see both sets of figures quoted. The test set is the part that matters for reported scores: it is the held-out set that models are judged on.

Each record has a question and an answer. The answer is a step-by-step solution written in natural language, with the calculations annotated and the final numeric answer placed on the last line after a delimiter of four hash marks. That structure is what makes automatic scoring possible: the evaluation script can extract the final number and compare it with the reference.

There is also a variant configuration, sometimes called the Socratic version, which reformats the same solutions into a sequence of sub-questions and answers. It uses the same underlying problems and the same split sizes, so it does not change what is being measured. It exists to support research into step-by-step guidance rather than to provide a separate benchmark.

How GSM8K is scored

Scoring is exact match on the final numeric answer. The evaluation harness extracts the last number from the model’s output, normalises formatting such as commas or trailing decimals, and compares it with the reference integer. The score is the percentage of test problems answered correctly.

The reasoning itself is not graded. A model can receive full credit for the right number even if its written reasoning contains an error, and a correct solution can be marked wrong if the evaluation script fails to extract its answer. That is a known weakness of the benchmark, and it is why scores should always be read alongside the evaluation protocol.

The protocol matters a great deal. The widely used convention is few-shot chain-of-thought prompting with greedy decoding, often with eight worked examples in the prompt. Results obtained with majority voting, where the model answers several times and the most common answer wins, or with a code interpreter, measure a different system configuration and should be labelled as such. A score without its protocol is not comparable with another score.

Why GSM8K mattered

GSM8K arrived at the right moment. Before it, much of the evidence for chain-of-thought prompting came from small or informal tests. GSM8K gave researchers a standard dataset where step-by-step reasoning made a large, measurable difference, and it quickly became the default test for any method that claimed to improve reasoning.

The original paper also introduced an influential idea: verification. A generator model produced many candidate solutions, and a separate verifier model learned to rank them by whether the final answer was correct. That generator-verifier approach produced gains comparable to a large increase in model size, and it shaped later work on training models to check their own work.

The benchmark’s influence spread beyond maths. Because every problem has one verifiable answer, GSM8K became a template for building verifiable benchmarks in other domains, and a testbed for reinforcement learning methods that reward correct answers. For a broader view of how such benchmarks fit into evaluation practice, see our guide to LLM evaluation metrics and where they fail.

What GSM8K does not measure

GSM8K measures arithmetic reasoning on short, self-contained stories. It does not test proof construction, advanced algebra, geometry, or open-ended mathematical research. A model that excels at GSM8K may still fail at the kind of mathematics that requires sustained abstraction or creative problem solving.

It also does not measure whether a model’s reasoning is sound. Since only the final number is graded, a model can reach the right answer through flawed logic, or through a lucky guess after a wrong step. Conversely, a model with correct reasoning can lose a point because of a formatting quirk that defeats the answer extractor. The score is a proxy for reasoning, not a direct measure of it.

The test set is also small enough that a few corrected labels or extraction failures can visibly change a score. With 1,319 test problems, each problem is worth about 0.08 percentage points, but the practical effect is larger: a handful of borderline cases can shift a reported result by a point or more. Small differences between models should therefore be treated with caution.

Why GSM8K is now saturated

Modern frontier models and many small open models score in the 90s on GSM8K, so the benchmark no longer separates strong systems. The top of the range is compressed, and the remaining errors are often label noise or extraction failures rather than genuine reasoning failures. A score above 90% is now expected from any serious general-purpose model.

That does not make GSM8K useless. It remains a useful check for smaller models, where scores still range widely, and as a regression test when a model is changed. But for comparing frontier models, harder mathematics benchmarks have taken over, including tests built from competition problems and graduate-level questions. Our guide to what benchmark scores actually tell you explains why a saturated test stops being informative.

Contamination is a further concern. GSM8K has been widely used since 2021, and its problems may have appeared in training data. A model that has memorised the problems will score higher without reasoning better, and there is no easy way to detect that from the score alone. Newer benchmarks use held-out or freshly written problems to reduce this risk.

How GSM8K compares with other benchmarks

Benchmark What it tests Format Scoring
GSM8K Multi-step grade-school maths Word problems, free-form answer Exact match on final number
MATH Competition-level mathematics Harder problems, free-form answer Exact match on final answer
HumanEval Writing working Python code Function completion, unit tests Pass at k attempts
HellaSwag Commonsense about everyday situations Four-choice sentence completion Accuracy
MMLU Knowledge across academic subjects Four-choice questions Accuracy

The table shows GSM8K’s place in the evaluation landscape. MATH is its natural successor for harder mathematics, using competition problems that demand more than elementary arithmetic. HumanEval shares its emphasis on verifiable answers, but for code rather than maths. HellaSwag and MMLU are multiple-choice tests, which makes them easier to score but less demanding than producing an answer from scratch.

A hand writing a step-by-step arithmetic calculation in a notebook with a pencil
GSM8K problems need two to eight steps of elementary arithmetic, and only the final number is graded.

How to use GSM8K results in practice

Use GSM8K as a reasoning smoke test, not as a final verdict. A model that scores poorly has a genuine weakness in multi-step reasoning, and that weakness will show up in any task that requires chaining steps together. A model that scores in the 90s has passed the test, and you should move on to harder evaluations.

Always ask for the evaluation protocol. Check whether the score used few-shot chain-of-thought prompting, greedy decoding or majority voting, and whether a code interpreter was involved. These choices can move a score by several points, and comparing scores from different protocols is meaningless.

Pair GSM8K with a harder maths test and a test of your actual use case. If you are evaluating models for a product that involves calculation, test them on your own problems as well, since a benchmark score is no substitute for performance on your data. If you are building a broader evaluation, our guide to building an LLM evaluation framework sets out how to combine tests so they guide decisions. Best for: a quick, verifiable check of multi-step reasoning in smaller models, and as a regression test when a model changes.

GSM8K checklist

  • Confirm the score is on the 1,319-problem test set, not the training set.
  • Check the prompting protocol: few-shot chain-of-thought with greedy decoding is the standard.
  • Note whether majority voting or a code interpreter was used, since both raise scores.
  • Treat scores in the 90s as a pass, not as a ranking between frontier models.
  • Investigate scores well below 80% as a real reasoning weakness.
  • Remember that only the final number is graded, so reasoning quality is not measured.
  • Pair GSM8K with a harder maths benchmark for stronger models.
  • Test on your own problems before choosing a model for a maths-heavy product.

Frequently asked questions

How many problems are in the GSM8K benchmark?

GSM8K contains about 8,500 grade-school maths word problems. The released files hold 7,473 training problems and 1,319 test problems, and reported scores use the test set.

Who created GSM8K?

It was created by OpenAI researchers led by Karl Cobbe, and introduced in the 2021 paper “Training Verifiers to Solve Math Word Problems”. The problems were written by human writers and checked for quality.

How is GSM8K scored?

It is scored by exact match on the final numeric answer. The evaluation script extracts the last number from the model’s output and compares it with the reference answer, and the score is the percentage of test problems answered correctly.

What kind of maths does GSM8K test?

Only elementary arithmetic: addition, subtraction, multiplication and division. The difficulty comes from chaining two to eight steps correctly, not from advanced mathematics.

Is GSM8K still useful?

Yes, for smaller models and as a regression test. It is no longer useful for ranking frontier models, which score in the 90s, and harder benchmarks such as MATH are better for that purpose.

Does GSM8K grade the model’s reasoning?

No. Only the final number is graded, so a model can score a point with flawed reasoning, and a correct solution can lose a point if the answer extractor fails to read it.

Latest articles

Scroll to Top