Bourbaki: Self-Generated and Goal-Conditioned MDPs for Theorem Proving
该论文提出了一种名为sG-MDP的自动化定理证明新框架,通过自我生成的目标条件马尔可夫决策过程来解决稀疏奖励和长证明范围的问题,并在PutnamBench基准测试中取得了最先进的成果。
更新于 2025-07-04。作者:Matthieu Zimmer、Xiaotong Ji、Rasul Tutunov、Anthony Bordg、Jun Wang、Haitham Bou Ammar。
中文摘要
推理对大型语言模型(LLMs)来说仍然是一项具有挑战性的任务,特别是在逻辑约束较为严格的自动定理证明(ATP)环境中。这主要是因为奖励的稀疏性和证明的巨大规模。这些挑战在PutnamBench这样的基准测试中尤为突出,它包含需要复杂多步推理的大学水平问题。为了解决这个问题,我们引入了自生成的目标条件马尔可夫决策过程(sG-MDPs),这是一种新的框架,其中智能体根据不断发展的证明状态生成和追求其子目标。鉴于这种更有结构的生成目标,问题变得更加适合搜索。然后,我们应用类似蒙特卡洛树搜索(MCTS)的算法来解决sG-MDP,并在Bourbaki(7B)系统中实现我们的方法,这是一个模块化系统,可以集成多个7B LLMs进行子目标生成和策略合成。在PutnamBench上,Bourbaki(7B)解决了26个问题,实现了在这一规模模型中的新突破性成果。
英文摘要
Reasoning remains a challenging task for large language models (LLMs), especially within the logically constrained environment of automated theorem proving (ATP), due to sparse rewards and the vast scale of proofs. These challenges are amplified in benchmarks like PutnamBench, which contains university-level problems requiring complex, multi-step reasoning. To address this, we introduce self-generated goal-conditioned MDPs (sG-MDPs), a new framework in which agents generate and pursue their subgoals based on the evolving proof state. Given this more structured generation of goals, the resulting problem becomes more amenable to search. We then apply Monte Carlo Tree Search (MCTS)-like algorithms to solve the sG-MDP, instantiating our approach in Bourbaki (7B), a modular system that can ensemble multiple 7B LLMs for subgoal generation and tactic synthesis. On PutnamBench, Bourbaki (7B) solves 26 problems, achieving new state-of-the-art results with models at this scale.
解读
一句话总结
该论文提出了一种名为sG-MDP的自动化定理证明新框架,通过自我生成的目标条件马尔可夫决策过程来解决稀疏奖励和长证明范围的问题,并在PutnamBench基准测试中取得了最先进的成果。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型在自动化定理证明(ATP)中难以产生结构化且可靠的证明,因为奖励稀疏且证明规模庞大。
- 现有方案不足:现有方法在解决复杂多步骤推理问题时效果不佳,尤其是在PutnamBench这样的基准测试中。
- 研究目标:提出一种能够有效处理稀疏奖励和长证明范围的自动化定理证明方法。
问题2:论文的核心创新点是什么?
- 技术创新:引入了自我生成的目标条件马尔可夫决策过程(sG-MDP),允许代理在证明过程中动态生成子目标。
- 方法改进:将蒙特卡洛树搜索(MCTS)算法应用于sG-MDP,以解决子目标生成和策略合成问题。
- 优势:通过结构化搜索和有意义的奖励塑造,提高了证明搜索的效率和有效性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在PutnamBench基准测试中使用Bourbaki(7B)模型进行实验。
- 性能提升:Bourbaki(7B)解决了26个问题,比之前的7B模型Kimina-7B多解决了16个问题。
- 对比结果:Bourbaki(7B)的性能优于其他强7B基线模型。
问题4:这个研究的实际应用价值是什么?
- 应用场景:自动化定理证明在数学、形式验证等领域有广泛应用。
- 实施建议:将sG-MDP框架应用于其他ATP系统,以提高证明搜索的效率和有效性。
- 局限与展望:sG-MDP框架的进一步改进和在其他领域的应用研究。