ProofOptimizer:训练语言模型在没有人工示范的情况下简化证明
ProofOptimizer: Training Language Models to Simplify Proofs without Human Demonstrations
AI总结:
ProofOptimizer通过专家迭代和强化学习训练语言模型简化Lean证明,无需人工示范,在多个基准上将证明长度减少49%-87%,并提升下游证明器性能。
摘要:
神经定理证明在过去一年中取得了快速进展,达到了国际数学奥林匹克金牌得主的能力水平,并生成了跨越数千行的形式化证明。尽管这些证明通过Lean等正式系统进行了机械验证,但其过长的篇幅使得人类难以理解,并限制了其在数学洞察方面的实用性。因此,证明简化成为一个关键的瓶颈。然而,这项任务的训练数据稀缺,现有方法——主要是使用现成的大语言模型进行智能体脚手架搭建——难以处理由强化学习训练的证明器生成的长篇证明。我们引入了ProofOptimizer,这是第一个无需额外人工监督即可训练来简化Lean证明的语言模型。ProofOptimizer通过专家迭代和强化学习进行训练,利用Lean来验证简化结果并提供训练信号。在推理时,它在迭代式证明缩短工作流程中运行,逐步减少证明长度。实验表明,ProofOptimizer在标准基准测试上大幅压缩了由最先进的强化学习训练的证明器生成的证明,在miniF2F上将证明长度减少了87%,在PutnamBench上减少了57%,在Seed-Prover的IMO 2025证明上减少了49%。除了简洁性之外,简化后的证明在Lean中检查速度更快,并且在作为监督微调的训练数据重用时,进一步提升了下游证明器的性能。
英文摘要:
Neural theorem proving has advanced rapidly in the past year, reaching IMO gold-medalist capabilities and producing formal proofs that span thousands of lines. Although such proofs are mechanically verified by formal systems like Lean, their excessive length renders them difficult for humans to comprehend and limits their usefulness for mathematical insight. Proof simplification is therefore a critical bottleneck. Yet, training data for this task is scarce, and existing methods -- mainly agentic scaffolding with off-the-shelf LLMs -- struggle with the extremely long proofs generated by RL-trained provers. We introduce ProofOptimizer, the first language model trained to simplify Lean proofs without requiring additional human supervision. ProofOptimizer is trained via expert iteration and reinforcement learning, using Lean to verify simplifications and provide training signal. At inference time, it operates within an iterative proof-shortening workflow, progressively reducing proof length. Experiments show that ProofOptimizer substantially compresses proofs generated by state-of-the-art RL-trained provers on standard benchmarks, reducing proof length by 87% on miniF2F, 57% on PutnamBench, and 49% on Seed-Prover's IMO 2025 proofs. Beyond conciseness, the simplified proofs check faster in Lean and further improve downstream prover performance when reused as training data for supervised finetuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。