atlas

Research map / Large language models / Agents, code and math

Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency

NeurIPS 2024 · Large language models › Agents, code and math · approach: Formal verification and proof data · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes scoring k LLM autoformalization candidates with symbolic equivalence (via Isabelle tactics, Z3, CVC5) and semantic consistency (BERT similarity of back-translated statements), combined via log/linear/quadratic strategies, to close the pass@1 vs pass@k gap on MATH and miniF2F.

Problem

LLM autoformalization of math statements shows a large gap between pass@1 and pass@k, and standard self-consistency (answer matching or test-based execution) does not transfer to formal statements.

Approach

Rank k autoformalization candidates by two complementary self-consistency signals: symbolic equivalence among formal statements checked by automated theorem provers after variable standardization and bipartite variable matching, and semantic consistency measured as embedding similarity between the informalized candidate and the original text; combine them with a tuned alpha.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Rank generated candidates by symbolic equivalence (SymEq) instead of the strongest of Baseline, Naïve, or ClusterMistral-7B, Llemma-34B, DeepSeek-v2, Codex, and GPT-4 autoformalization · MATH1@k accuracy: 18.1 -> 26.7; 33.4 -> 41.1; 37.3 -> 42.4; 43.8 -> 46.1; 39.7 -> 42.0Helped
Rank generated candidates by symbolic equivalence (SymEq) instead of the strongest of Baseline, Naïve, or ClusterMistral-7B, Llemma-34B, DeepSeek-v2, Codex, and GPT-4 autoformalization · miniF2F1@k accuracy: 7.5 -> 14.5; 21.3 -> 32.0; 28.0 -> 28.4; 30.0 -> 36.5; 34.8 -> 41.1Helped
Rank generated candidates by semantic consistency (SemCo)MATH autoformalization · MATH1@k accuracy: 0.8%-3.9% improvement over the baselineHelped
Use semantic consistency rather than symbolic equivalence to select candidatesGPT-4 autoformalization · MATH categories1@k accuracyMixed
Combine symbolic equivalence and semantic consistency scores using log combinationAutoformalization across the evaluated LLMs · MATH and miniF2Fn@k accuracy: 2.3%-22.6%Helped
Add log-combination ranking to SymEqGPT-4 autoformalization · MATH1@k accuracy: 3.3%Helped
Add log-combination ranking to SymEqGPT-4 autoformalization · miniF2F1@k accuracy: 2.5%Helped
Use log combination instead of linear or quadratic combination (ablation)Combining symbolic equivalence and semantic consistency scores · MATH and miniF2Fautoformalization accuracyHelped
Use the limited equivalence checker with only auto and simp tactics, removing the other tactics and SMT solvers (ablation)SymEq with GPT-4 · MATH1@k accuracy: 2.13 vs. 2.33 per problem on averageHurt
Use stronger ATPs rather than the limited equivalence checker (ablation)SymEq with GPT-4 · MATH1@k accuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MATH miniF2F

Benchmarks: MATH miniF2F

Metrics: n@k accuracy relative labeling efficiency

Baselines: log-probability ranking ATP filtering (Naive) adaptive k-means clustering (Cluster)

Builds on: self-consistency Isabelle/HOL Sledgehammer adaptive k-means

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy