---
title: "GSM8K (Grade School Math 8K)"
source: "https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)"
wiki: "systems-analysis.info/eng"
article: "GSM8K_(Grade_School_Math_8K)"
language: "en"
categories:
  - "Category:English"
  - "Category:Large language models"
  - "Category:LLM benchmarks"
  - "Category:Machine learning"
  - "Category:Technology"
revision_id: 161
wiki_created_at: 2026-09-06T22:18:14Z
wiki_modified_at: 2026-09-06T22:18:14Z
downloaded_at: 2026-09-07T22:21:28Z
---

# GSM8K (Grade School Math 8K)

**GSM8K** (**Grade School Math 8K**) is a benchmark dataset containing approximately 8,500 grade-school-level math word problems. It was created in 2021 by researchers at **OpenAI** to evaluate and advance the multi-step mathematical reasoning capabilities of [large language models](https://systems-analysis.info/eng/Large_language_model "Large language model") (LLMs)<sup>[\[1\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-openai2021-1)</sup>. GSM8K has become one of the key benchmarks for measuring progress in the field of artificial intelligence's mathematical reasoning.

Each problem in the dataset is a short word problem that requires 2 to 8 sequential arithmetic operations (addition, subtraction, multiplication, division) to solve. Despite their apparent simplicity, the problems demand a deep understanding of the text and logical reasoning, making them challenging for many LLMs<sup>[\[2\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-pwc-2)</sup>.

## Key Characteristics

### Volume and Structure

The GSM8K dataset contains approximately **8,500 problems**, divided into two parts:

- **Training set**: ~7,500 problems intended for fine-tuning models. Each problem is accompanied by a detailed step-by-step solution.
- **Test set**: ~1,000 problems used for independent evaluation of model performance<sup>[\[1\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-openai2021-1)</sup>.

### Complexity and Content

The problems are intentionally designed to be solvable by a capable middle school student but require **multi-step reasoning**. This allows for testing not just a model's mathematical knowledge, but its ability to decompose a problem and perform logical operations sequentially.

### Linguistic Diversity

The problem statements in GSM8K feature a wide variety of styles and linguistic constructions. This is done to test a model's ability to understand problem conditions expressed in different ways and to avoid "memorizing" specific templates<sup>[\[3\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-klu_benchmark-3)</sup>.

## History and Evolution of Model Evaluation

### Early Models and Baseline Results

In the original 2021 paper, the authors demonstrated that even large models of that time, such as **GPT-3** (175 billion parameters), struggled significantly with the dataset. After fine-tuning and using a supplementary verifier model, the solution accuracy reached only about **55%**<sup>[\[1\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-openai2021-1)</sup>. This result showed that a single small error in the reasoning chain could lead to a completely incorrect answer.

### Breakthrough Techniques: Chain-of-Thought

A breakthrough in solving GSM8K problems came with the **"chain-of-thought"** (**[Chain-of-Thought, CoT](https://systems-analysis.info/eng/Chain-of-Thought_Prompting "Chain-of-Thought Prompting")**) prompting approach. In 2022, researchers from Google showed that prompting a model to explicitly write out the steps of its solution before giving the final answer significantly increases accuracy. The **PaLM** model (540 billion parameters) achieved **58%** accuracy using CoT<sup>[\[4\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-google_cot-4)</sup>. Applying the more complex technique of **self-consistency** (generating multiple solution paths and choosing the most frequent answer) raised the accuracy to **74%**<sup>[\[4\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-google_cot-4)</sup>.

### Surpassing Human-Level Performance

Starting in 2023, the latest generative models surpassed human-level performance on this benchmark.

- **GPT-4** from OpenAI, using a *few-shot CoT* setting (where a few solved examples are provided in the prompt), achieved an accuracy of about **92%**<sup>[\[5\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-gpt4_92-5)</sup>, and up to **97%** with additional strategies<sup>[\[6\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-gpt4_97-6)</sup>.
- Anthropic's **Claude 2** showed a result of **88%**, while the newer **Claude 3** achieved about **95%**<sup>[\[3\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-klu_benchmark-3)</sup>.

Such high scores indicate significant progress in the reasoning abilities of LLMs, but they also suggest that GSM8K is becoming "nearly solved" for state-of-the-art models, which is driving the development of more challenging benchmarks like **MATH** and **MMLU**.

## Role in Model Training and Development

Beyond evaluation, GSM8K is actively used for **training and improving** models.

- **Fine-tuning**: The training set with its step-by-step solutions is a valuable resource for fine-tuning models on mathematical logic.
- **Training verifiers**: In the original OpenAI paper, a portion of the GSM8K data was used to train a separate **verifier** model, which evaluated the correctness of the generated solutions. This approach of separately training a generator and a critic proved to be effective<sup>[\[1\]](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_note-openai2021-1)</sup>.
- **Prompt Engineering**: The large number of examples has allowed researchers to develop and refine prompting techniques, such as **Chain-of-Thought** and **Tree-of-Thought**, which teach a model to reason without changing its weights.

## External links

- <a href="https://paperswithcode.com/dataset/gsm8k" class="external text" rel="nofollow">Dataset page on Papers With Code</a>
- <a href="https://github.com/openai/grade-school-math" class="external text" rel="nofollow">Official GitHub repository</a>
- <a href="https://en.wikipedia.org/wiki/Language_model_benchmark" class="external text" rel="nofollow">Language model benchmark — Wikipedia</a>

## Literature

- Liang, P. et al. (2022). *Holistic Evaluation of Language Models (HELM)*. <a href="https://arxiv.org/abs/2211.09110" class="external text" rel="nofollow">arXiv:2211.09110</a>.
- Chang, Y. et al. (2023). *A Survey on Evaluation of Large Language Models*. <a href="https://arxiv.org/abs/2307.03109" class="external text" rel="nofollow">arXiv:2307.03109</a>.
- Ni, S. et al. (2025). *A Survey on Large Language Model Benchmarks*. <a href="https://arxiv.org/abs/2508.15361" class="external text" rel="nofollow">arXiv:2508.15361</a>.
- Biderman, S. et al. (2024). *The Language Model Evaluation Harness (lm-eval): Guidance and Lessons Learned*. <a href="https://arxiv.org/abs/2405.14782" class="external text" rel="nofollow">arXiv:2405.14782</a>.
- Kiela, D. et al. (2021). *Dynabench: Rethinking Benchmarking in NLP*. <a href="https://arxiv.org/abs/2104.14337" class="external text" rel="nofollow">arXiv:2104.14337</a>.
- Ma, Z. et al. (2021). *Dynaboard: An Evaluation‑As‑A‑Service Platform for Holistic Next‑Generation Benchmarking*. <a href="https://arxiv.org/abs/2106.06052" class="external text" rel="nofollow">arXiv:2106.06052</a>.
- Goel, K. et al. (2021). *Robustness Gym: Unifying the NLP Evaluation Landscape*. <a href="https://arxiv.org/abs/2101.04840" class="external text" rel="nofollow">arXiv:2101.04840</a>.
- Xu, C. et al. (2024). *Benchmark Data Contamination of Large Language Models: A Survey*. <a href="https://arxiv.org/abs/2406.04244" class="external text" rel="nofollow">arXiv:2406.04244</a>.
- Liu, S. et al. (2025). *A Comprehensive Survey on Safety Evaluation of LLMs*. <a href="https://arxiv.org/abs/2506.11094" class="external text" rel="nofollow">arXiv:2506.11094</a>.
- Chiang, W.-L. et al. (2024). *Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference*. <a href="https://arxiv.org/abs/2403.04132" class="external text" rel="nofollow">arXiv:2403.04132</a>.
- Boubdir, M. et al. (2023). *Elo Uncovered: Robustness and Best Practices in Language Model Evaluation*. <a href="https://arxiv.org/abs/2311.17295" class="external text" rel="nofollow">arXiv:2311.17295</a>.
- Huang, L. et al. (2023). *A Survey on Hallucination in Large Language Models*. <a href="https://arxiv.org/abs/2311.05232" class="external text" rel="nofollow">arXiv:2311.05232</a>.

## References

1.  <span id="cite_note-openai2021-1">↑ <sup>[1.0](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-openai2021_1-0)</sup> <sup>[1.1](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-openai2021_1-1)</sup> <sup>[1.2](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-openai2021_1-2)</sup> <sup>[1.3](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-openai2021_1-3)</sup> Cobbe, Karl et al. "Training Verifiers to Solve Math Word Problems". *arXiv:2110.14168*. <a href="https://arxiv.org/abs/2110.14168" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-pwc-2">[↑](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-pwc_2-0) "GSM8K Dataset". *Papers With Code*. <a href="https://paperswithcode.com/dataset/gsm8k" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-klu_benchmark-3">↑ <sup>[3.0](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-klu_benchmark_3-0)</sup> <sup>[3.1](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-klu_benchmark_3-1)</sup> "GSM8K Benchmark". *Klu.ai*. <a href="https://klu.ai/glossary/GSM8K-eval" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-google_cot-4">↑ <sup>[4.0](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-google_cot_4-0)</sup> <sup>[4.1](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-google_cot_4-1)</sup> Wei, Jason et al. "Language Models Perform Reasoning via Chain of Thought". *Google Research Blog*. <a href="https://research.google/blog/language-models-perform-reasoning-via-chain-of-thought/" class="external autonumber" rel="nofollow">[4]</a></span>
5.  <span id="cite_note-gpt4_92-5">[↑](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-gpt4_92_5-0) Yu, L., et al. "Solving Challenging Math Word Problems Using GPT-4". *EMNLP 2023*. <a href="https://aclanthology.org/2023.emnlp-main.927.pdf" class="external autonumber" rel="nofollow">[5]</a></span>
6.  <span id="cite_note-gpt4_97-6">[↑](https://systems-analysis.info/eng/GSM8K_(Grade_School_Math_8K)#cite_ref-gpt4_97_6-0) "Achieving \>97% on GSM8K". *arXiv:2404.14963*. <a href="https://arxiv.org/html/2404.14963v4" class="external autonumber" rel="nofollow">[6]</a></span>
