DeepSeek-Prover-V2:通过强化学习进行子目标分解推进形式化数学推理

DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition

深度求索 DeepSeek-AI · DeepSeek · 2025-04-30 · arXiv:2504.21801 ↗ · 被引 235

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

我们推出了 DeepSeek-Prover-V2,这是一个专为 Lean 4 形式化定理证明设计的开源大语言模型,其初始化数据通过基于 DeepSeek-V3 的递归定理证明流程收集。冷启动训练过程首先提示 DeepSeek-V3 将复杂问题分解为一系列子目标。已解决子目标的证明被综合成思维链过程,结合 DeepSeek-V3 的逐步推理,为强化学习创建初始冷启动。这一过程使我们能够将非形式化和形式化数学推理整合到一个统一模型中。最终模型 DeepSeek-Prover-V2-671B 在神经定理证明中达到了最先进水平,在 MiniF2F 测试中达到 88.9%的通过率,并从 PutnamBench 的 658 个问题中解决了 49 个。除了标准基准测试,我们还引入了 ProverBench,这是一个包含 325 个形式化问题的集合,以丰富我们的评估,其中包括来自近期 AIME 竞赛(24-25 年)的 15 个精选问题。对这些 15 个 AIME 问题的进一步评估显示,模型成功解决了其中 6 个。相比之下,DeepSeek-V3 通过多数投票解决了其中 8 个问题,这表明大语言模型中形式化与非形式化数学推理之间的差距正在显著缩小。

We introduce DeepSeek-Prover-V2, an open-source large language model designed for formal theorem proving in Lean 4, with initialization data collected through a recursive theorem proving pipeline powered by DeepSeek-V3. The cold-start training procedure begins by prompting DeepSeek-V3 to decompose complex problems into a series of subgoals. The proofs of resolved subgoals are synthesized into a chain-of-thought process, combined with DeepSeek-V3's step-by-step reasoning, to create an initial cold start for reinforcement learning. This process enables us to integrate both informal and formal mathematical reasoning into a unified model. The resulting model, DeepSeek-Prover-V2-671B, achieves state-of-the-art performance in neural theorem proving, reaching 88.9% pass ratio on the MiniF2F-test and solving 49 out of 658 problems from PutnamBench. In addition to standard benchmarks, we introduce ProverBench, a collection of 325 formalized problems, to enrich our evaluation, including 15 selected problems from the recent AIME competitions (years 24-25). Further evaluation on these 15 AIME problems shows that the model successfully solves 6 of them. In comparison, DeepSeek-V3 solves 8 of these problems using majority voting, highlighting that the gap between formal and informal mathematical reasoning in large language models is substantially narrowing.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 12)

阅读逐段中英对照全文 →