Skip to main content
QUICK REVIEW

[Paper Review] Solving Quantitative Reasoning Problems with Language Models

Aitor Lewkowycz, Anders Andreassen|arXiv (Cornell University)|Jun 29, 2022
Topic ModelingComputer Science281 citations
TL;DR

Minerva is a large language model trained on general and technical data to perform quantitative reasoning without external tools, achieving state-of-the-art results on several benchmarks and solving over 200 undergraduate-style problems.

ABSTRACT

Language models have achieved remarkable performance on a wide range of tasks that require natural language understanding. Nevertheless, state-of-the-art models have generally struggled with tasks that require quantitative reasoning, such as solving mathematics, science, and engineering problems at the college level. To help close this gap, we introduce Minerva, a large language model pretrained on general natural language data and further trained on technical content. The model achieves state-of-the-art performance on technical benchmarks without the use of external tools. We also evaluate our model on over two hundred undergraduate-level problems in physics, biology, chemistry, economics, and other sciences that require quantitative reasoning, and find that the model can correctly answer nearly a third of them.

Motivation & Objective

  • Bridge the gap in quantitative reasoning capability of language models by training on high-quality mathematical content.
  • Create a large, math-focused training corpus combining natural language with formal mathematical notation.
  • Demonstrate strong few-shot performance and self-contained reasoning without external calculators or tools.
  • Evaluate on diverse datasets (MATH, GSM8k, MMLU-STEM) and undergraduate OCW problems to assess robustness and generalization.

Proposed method

  • Start from PaLM pretrained models (8B, 62B, 540B).
  • Finetune on a mathematical dataset consisting of math web pages and arXiv content to preserve mathematical notation.
  • Train autoregressively to generate self-contained solutions with LaTeX and natural language explanations.
  • Evaluate primarily with few-shot prompting and majority voting (maj1@k) over multiple samples without external tools.
  • Use SymPy to parse and verify final numeric/symbolic answers for correctness.
  • Curate over 200 MIT OCW problems to extend evaluation beyond pure math into undergraduate science problems.

Experimental results

Research questions

  • RQ1Can a large language model achieve high accuracy on quantitative reasoning tasks without external tools?
  • RQ2How do model size and data quality impact performance on math, science, and engineering problems?
  • RQ3Does majority voting on multiple samples improve quantitative reasoning accuracy more than single-sample greedy decoding?
  • RQ4To what extent do models rely on memorization versus genuine reasoning when solving quantitative problems?

Key findings

  • Minerva achieves state-of-the-art results on MATH, GSM8k, and a STEM subset of MMLU in a few-shot setting without external tools.
  • GSM8k performance with maj1@k sampling reaches 78.5% for the 540B model.
  • MATH results show strong gains with larger models and majority voting, e.g., Maj1@k substantially improves over non-ensemble outputs.
  • OCWCourses (undergraduate problems) show measurable gains with larger Minerva models and majority voting.
  • Polish national exam results show 62B and 540B achieving 57% and 65%, respectively, indicating transfer outside standard benchmarks.
  • Analyses indicate the model’s success is not solely due to memorization, with robustness to problem wording and problem modifications.

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.