techlist.io
OpenAI2021-10-283 min read

Curated summary

Solving math word problems

Read original(opens in new tab)

Solving Math Word Problems with Verifiers

OpenAI trained a system that solves grade school math word problems with nearly twice the accuracy of a fine-tuned GPT-3 model. The system solves roughly 90% as many problems as real 9-12 year olds, scoring 55% against the children's 60% on the same test. The core idea is to have the model recognize its own mistakes: it generates many candidate solutions and a separate verifier picks the most likely correct one.

Why Language Models Struggle with Multistep Reasoning

  • Large language models like GPT-3 imitate writing styles and store broad factual knowledge, but they often make critical logical errors in multistep reasoning.
  • Autoregressive models generate solutions token by token and have no built-in way to correct an early mistake, so a solution that drifts off course usually cannot recover.

The GSM8K Dataset

  • GSM8K contains 8.5K high-quality grade school math word problems, each requiring 2 to 8 steps.
  • Solutions rely on elementary arithmetic (+, −, ×, ÷) and are written in natural language rather than pure math expressions, which makes them easier for humans to interpret.
  • Fine-tuned state-of-the-art models performed poorly on it mainly because of the diversity of problems, yet the required concepts are elementary, so strong performance is a realistic goal.
  • The authors released the dataset to support further research.

Trained Verifiers as a Fix

  • Verifiers are trained on many model-generated solutions and learn to judge which ones, if any, are correct.
  • At test time, the system generates 100 candidate solutions and selects the one the verifier ranks highest.
  • Verification benefits from having many options to choose from, and checking a solution is often easier than producing one.
  • Gains from verification depend on dataset size. With small datasets, verifiers appear to overfit by memorizing final answers instead of learning general properties of mathematical reasoning.

Results and Scaling

  • On the full training set, a 6B-parameter model with verification slightly outperforms a fine-tuned 175B-parameter model, a gain roughly equivalent to a 30x increase in model size.
  • Based on current results, verification appears to scale more effectively with additional data than fine-tuning alone.

Why It Matters

Producing correct arguments and recognizing incorrect ones are central challenges for more general AI. Grade school math is a useful testbed because each problem is conceptually simple, yet a single subtle error can derail the whole solution. The authors expect these verification skills to matter more as models are applied to logically complex domains.

Continue with another curated summary.