重新思考监督粒度:基于LLM的定理证明的段级学习
Rethinking Supervision Granularity: Segment-Level Learning for LLM-Based Theorem Proving
AI总结:
本文提出段级监督策略,通过提取局部连贯的证明段落训练策略模型,提升定理证明的成功率,并在推理阶段减少计算成本。
摘要:
在Lean 4中使用大语言模型进行自动定理证明通常通过树搜索的步骤级战术预测或整体证明生成。这两种范式代表了构造监督训练数据的不同粒度:前者提供密集的局部信号但可能碎片化连贯的证明过程,而后者保持全局结构但需要复杂的端到端生成。本文重新审视监督粒度作为证明轨迹上的训练集构造问题,提出段级监督,一种提取局部连贯证明段落以训练策略模型的训练数据构造策略。我们进一步在推理阶段重用相同策略以触发短的回滚,以激活现有的步骤级模型。当在STP、LeanWorkbook和NuminaMath-LEAN上使用段级监督训练时,所得的策略模型在miniF2F上的证明成功率分别为64.84%、60.90%和66.31%,一致优于步骤级和整体证明基线。目标感知回滚进一步改进现有的步骤级证明者,同时减少推理成本。它将BFS-Prover-V2-7B的证明成功率从68.77%提高到70.74%,将InternLM2.5-StepProver的证明成功率从59.59%提高到60.33%,表明适当的监督粒度更好地使模型学习与证明结构和搜索相匹配。代码和模型可在https://github.com/NJUDeepEngine/SEG-ATP上获得。
英文摘要:
Automated theorem proving with large language models in Lean 4 is commonly approached through either step-level tactic prediction with tree search or whole-proof generation. These two paradigms represent opposite granularities for constructing supervised training data: the former provides dense local signals but may fragment coherent proof processes, while the latter preserves global structure but requires complex end-to-end generation. In this paper, we revisit supervision granularity as a training set construction problem over proof trajectories and propose segment-level supervision, a training data construction strategy that extracts locally coherent proof segments for training policy models. We further reuse the same strategy at inference time to trigger short rollouts for existing step-level models. When trained with segment-level supervision on STP, LeanWorkbook, and NuminaMath-LEAN, the resulting policy models achieve proof success rates of 64.84%, 60.90%, and 66.31% on miniF2F, respectively, consistently outperforming both step-level and whole-proof baselines. Goal-aware rollout further improves existing step-level provers while reducing inference costs. It increases the proof success rate of BFS-Prover-V2-7B from 68.77% to 70.74% and that of InternLM2.5-StepProver from 59.59% to 60.33%, showing that appropriate supervision granularity better aligns model learning with proof structure and search. Code and models are available at https://github.com/NJUDeepEngine/SEG-ATP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。