Budget-Aware Predict-and-Verify Theorem Proving with Heterogeneous LLM Solvers
Organizations: Futurewei Technologies San Jose, CA 95131, USA · Shanghai Institute for Mathematics and Interdisciplinary Sciences Shanghai, China
Abstract
Large language model (LLM) theorem solvers differ in both proving capability and inference cost. Applying an expensive solver to every subgoal wastes computation when cheaper models are sufficient, while always starting from the cheapest solver wastes attempts on subgoals that require stronger models. We present BudgetPV, an agentic budget-aware predict-and-verify system that allocates computation across unresolved subgoals and heterogeneous LLM solvers. BudgetPV uses a cross-solver predictor to guide solver selection for each subgoal and revises the allocation as verification feedback becomes available. The allocation problem changes as proving progresses. Early decisions mainly determine which solver should handle an untried subgoal, while later decisions determine which previously attempted subgoals should receive additional computation. We train the predictor with two objectives for these two stages. Class-weighted cross-entropy improves assignment to less frequent stronger solvers during the initial stage, while plain cross-entropy provides better calibrated probabilities for later allocation among previously attempted subgoals. We evaluate BudgetPV on Lean Workbook, miniF2F, ProofNet, and PutnamBench using three progressively expanded solver settings: a strong but expensive solver alone, adding a medium-cost solver with intermediate solving capability, and further adding a cheap solver with lower solving capability. BudgetPV requires less LLM generation computation than uniform allocation to solve the same number of subgoals across the evaluated settings. The experiments further show the computation savings obtained as medium- and lower-cost solvers are added.
Figures & tables
| Dataset | Solvers | Method | 50% | 60% | 70% | 80% | 90% |
|---|---|---|---|---|---|---|---|
| miniF2F | 1 | Uniform | 2,672 193 | 3,248 110 | 3,580 63 | 3,949 77 | 5,056 245 |
| 1 | BudgetPV | 1,231 70 | 1,556 18 | 1,955 139 | 2,870 136 | 4,881 649 | |
| 2 | Uniform | 2,371 144 | 2,771 144 | 3,033 311 | 3,428 311 | 4,484 188 | |
| 2 | BudgetPV | 1,249 161 | 1,390 83 | 1,652 145 | 2,282 144 | 4,096 268 | |
| 3 | Uniform | 2,267 106 | 2,446 210 | 2,812 109 | 2,989 200 | 4,195 269 | |
| 3 | BudgetPV | 1,163 136 | 1,375 236 | 2,033 163 | 2,624 645 | 3,818 450 |
| Dataset | Solvers | Method | 50% | 60% | 70% | 80% | 90% |
|---|---|---|---|---|---|---|---|
| miniF2F | 1 | Uniform | 1,243 | 1,385 | 1,558 | 1,724 | 2,756 |
| 1 | BudgetPV | 724 17 | 891 27 | 1,097 3 | 1,605 2 | 2,205 7 | |
| 1 | Statistics Oracle | 427 | 812 | 954 | 1,118 | 1,257 | |
| 2 | Uniform | 682 | 743 | 978 | 1,301 | 2,180 | |
| 2 | BudgetPV | 334 1 | 412 2 | 686 98 | 929 3 | 1,958 189 | |
| 2 | Statistics Oracle | 200 | 482 | 626 | 792 | 962 |
| Dataset | Solvers | 50% | 70% | 90% | |
|---|---|---|---|---|---|
| miniF2F | 1 | Budget (GPU-s) | 1,583 | 3,534 | 6,812 |
| 1 | Uniform | 20.0 1.4 | 42.3 1.2 | 71.3 0.9 | |
| 1 | BudgetPV | 39.7 2.6 | 58.3 4.5 | 73.7 0.9 | |
| 2 | Budget (GPU-s) | 1,652 | 2,945 | 5,894 | |
| 2 | Uniform | 22.3 1.2 | 44.0 3.6 | 75.7 2.1 | |
| 2 | BudgetPV | 39.7 1.7 | 60.7 3.9 | 73.0 2.4 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Solver | Temperature / top- | Max tokens | Context |
|---|---|---|---|
| Goedel-Prover-V2-8B | 1.0 / 0.95 | 40,960 | 40,960 |
| Goedel-Prover-V2-32B | 1.0 / 0.95 | 40,960 | 40,960 |
| Kimina-Prover-Distill-8B | 0.6 / 0.95 | 8,096 | 16,384 |
| Pythagoras-Prover-4B | 1.0 / 0.95 | 30,720 | 32,768 |
| Pythagoras-Prover-32B | 1.0 / 0.95 | 30,720 | 32,768 |
| DeepSeek-Prover-V2-7B | 1.0 / 0.95 | 8,192 | 16,384 |
| Close@8 (%) | |||||
|---|---|---|---|---|---|
| Solver | Lean Workbook | miniF2F | ProofNet | PutnamBench | GPU-s/attempt |
| Pythagoras-Prover-4B | 31.6 | 67.4 | 18.2 | 11.1 | 3.74 |
| Pythagoras-Prover-32B | 37.0 | 70.3 | 24.6 | 14.1 | 8.19 |
| Goedel-Prover-V2-8B | 40.8 | 71.6 | 23.4 | 14.3 | 5.00 |
| Goedel-Prover-V2-32B | 43.2 | 75.8 | 33.8 | 17.2 | 10.44 |
| DeepSeek-Prover-V2-7B | 37.2 | 69.0 | 26.0 | 13.3 | 4.21 |
| Candidate | LWB | miniF2F | ProofNet | PutnamBench |
|---|---|---|---|---|
| Kimina-Prover-Distill-8B | +10% | +30% | +28% | +13% |
| Pythagoras-Prover-4B | -1% | -3% | -12% | +1% |
| DeepSeek-Prover-V2-7B | -24% | -20% | +35% | – |
| Objective | Any solver | Kimina-8B | Goedel-8B | Goedel-32B |
|---|---|---|---|---|
| Class-weighted CE ( ) | 0.782 / 0.215 / 0.155 | 0.813 / 0.161 / 0.042 | 0.798 / 0.188 / 0.074 | 0.778 / 0.221 / 0.169 |
| Plain CE ( ) | 0.789 / 0.189 / 0.052 | 0.822 / 0.157 / 0.040 | 0.808 / 0.177 / 0.051 | 0.784 / 0.191 / 0.059 |
| Objective | First choice closes | Over-assigned | Under-assigned |
|---|---|---|---|
| Class-weighted CE ( ) | 337 / 394 | 102 | 52 |
| Plain CE ( ) | 319 / 394 | 48 | 72 |
| Predictor | Previous attempts | Attempts | AUROC |
|---|---|---|---|
| 0 | 12,830 | 0.820 | |
| 1 | 7,886 | 0.817 | |
| 2–3 | 2,561 | 0.817 | |
| 0 | 3,504 | 0.827 | |
| 1 | 7,857 | 0.782 | |
| 2–3 | 35,079 | 0.707 |