Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction
Goedel-Prover-V2 是一系列开源语言模型,在自动化定理证明方面取得了最先进的结果,其核心创新在于支架式数据合成、验证器引导的自我校正和模型平均技术,在 MiniF2F 和 PutnamBench 基准测试中显著优于现有方法。
更新于 2025-08-06。作者:Yong Lin、Shange Tang、Bohan Lyu、Ziran Yang、Jui-Hui Chung、Haoyu Zhao、Lai Jiang、Yihan Geng、Jiawei Ge、Jingruo Sun、Jiayun Wu、Jiri Gesi、Ximing Lu、David Acuna、Kaiyu Yang、Hongzhou Lin、Yejin Choi、Danqi Chen、Sanjeev Arora、Chi Jin。
中文摘要
我们推出了Goedel-Prover-V2,这是一系列开源语言模型,在自动定理证明领域达到了新的 state-of-the-art 水平。基于标准的专家迭代和强化学习流程,我们的方法包含三个关键创新:(1)脚手架数据合成:我们生成难度递增的合成任务,训练模型掌握越来越复杂的定理;(2)验证器引导的自校正:我们利用 Lean 编译器的反馈,使模型能够迭代地修改其证明;(3)模型平均:我们合并模型检查点,以减轻训练后期模型输出多样性的下降。我们的小型模型 Goedel-Prover-V2-8B 在 MiniF2F 上达到 84.6% 的 pass@32,并且在相同指标下优于 DeepSeek-Prover-V2-671B,尽管其规模小了 80 倍。我们的旗舰模型 Goedel-Prover-V2-32B 在 MiniF2F 上以 pass@32 达到了 88.1% 的标准模式准确率,在自校正模式下达到 90.4%,大幅超越了之前的 SOTA。此外,我们的旗舰模型在 PutnamBench 上以 pass@184 解答了 86 个问题,在排行榜上获得了开源模型中的第一名,超过了 DeepSeek-Prover-V2-671B 以 pass@1024 解答 47 个问题的记录,并且模型规模和计算成本显著降低。在其发布之时(2025 年 7-8 月),Goedel-Prover-V2 在所有开源定理证明器中实现了最强的整体性能。它还在受限的测试时间计算预算下跻身顶级模型之列——包括具有公开报告性能的闭源系统。我们的模型、代码和数据已发布在 https://github.com/Goedel-LM/Goedel-Prover-V2。
英文摘要
We introduce Goedel-Prover-V2, a series of open-source language models that set a new state-of-the-art in automated theorem proving. Built on the standard expert iteration and reinforcement learning pipeline, our approach incorporates three key innovations: (1) Scaffolded data synthesis: We generate synthetic tasks of increasing difficulty to train the model to master increasingly complex theorems; (2) Verifier-guided self-correction: We enable the model to iteratively revise its proofs by leveraging feedback from the Lean compiler; (3) Model averaging: We merge model checkpoints to mitigate the decrease in model output diversity in later stages of training. Our small model, Goedel-Prover-V2-8B, reaches 84.6% pass@32 on MiniF2F and outperforms DeepSeek-Prover-V2-671B under the same metric, despite being 80X smaller. Our flagship model, Goedel-Prover-V2-32B, achieves 88.1% on MiniF2F at pass@32 in standard mode and 90.4% in self-correction mode, outperforming prior SOTA by a large margin. Additionally, our flagship model solves 86 problems on PutnamBench at pass@184, securing the first place among open-source models on the leaderboard, surpassing DeepSeek-Prover-V2-671B's record of solving 47 problems by pass@1024 with a significantly smaller model size and compute budget. At the time of its release (July-August 2025), Goedel-Prover-V2 achieves the strongest overall performance among all open-source theorem provers. It also ranks among the top-performing models--including closed-source systems with publicly reported performance--under a constrained test-time compute budget. Our models, code, and data are released at https://github.com/Goedel-LM/Goedel-Prover-V2.
解读
一句话总结
Goedel-Prover-V2 是一系列开源语言模型,在自动化定理证明方面取得了最先进的结果,其核心创新在于支架式数据合成、验证器引导的自我校正和模型平均技术,在 MiniF2F 和 PutnamBench 基准测试中显著优于现有方法。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:自动定理证明 (ATP) 是人工智能领域的一大挑战,需要构建逐步的、机器可验证的证明。现有方法依赖大型模型或计算密集型推理。
- 现有方案不足:现有最先进的模型(例如 DeepSeek-Prover-V2)参数量巨大(671B),或者推理计算成本很高。
- 研究目标:构建一系列性能和计算效率都达到最先进水平的开源自动化定理证明模型。
问题2:论文的核心创新点是什么?
- 技术创新:引入了三种关键创新:(1)支架式数据合成:生成难度递增的合成任务来训练模型。(2)验证器引导的自我校正:利用 Lean 编译器的反馈迭代修改证明。(3)模型平均:合并模型检查点以减轻训练后期模型输出多样性的下降。
- 方法改进:改进现有专家迭代和强化学习流程,通过整合验证器反馈来实现模型的自我校正。
- 优势:与现有方法相比,在性能和计算效率方面都具有显著优势,即使是较小的模型(8B)也优于参数量更大的模型(671B)。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在 MiniF2F、PutnamBench 和 MathOlympiadBench 等基准数据集上进行评估,比较不同模型大小和不同推理预算下的性能。
- 性能提升:Goedel-Prover-V2-32B 在 MiniF2F 上 pass@32 达到了 88.1%,自我校正模式下达到 90.4%,显著超过了之前的最先进水平;在 PutnamBench 上 pass@184 解答了 86 个问题,超过了 DeepSeek-Prover-V2-671B 的 47 个。
- 对比结果:Goedel-Prover-V2-8B 在 MiniF2F 上的 pass@32 达到了 84.6%,超过了 DeepSeek-Prover-V2-671B,而其参数量仅为后者的 1/80。
问题4:这个研究的实际应用价值是什么?
- 应用场景:推动自动化定理证明技术的发展,促进人工智能系统在解决和验证复杂数学问题方面的能力。
- 实施建议:论文开源了模型、代码和数据,方便社区进一步研究和改进。
- 局限与展望:论文中未明确说明实际部署建议。未来的改进方向可能包括探索更有效的强化学习算法,以及进一步提高模型在更具挑战性问题上的性能。