Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency

Zenan Li, Yifan Wu, Zhaoyu Li, Xinming Wei, Xian Zhang +2 more
2/3/2026

No official code found. Best implementation: Miracle-Messi/Isa-AutoFormal (17 stars, last commit 2024-10-27).

Abstract

Autoformalization, the task of automatically translating natural language descriptions into a formal language, poses a significant challenge across various domains, especially in mathematics. Recent advancements in large language models (LLMs) have unveiled their promising capabilities to formalize even competition-level math problems. However, we observe a considerable discrepancy between pass@1 and pass@k accuracies in LLM-generated formalizations. To address this gap, we introduce a novel framework that scores and selects the best result from k autoformalization candidates based on two complementary self-consistency methods: symbolic equivalence and semantic consistency. Elaborately, symbolic equivalence identifies the logical homogeneity among autoformalization candidates using automated theorem provers, and semantic consistency evaluates the preservation of the original meaning by informalizing the candidates and computing the similarity between the embeddings of the original and informalized texts. Our extensive experiments on the MATH and miniF2F datasets demonstrate that our approach significantly enhances autoformalization accuracy, achieving up to 0.22-1.35x relative improvements across various LLMs and baseline methods.

View on arXivView PDF

Code Implementations(1)

173SMT, HTMLOct 12, 20241 years ago

Similar Papers

Cite this paper

@article{li2026autoformalize,
  title  = {Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency},
  author = {Zenan Li and Yifan Wu and Zhaoyu Li and Xinming Wei and Xian Zhang and Fan Yang and Xiaoxing Ma},
  year   = {2026},
  eprint = {2410.20936},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.20936},
  url    = {https://arxiv.org/abs/2410.20936},
  journal = {NEURIPS 2024 2024}
}

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/2410.20936.svg)](https://codeofpaper.com/paper/2410.20936)

Discussion