cs.LGOct 15, 2026

Learning Lean Feedback for Efficient Proof-Candidate Evaluation on GPUs

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

Organizations: EPFL, Lausanne, Switzerland

Abstract

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%.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FormalRewardBench: A Benchmark for Formal Theorem Proving Reward Models

    May 11, 2026Zeynel A. Uluşan, Burak S. Akbudak, Can S. Erer +1Reward ModelingAutomated Theorem Proving

  2. Pythagoras-Prover: Advancing Efficient Formal Proving via Augmented Lean Formalisation

    Jun 10, 2026Joshua Ong Jun Leang, Zheng Zhao, Mihaela Cătălina Stoian +5Automated Theorem ProvingEfficient Language Model Training

  3. LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verification

    Oct 13, 2026Rodney Lafuente-Mercado, Salman Rahman, Jingyan Shen +3Process SupervisionProcess Reward Models