Solving math word problems

OpenAI Blog Papers

Summary

OpenAI trained a system using verifiers to solve grade school math word problems with 90% of child-level accuracy, nearly doubling fine-tuned GPT-3 performance. The approach addresses language models' weakness in multistep reasoning by training verifiers to evaluate candidate solutions and select the best one.

We’ve trained a system that solves grade school math problems with nearly twice the accuracy of a fine-tuned GPT-3 model. It solves about 90% as many problems as real kids: a small sample of 9-12 year olds scored 60% on a test from our dataset, while our system scored 55% on those same problems.
Original Article
View Cached Full Text

Cached at: 04/20/26, 02:55 PM

# Solving math word problems Source: [https://openai.com/index/solving-math-word-problems/](https://openai.com/index/solving-math-word-problems/) OpenAIWe’ve trained a system that solves grade school math problems with nearly twice the accuracy of a fine\-tuned GPT‑3 model\. It solves about 90% as many problems as real kids: a small sample of 9\-12 year olds scored 60% on a test from our dataset, while our system scored 55% on those same problems\. ## Why it matters This is important because today’s AI is still quite weak at commonsense multistep reasoning, which is easy even for grade school kids\. We achieved these results by training our model to recognize its mistakes, so that it can try repeatedly until it finds a solution that works\. Large language models like GPT‑3 have many impressive skills, including their ability to imitate many writing styles, and their extensive factual knowledge\. However, they struggle to perform tasks that require accurate multistep reasoning, like solving grade school math word problems\. Although the model can mimic the cadence of correct solutions, it regularly produces critical errors in logic\. To match human performance in complex logical domains, our models must learn to recognize their mistakes and to choose their steps carefully\. To that end, we train verifiers to evaluate whether or not a proposed solution is correct\. To solve a new problem, we use verifiers to select the best among many proposed solutions\. We collected the new GSM8K dataset to evaluate our methods, and we are releasing this dataset to facilitate research\. In the ten examples below, we show solutions generated by our new method, verification, and our baseline method, fine\-tuning\. GSM8K consists of 8\.5K high quality grade school math word problems\. Each problem takes between 2 and 8 steps to solve, and solutions primarily involve performing a sequence of elementary calculations using basic arithmetic operations \(\+ − × ÷\) to reach the final answer\. Fine\-tuned state\-of\-the\-art language models perform poorly on this dataset, primarily due to the high diversity of problems\. At the same time, GSM8K solutions depend only on elementary concepts, so achieving high test performance is a tractable goal\. Solutions in GSM8K are written as natural language rather than as pure math expressions\. By sticking to natural language, model\-generated solutions are more readily interpretable by humans, and our methods remain relatively domain agnostic\. One significant challenge in mathematical reasoning is the high sensitivity to individual mistakes\. Autoregressive models, which generate each solution token by token, have no mechanism to correct their own errors\. Solutions that veer off\-course quickly become unrecoverable, as can be seen in the examples provided\. We address this problem by training verifiers to evaluate the correctness of model\-generated solutions\. Verifiers are given many possible solutions, all written by the model itself, and they are trained to decide which ones, if any, are correct\. To solve a new problem at test time, we generate 100 candidate solutions and then select the solution that is ranked highest by the verifier\. Verifiers benefit from this inherent optionality, as well as from the fact that verification is often a simpler task than generation\. We find that we get a strong boost in performance from verification, as long as the dataset is large enough\. With datasets that are too small, we believe that the verifiers overfit by memorizing the final answers in the training set, rather than learning any more useful properties of mathematical reasoning\. On the full training set, 6B parameter verification slightly outperforms a fine\-tuned 175B parameter model, giving a performance boost that is approximately equivalent to a 30x model size increase\. Moreover, verification appears to scale more effectively with additional data, if we extrapolate based on current results\. Producing correct arguments and recognizing incorrect ones are key challenges in developing more general AI\. Grade school math is an ideal testbed for these capabilities\. The problems in GSM8K are conceptually simple, yet one subtle mistake is enough to derail an entire solution\. Identifying and avoiding such mistakes is a crucial skill for our models to develop\. By training verifiers, we teach our models to separate the good solutions from the ones that didn’t quite work out\. We expect these skills to become increasingly relevant as we attempt to apply our models to more logically complex domains\.

Similar Articles

Solving (some) formal math olympiad problems

OpenAI Blog

OpenAI achieved a new state-of-the-art 41.2% on the miniF2F formal math olympiad benchmark using a technique called 'statement curriculum learning,' which iteratively trains a neural prover on proofs of increasing difficulty. The approach builds on iterative proof search and retraining over 8 iterations to significantly outperform the previous best of 29.3%.

Prover-Verifier Games improve legibility of language model outputs

OpenAI Blog

OpenAI researchers found that optimizing language models purely for correct answers reduces human interpretability, and propose 'prover-verifier games' where a prover generates solutions and a verifier checks them, improving legibility for both humans and AI systems.

Advancing science and math with GPT-5.2

OpenAI Blog

OpenAI releases GPT-5.2, featuring GPT-5.2 Pro and GPT-5.2 Thinking variants optimized for scientific and mathematical work. The models achieve state-of-the-art performance on benchmarks like GPQA Diamond (93.2%) and FrontierMath (40.3%), demonstrating improved reasoning capabilities designed to accelerate scientific research across physics, chemistry, biology, and mathematics.