Skip to main content
QUICK REVIEW

[Paper Review] NaturalProver: Grounded Mathematical Proof Generation with Language Models

Sean Welleck, Jiacheng Liu|arXiv (Cornell University)|May 25, 2022
Mathematics, Computing, and Information ProcessingComputer Science7 citations
TL;DR

NaturalProver introduces a large language model that generates grounded mathematical proofs in natural language by conditioning on retrieved or provided background references (e.g., theorems, definitions), using constrained decoding to enforce reference usage. It achieves human-evaluated correctness and usefulness in next-step suggestions over 40% of the time and generates valid proofs for short (2–6 step) theorems—representing the first such success with neural language models in this setting.

ABSTRACT

Theorem proving in natural mathematical language - the mixture of symbolic and natural language used by humans - plays a central role in mathematical advances and education, and tests aspects of reasoning that are core to intelligence. Yet it has remained underexplored with modern generative models. We study large-scale language models on two new generation tasks: suggesting the next step in a mathematical proof, and full proof generation. We develop NaturalProver, a language model that generates proofs by conditioning on background references (e.g. theorems and definitions that are either retrieved or human-provided), and optionally enforces their presence with constrained decoding. On theorems from the NaturalProofs benchmark, NaturalProver improves the quality of next-step suggestions and generated proofs over fine-tuned GPT-3, according to human evaluations from university-level mathematics students. NaturalProver is capable of proving some theorems that require short (2-6 step) proofs, and providing next-step suggestions that are rated as correct and useful over 40% of the time, which is to our knowledge the first demonstration of these capabilities using neural language models.

Motivation & Objective

  • To enable large language models to generate mathematically valid proofs in natural language, combining symbolic and textual reasoning.
  • To address the lack of grounding in proof generation by conditioning on external references such as theorems and definitions.
  • To evaluate the feasibility of neural language models as interactive aids in mathematical reasoning and education.
  • To study the limitations of current models in maintaining logical coherence, justification quality, and symbolic derivation across multi-step proofs.

Proposed method

  • NaturalProver conditions proof generation on background references, either retrieved from a knowledge base or provided by the user.
  • It uses reference reconstruction during training to map reference titles to their full content, enabling effective grounding.
  • At inference, it applies in-context reference constraints to guide generation, ensuring relevant theorems and definitions are incorporated.
  • It employs stepwise constrained decoding to enforce the use of specified references in proof steps, improving coherence and correctness.
  • The model is fine-tuned on the NaturalProofs-Gen dataset, a collection of 12.5k theorem-proof pairs from ProofWiki with structured, multi-step proofs.
  • Human evaluations are conducted using university-level math students to assess correctness, usefulness, and error types in generated proofs.

Experimental results

Research questions

  • RQ1Can large language models generate mathematically valid next steps in natural language proofs with high correctness and usefulness?
  • RQ2Can neural models generate complete, correct proofs for short theorems (2–6 steps) when grounded in external references?
  • RQ3How does constrained decoding that enforces reference usage improve proof quality compared to standard autoregressive generation?
  • RQ4What are the primary failure modes of current language models in mathematical proof generation, particularly in reasoning and symbolic derivation?
  • RQ5To what extent can retrieval-augmented generation with reference grounding improve proof reliability and coherence?

Key findings

  • NaturalProver achieves a next-step suggestion correctness and usefulness rating of 42.86% and 51.43%, respectively, in human evaluation—representing the first demonstration of such performance using neural language models.
  • The model generates full proofs that are rated as correct and useful at a rate of 26.30% and 24.30% for the base model, improving to 35.41% and 46.57% with constrained decoding (NP++).
  • Reference-related errors (e.g., hallucinated or invalid references) are reduced from 4.61% in GPT-3 to 1.05% in NaturalProver, indicating improved grounding.
  • Symbolic derivation errors are significantly reduced: invalid derivations drop from 24.56% in GPT-3 to 15.64% in NaturalProver, and equation errors decrease from 32.54% to 26.32%.
  • The model shows improved reasoning coherence, with a 19.70% rate of reference errors in NaturalProver vs. 30.92% in GPT-3, and a 15.21% rate of invalid justifications in GPT-3 versus 9.62% in NaturalProver.
  • Despite improvements, models still struggle with logical coherence on longer proofs, multi-step derivations, and justification quality, highlighting persistent challenges in neural reasoning.

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.