arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.21881cs.LG
收藏

学习Lean反馈以在GPU上高效评估证明候选

Learning Lean Feedback for Efficient Proof-Candidate Evaluation on GPUs

EPFL(洛桑联邦理工学院)

Lazar Milikic, Etienne Bamas, Emmanuel Abbe, Viktor Kunčak

AI总结:

本研究针对形式化定理证明训练中GPU闲置问题,提出结合分类器与反馈模型的两阶段Lean神经评估器,可提升评估吞吐量,其混合奖励系统还能缩短GRPO训练步骤并保持证明性能。

摘要:

针对形式化定理证明的语言模型训练需要大量验证器调用,缓慢的检查和超时常导致GPU闲置,且无法为潜在正确的证明提供奖励。我们使用484万个带标签程序在GPU上训练神经评估器,用于预测Lean 4的判定结果和编译器反馈。我们将两种有效性分类器与反馈模型对比,该反馈模型会为证明尝试标注预测的目标状态和错误信息。一种两阶段评估器先通过分类器筛选候选,再用反馈模型对其正预测打分,在从公开证明器收集的68932个程序组成的基准上,预测Lean是否接受候选证明的准确率达87.8%。该组合评估器在单个H100上每秒处理3.5个候选,吞吐量是采用环境复用的64 worker Lean基线的4.2倍。最后,我们将评估器与Lean判定结果结合,得到混合奖励系统,可将GRPO训练步骤缩短约31%。在使用混合奖励进行一次GRPO轮次后,证明器的miniF2F pass@1接近仅用Lean奖励的结果(62.2% vs 62.4%),pass@32为72.4% vs 71.3%。

英文摘要:

Training language models for formal theorem proving requires large numbers of verifier calls. Slow checks and timeouts often leave GPUs waiting and withhold rewards from potentially correct proofs. We train neural evaluators to predict Lean 4 verdicts and compiler feedback on GPUs using 4.84M labelled programs. We compare two validity classifiers with a feedback model that annotates proof attempts with predicted goal states and error messages. A two-stage evaluator that screens candidates with a classifier and scores its positive predictions with the feedback model reaches 87.8% accuracy in predicting whether Lean accepts a candidate proof, evaluated on a 68,932-program benchmark collected from public provers. The combined evaluator processes 3.5 candidates per second on one H100, 4.2x the throughput of our 64-worker Lean baseline with environment reuse. Finally, we combine our evaluator with Lean verdicts to obtain a hybrid reward system that shortens GRPO training steps by approximately 31%. After one GRPO epoch with hybrid rewards, the prover achieves nearly the same miniF2F pass@1 as with Lean-only rewards (62.2% versus 62.4%) and a pass@32 of 72.4% versus 71.3%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑