NaturalProver: Grounded Mathematical Proof Generation with Language Models

Sean Welleck, Jiacheng Liu, Ximing Lu, Hannaneh Hajishirzi, Yejin Choi
5/25/2022
cs.CLcs.AI

Official code: wellecks/naturalprover (40 stars, Python, MIT, last commit 2023-03-24).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

NaturalProver: Grounded Mathematical Proof Generation with Language Models

401Python, Jupyter NotebookMay 24, 20223 years agoMIT

Similar Papers

Cite this paper

@article{welleck2022naturalprover,
  title  = {NaturalProver: Grounded Mathematical Proof Generation with Language Models},
  author = {Sean Welleck and Jiacheng Liu and Ximing Lu and Hannaneh Hajishirzi and Yejin Choi},
  year   = {2022},
  eprint = {2205.12910},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.12910}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.12910.svg)](https://codeofpaper.com/paper/2205.12910)

Discussion