Goedel-Prover-V2-8B-EI-campaign1-r2
Round 2 of a 3-round expert-iteration campaign on Goedel-Prover-V2-8B. Verdict: no measurable change from the base model (miniF2F-valid solved@8 is 187/226 for this model and 188/226 for the base; exact McNemar p = 1.0). The campaign's stop rule picked round 1, not this round. This repo is published as a documented negative result, not as a recommended checkpoint. If you want the prover, use Goedel-LM/Goedel-Prover-V2-8B.
Every number on this card comes from a local run artefact. evidence.json (kept next to this card in the publishing workspace) maps each number to its file and field. Where something was never measured, the card says not measured.
1. TL;DR product sheet
| What it is | An 8.19B-parameter Lean 4 whole-proof generator (Qwen3 architecture). Full bf16 weights; no adapter needed at inference. |
| Base | Goedel-LM/Goedel-Prover-V2-8B @ dfd02e6271a58375dfbf3ece0175277cf6b6a89a (Apache-2.0) |
| Input model for this round | The campaign round-1 model (campaign-r1, published as viai957/Goedel-Prover-V2-8B-EI-campaign1-r1) |
| Method | Expert iteration, round 2: sample 8 proofs for each of 300 statements, check them with the Lean 4 kernel, keep up to 4 of the shortest verified proofs per statement, run LoRA SFT (r=64, α=128, 2 epochs), merge the adapter into bf16 weights, then average the weights with the original base (fine-tuned weight 0.7). |
| Training data | 374 self-generated, kernel-verified proofs of 120 statements. 1,377,760 completion tokens plus 97,007 prompt tokens. The statements come from 5 open datasets. |
| Compute | 4× NVIDIA L4 (24 GB, sm_89), one node. Round wall-clock: 10.8 h in total (generation + verification 6.07 h, SFT 0.55 h, export + average 0.10 h, eval 4.07 h). |
| Headline result | miniF2F-valid, n=8, cap 30k: pass@1 71.1% [95% CI 66.0, 76.2], pass@8 82.7% (187/226). Untrained base under the same protocol: 71.8% / 83.2% (188/226). |
| Status | Not chosen by the stop rule (best round = 1; the campaign stopped after round 3 on regression). No held-out test number exists. |
2. Model details and mechanism
| field | value |
|---|---|
| Architecture | Qwen3ForCausalLM: 36 layers, hidden size 4096, intermediate size 12288, 32 query heads / 8 KV heads (GQA), head_dim 128, RoPE θ = 1e6, max positions 40,960, vocabulary 151,936, untied embeddings |
| Parameters | 8,190,735,360 (stored as bf16, 17 safetensors shards, 16.38 GB) |
| Trainable during SFT | LoRA on q/k/v/o/gate/up/down projections in all 36 blocks (252 matrices). 174.6M parameters (4 ranks × 43.65M shard-local elements), about 2.1% of the model |
| Tokenizer / chat template | Unchanged from the base |
| Output format | Natural-language proof plan, then a ```lean4 block containing the complete theorem and proof |
2.1 How this checkpoint was produced (one expert-iteration round)
flowchart LR
P[("Decontaminated pool<br/>5,940 Lean statements")] --> S["select_by_band<br/>in-band (0,0.75] then unmeasured<br/>→ 300 statements"]
M1["round-1 model (campaign-r1)"] --> G
S --> G["vLLM sampling<br/>n=8, T=1.0, top-p 0.95<br/>cap 16,384 tok → 2,400 proofs"]
G --> V{"Lean 4 kernel<br/>v4.9.0-rc1 + Mathlib d1d1e4b7<br/>180 s, axiom whitelist"}
V -->|852 accepted| F["filter<br/>drop 8/8 statements (45), unfaithful (2)<br/>keep ≤4 shortest / statement"]
F --> D[("SFT set<br/>374 rows · 120 statements")]
D --> T["LoRA SFT on round-1 model<br/>r=64 α=128, lr 2e-5, 2 epochs<br/>24 optimizer steps"]
T --> X["merge adapter → bf16 export<br/>(88.7% of delta elements round to 0)"]
X --> A["weight average<br/>θ = 0.3·θ_base + 0.7·θ_export"]
B0["θ_base (original Goedel-8B)"] --> A
A --> R2["THIS MODEL (round 2)"]
R2 --> E["eval: miniF2F-valid<br/>n=8, cap 30k"]
E --> SR{"stop rule<br/>min_gain 2, patience 2,<br/>max_regress 3"}
SR -->|continue| N["round 3"]
3. Training data
3.1 Statement sources and licences
The training targets are proofs the model wrote itself and the Lean kernel accepted. No upstream proof text was trained on. Upstream datasets supply only the theorem statements (and their informal problem text in the prompt docstring). The statements were streamed through the mirror viai957/lean-prover-data.
| source | hub id @ revision | licence | statements selected (of 300) | SFT rows (of 374) |
|---|---|---|---|---|
| Goedel-Pset-v1 | Goedel-LM/Goedel-Pset-v1 @ 79fc4fbe | MIT | 132 | 251 |
| NuminaMath-LEAN-Sol | iiis-lean/NuminaMath-LEAN-Sol @ d2052841 | Apache-2.0 | 58 | 54 |
| Nemotron-Math-Proofs-v1 | nvidia/Nemotron-Math-Proofs-v1 @ 97229c59 | CC-BY-SA-4.0 | 48 | 30 |
| FormalMATH-All | SphereLab/FormalMATH-All @ 8eea2550 | MIT | 32 | 14 |
| RL-Goedel-Pset-Level-4-5 | HangHor/RL-Goedel-Pset-Level-4-5 @ 0c588300 | MIT | 30 | 25 |
Share-alike notice: some training statements come from nvidia/Nemotron-Math-Proofs-v1 by NVIDIA, licensed CC-BY-SA-4.0. Any dataset released from these rows must carry CC-BY-SA-4.0.
3.2 Filtering funnel (round 2)
Figure 1. Left: the round-2 data funnel (log scale): pool 5,940, selected 300, generations 2,400, kernel-accepted 852, after filters (8/8 statements and unfaithful samples removed) 490, SFT rows 374. Middle: number of verified proofs out of 8 samples per selected statement, from the round-1 model at a 16,384-token cap. 135 statements had 0/8 and 45 had 8/8 (the 8/8 statements were excluded as "too easy"). Right: SFT rows by statement source. Sources: round_02/round_manifest.json, round_02/gen/ver_r0.jsonl, round_02/sft_data/manifest.json.
| stage | count | note |
|---|---|---|
| Pool | 5,940 | From 6,000 streamed rows: 57 dropped for informal-text overlap with protected sets, 3 duplicates |
| Selected | 300 | 107 in-band (0 < p̂ ≤ 0.75) + 193 not yet measured. 0 never-solved statements were selected: 542 never-solved statements were eligible; the max_zero cap kept 60 and dropped 482 (unsolved_over_cap), and those 60 were then pushed out by the 300 cap, because in-band (107) and unmeasured (193) statements fill all 300 slots first (round_01/pass_rates.json, round_02/select/selection.json) |
| Generations | 2,400 | 300 × 8 samples |
| Kernel-accepted | 852 (35.5%) | Rejections: compile_error 1,156, no_code 250, timeout 107, memory 23, banned 12 |
| Candidates after filters | 490 | Minus 360 samples from the 45 statements solved 8/8, minus 2 flagged statement_not_faithful |
| SFT rows | 374 | Up to 4 shortest per statement. 116 not selected (over the cap, or duplicates). 120 statements have rows |
Per-row completion length: mean 3,684 tokens, median 3,160, min 487, max 16,037 (Figure 2).
Figure 2. Completion length of the 374 SFT targets. The SFT selection keys (round_02/sft_data/selection.jsonl) are joined with trajectory.completion_tokens in round_02/gen/gen_r0.jsonl. The lengths sum to 1,377,760 tokens, which equals the manifest's train_completion_tokens.
3.3 Decontamination
- Pool stage (
scripts/p2/stream_pool.py): rows are dropped if theirstatement_shamatches a protected set, or if their informal text overlaps one (any shared 13-gram, or ≥ 3 distinct shared 8-grams). Protected sets: miniF2F-test (244), MOBench (135) and miniF2F-valid (226). Result: 0 exact-statement hits and 57 informal-overlap drops. - SFT stage (
scripts/p2/build_sft_data.py): the build raises if any training statement's sha appears in miniF2F-valid, miniF2F-test or MOBench. - Selection: test splits are refused (
allow_test_selection = false). - Caveat: miniF2F-valid is excluded from training data, but it is also the stop-rule development set. It is therefore not held out from model selection (Section 7).
4. Training procedure
4.1 Expert-iteration loop
Let $\theta_0$ be the original base, $\pi_{k}$ the round-$k$ model ($\pi_0=\theta_0$), and $V(s,y)\in{0,1}$ the Lean 4 kernel verdict for statement $s$ and proof $y$. Round $k$ does the following:
- Select $S_k \subset \mathcal{P}$, with $|S_k| \le 300$, ordered as in-band $0<\hat p(s)\le 0.75$, then unmeasured, then $\hat p=0$ (at most 60). $\hat p$ is the empirical pass rate measured in earlier rounds.
- Sample $y^{(j)} \sim \pi_{k-1}(\cdot\mid s)$ for $j=1..8$ ($T=1.0$, top-$p$ 0.95, at most 16,384 new tokens), then verify each sample with $V$.
- Build data $D_k=\bigcup_{s:,0<c(s)<8}\operatorname{shortest}_4{y^{(j)}:V(s,y^{(j)})=1}$, where $c(s)$ is the number of verified samples out of 8.
- SFT a LoRA adapter $\Delta_k=\tfrac{\alpha}{r}B_kA_k$ on $\pi_{k-1}$, then merge: $\hat\theta_k=\operatorname{bf16}(\theta_{\pi_{k-1}}+\Delta_k)$.
- Average with the original base: $\theta_{\pi_k}=\operatorname{bf16}\big((1-w),\theta_0+w,\hat\theta_k\big)$ with $w=0.7$. The arithmetic runs in fp64 and is rounded once.
- Evaluate on miniF2F-valid (solved@8 at cap 30k) and apply the stop rule:
min_gain = 2problems,patience = 2rounds,max_regress = 3problems.
Unrolled for this round: $\theta_{\pi_2}=0.3,\theta_0+0.7,\operatorname{bf16}(\theta_{\pi_1}+\Delta_2)$ with $\theta_{\pi_1}=0.3,\theta_0+0.7,\operatorname{bf16}(\theta_0+\Delta_1)$, ignoring the outer bf16 roundings. The nominal round-1 and round-2 deltas therefore enter with weights 0.49 and 0.7.
4.2 SFT objective
The loss is token-level cross-entropy over completion tokens only. Prompt and padding tokens are masked with labels = −100. The loss is normalised by the global count of target tokens across the 2-micro-batch accumulation window and the 4 ranks (loss_normalization = "global_token_mean"):
$$ \mathcal{L}(A,B)= -\frac{1}{\sum_{i\in\mathcal{B}}\sum_t m_{i,t}}\sum_{i\in\mathcal{B}}\sum_{t} m_{i,t},\log \pi_{\theta+\frac{\alpha}{r}BA}!\left(y_{i,t}\mid x_i, y_{i,<t}\right), \qquad m_{i,t}=\mathbb{1}[t\in\text{completion}] $$
No KL term, no reward model and no RL objective is used. "Reward" here means only the binary kernel filter applied before SFT (rejection sampling).
4.3 Hyperparameters
| group | setting | value |
|---|---|---|
| LoRA | rank / alpha / dropout | 64 / 128 / 0.0 |
| target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj | |
| Optimiser | type | in-repo block-wise 8-bit AdamW (block 2048, stochastic rounding) |
| lr / betas / weight decay | 2e-5 / (0.9, 0.95) / 0.0 | |
| schedule | warmup fraction 0.1, then cosine decay to ~0 (logged: peak 2.0e-5, last 1.02e-7) | |
| grad clip (max norm) | 1.0 (never reached: logged pre-clip norms were 0.017–0.029) | |
| Batch | micro-batch | 1 × 18,432-token budget, length-grouped packing |
| grad accumulation × ranks | 2 × 4 = 8 micro-batches per optimizer step | |
| epochs / steps | 2 / 48 micro-steps = 24 optimizer steps (data_exhausted) | |
| Precision / parallelism | bf16 params, fp32 gradient reduce, FSDP2 (36 per-block units), activation checkpointing, SDPA flash attention | |
| Data gen | n / cap / T / top-p / seed | 8 / 16,384 / 1.0 / 0.95 / 2000 (vLLM, TP=4) |
| Selection | band / max problems / max zero / max per problem / rank | (0, 0.75] / 300 / 60 / 4 / shortest |
| Averaging | anchor / fine-tuned weight | original base / 0.7 (399 tensors) |
| Seed | 0 |
4.4 Compute
| stage | wall-clock (s) | hardware |
|---|---|---|
| gen + verify (2,400 samples) | 21,868.3 | 4× L4 (vLLM TP=4) + CPU Lean workers (8) |
| SFT | 1,977.2 | 4× L4 (torchrun, 4 ranks) |
| export (merge + vLLM load check) | 172.0 | |
| weight average | 196.7 | CPU |
| eval (1,808 samples) | 14,645.4 | 4× L4 + CPU Lean |
| select / sft_data / report | 0.1 / 10.0 / 4.0 | CPU |
| total | 38,873.7 (10.8 h) | ≈ 43 L4-hours of node occupancy |
The job ran on 2026-10-24 under a kernel-enforced cgroup cap (hostguard, 40 cores). Code: viai957/align @ de5543454e51e1def90a78609c4799d3b8771db8.
5. Training curves
The per-rank history.jsonl files were deleted with the round's SFT checkpoint (37 GB) once the round finished. The curves below come from the read-only W&B sidecar mirror of those files (runs/campaign1/wandb/.../run-0ca1a6eafc40.wandb, rows with sft/round == 2). There are 4 rows per micro-step. The 4 rows' n_tokens sum to 2,703,422, about 2 × 1,377,760 completion tokens (2 epochs), which is consistent with all 4 data-parallel ranks logging to one file. Lines show the mean of the 4 rows; dots show the individual rows.
Figure 3. Round-2 SFT training loss (masked CE). Mean over epoch 1: 0.1379; over epoch 2: 0.1369. First micro-step 0.1472, last 0.1543. The loss is flat: the model already assigns high likelihood to its own verified proofs, so 24 steps at lr ≤ 2e-5 barely move it. Source: W&B sidecar, sft/loss.
Figure 4. Logged learning rate (warmup, then cosine decay) and pre-clip gradient norm, logged once per optimizer step by each of the 4 ranks; the line shows the first row at each step, and the 0.017-0.029 range covers all 96 rows. The norm stays between 0.017 and 0.029, far below the 1.0 clip. Source: W&B sidecar, sft/lr and sft/grad_norm.
Figure 5. SFT loss for each campaign round (rounds 1/2/3: 56/48/54 micro-steps). The level falls from round to round (epoch-1 means 0.174 → 0.138 → 0.119) because each round trains on proofs sampled from the previous model, which fit that model better. Nothing in any round shows a downward trend. Source: W&B sidecar, sft/loss by sft/round.
Reward, KL, value loss and advantage curves do not exist: not applicable (no RL stage). Generation-time acceptance for the data round is in Figure 1 (middle) and Section 3.2.
6. Evaluation
6.1 Protocol
miniF2F valid split (226 problems, Lean 4). 8 samples per problem, temperature 1.0, top-p 0.95, at most 30,000 new tokens, vLLM TP=4, seed 0, byte-identical prompt token ids for all four models (all 226 problems compared across the base, r1, r2 and r3 gen_n8_c30000.jsonl files). Verification uses Lean v4.9.0-rc1, Mathlib d1d1e4b72c6e009edd97cabe1d661b021fe8eeae and REPL 7df77c0a, with a 180 s budget per proof, strict statement matching, no helper definitions, and an axiom whitelist of {Classical.choice, Quot.sound, propext}. TIMEOUT and verifier infrastructure outcomes (memory/crash) count as unsolved. pass@k uses the unbiased estimator $1-\binom{n-c}{k}/\binom{n}{k}$, averaged over problems. The 95% CIs come from a problem-level bootstrap (2,000 resamples, seed 0). Pins+config hash: 5436607061c6.
6.2 Results
| model | pass@1 [95% CI] | pass@2 | pass@4 | pass@8 [95% CI] | solved@8 | solved 8/8 | samples |
|---|---|---|---|---|---|---|---|
| Goedel-Prover-V2-8B (base) | 71.8 [66.9, 76.8] | 77.6 | 80.7 | 83.2 [77.9, 88.1] | 188 | 118 | 1,808 |
| EI round 1 | 71.9 [67.0, 76.9] | 78.2 | 81.6 | 83.2 [77.9, 87.6] | 188 | 114 | 1,808 |
| EI round 2 (this model) | 71.1 [66.0, 76.2] | 77.2 | 80.5 | 82.7 [77.4, 87.6] | 187 | 112 | 1,808 |
| EI round 3 | 72.0 [67.0, 77.0] | 77.9 | 80.5 | 81.9 [76.5, 86.7] | 185 | 112 | 1,808 |
All values are percentages except the counts. Sources: align/runs/campaign1/ei/round_0{1,2,3}/eval/ver_n8_c30000.jsonl and ProofForge/runs/p5_eval/base/ver_n8_c30000.jsonl, re-scored by _work/analyze.py. The round-2 numbers match round_02/round_manifest.json (mean_pass_at_1 0.71128, solved_at_n 187).
Paired tests (solved@8, exact two-sided McNemar):
| comparison | only A | only B | p |
|---|---|---|---|
| round 2 vs base | 2 | 3 | 1.000 |
| round 2 vs round 1 | 2 | 3 | 1.000 |
| round 3 vs round 2 | 3 | 5 | 0.727 |
The paired bootstrap deltas from the campaign's own report (round_02/report/report.md, round 2 − round 1) are: pass@1 −0.8 pp [−2.4, +0.9], pass@8 −0.4 pp [−2.2, +1.3]. None of the differences is statistically detectable.
Benchmarks not measured for this model: miniF2F-test, MOBench, ProofNet, PutnamBench, and any pass@k with k > 8. The campaign's pre-registered primary endpoint (miniF2F solved@8 at cap 16,384) could not be computed from these runs, as report.md itself flags.
6.3 Hill-climbing across rounds
Figure 6. miniF2F-valid pass@8 (left, solved@8 annotated) and mean pass@1 (right) with 95% bootstrap CIs, by expert-iteration round. Solved@8 goes 188 → 188 → 187 → 185. Every interval overlaps every other. Sources: the four ver_n8_c30000.jsonl files above.
Figure 7. pass@k for k = 1..8. The curves lie on top of each other. Round 3 gains slightly at k=1 and loses at k=8, the usual pass@1-for-diversity trade, but the shifts are within noise.
6.4 Where round 2 differs from the base
Figure 8. Per-problem number of correct samples (of 8), base (rows) vs round 2 (columns). Mass sits on the diagonal, and only 5 problems change solved/unsolved status (cells in row 0 or column 0 off the diagonal). Source: the two ver_n8_c30000.jsonl files.
Figure 9. Verifier outcome per sample. Base → round 2: accepted 1,299 → 1,286, compile_error 406 → 375, timeout 67 → 68, no_code 32 → 76, memory 3 → 3, crash 1 → 0.
Figure 10. Eval completion length (log count). Mean 4,153 tokens for the base and 4,323 for round 2 (medians 2,133 and 2,032). Samples that hit the 30k cap: 32 for the base, 76 for round 2. In both runs this count equals the no_code count: these samples never closed a Lean block. Across rounds the count grows 32 → 61 → 76 → 90 (base → r1 → r2 → r3).
7. Discussion, negative results and lessons
- No gain, measured. Round 2 is indistinguishable from both the base and round 1 on miniF2F-valid at n=8 (Sections 6.2–6.3). The campaign's stop rule correctly ended the run after round 3 (
regression, best round 1). We claim no benefit of this training. - Most of the update was lost during the bf16 merge (measured). The export check compares the merged bf16 weights with the intended $\theta+\Delta$. For this round, over the 252 adapted matrices, cosine(exported delta, intended delta) = 0.475, relative error 0.892, and 88.7% of the non-zero delta elements rounded to zero. Mean relative weight change per matrix was 3.0e-4 (max 6.5e-4). Rounds 1 and 3 show the same pattern (Figure 11). A likely mechanism (inferred, not separately tested): bf16 keeps 8 significant bits, so an element moves only if its update exceeds about half a unit in the last place (≥ 2⁻⁹ ≈ 2e-3 relative). The measured per-matrix relative change (Frobenius norm) is about 3e-4, well below bf16's roughly 2e-3 half-ulp relative resolution, so most per-element updates are likely to round back to the original value (inferred; per-element magnitudes were not logged). The 0.7 average with the base then scales whatever survived by 0.7. The adapter-vs-merged check still passed its thresholds (argmax agreement 1.0, mean KL 4.3e-5 and 1.8e-4 on two 64-token probes), because the adapter itself also changed the policy very little. Lesson: at this LR and step count, a LoRA merged into bf16 weights is mostly a no-op. Merge in fp32 and keep the fp32 delta, serve the adapter unmerged, or train long enough that the delta exceeds the bf16 resolution. Check delta retention as a gate, not as a warning.
- The data did not target the frontier. No never-solved statement entered training (0 of 542 eligible). The
max_zerocap kept 60 of them and dropped 482, and in-band (107) plus unmeasured (193) statements then filled all 300 slots ahead of those 60. 120 statements, mostly ones the model already half-solves, give 374 rows. The project's own prior for band rejection-sampling SFT on a strong post-trained base was 0 to +2.5 pp (align/docs/SOTA_PLAN.md, lever L3); this round landed at the bottom of that range. - Flat SFT loss is diagnostic. The loss on self-generated verified proofs starts low (~0.14 nats/token) and does not fall within the round (Figure 3). Self-distillation on the model's own accepted samples carries little new signal for an already post-trained prover.
- A side effect to watch. Length-capped /
no_codesamples on eval rise round over round (32 → 61 → 76 → 90). It does not change solved@8, but it suggests the training slowly lengthens outputs (the SFT targets average 3,684 tokens). - Evaluation caveats. miniF2F-valid was both the eval set and the stop-rule dev set, so it is not held out from model selection. Every run is a single seed (seed 0). The verifier recorded infra outcomes (memory/crash) on 3/1,808 samples for round 2 and 4/1,808 for the base, all counted as unsolved; ProofForge's strict rule would mark both runs INVALID(infra).
Figure 11. Share of the LoRA delta that survived the bf16 merge, per round: cosine with the intended delta, and the fraction of non-zero delta elements rounded to zero. Source: round_0{1,2,3}/logs/export.log, merge_delta_retention.
8. Intended use, limitations and risks
- Intended use: research on expert iteration and self-distillation for formal theorem proving, as a documented point in a negative-result ablation, or as a comparison checkpoint against
Goedel-Prover-V2-8B. - Not intended for: use as a better prover than the base (it is not one), or for any claim of SOTA. The model emits Lean 4 for Lean
v4.9.0-rc1/ the Mathlib pinned above. Newer Lean/Mathlib versions can break proofs. - Limitations: single seed. Valid-split-only evaluation. No test-split, MOBench, ProofNet or PutnamBench numbers. Outputs average about 4.3k tokens, and 4.2% of eval samples hit the 30k cap. Any proof is only as trustworthy as the Lean kernel run that checks it: always re-verify.
- Risks: low. Possible misuse is limited to presenting unverified output as a proof. Informal text in generations can be confidently wrong even when the Lean proof is valid, or the reverse.
9. Reproducibility
9.1 Code and pins
| item | value |
|---|---|
| Training code | https://github.com/viai957/align @ de5543454e51e1def90a78609c4799d3b8771db8 (last commit before the round-2 train stage started, 2026-10-24) |
| Driver | scripts/p2/campaign.sh → scripts/p2/expert_iteration.py |
| SFT config | configs/p2_sft.toml |
| Base snapshot | Goedel-LM/Goedel-Prover-V2-8B @ dfd02e6271a58375dfbf3ece0175277cf6b6a89a |
| Verifier | Lean leanprover/lean4:v4.9.0-rc1, Mathlib d1d1e4b72c6e009edd97cabe1d661b021fe8eeae, REPL 7df77c0a1c9188ab58c76d4138a06ae5e0c32282. Pins+config sha256 5436607061c6902afe00d3721d0a675ed63ba66242ff79719d7817d712e7dee8 |
| SFT shard | sft-train-0000, 374 rows, 1,474,767 tokens, content hash 54e93e9163cc605550785f45a1675ba8 |
| Weight-average fingerprint | a949b0b49103abc5cf9f0a03343009a5355fd761ef645f8b2e5b70915dfc2798 |
| Card build | _work/analyze.py (figures + stats), _work/extract_wandb.py (W&B → JSONL) |
9.2 Commands
# campaign (rounds 1..3; round 2 = this model)
scripts/p2/expert_iteration.py \
--run-dir runs/campaign1/ei --name campaign --pool runs/campaign1/pool.jsonl \
--seed-ver .tmp/p2/r1/pool/ver_r0.jsonl \
--eval-problems .tmp/p2/problems/minif2f_valid.jsonl \
--protected-problems .tmp/p2/problems/minif2f.jsonl .tmp/p2/problems/mobench.jsonl \
--base-model <Goedel-Prover-V2-8B snapshot> \
--rounds 8 --n 8 --gen-cap 16384 --max-problems 300 --include-zero --max-zero 60 \
--tp 4 --workers 8 --nproc 4 --avg-weight 0.7 --avg-anchor original --prune-export \
--eval-n 8 --eval-cap 30000 --min-gain 2 --patience 2 --max-regress 3
# round-2 SFT stage, as logged
torchrun --standalone --nproc_per_node=4 scripts/sft.py configs/p2_sft.toml \
--data.shard_dir=runs/campaign1/ei/round_02/sft_data/shards \
--data.manifest_path=runs/campaign1/ei/round_02/sft_data/manifest.json \
--paths.checkpoint_dir=runs/campaign1/ei/round_02/sft \
--paths.model_snapshot=runs/campaign1/ei/round_01/avg
# weight average, as logged
python -m align.model.weight_average --base <base snapshot> \
--ft runs/campaign1/ei/round_02/export --ft-weight 0.7 --out runs/campaign1/ei/round_02/avg
Inference (same prompt as training and eval):
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "viai957/Goedel-Prover-V2-8B-EI-campaign1-r2"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16", device_map="auto")
stmt = "import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology Rat\n\ntheorem t (y : ℂ) : 7 * (3 * y + 2) = 21 * y + 14 := by sorry"
prompt = (f"Complete the following Lean 4 code:\n\n```lean4\n{stmt}```\n\n"
"Before producing the Lean 4 code to formally prove the given theorem, provide a detailed proof plan "
"outlining the main proof steps and strategies.\nThe plan should highlight key ideas, intermediate lemmas, "
"and proof structures that will guide the construction of the final formal proof.")
ids = tok.apply_chat_template([{"role": "user", "content": prompt}], add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=30000, do_sample=True, temperature=1.0, top_p=0.95)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)) # verify the ```lean4 block with Lean before trusting it
9.3 Files
17 bf16 safetensors shards (model-000NN-of-00017.safetensors, 16.38 GB in total) plus the index, config, generation config and the unchanged Qwen3 tokenizer files. The previous auto-generated card on this repo listed per-file sha256 values. They are unchanged by this card.
10. Related work, licence and citation
Sibling repositories (same campaign / same base):
viai957/Goedel-Prover-V2-8B-EI-campaign1-r1: round 1, the round the stop rule selectedviai957/Goedel-Prover-V2-8B-EI-campaign1-r3: round 3, after which the campaign stopped on regressionviai957/Goedel-Prover-V2-8B-VLG-planner-sft-lora: a later project on the same baseviai957/lean-prover-data: the statement mirror the pool was streamed from
Licence. Apache-2.0, the same as the base model. The statement sources carry MIT, Apache-2.0 and CC-BY-SA-4.0 licences (Section 3.1). The training targets are model-generated proofs.
Citation
@misc{viai957_goedel8b_ei_campaign1_r2_2026,
title = {Goedel-Prover-V2-8B-EI-campaign1-r2: a negative result for expert iteration with bf16-merged LoRA on a post-trained Lean prover},
author = {viai957},
year = {2026},
howpublished = {\url{https://huggingface.co/viai957/Goedel-Prover-V2-8B-EI-campaign1-r2}},
note = {align commit de5543454e51e1def90a78609c4799d3b8771db8}
}
@article{lin2025goedelproverv2,
title = {Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction},
author = {Lin, Yong and Tang, Shange and Lyu, Bohan and Yang, Ziran and Chung, Jui-Hui and Zhao, Haoyu and Jiang, Lai and Geng, Yihan and Ge, Jiawei and Sun, Jingruo and others},
journal = {arXiv preprint arXiv:2508.03613},
year = {2025}
}