Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoning

Lan Zhang, Marco Valentino, André FreitasarXiv 2025 · DOI

Introduction

Autoformalization—the process of translating natural language mathematics into formal, machine-verifiable code like Lean or Isabelle—is a critical frontier for AI reasoning. While large language models (LLMs) have shown promise in this task, evaluating their output remains a significant bottleneck. Traditional text-matching metrics like BLEU or ChrF are notoriously unreliable in mathematical contexts, where a single character change can render a proof invalid. Conversely, human expert evaluation is slow, expensive, and difficult to scale.

This paper introduces the Epistemic and Formally Grounded (EFG) ensemble, a novel framework designed to provide a scalable, automated, and fine-grained proxy for human judgment in autoformalization tasks.

The EFG Framework: A Taxonomy for Quality

To move beyond vague assessments of "correctness," the authors propose a multi-granular taxonomy that decomposes formalization quality into four core aspects, further subdivided into 12 Operable Atomic Properties (OAPs). This structured approach allows LLM judges to focus on specific logical and mathematical dimensions rather than attempting a holistic, often biased, evaluation.

The EFG taxonomy breaks down formalization quality into logical preservation, mathematical consistency, formal validity, and formal quality.

Core Evaluation Aspects:

  1. Logical Preservation (LP): Ensures the formal code captures the underlying logical structure and intent of the informal statement (e.g., correct quantification and proposition structure).
  2. Mathematical Consistency (MC): Verifies that mathematical objects, constants, and operators are represented accurately within the formal system.
  3. Formal Validity (FV): Checks for syntactic correctness and referential completeness, typically verified via integration with a theorem prover.
  4. Formal Quality (FQ): Assesses the conciseness and logical consistency of the code, penalizing redundant hypotheses or "junk" code.

Methodology: The Epistemic Ensemble

The EFG ensemble operates by prompting specialized LLM judges (such as GPT-4o-mini) to evaluate these 12 atomic properties. The researchers found that using smaller models as specialized "property judges" often outperformed larger models attempting a direct, monolithic judgment.

The final evaluation score is calculated as a linear combination of these aspect scores. The weights for this ensemble were optimized using human-annotated data from benchmarks like miniF2F and ProofNet to ensure the automated output aligns closely with expert intuition.

Key Results and Correlation Analysis

The most significant finding of the study is the stark failure of traditional reference-based metrics. Metrics like BLEU and ChrF showed very weak correlations with human experts (often below 0.25), confirming that character-level similarity is a poor proxy for mathematical truth.

In contrast, the EFG ensemble achieved high correlation coefficients—0.662 for Isabelle/HOL and 0.479 for Lean4. As shown in the correlation heatmap below, the proposed metrics (OATP, GD, MD, etc.) align much more closely with human judgment than any traditional text-matching method.

Correlation heatmap showing that EFG-based metrics (OATP, GD, etc.) significantly outperform traditional metrics like BLEU and ChrF in aligning with human expert judgment.

Insights and Future Directions

The study highlights that while LLMs are excellent at spotting logical inconsistencies—such as a model omitting a constraint from a word problem—they are not yet a replacement for formal compilers. The most robust evaluation systems are hybrids: using LLMs to judge semantic faithfulness and theorem provers to verify syntax.

Future work aims to fine-tune open-source models to act as local EFG judges, reducing reliance on proprietary APIs and providing the research community with a free, high-fidelity tool for benchmarking mathematical AI. By shifting the focus from "gold standard" references to multi-faceted logical ensembles, the EFG framework provides a more rigorous path forward for the field of autoformalization.

Summary updated

BibTeX
@misc{zhang2025beyond,
  author = {Lan Zhang and Marco Valentino and André Freitas},
  title = {{Beyond Gold Standards: Epistemic Ensemble of LLM Judges for Formal Mathematical Reasoning}},
  year = {2025},
  eprint = {2506.10903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10903},
}
Figure