English

Autoformalization with Large Language Models

Machine Learning 2022-05-26 v1 Artificial Intelligence Logic in Computer Science Software Engineering

Abstract

Autoformalization is the process of automatically translating from natural language mathematics to formal specifications and proofs. A successful autoformalization system could advance the fields of formal verification, program synthesis, and artificial intelligence. While the long-term goal of autoformalization seemed elusive for a long time, we show large language models provide new prospects towards this goal. We make the surprising observation that LLMs can correctly translate a significant portion (25.3%25.3\%) of mathematical competition problems perfectly to formal specifications in Isabelle/HOL. We demonstrate the usefulness of this process by improving a previously introduced neural theorem prover via training on these autoformalized theorems. Our methodology results in a new state-of-the-art result on the MiniF2F theorem proving benchmark, improving the proof rate from 29.6%29.6\% to 35.2%35.2\%.

Keywords

Cite

@article{arxiv.2205.12615,
  title  = {Autoformalization with Large Language Models},
  author = {Yuhuai Wu and Albert Q. Jiang and Wenda Li and Markus N. Rabe and Charles Staats and Mateja Jamnik and Christian Szegedy},
  journal= {arXiv preprint arXiv:2205.12615},
  year   = {2022}
}

Comments

44 pages

R2 v1 2026-06-24T11:28:06.908Z