FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
该论文提出了一个名为FormalMATH的大规模Lean4基准,用于评估大型语言模型在形式化数学推理方面的能力,并通过实验揭示了当前基于LLM的定理证明系统的局限性。
更新于 2025-05-06。作者:Zhouliang Yu、Ruotian Peng、Keyi Ding、Yizhe Li、Zhongyuan Peng、Minghao Liu、Yifan Zhang、Zheng Yuan、Huajian Xin、Wenhao Huang、Yandong Wen、Ge Zhang、Weiyang Liu。
中文摘要
形式化数学推理仍然是对人工智能的一个重大挑战,这受到了现有基准在范围和规模上的局限性的阻碍。为了解决这个问题,我们提出了FormalMATH,这是一个大型的Lean4基准,包含5,560个形式化验证问题,涵盖了从高中奥林匹克挑战到不同领域(例如,代数、应用数学、微积分、数论和离散数学)的本科水平定理。为了减轻手动形式化的低效率,我们引入了一个新颖的闭环自动形式化流程,该流程集成了:(1)用于声明自动形式化的专门大型语言模型(LLMs),(2)多LLM语义验证,以及(3)基于否定证明的离线LLM证明器的筛选策略。这种方法通过在手动验证前保留72.09%的语句来降低专家标注成本,同时确保对原始自然语言问题的忠实度。我们对最先进的基于LLM的定理证明器的评估揭示了重大的局限性:即使在实用的采样预算下,最强的模型也只实现了16.46%的成功率,显示出明显的领域偏差(例如,在代数方面表现出色,但在微积分方面失败)以及对简化的自动化策略的过度依赖。值得注意的是,我们发现了自然语言解决方案指导与思维链推理场景中的证明成功之间的一个反直觉的倒数关系,这表明人类编写的非正式推理在形式化推理环境中引入了噪声而不是清晰度。我们相信,FormalMATH为形式化数学推理提供了一个可靠的基准。
英文摘要
Formal mathematical reasoning remains a critical challenge for artificial intelligence, hindered by limitations of existing benchmarks in scope and scale. To address this, we present FormalMATH, a large-scale Lean4 benchmark comprising 5,560 formally verified problems spanning from high-school Olympiad challenges to undergraduate-level theorems across diverse domains (e.g., algebra, applied mathematics, calculus, number theory, and discrete mathematics). To mitigate the inefficiency of manual formalization, we introduce a novel human-in-the-loop autoformalization pipeline that integrates: (1) specialized large language models (LLMs) for statement autoformalization, (2) multi-LLM semantic verification, and (3) negation-based disproof filtering strategies using off-the-shelf LLM-based provers. This approach reduces expert annotation costs by retaining 72.09% of statements before manual verification while ensuring fidelity to the original natural-language problems. Our evaluation of state-of-the-art LLM-based theorem provers reveals significant limitations: even the strongest models achieve only 16.46% success rate under practical sampling budgets, exhibiting pronounced domain bias (e.g., excelling in algebra but failing in calculus) and over-reliance on simplified automation tactics. Notably, we identify a counterintuitive inverse relationship between natural-language solution guidance and proof success in chain-of-thought reasoning scenarios, suggesting that human-written informal reasoning introduces noise rather than clarity in the formal reasoning settings. We believe that FormalMATH provides a robust benchmark for benchmarking formal mathematical reasoning.
解读
一句话总结
该论文提出了一个名为FormalMATH的大规模Lean4基准,用于评估大型语言模型在形式化数学推理方面的能力,并通过实验揭示了当前基于LLM的定理证明系统的局限性。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:形式化数学推理是人工智能领域的一个关键挑战,现有基准在范围和规模上存在局限性。
- 现有方案不足:现有基准范围狭窄,数据规模小,性能饱和。
- 研究目标:开发一个大规模、全面的Lean4基准,用于评估形式化数学推理,并提出一种自动化的形式化流程。
问题2:论文的核心创新点是什么?
- 技术创新:提出了FormalMATH基准,包含5560个形式化验证的问题;引入了一个人工智能辅助的自动化形式化流程。
- 方法改进:开发了一种多LLM语义验证和基于否定证明过滤策略的自动化形式化流程。
- 优势:减少了专家标注成本,提高了形式化流程的效率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在FormalMATH基准上评估了最先进的LLM定理证明器。
- 性能提升:揭示了最先进的定理证明器在FormalMATH上的成功率仅为16.46%。
- 对比结果:与基线方法相比,FormalMATH基准显示了显著的局限性。
问题4:这个研究的实际应用价值是什么?
- 应用场景:FormalMATH可以作为评估LLM在形式化数学推理方面能力的一个基准。
- 实施建议:实际部署时,应考虑LLM在特定领域的局限性,并探索更有效的自动化形式化策略。
- 局限与展望:当前研究揭示了LLM在形式化数学推理方面的局限性,未来需要进一步研究以改进LLM的鲁棒性、泛化性和推理复杂性。