BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Proving

Authors: Ran Xin, Chenguang Xi, Jie Yang, Feng Chen, Hang Wu, Xia Xiao, Yifan Sun, Shen Zheng, Kai Shen

Abstract: Recent advancements in large language models (LLMs) have spurred growing
interest in automatic theorem proving using Lean4, where effective tree search
methods are crucial for navigating proof search spaces. While the existing
approaches primarily rely on value functions and Monte Carlo Tree Search
(MCTS), the potential of simpler methods like Best-First Search (BFS) remains
underexplored. This paper investigates whether BFS can achieve competitive
performance in large-scale theorem proving tasks. We present
\texttt{BFS-Prover}, a scalable expert iteration framework, featuring three key
innovations. First, we implement strategic data filtering at each expert
iteration round, excluding problems solvable via beam search node expansion to
focus on harder cases. Second, we improve the sample efficiency of BFS through
Direct Preference Optimization (DPO) applied to state-tactic pairs
automatically annotated with compiler error feedback, refining the LLM’s policy
to prioritize productive expansions. Third, we employ length normalization in
BFS to encourage exploration of deeper proof paths. \texttt{BFS-Prover}
achieves a score of $71.31$ on the MiniF2F test set and therefore challenges
the perceived necessity of complex tree search methods, demonstrating that BFS
can achieve competitive performance when properly scaled.

Source: http://arxiv.org/abs/2502.03438v1

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these