刻画 Lean 4 自动形式化中的同义词诱导失败
Characterizing Paraphrase-Induced Failures in Lean 4 Autoformalization
AI总结:
本研究探讨了 Lean 4 自动形式化中由于同义词变化导致的失败模式,通过应用确定性同义词规则到本科和竞赛级数学问题数据集,发现代码生成层的失败主导了同义词敏感性,并揭示了不同数据集对失败类型的影响,结果为自动形式化提供了失败模式分类并推动了针对性的训练干预。
摘要:
近年来,Lean 4 自动形式化在前沿语言模型和开放权重自动形式化器中变得越来越流行,这些模型现在能够生成数学定理的有效形式化。然而,这些评估通常依赖于单个标准定理表述,很少探讨输出是否对输入的自然变化具有鲁棒性,而先前的工作已表明语义等价的同义词变化常导致形式化输出的差异。我们通过应用确定性同义词规则到本科和竞赛级数学问题数据集,研究了 Lean 4 中这些差异的结构。在四个前沿模型和三个开放权重自动形式化器上,我们发现同义词敏感性主要由代码生成层的失败主导,并且这些失败在不同数据集中被类型化不同。此外,这些模式扩展到开放权重模型,显示最先进的自动形式化器仍难以生成有效的 Lean 代码。我们的结果为自动形式化提供了失败模式分类,并推动了针对特定编译失败的训练干预。
英文摘要:
Lean 4 autoformalization has become increasingly popular in recent years, with frontier language models and open-weight autoformalizers now producing valid formalizations of mathematical theorems. However, these evaluations often rely on single canonical phrasings of theorems and rarely probe whether outputs are robust to natural variation in inputs, while prior work has shown that semantically equivalent paraphrases often induce divergent formal outputs. We study the structure of these divergences in Lean 4 by applying deterministic paraphrase rules to datasets of undergraduate and Olympiad-level math problems. Across four frontier models and three open-weight autoformalizers, we find that paraphrase sensitivity is dominated by failures at the code-generation layer, and that these failures are typed differently by dataset. Furthermore, these patterns generalize to open-weight models, showing that state-of-the-art autoformalizers still struggle to generate valid Lean code. Our results provide a failure-mode taxonomy for autoformalization and motivate training-time interventions targeted at specific compilation failures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。