TL;DR
This paper tackles the "evaluation crisis" in statement autoformalization—the task of translating natural language mathematics into formal code like Lean 4. The authors introduce BEq+, a fast and highly accurate symbolic metric, and release two major benchmarks: ProofNet# (a corrected version of a popular dataset where 31.8% of entries were found to be erroneous) and RLM25, the first benchmark focused on research-level mathematics.
What Problem Does This Paper Address?
Autoformalization is a holy grail for formal verification: it allows mathematicians to write theorems in plain English and have an AI translate them into a language a computer can "prove." However, measuring progress in this field is currently a mess.
Existing automated metrics like BLEU (which looks at word overlap) are notoriously bad at capturing logical equivalence. Meanwhile, symbolic metrics that do check logic often require massive, expensive LLM-based provers to run. Furthermore, the "gold standard" datasets used to test these systems are riddled with errors—the authors discovered that nearly a third of the entries in the widely used ProofNet benchmark were actually incorrect. Finally, most research focuses on undergraduate-level math, leaving a gap in how these systems handle the complexities of modern, research-level mathematical projects.
Methods
The authors propose a multi-pronged solution to stabilize the field:
- BEq+ (Symbolic Metric): Unlike previous metrics that rely on a 20B parameter LLM to check if two formulas are the same, BEq+ is deterministic and runs on a standard CPU. It uses a sequence of Lean 4 "tactics" (automated proof steps like
tautoandsimp_all_arith!) to try and prove that a predicted statement is logically equivalent to the reference. - Sampling and Filtering: The researchers explored "test-time compute" by generating up to 1,000 candidate formalizations per problem. They used Lean’s type-checker as a filter to discard code that doesn't compile, then used selection heuristics (like majority voting or Self-BLEU) to pick the best candidate.
- Context-Aware Prompting: For research-level math, they found that providing the LLM with "in-file context"—the definitions and theorems appearing earlier in the source file—is essential for accurate translation.
Datasets
The paper introduces three significant resources:
- ProofNet#: A "meticulously corrected" version of the original ProofNet. The authors manually audited the dataset and fixed 118 erroneous formalizations.
- RLM25: A brand-new benchmark consisting of 619 pairs of informal/formal statements drawn from six real-world, research-level Lean 4 projects (e.g., projects on Fermat's Last Theorem and Prime Number Theory).
- ProofNetVerif: A meta-benchmark of 3,752 annotated examples used specifically to test how well metrics (like BEq+) align with human judgment.
Key Insights and Ideas
- The "Dirty Data" Discovery: The fact that 31.8% of a major benchmark was wrong is a wake-up call for the community. It suggests that many previous papers may have been reporting skewed results.
- Scaling Test-Time Compute: One of the biggest "aha" moments is the power of sampling. By generating 50 candidates and filtering for those that type-check, accuracy on ProofNet# jumped from 31% to 45.1% for GPT-4o.
- Symbolic > LLM-based Metrics: BEq+ achieves a 0.872 Kendall correlation with human experts, outperforming more complex LLM-based evaluators while being much cheaper and faster to run.
- The Context Wall: Research-level math (RLM25) is nearly impossible for current models if they are only given a single sentence. However, when provided with the surrounding file context, performance shoots up from near-zero to over 30% for some models.
Key Results
- Metric Reliability: BEq+ achieved 98% precision on the ProofNetVerif dataset, meaning if it says two statements are equivalent, they almost certainly are.
- State-of-the-Art Performance: Using their optimized sampling strategy, GPT-4o reached 45.1% accuracy on undergraduate math (ProofNet#).
- Research-Level Gap: On the new RLM25 benchmark, the best model (Llemma-34B) achieved 33.4% accuracy when provided with full file context, highlighting that while research-level autoformalization is possible, it is significantly harder than textbook problems.
Limitations and Future Work
The authors note that recall remains a challenge for BEq+; it is very good at avoiding "false positives" (saying a wrong answer is right), but it still misses about 50% of correct formalizations because its internal proof search isn't powerful enough to catch every possible syntactic variation.
Future work includes improving the proof search within the metric and exploring how to handle "proof autoformalization" (translating entire mathematical proofs, not just the theorem statements). They also suggest that the community needs to move toward "context-aware" datasets, as the era of translating isolated mathematical sentences is likely reaching its limit.
Summary updated