Skip to main content
QUICK REVIEW

[Paper Review] Training Verifiers to Solve Math Word Problems

Karl Cobbe, Vineet Kosaraju|arXiv (Cornell University)|Oct 27, 2021
Natural Language Processing TechniquesComputer Science28 references23 citations
TL;DR

This paper introduces GSM8K, a diverse dataset of 8.5K grade school math word problems, and proposes training verifiers to evaluate model-generated solutions. By sampling multiple candidate solutions at test time and selecting the highest-ranked one via the verifier, performance improves significantly—equivalent to a 30x increase in model size—demonstrating that verification scales more effectively with data than fine-tuning.

ABSTRACT

State-of-the-art language models can match human performance on many tasks, but they still struggle to robustly perform multi-step mathematical reasoning. To diagnose the failures of current models and support research, we introduce GSM8K, a dataset of 8.5K high quality linguistically diverse grade school math word problems. We find that even the largest transformer models fail to achieve high test performance, despite the conceptual simplicity of this problem distribution. To increase performance, we propose training verifiers to judge the correctness of model completions. At test time, we generate many candidate solutions and select the one ranked highest by the verifier. We demonstrate that verification significantly improves performance on GSM8K, and we provide strong empirical evidence that verification scales more effectively with increased data than a finetuning baseline.

Motivation & Objective

  • To diagnose failures in large language models on multi-step mathematical reasoning tasks.
  • To develop a scalable method that improves reasoning performance without relying solely on model size increases.
  • To create a high-quality, linguistically diverse dataset for evaluating mathematical reasoning in language models.
  • To demonstrate that verification-based inference outperforms standard fine-tuning and scales more effectively with data.
  • To investigate the impact of regularization techniques like dropout on verification and fine-tuning performance.

Proposed method

  • The authors introduce GSM8K, a curated dataset of 8.5K grade school math word problems with natural language solutions, split into 7.5K training and 1K test examples.
  • They train verifiers to assess the correctness of model-generated solutions, using a two-stage process: generation of multiple candidate solutions followed by ranking via the verifier.
  • At test time, the top-ranked solution is selected, and performance is further improved by allowing a majority vote among the top-ranked solutions.
  • Verifiers are trained as either solution-level or token-level models, with the latter being more robust to overfitting.
  • Dropout is applied as a regularizer, especially effective for solution-level verifiers, and is used during both pretraining and fine-tuning to reduce distribution shift.
  • The method leverages test-time compute by generating multiple completions and using the verifier to rank them, enabling search over candidate solutions.

Experimental results

Research questions

  • RQ1Can verification-based inference significantly improve performance on math word problems compared to standard fine-tuning?
  • RQ2How does verification performance scale with increased training data compared to fine-tuning?
  • RQ3Does regularization via dropout improve the generalization of both fine-tuned models and verifiers?
  • RQ4How does the choice between solution-level and token-level verifiers affect robustness and performance?
  • RQ5What is the optimal trade-off between the number of generated completions and the number of top-ranked solutions used in voting for test-time inference?

Key findings

  • Verification with a 6B model outperforms a 175B fine-tuned model on GSM8K, achieving a performance boost equivalent to a 30x increase in model size.
  • Verification scales more effectively with data than fine-tuning, with performance gains continuing to improve as training data increases.
  • Dropout significantly improves both fine-tuning and verification performance, with the strongest gains observed in solution-level verifiers.
  • Using a majority vote among the top-ranked solutions improves performance further, with optimal voting thresholds depending on the number of generated completions.
  • Performance peaks at around 400 generated completions per problem, beyond which adversarial solutions begin to degrade results.
  • Token-level verifiers are inherently more robust to overfitting than solution-level verifiers, and dropout provides only a marginal benefit in this case.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.