LeanPRM:面向自然语言证明验证的Lean基础过程监督
研究论文 · 2026/10/17
AI系统现在能写出长而困难的数学证明,检查其逐步有效性正成为瓶颈。学习型验证器可以低成本检查证明,但训练它需要每一步的正确性标签,而开放式证明难以获得此类标签。现有方法从人工标注者获取标签(成本高),或从最终答案推导(证明没有最终答案),或需专家在Lean中形式化每个证明。我们提出LeanPRM,一个利用Lean证明助手为自然语言证明创建步骤级标签的框架。模型在无Lean反馈的情况下写出自然语言证明及配对的正式证明。Lean随后为每一步打标签,第二个模型丢弃仅由形式语法导致的失败,使负面标签标记数学错误。LeanPRM包含10,634个证明和152K个标注步骤,无人工标注。在LeanPRM上训练的Qwen3-4B验证器在200个证明的留出集(LeanPRM-Bench)上将精确步骤标签准确率从48.2提升至74.7,而同一基础模型在PRM800K上训练仅达60.3。它还在IMO级问题的最佳N选择中选出更好的证明,并在四个外部验证基准中的三个上优于PRM800K训练的验证器。在LeanPRM上训练可提升从0.6B到8B参数的所有规模验证器在LeanPRM-Bench、Hard2Verify和IMO-GradingBench上的表现。由于标签无需人工标注,LeanPRM可随形式化陈述的供应而增长,为难以人工检查的AI生成证明提供步骤级反馈的途径。
该研究解决了AI生成数学证明验证中步骤级标签难以获取的关键瓶颈,提出了一种无需人工标注、可扩展的自动化方法,并在多个基准上显著优于现有方法,为验证难以人工检查的AI生成证明提供了可行路径。
AI systems now write long and difficult mathematical proofs, and checking their step-by-step validity is becoming a bottleneck. A learned verifier could check proofs cheaply, but training one requires a correctness label on every step, and such labels are hard to obtain for open-ended proofs. Existing methods take them from human annotators, which is costly, or derive them from final answers, which proofs do not have, and formalizing each proof in Lean requires expert effort. We introduce LeanPRM, a framework that uses the Lean proof assistant to create step-level labels for natural-language proofs. A model writes a natural-language proof together with a paired formal proof, without feedback from Lean. Lean then labels every step, and a second model discards failures caused only by the formal syntax, so that the negative labels mark errors in the mathematics. LeanPRM contains 10,634 proofs with 152K labeled steps and no human annotation. A Qwen3-4B verifier trained on LeanPRM raises exact step-label accuracy on a held-out set of 200 proofs (LeanPRM-Bench) from 48.2 to 74.7, as opposed to 60.3 when the same base model is trained on PRM800K. It also selects better proofs in best-of-N selection on IMO-level problems, and outperforms the PRM800K-trained verifier on three of four external verification benchmarks. Training on LeanPRM improves verifiers at every size from 0.6B to 8B parameters on LeanPRM-Bench, Hard2Verify and IMO-GradingBench. Given the labels need no human annotation, LeanPRM can grow with the supply of formal statements, offering a path to step-level feedback on AI-generated proofs that are hard for humans to check.