2025-05-06 · 专家 · 机器学习 · 数据科学 · 自然语言处理

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:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源