Monotonic Reference-Free Refinement for Autoformalization
Lan Zhang, Marco Valentino, André Freitas
TL;DR
This work defines full-theorem autoformalization and introduces a reference-free, monotonic test-time optimization that jointly optimizes Formal Validity, Logical Preservation, Mathematical Consistency, and Formal Quality. By leveraging a masked composite objective and a lower-confidence-bound based acceptance policy, the framework combines information from theorem provers and diverse LLM judges through specialized generator roles (One-Off, FV-Repairer, Recurrent) guided by a responsiveness map. Empirical results on miniF2F and ProofNet demonstrate monotonic improvement, achieving high Formal Validity and substantial overall quality gains while showing robustness to judge noise and model biases. The approach offers a principled path toward reliable, scalable autoformalization without extensive ground-truth libraries, with potential impact on formal verification pipelines and mathematical knowledge automation.
Abstract
While statement autoformalization has advanced rapidly, full-theorem autoformalization remains largely unexplored. Existing iterative refinement methods in statement autoformalization typicall improve isolated aspects of formalization, such as syntactic correctness, but struggle to jointly optimizing multiple quality dimensions, which is critical for full-theorem autoformalization. We introduce a reference-free iterative monotonic process for full-theorem autoformalization that leverages complementary feedback from theorem provers and LLM-based judges, without access to ground-truth proofs or existing formalizations at inference time. Our approach optimizes a masked composite objective over Formal Validity, Logical Preservation, Mathematical Consistency, and Formal Quality, guided by a responsiveness map that indicates how different LLMs acting as different roles preferentially improve each dimension. We further propose an acceptance policy that guarantees certified monotonic improvement, and provide conditions ensuring convergence and termination. Empirical experiments demonstrate the proposed process enables simultaneous improvement across multiple dimensions, achieving 93.44% formal validity and a 78.22% overall score on miniF2F, and 44.09% formal validity and a 29.79% overall score on ProofNet.
