Robots Atlas>ROBOTS ATLAS
Evaluation

GSM8K

2021ActivePublished: 10 September 2026Updated: 10 September 2026Published
Key innovation
The first large, high-quality benchmark of multi-step arithmetic reasoning for language models: 8.5K grade-school word problems with natural-language step-by-step solutions and an unambiguous final-answer format (####).
Category
Evaluation
Abstraction level
Building block
Operation level
Evaluation (runtime)Post-trainingInference
Use cases
Evaluating multi-step mathematical reasoning in LLMsStandard benchmark for chain-of-thought promptingTraining and evaluating solution verifiersResearch on self-consistency and multi-sample decodingFinetuning models for arithmetic reasoning

How it works

Each record contains the problem statement and a reference solution written in natural language as a sequence of steps. Calculations are wrapped in calculator annotations <<calculation=result>> (e.g., <<50*3=150>>), and the final numeric answer appears after the #### marker on the last line. Evaluation works by having the model generate a solution (typically with chain-of-thought reasoning), extracting the number after ####, and comparing it to the reference answer (exact match). The Socratic variant injects automatically generated sub-questions before each step. In the original method the authors generated many candidate solutions and selected the one ranked highest by a trained verifier, which improved accuracy over plain finetuning.

Problem solved

There was no standardized benchmark that was hard enough yet still solvable for measuring multi-step arithmetic reasoning in language models. Earlier datasets were either too easy (saturated) or too templated, letting models guess answers without genuine reasoning. GSM8K provides linguistically diverse problems that require a chain of several steps, with an explicit answer format that enables automatic, unambiguous evaluation.

Components

Problem statementModel input

A grade-school math word problem, linguistically diverse, requiring 2–8 reasoning steps.

Step-by-step solutionLabel / training target and reference

Reference solution in natural language written out as a sequence of elementary calculations.

Calculator annotationsArithmetic control

Calculations wrapped in <<calculation=result>> markers, enabling an external calculator to be injected and arithmetic to be verified.

Official

Final answer marker (####)Evaluation protocol

Numeric answer after the #### marker on the last line, enabling unambiguous automatic evaluation (exact match).

Socratic variantAlternative supervision format

A format modification injecting automatically generated sub-questions before each solution step.

Official

VerifierAccuracy-improvement method

A model that ranks many generated candidate solutions; selecting the highest-ranked one outperforms plain finetuning (the method from the original paper).

Official

Implementation

Implementation pitfalls
Data contaminationHigh

GSM8K has leaked into many models' pretraining corpora, inflating scores and undermining fair comparisons.

Fix:Use robustness variants (e.g., GSM-Symbolic), report data cutoffs, and use fresh, generated variants.
Answer extractionMedium

Incorrect parsing of the number after #### (formatting, commas, units) leads to under- or over-counted scores.

Fix:Normalize numbers (strip separators, units) and use a consistent, unambiguous final-answer parser.
Handling calculator annotationsLow

The <<...>> annotations must be stripped before text evaluation or consistently used as an external calculator; inconsistency skews comparisons.

Fix:Decide on a single protocol (with or without calculator) and apply it to all compared models.
Limited scope (English, grade-school level)Medium

The dataset covers only English grade-school arithmetic problems; a high score does not prove general mathematical ability.

Fix:Complement evaluation with harder and multilingual benchmarks (e.g., MATH, MGSM).

Evolution

Original paper · 2021 · arXiv:2110.14168 (OpenAI) · Karl Cobbe
Training Verifiers to Solve Math Word Problems
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, John Schulman
2021
GSM8K released
Inflection point

OpenAI releases GSM8K together with a method of training verifiers that rank multiple solutions.

2022
Chain-of-Thought makes GSM8K a standard
Inflection point

Chain-of-thought prompting (Wei et al.) dramatically improves GSM8K scores, establishing it as a core LLM reasoning benchmark.

2022
Self-consistency

Self-consistency (Wang et al.) further raises GSM8K accuracy by sampling multiple reasoning paths and voting.

2023
Approaching saturation

Frontier models exceed 90% accuracy on GSM8K, signaling benchmark saturation and the need for harder tests.

2024
GSM-Symbolic probes robustness

GSM-Symbolic (Apple) generates symbolic variants of GSM8K problems, revealing model sensitivity to surface changes and data-contamination risk.

Hyperparameters (configurable axes)

Number of reasoning stepsHigh

Number of elementary steps needed to solve a problem.

2–8Step range across all problems in the dataset.
Train/test splitMedium

Split of the dataset into training and test portions.

7 473 / 1 319Training / test problems (main variant).
Evaluation metricCritical

How the correctness of a model's answer is scored.

exact-match accuracyExact match of the number after #### to the reference answer.
Prompting strategyHigh

How the model is queried, strongly affecting the score.

few-shot chain-of-thoughtTypical protocol; commonly 8-shot CoT.
self-consistencySampling multiple paths and majority voting.