arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.18498

Aligning Faithfulness for Theory-Scale Autoformalization

Yuming Feng, Tadd Mao, Dhruva Arekar, Tianjun Zhong, Jiani Huang, Xujie Si, Ziyang Li

ABSTRACT

Autoformalization (AF) requires more than compilation: formal statements must preserve the meaning of their informal sources, a property known as faithfulness. An emerging frontier is the automated evaluation of this property, yet most existing methods operate at the statement level and produce whole-item verdicts, failing to reveal how individual expressions correspond or which contextual interpretations support the judgment. This omission is consequential because AF is inherently theory-scale: target statements derive their meaning from surrounding mathematical material and unstated conventions. We formulate faithfulness evaluation as a context-aware align-then-label problem: identifying phrase-level correspondences between informal and formal statements and assigning a faithfulness label to each under explicitly specified contextual interpretations and assumptions. We also introduce FaithAlign, the first theory-scale faithfulness benchmark comprising 460 items and 4,982 annotated phrase-level links, alongside FaithAlign-Gap, a companion set of 146 items with informal context and assumptions withheld. Each FaithAlign item includes the target statement pair, relevant context, formal dependencies, and, where needed, assumptions specifying one given interpretation. Across 8 models, GPT-6 Astra achieves the highest defect F1 at 47.8% and identifies all defects in only 4.5% of items with two or more defects. On FaithAlign-Gap, Astra identifies only 28.2% of undecidable items as such. These results show the difficulty of recovering context-dependent correspondences, establishing FaithAlign as a testbed for fine-grained, context-aware faithfulness evaluation.

1 INTRODUCTION

Autoformalization aims to translate mathematical writing into formal statements and definitions while preserving its meaning—a property known as faithfulness. This task is theory-scale: formalizing a mathematical definition requires tracing its dependencies on other definitions, standing assumptions, and conventions (Min et al., 2026; Feng et al., 2026). A formalization may look faithful in isolation but narrow the domain, omit an assumption, or misstate a definition in its original context, causing cascading failures in theory-scale autoformalization. Assessing faithfulness therefore requires identifying each discrepancy and tracing the dependencies behind it. When context is missing, the available information may support different interpretations. In such cases, faithfulness is undecidable.

Existing evaluations largely reduce faithfulness to a scalar score or binary verdict for a pair of informal and formal statements (Lu et al., 2025; Poiroux et al., 2025; Patel et al., 2026). Such outputs do not map the surrounding informal context to formal dependencies or show whether all defects have been localized. AriaScorer grounds binary judgments in retrieved library definitions but does not measure coverage of contextual correspondences (Wang et al., 2026a). FormalRx localizes problematic formal code without linking it to informal expressions and their dependencies (Wang et al., 2026b). The binary labels used by MA-Align and FormalRx cannot represent undecidable cases where context is underspecified (Patel et al., 2026; Wang et al., 2026b). A definite verdict thus assumes an interpretation unsupported by the supplied material.

Figure

Figure 1: A motivating example from Axler (2015) with the unfaithful formalization drawn from ProofNet (Azerbaiyev et al., 2023), and faithful one from ProofNet-Verified (An et al., 2026).

We introduce a novel context-aware align-then-label problem to address these gaps. Each input includes an informal target, its source context and assumptions, a formal target in Lean, and relevant formal dependencies. The model links aligned regions on the informal and formal sides and then labels each link's faithfulness. This measures whether the model locates the mathematical content behind each defect and judges it correctly. By making individual correspondences explicit, align-then-label makes the model's judgments traceable and supports systematic analysis of errors.

We introduce FaithAlign, a heterogeneous benchmark with 460 items and 4,982 annotated alignment links built from five mathematical formalization sources. The sources vary in alignment density and structure, while the links range from multi-span correspondences to regions with no counterpart, with 25.5% involving context or assumptions. The annotations distinguish defects such as missing conditions from benign informal commentary that need not appear in the formal statement. We also introduce FaithAlign-Gap, a 146-item companion set that withholds informal context and assumptions. Of these items, 85 become undecidable and 61 remain decidable, testing whether models recognize when a faithfulness judgment depends on missing information.

Evaluation of 8 models reveals frequent failures to identify the complete set of defects. GPT-6 Astra, the strongest model on defect F1, scores only 47.8% and identifies every defect in only 34.3% of defective items. It fails to align 68.6% of defective context links. Models also tend to produce coarser alignments than humans, merging distinct mathematical objects and missing crucial correspondences. When informal context and assumptions are withheld, the best model recognizes only 28.2% of undecidable items: models often give definite verdicts that the available information cannot support.

We summarize our contributions as follows: (1) We operationalize faithfulness evaluation as a context-aware align-then-label problem, linking informal and formal contents across targets, context, and assumptions while allowing undecidable judgments for underspecified inputs. (2) We create FaithAlign, a heterogeneous benchmark with fine-grained correspondence annotations for evaluating defect and underspecification identification. (3) We empirically evaluate 8 models, revealing recurring failures to identify all defects, align contextual dependencies, and recognize undecidable cases.

References (97)