readme-format · 4915b21fb166
Browse filesFiles changed (29)
- .gitattributes+7-46
- README.md+288-40
- docs/assets/architecture.png
- docs/assets/online-solvers.png
- docs/assets/outcomes.png
- docs/assets/poster.pngAdded
- docs/assets/study.json+508
- docs/assets/twitter-summary.pngAdded
- docs/assets/walkthrough.gifAdded
- docs/assets/walkthrough.mp4Added+3
- docs/index.html+3-2
- docs/style.css+1
- docs/usage.md+8
- pyproject.toml+9-1
- reports/experiments/new-judges/experiment.md+8-3
- reports/paper.pdf+2-2
- reports/progress.md+9-4
- reports/reviews/readme-audit.mdAdded+36
- reports/summary.md+10-5
- src/study/depth_review.py+2-2
- src/study/frozen_report.py+6-2
- src/study/matched_tables.py+4-1
- src/study/online_report.py+14-5
- src/study/overview.pyAdded+254
- src/study/report.py+116-70
- src/study/visual_summary.pyAdded+360
- tests/test_overview.pyAdded+81
- tests/test_release.py+17-1
- uv.lock+12
1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950511 unmodified line*.pdf binary*.png binary*.gz binaryreports/paper.pdf filter=lfs diff=lfs merge=lfs -textdocs/assets/training.png filter=lfs diff=lfs merge=lfs -textlogs/calibrated/d3-17/2026-11-26T15-00-21.870+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/d2-17/2026-11-26T15-49-28.492+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/flat-17/2026-11-26T16-56-39.172+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/hybrid-17/2026-11-26T17-58-46.192+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/shuffle-17/2026-11-26T18-45-42.091+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/exact-prefix1/2026-11-26T21-58-43.471+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/exact-prefix2/2026-11-26T22-34-11.063+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textdocs/assets/examples.png filter=lfs diff=lfs merge=lfs -textlogs/calibrated/exact-prefix3/2026-11-26T23-11-19.793+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/top-prefix1/2026-11-26T23-50-26.406+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/top-prefix2/2026-11-27T00-30-45.656+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/top-prefix3/2026-11-27T01-07-48.015+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/alt-exact-solver/2026-11-27T03-11-20.007+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/exact-depth2/2026-11-27T04-54-53.275+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-9b-ollama/2026-11-27T06-19-50.138+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-4b-ollama/2026-11-27T06-24-59.262+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q25-1p5b/2026-11-27T06-28-38.498+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-4b/2026-11-27T06-30-43.294+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-4b/2026-11-27T06-31-24.434+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q25-1p5b/2026-11-27T06-28-50.177+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-4b-ollama/2026-11-27T06-25-01.585+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-9b-ollama/2026-11-27T06-13-56.284+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-9b-ollama/2026-11-27T06-19-56.182+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-9b/2026-11-27T06-44-28.078+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q35-9b/2026-11-27T06-56-35.219+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q38-27b/2026-11-27T07-24-26.117+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textdocs/assets/frozen-judge-scores.png filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q38-27b-iq1s/2026-11-27T07-42-33.935+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-q38-27b-iq1s/2026-11-27T07-44-03.020+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-confirm-control/2026-11-27T07-59-44.546+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-confirm-control/2026-11-27T07-59-58.907+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-confirm-winner/2026-11-27T08-02-57.285+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/calibrated/new-judges-confirm-winner/2026-11-27T08-03-30.886+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d2/2026-11-27T09-49-16.276+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d2/2026-11-27T09-49-16.277+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d2-development/2026-11-27T10-23-37.684+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d3/2026-11-27T10-25-22.117+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d3/2026-11-27T10-25-22.119+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d3-development/2026-11-27T11-08-24.953+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/solver-fit/original-nf4/2026-11-27T11-10-17.592+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/solver-fit/original-bf16/2026-11-27T11-11-30.327+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/solver-fit/base-2b/2026-11-27T11-12-52.264+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d1/2026-11-27T11-39-09.083+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d1/2026-11-27T11-39-09.085+00-00.jsonl.gz filter=lfs diff=lfs merge=lfs -textlogs/new-judges/winner-d1-development/2026-11-27T12-03-15.061+00-00-server.log.gz filter=lfs diff=lfs merge=lfs -text1 unmodified line234567891011121 unmodified line*.pdf binary*.png binary*.gz binary*.gif binary*.mp4 binarydocs/assets/architecture.png filter=lfs diff=lfs merge=lfs -textdocs/assets/poster.png filter=lfs diff=lfs merge=lfs -textdocs/assets/twitter-summary.png filter=lfs diff=lfs merge=lfs -textdocs/assets/walkthrough.gif filter=lfs diff=lfs merge=lfs -textdocs/assets/walkthrough.mp4 filter=lfs diff=lfs merge=lfs -textreports/paper.pdf filter=lfs diff=lfs merge=lfs -text
1 unmodified line23456789101112131426 unmodified lines414243444546474849505152535455565758597 unmodified lines67686970717273186 unmodified lines2602612622632642652665 unmodified lines27227327427527627727827928028128228328428599 unmodified lines38538638738838939039142 unmodified lines43443543643743843944044144244344444544644744844927 unmodified lines4774784794804814822 unmodified lines4854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215221 unmodified linepretty_name: Recursive judge evidence and GRPO outcomesviewer: false---# Does a third LLM judge improve GRPO rewards?A small language model solves numbered arithmetic problems. A second call judges the solution, a third checks that judgment, and a fourth checks the review. An exact integer evaluator can check each answer and each piece of evidence. We measure whether the final reviewer catches errors and whether its reward improves a solver trained with Group Relative Policy Optimization. [Preregistration](reports/preregistration.md)For example, a solver can give the right final answer to (4 + 3) × 2 while recording 8 in the first step. A reviewer can endorse the correct rejection and still give the wrong correction. [Compare the two trained solvers’ answers and each judge’s actual output](#what-did-the-solvers-and-judges-actually-write).<!-- RESULTS:START -->## Solvers trained with frozen Qwen3.5-4B judges| Solver reward | Updates | Groups with mixed rewards | Exact development solutions |26 unmodified linesA correct verdict accepts correct arithmetic or rejects an arithmetic or format error. Changing a verdict in this replay leaves the solver’s written answer fixed. All three graders returned the same solution verdict on 96/96 saved development answers across the three checkpoints.### What each solver wrote on the same calculation| Expression | Exact steps | One-judge solver | Two-judge solver | Three-judge solver || --- | --- | --- | --- | --- || (7 - 7) + 12 | 0, 12 | `0,19` (wrong) | `0,19` (wrong) | `0,19` (wrong) || (39 + 12) - 5 | 51, 46 | `51,46` (correct) | `51,46` (correct) | `51,46` (correct) || (47 - 9) - 7 | 38, 31 | `38, 21` (wrong) | `38,31` (correct) | `38,31` (correct) || (12 - 12) + 11 | 0, 11 | `0,13` (wrong) | `0,11` (correct) | `0,13` (wrong) || (1 + 6) - 6 | 7, 1 | `7,1` (correct) | `7,-5` (wrong) | `7, -5` (wrong) |Each row is the first development problem with that combination of successes and failures. The entries give the predicted first and second step. The explorer shows the literal judge reports for every answer in these rows. [Interactive explorer](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/)### Solver precision and pretraining-only hardware checks7 unmodified lines[Precision trials, paired arithmetic scores and the actual optimizer groups](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/solver-precision.md).[Paired effects and independent reward checks](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/online-solvers.md).**Independent frozen-judge confirmation.** On 64 fresh problems, frozen Qwen3.5-4B correctly audited both reviews on 10/64 evidence pairs, compared with 1/64 for Qwen2.5-1.5B-Instruct. Their third judges correctly graded 73/128 and 61/128 fixed solver traces, respectively. For Qwen3.5-4B, Judge 3 agreed with Judge 2 on every solution verdict. The paired 95% intervals for the differences were +6.25 to +23.44 percentage points for evidence and +1.56 to +17.97 for verdicts. The selected judge qualified for the online solver comparison.186 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate..Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.99 unmodified linesIn the last quarter Judge 3 rewarded **2/15 correct attempts** and **169/241 wrong attempts**. On these identical late answers, Judge 2 would have rewarded 4/15 correct attempts and 176/241 wrong ones. Both grades depend on which answers the evolving solver produces. These trajectories establish when the gap appeared. The contributions of individual updates and seed variation remain distinct questions.We also compared the **two actual training runs** while matching the prompt, all four solver texts and all Judge 1 and Judge 2 reports word for word. This held at 29/256 updates. The reward used in each run gave the samples different relative credit at 9 of these matched updates.42 unmodified lines## Study resultsAmended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.| Run | Updated role | Updates | Development exact | Development n | Held-out exact | Held-out n ||---|---|---:|---:|---:|---:|---:|| base | solver | — | 62.5% | 32 | — | 0 |27 unmodified lines| learn-oracle-17 | solver | 128 | — | 0 | — | 0 || learn-shuffle-17 | solver | 128 | — | 0 | — | 0 |[How the third judge changed actual training rewards and worked examples](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/depth-diagnosis.md). [Side-by-side solver outputs and judge reports](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/paired-outputs-seed-17.md).**Benchmark difficulty.** The frozen-model screen selected two-add with demonstrated prompts. On 16 screening problems it produced a mix of correct and incorrect answers on 2 problems. [All difficulty levels](reports/learnability.md).2 unmodified linesOn the original signed development population, base solved 0/32, d3-17 solved 0/32.**Untrained solver.** Every step was correct on 20 of 32 development problems. Of 0 malformed outputs, 0 contained all correct numbers as named assignments. Judge 3 corrected 0 of Judge 2’s verdicts and introduced 2 errors on these traces.**First three-judge-trained solver.** Every step was correct on 3 of 32 development problems. Of 1 malformed outputs, 0 contained all correct numbers as named assignments. Judge 3 corrected 1 of Judge 2’s verdicts and introduced 1 errors on these traces.[Interactive results explorer](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/) · [Paper](reports/paper.pdf)<!-- RESULTS:END -->### ExperimentThe learnability screen measures answer formatting, exact arithmetic and within-problem reward variation on progressively harder tasks. A matched exact-reward and shuffled-reward pilot tests improvement on fresh problems before scaling the study. [Learnability protocol](reports/learnability-preregistration.md)The first run trains only the solver against three frozen judges. Subsequent runs compare depth, flat voting, programmatic rewards, a hybrid gate and shuffled rewards. We then train the judges one at a time with exact supervision or supervision from the next judge. The final stage trains solvers against partial and complete sets of trained judges and refreshes all four roles in alternating blocks. The primary metric is complete-trace accuracy on the same held-out problems. [Run matrix](reports/planned-runs.md) · [Analysis protocol](reports/preregistration.md)Prior work established third-order pairwise critique and proof meta-verification. We test an online reward with an executable truth label for each review field. Results apply to this shared-backbone arithmetic system. [Wen et al.](https://arxiv.org/html/2502.04675v4) · [DeepSeekMath-V2](https://arxiv.org/html/2511.22570v1) · [Literature review](reports/literature-review.md) · [State-of-the-art review](reports/state-of-the-art-review.md)### ReproductionUse Python 3.12 and uv. The GPU profile uses a CUDA 13.2 PyTorch wheel, a pinned Qwen checkpoint, TRL, PEFT, and bitsandbytes. The CPU profile supports oracle tests, publication and analysis. Copy `.env.example` to `.env` for local storage overrides. Keep credentials in the local GitHub and Hugging Face credential stores. [Qwen model card](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) · [TRL](https://huggingface.co/docs/trl/grpo_trainer)```shuv sync --extra gpuuv run --extra gpu pytestuv run --extra gpu study campaignuv run study dashboarduv run study report```The campaign measures a disposable block, locks the update budget and completes the original first solver. It then screens the task and measures an exact-reward training gain on fresh problems. A qualifying result fixes the difficulty and prompt style for all matched solver and judge comparisons. Each evaluation links to its checkpoint. The local dashboard reads development measurements as they arrive. The static explorer, figures and paper read persisted results. [Implementation guide](docs/usage.md) · [Study plan](reports/plan.md) · [Progress](reports/progress.md)### Milestones- [ ] Complete the frozen-judge solver comparison.- [ ] Evaluate Judge 3 on natural reviews and paired evidence changes.- [ ] Compare exact and top-down judge supervision and alternating training.- [ ] Release complete paired held-out results, positive and negative examples, and the reproducible analysis.1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814926 unmodified lines1761771781791801811821831841857 unmodified lines193194195196197198199186 unmodified lines3863873883893903913923933943953963975 unmodified lines40340440540640740840941041141241341441541699 unmodified lines51651751851952052152242 unmodified lines56556656756856957057157257357457557657727 unmodified lines6056066076086096106116122 unmodified lines6156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697701 unmodified linepretty_name: Recursive judge evidence and GRPO outcomesviewer: false---# Verifying a verifier of a verifier**An experimental study of three recursive LLM judges as online GRPO rewards**Verifying a verifier of a verifier! Instead of just a second verifier verifying a first verifier, also have a third verifier verifying the second verifier of the first verifier!DeepSeek and others showed that in LLM RLVR, when you have an LLM as a judge, you can also try a second LLM as a judge that judges the first LLM as a judge.So I thought of adding a third LLM as a judge that judges the second judge that judges the first judge.Earlier work on judges that check judges: [DeepSeekMath-V2, §2.1.2 (meta-verifier)](https://arxiv.org/html/2511.22570v1) · [Wen et al., Recursive Self-Critiquing](https://arxiv.org/html/2502.04675v4) · [Wu et al., Meta-Rewarding Language Models](https://arxiv.org/html/2407.19594v2)[Paper (PDF)](reports/paper.pdf) · [Preregistration](reports/preregistration.md) · [Interactive explorer](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/) · [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/recursive-llm-judges-for-grpo-6b081abfdc1b0975ad60b14a) · [Raw data and logs](https://huggingface.co/datasets/BurnyCoder/recursive-judge-grpo-study) · [LoRA adapters](https://huggingface.co/BurnyCoder/recursive-judge-grpo-adapters)## At a glanceVerifying a verifier of a verifier! Instead of just a second verifier verifying a first verifier, also have a third verifier verifying the second verifier of the first verifier!DeepSeek and others showed that in LLM RLVR, when you have an LLM as a judge, you can also try a second LLM as a judge that judges the first LLM as a judge.So I thought of adding a third LLM as a judge that judges the second judge that judges the first judge.An experimental study of three recursive LLM judges as online GRPO rewards with exact evidence audits.A small language model solves numbered arithmetic problems. A second call judges the solution, a third checks that judgment, and a fourth checks the review. An exact integer evaluator can check each answer and each piece of evidence. We measure whether the final reviewer catches errors and whether its reward improves a solver trained with Group Relative Policy Optimization. [Preregistration](reports/preregistration.md)For example, a solver can give the right final answer to (4 + 3) × 2 while recording 8 in the first step. A reviewer can endorse the correct rejection and still give the wrong correction. [Compare the two trained solvers’ answers and each judge’s actual output](#what-did-the-solvers-and-judges-actually-write).- **In plain words.** A student (the solver) does arithmetic homework. Teacher 1 grades it, Teacher 2 checks Teacher 1's grading, and Teacher 3 checks Teacher 2. The student practises and is rewarded by the last teacher's grade. A calculator knows every correct step and can check every teacher's claim, so we see exactly where each teacher goes wrong and whether adding Teacher 3 makes the student better or worse.- **Motivation.** LLM judges supply rewards where no program can check an answer, but a policy trained against a learned reward can be paid for incorrect completions ([Huang et al.](https://arxiv.org/html/2505.22203v3)). DeepSeekMath-V2 added a meta-verifier that checks the verifier, and Meta-Rewarding added a meta-judge. Whether a further level helps when its verdict is the online reinforcement-learning reward had not been measured against exact ground truth.- **Method.** GRPO trains a LoRA adapter on a 4-bit Qwen2.5-1.5B-Instruct solver. The reward is the solution verdict of the last judge in a chain of one, two or three frozen judges. Baselines, controls and ablations change only the reward: one judge, two judges, a majority of three independent first-level votes, the exact checker, Judge 3 gated by the checker, Judge 3's rewards shuffled within each group, and judges first fine-tuned on exact labels or on the next judge's audits. Two judge families were run: the solver's own Qwen2.5-1.5B-Instruct backbone and a separately screened frozen Qwen3.5-4B.- **Novelty.** Every judge writes a fixed numeric record: a verdict, the first wrong step and its correction, and for upper judges the first wrong field of the report below. An integer checker labels every field, so the third judge's audit is scored and not only its verdict, and each reward's effect on the solver is measured on the same problems with paired intervals. Wen et al. evaluated recursive critique through best-of-N selection and Wu et al. used meta-judgments as preference data; in [our literature review](reports/literature-review.md) we found no study that used a third-level judge as the online GRPO reward with every evidence field checked by a program.- **Results.** [Key results](#key-results) lists positive and negative findings with intervals; [Results at a glance](#results-at-a-glance) labels every arm as method, baseline, control or ablation. All numbers there are regenerated from `results/` by `uv run study report`.- **Features and technologies.** [Features](#features) · [Technologies](#technologies) · [Installation and usage](#installation-and-usage)<!-- HIGHLIGHTS:START -->## Key results- **Positive: a second judge helped.** With frozen Qwen3.5-4B judges, the solver trained on Judge 2's verdict solved 29/32 development problems, against 18/32 with Judge 1 alone (+34.38 percentage points, paired 95% interval +15.6 to +53.1). Single seed; the one-judge arm was registered after the two- and three-judge scores were known.- **Negative: a third judge did not help.** Rewarding Judge 3's verdict gave 27/32, against 29/32 for Judge 2 (-6.25 percentage points, paired 95% interval -15.6 to +0.0). Replayed on the three-judge run's own training answers, Judge 3 fixed 4 of Judge 2's verdicts, introduced 0 errors and changed the relative GRPO credit in 0/256 groups.- **Negative: with Qwen2.5-1.5B-Instruct judges, the third judge collapsed training.** The three-judge solver solved 3/32 development problems, against 25/32 for two judges (two minus three: +68.75 percentage points, paired 95% interval +50.0 to +84.4). On the same 1,024 training answers, Judge 3 rewarded 61.1% of correct and 64.7% of wrong answers; Judge 2 rewarded 72.2% and 68.1%. Post hoc diagnosis.- **Controls: the solver can learn this task; the judge reward limits it.** With the same Qwen2.5-1.5B-Instruct judges and seed, the solver reached 32/32 with the exact checker as reward (control) and 31/32 with Judge 3's verdict gated by the checker (ablation), against 5/32 with Judge 3's rewards shuffled within each group (control) and 3/32 with Judge 3 alone.- **Negative: judges trained on exact labels learned to approve everything.** The fitted exact-label stack approved 32, 32, 32 of 32 starting-solver answers at depths one, two and three, including 12, 12, 12 of the 12 incorrect ones.- **Evidence audit: Judge 3 rarely checks the evidence it reviews.** When one number in Judge 2's report was altered, frozen Qwen3.5-4B endorsed the sound report and located and repaired the altered one on 10/64 fresh pairs, against 1/64 for Qwen2.5-1.5B-Instruct (+14.06 percentage points, paired 95% interval +6.25 to +23.44). With the evidence masked, both passed 0/64 and 0/64.- **Still open.** The preregistered three-seed held-out comparison has not run, so every result above is a single-seed development estimate on 32 problems.Role-labelled scores for every arm are in [Results at a glance](#results-at-a-glance). [Preregistration](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md) · [Paper](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/paper.pdf)## The study in one picture<table><tr><td width="50%"><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/twitter-summary.png"><img src="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/twitter-summary.png" alt="The study in one image, sized for an X/Twitter post"></a></td><td width="50%"><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/poster.png"><img src="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/poster.png" alt="NeurIPS-style poster of the study"></a></td></tr></table>Left: summary card for an X/Twitter post. Right: conference poster. Click an image for full size.## Animated walkthroughThe animation replays logged update 20 of the seed-17 three-judge run with Qwen2.5-1.5B-Instruct judges: the problem, the four sampled answers, the exact checker, the rewards Judge 2 and Judge 3 gave, the GRPO credit each reward produces, and the whole-run totals. [MP4 video](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/walkthrough.mp4)## Architecture<!-- HIGHLIGHTS:END -->## How it works**Plain-language version.** At every training step the solver sees one arithmetic problem of the form (a ± b) ± c and writes four attempts, one integer per step. Each attempt goes to Judge 1, which says whether every step is right and, if not, which step is wrong and what it should be. Judge 2 reads the problem, the attempt and Judge 1's report, says whether Judge 1 was right, and grades the attempt again. Judge 3 does the same for Judge 2. The attempt earns one point if the last judge accepts it and zero otherwise. Attempts that score above the group's average become more likely, the rest less likely. Finally, every trained solver answers the same development problems and a program checks every step.**Expert version.** For each prompt, TRL's `GRPOTrainer` samples a group of completions, scores each with the arm's reward rule and computes group-relative advantages A<sub>i</sub> = (r<sub>i</sub> − mean(r)) / (std(r) + 10<sup>−4</sup>) with `scale_rewards="group"` and a sample standard deviation ([TRL advantage computation](https://huggingface.co/docs/trl/grpo_trainer#computing-the-advantage); [GRPO, Shao et al. §4](https://arxiv.org/html/2402.03300v3)). With binary rewards, a group whose rewards are all equal has zero advantage, so a reward teaches only when it separates attempts within a group. The loss is the clipped GRPO surrogate with no KL penalty; group size, clipping, learning rate, completion length and sampling temperature are set in [`src/study/training.py`](src/study/training.py). The solver is a LoRA adapter on the attention projections ([Hu et al.](https://arxiv.org/abs/2106.09685)) of NF4-quantized Qwen2.5-1.5B-Instruct at a pinned revision ([Dettmers et al., QLoRA](https://arxiv.org/abs/2305.14314); [`src/study/backend.py`](src/study/backend.py)). Judges stay frozen while the solver learns. Judge 1 returns `valid,step,value`. Judges 2 and 3 return `sound,field,replacement,valid,step,value`: the first three fields audit the report below, the last three re-grade the solution ([`src/study/prompts.py`](src/study/prompts.py)). The first-error format follows [ProcessBench](https://arxiv.org/html/2412.06559v1). The exact checker re-executes every step and labels every field. It supplies the oracle and hybrid rewards and the primary metric, complete-trace accuracy: a solution counts only if every intermediate value is correct.```mermaidflowchart LRP["Problem sampler<br/>(a ± b) ± c"] --> S["Solver<br/>Qwen2.5-1.5B-Instruct<br/>NF4 + LoRA"]S -->|"group of sampled answers"| J1["Judge 1<br/>valid, step, value"]J1 --> J2["Judge 2<br/>audits Judge 1,<br/>re-grades the answer"]J2 --> J3["Judge 3<br/>audits Judge 2,<br/>re-grades the answer"]J1 & J2 & J3 --> R{"Reward rule<br/>one, two or three judges,<br/>flat vote, oracle,<br/>hybrid, shuffled"}X["Exact integer checker"] -.->|"labels every field"| J1 & J2 & J3X -.->|"oracle and hybrid rewards"| RR --> G["GRPO group-relative<br/>advantages (TRL)"]G -->|"LoRA update"| SS -->|"greedy answers"| E["Evaluation on development<br/>and sealed held-out problems"]X -.->|"complete-trace accuracy"| E```<!-- RESULTS:START -->## Results at a glance| Judges | Role | Arm | Solver reward or treatment | Exact development solutions | Wilson 95% (%) | Minus three judges (pp) | Paired 95% interval (pp) || --- | --- | --- | --- | --- | --- | --- | --- || Frozen Qwen3.5-4B judges | **Method** | `d3` | Three judges: Judge 3's verdict is the reward | 27/32 (84.4%) | 68.2–93.1 | — | — || Frozen Qwen3.5-4B judges | Baseline | `d2` | Two judges: Judge 2's verdict | 29/32 (90.6%) | 75.8–96.8 | +6.25 | +0.0 to +15.6 || Frozen Qwen3.5-4B judges | Baseline | `d1` | One judge: Judge 1's verdict | 18/32 (56.2%) | 39.3–71.8 | -28.12 | -46.9 to -9.4 || Frozen Qwen3.5-4B judges | Control | `base` | Starting solver, no training | 20/32 (62.5%) | 45.3–77.1 | -21.88 | -37.5 to -9.4 || Qwen2.5-1.5B-Instruct judges | **Method** | `d3-17` | Three judges: Judge 3's verdict is the reward | 3/32 (9.4%) | 3.2–24.2 | — | — || Qwen2.5-1.5B-Instruct judges | Baseline | `d2-17` | Two judges: Judge 2's verdict | 25/32 (78.1%) | 61.2–89.0 | +68.75 | +50.0 to +84.4 || Qwen2.5-1.5B-Instruct judges | Baseline | `d1-17` | One judge: Judge 1's verdict | 21/32 (65.6%) | 48.3–79.6 | +56.25 | +37.5 to +71.9 || Qwen2.5-1.5B-Instruct judges | Baseline | `flat-17` | Majority of three independent Judge 1 votes | 24/32 (75.0%) | 57.9–86.7 | +65.62 | +46.9 to +81.2 || Qwen2.5-1.5B-Instruct judges | Control | `base` | Starting solver, no training | 20/32 (62.5%) | 45.3–77.1 | +53.12 | +34.4 to +68.8 || Qwen2.5-1.5B-Instruct judges | Control | `oracle-17` | Exact checker reward (upper reference) | 32/32 (100.0%) | 89.3–100.0 | +90.62 | +78.1 to +100.0 || Qwen2.5-1.5B-Instruct judges | Control | `shuffle-17` | Judge 3 rewards shuffled within each group of four | 5/32 (15.6%) | 6.9–31.8 | +6.25 | -6.2 to +18.8 || Qwen2.5-1.5B-Instruct judges | Ablation | `hybrid-17` | Judge 3 verdict multiplied by the exact checker | 31/32 (96.9%) | 84.3–99.4 | +87.50 | +75.0 to +96.9 || Qwen2.5-1.5B-Instruct judges | Ablation | `exact-prefix1` | Three calls, Judge 1 first trained on exact labels | 24/32 (75.0%) | 57.9–86.7 | +65.62 | +46.9 to +84.4 || Qwen2.5-1.5B-Instruct judges | Ablation | `exact-prefix2` | Three calls, Judges 1–2 first trained on exact labels | 4/32 (12.5%) | 5.0–28.1 | +3.12 | -6.2 to +12.5 || Qwen2.5-1.5B-Instruct judges | Ablation | `exact-prefix3` | Three calls, Judges 1–3 first trained on exact labels | 25/32 (78.1%) | 61.2–89.0 | +68.75 | +53.1 to +84.4 || Qwen2.5-1.5B-Instruct judges | Ablation | `top-prefix1` | Three calls, Judge 1 first trained top-down | 2/32 (6.2%) | 1.7–20.1 | -3.12 | -15.6 to +9.4 || Qwen2.5-1.5B-Instruct judges | Ablation | `top-prefix2` | Three calls, Judges 1–2 first trained top-down | 31/32 (96.9%) | 84.3–99.4 | +87.50 | +75.0 to +96.9 || Qwen2.5-1.5B-Instruct judges | Ablation | `top-prefix3` | Three calls, Judges 1–3 first trained top-down | 28/32 (87.5%) | 71.9–95.0 | +78.12 | +62.5 to +90.6 || Qwen2.5-1.5B-Instruct judges | Ablation | `exact-depth1` | One judge, trained on exact labels | 20/32 (62.5%) | 45.3–77.1 | +53.12 | +34.4 to +68.8 || Qwen2.5-1.5B-Instruct judges | Ablation | `exact-depth2` | Two judges, trained on exact labels | 20/32 (62.5%) | 45.3–77.1 | +53.12 | +34.4 to +68.8 || Qwen2.5-1.5B-Instruct judges | Ablation | `top-depth1` | One judge, trained top-down | 25/32 (78.1%) | 61.2–89.0 | +68.75 | +50.0 to +84.4 || Qwen2.5-1.5B-Instruct judges | Ablation | `top-depth2` | Two judges, trained top-down | Pending | — | — | — || Qwen2.5-1.5B-Instruct judges | Ablation | `alt-exact-solver` | Continues exact-prefix3 against refreshed exact-route judges | 2/32 (6.2%) | 1.7–20.1 | -3.12 | -9.4 to +0.0 |**In plain words.** "Higher" or "lower" means the whole paired 95% interval lies above or below zero.- **Frozen Qwen3.5-4B judges.** Lower than three judges: one judge (`d1`, -28.12 pp); starting solver, no training (`base`, -21.88 pp). Not distinguishable from three judges: two judges (`d2`, +6.25 pp).- **Qwen2.5-1.5B-Instruct judges.** Higher than three judges: two judges (`d2-17`, +68.75 pp); one judge (`d1-17`, +56.25 pp); majority of three independent Judge 1 votes (`flat-17`, +65.62 pp); starting solver, no training (`base`, +53.12 pp); exact checker reward (`oracle-17`, +90.62 pp); judge 3 verdict multiplied by the exact checker (`hybrid-17`, +87.50 pp); three calls, Judge 1 first trained on exact labels (`exact-prefix1`, +65.62 pp); three calls, Judges 1–3 first trained on exact labels (`exact-prefix3`, +68.75 pp); three calls, Judges 1–2 first trained top-down (`top-prefix2`, +87.50 pp); three calls, Judges 1–3 first trained top-down (`top-prefix3`, +78.12 pp); one judge, trained on exact labels (`exact-depth1`, +53.12 pp); two judges, trained on exact labels (`exact-depth2`, +53.12 pp); one judge, trained top-down (`top-depth1`, +68.75 pp). Not distinguishable from three judges: judge 3 rewards shuffled within each group of four (`shuffle-17`, +6.25 pp); three calls, Judges 1–2 first trained on exact labels (`exact-prefix2`, +3.12 pp); three calls, Judge 1 first trained top-down (`top-prefix1`, -3.12 pp); continues exact-prefix3 against refreshed exact-route judges (`alt-exact-solver`, -3.12 pp).These are descriptive comparisons on one training seed, each arm answering the same development problems as its family's three-judge solver. Intervals resample problems within that seed and are not corrected for the number of comparisons; the two judge families are not compared with each other. Pending rows have no finished development evaluation. [Preregistered primary comparison](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md) · [Run matrix](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/planned-runs.md)<table><tr><td width="50%"><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/online-solvers.png"><img src="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/online-solvers.png" alt="Exact solver accuracy with frozen Qwen3.5-4B judges and the fraction of groups with mixed rewards"></a></td><td width="50%"><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/outcomes.png"><img src="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/raw/refs/heads/main/docs/assets/outcomes.png" alt="Development solver accuracy for every arm, coloured by role"></a></td></tr></table>## Concrete inputs and outputs### What each solver wrote on the same calculation| Expression | Exact steps | One-judge solver | Two-judge solver | Three-judge solver || --- | --- | --- | --- | --- || (7 - 7) + 12 | 0, 12 | `0,19` (wrong) | `0,19` (wrong) | `0,19` (wrong) || (39 + 12) - 5 | 51, 46 | `51,46` (correct) | `51,46` (correct) | `51,46` (correct) || (47 - 9) - 7 | 38, 31 | `38, 21` (wrong) | `38,31` (correct) | `38,31` (correct) || (12 - 12) + 11 | 0, 11 | `0,13` (wrong) | `0,11` (correct) | `0,13` (wrong) || (1 + 6) - 6 | 7, 1 | `7,1` (correct) | `7,-5` (wrong) | `7, -5` (wrong) |Each row is the first development problem with that combination of successes and failures. The entries give the predicted first and second step. The explorer shows the literal judge reports for every answer in these rows. [Interactive explorer](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/)[Both trained solvers' answers with each judge's literal report](#what-did-the-solvers-and-judges-actually-write) · [The four answers and rewards behind one logged update](#what-changed-during-training) · [Every verdict Judge 3 changed on the starting solver's answers](#development-judge-verdict-accuracy) · [Interactive explorer with every judge report](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/)## Solvers trained with frozen Qwen3.5-4B judges| Solver reward | Updates | Groups with mixed rewards | Exact development solutions |26 unmodified linesA correct verdict accepts correct arithmetic or rejects an arithmetic or format error. Changing a verdict in this replay leaves the solver’s written answer fixed. All three graders returned the same solution verdict on 96/96 saved development answers across the three checkpoints.[Paired effects and independent reward checks](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/online-solvers.md).<details><summary>Solver precision and pretraining-only hardware checks</summary>### Solver precision and pretraining-only hardware checks7 unmodified lines[Precision trials, paired arithmetic scores and the actual optimizer groups](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/solver-precision.md).</details>**Independent frozen-judge confirmation.** On 64 fresh problems, frozen Qwen3.5-4B correctly audited both reviews on 10/64 evidence pairs, compared with 1/64 for Qwen2.5-1.5B-Instruct. Their third judges correctly graded 73/128 and 61/128 fixed solver traces, respectively. For Qwen3.5-4B, Judge 3 agreed with Judge 2 on every solution verdict. The paired 95% intervals for the differences were +6.25 to +23.44 percentage points for evidence and +1.56 to +17.97 for verdicts. The selected judge qualified for the online solver comparison.186 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.<details><summary>Tokens and time used by each scored model file</summary>Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.</details>Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.99 unmodified linesIn the last quarter Judge 3 rewarded **2/15 correct attempts** and **169/241 wrong attempts**. On these identical late answers, Judge 2 would have rewarded 4/15 correct attempts and 176/241 wrong ones. Both grades depend on which answers the evolving solver produces. These trajectories establish when the gap appeared. The contributions of individual updates and seed variation remain distinct questions.We also compared the **two actual training runs** while matching the prompt, all four solver texts and all Judge 1 and Judge 2 reports word for word. This held at 29/256 updates. The reward used in each run gave the samples different relative credit at 9 of these matched updates.42 unmodified lines## Study resultsAmended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.<details><summary>Updates and development and held-out accuracy for every run</summary>| Run | Updated role | Updates | Development exact | Development n | Held-out exact | Held-out n ||---|---|---:|---:|---:|---:|---:|| base | solver | — | 62.5% | 32 | — | 0 |27 unmodified lines| learn-oracle-17 | solver | 128 | — | 0 | — | 0 || learn-shuffle-17 | solver | 128 | — | 0 | — | 0 |</details>[How the third judge changed actual training rewards and worked examples](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/depth-diagnosis.md). [Side-by-side solver outputs and judge reports](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/paired-outputs-seed-17.md).**Benchmark difficulty.** The frozen-model screen selected two-add with demonstrated prompts. On 16 screening problems it produced a mix of correct and incorrect answers on 2 problems. [All difficulty levels](reports/learnability.md).2 unmodified linesOn the original signed development population, base solved 0/32, d3-17 solved 0/32.**Untrained solver.** Every step was correct on 20 of 32 development problems. It wrote no malformed outputs. Judge 3 corrected 0 of Judge 2’s verdicts and introduced 2 errors on these traces.**First three-judge-trained solver.** Every step was correct on 3 of 32 development problems. Of its 1 malformed output, 0 contained all correct numbers as named assignments. Judge 3 corrected 1 of Judge 2’s verdicts and introduced 1 error on these traces.[Interactive results explorer](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/) · [Paper](reports/paper.pdf)<!-- RESULTS:END -->## Methodology**Models.** The solver is [Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) at a pinned revision, loaded in NF4 with a fresh LoRA adapter per run. In the original judge family, all three judges are the same frozen backbone without an adapter, or with judge adapters fine-tuned in earlier runs. The second family uses frozen [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) GGUF judges served by a pinned llama.cpp build. That model was chosen by a cross-model screen, specified before inference with these judges, and confirmed on fresh problems before any solver used it. [Newer frozen Qwen protocol](reports/newer-frozen-judges.md) · [Pinned models](src/study/frozen_models.py)**Data.** Problems come from an arithmetic sampler derived from [Reasoning Gym](https://arxiv.org/html/2505.24760v1) ([generator source](https://github.com/open-thought/reasoning-gym/blob/5aea50d292a6427f12c63c77873ec8ae945cd2c0/reasoning_gym/arithmetic/basic_arithmetic.py), Apache-2.0 notice in [`third_party/reasoning-gym`](third_party/reasoning-gym)). A learnability screen measures formatting, exact arithmetic and within-problem reward variation at increasing difficulty. A matched exact-reward and shuffled-reward pilot then checks whether training improves accuracy on fresh problems. The selected problem family and prompt style apply to every amended arm, and the frozen decision and source digests are in `results/calibrated/profile.json`. Training, development, evidence-audit and held-out problems come from disjoint ID populations. The held-out test stays sealed until a digest of every checkpoint is recorded. [Learnability protocol](reports/learnability-preregistration.md) · [Data routing](src/study/benchmark.py)**Rewards per arm.** Every arm uses the same solver initialization, seed, prompt order and update budget, and changes only the reward. Implementation: [`src/study/training.py`](src/study/training.py).| Arm | Role | Reward for each sampled answer || --- | --- | --- || `d3` | Method | Judge 3's solution verdict, after Judge 3 reads Judge 1's and Judge 2's reports || `d2`, `d1` | Baselines | Judge 2's or Judge 1's solution verdict || `flat` | Baseline | Majority of three independent Judge 1 votes, the same number of judge calls as `d3` || `oracle` | Control | Exact checker (upper reference) || `shuffle` | Control | Judge 3's rewards permuted within each group, which keeps the reward count and breaks the link to particular answers ([Shao et al.](https://proceedings.mlr.press/v306/shao26d.html)) || `base` | Control | No training || `hybrid` | Ablation | Judge 3's verdict multiplied by the exact checker || `exact-prefixN`, `top-prefixN` | Ablations | Three-judge chain whose first N judges were fine-tuned on exact labels, or top-down on the next judge's audits || `exact-depthN`, `top-depthN` | Ablations | Chain of depth N built from those fine-tuned judges || `alt-*` | Ablations | Judges and solver refreshed in alternating blocks || `new-judges/winner-d1`, `-d2`, `-d3` | Method and baselines | One, two or three frozen Qwen3.5-4B judges |**Training.** TRL `GRPOTrainer` with binary rewards, group-scaled advantages, a clipped ratio and no KL term. Adapter, optimizer, RNG and Trainer state are saved at group boundaries, so an interrupted run resumes at the next complete group. Every sampled answer, every judge report, the reward used and the exact label are logged to the run's `rollouts.jsonl`. [Training code](src/study/training.py) · [Resume test](tests/test_resume.py)**Evaluation.** The primary metric is complete-trace accuracy, the fraction of problems whose every intermediate value is correct, on the same problems for every arm. Per-arm intervals are Wilson score intervals. Differences between arms use a seeded paired bootstrap over problems ([`learnability_analysis.paired_change`](src/study/learnability_analysis.py)), so a single-seed interval describes these checkpoints and not seed-to-seed variation. Judges are scored on verdict agreement with the checker, on whole-record evidence accuracy, and on twin interventions that change one number in Judge 2's report while holding the solver's answer fixed. The registered primary estimand is the paired difference in complete-trace accuracy between three and two frozen judges on the same sealed held-out problems, averaged over seeds 17, 29 and 43. [Preregistration](reports/preregistration.md) · [Amendments](reports/amendments.md) · [Matched-depth protocol](reports/matched-depth-protocol.md)**Scope.** Earlier work established third-order pairwise critique and proof meta-verification. We test an online reward with an executable truth label for each review field. Results apply to this shared-backbone arithmetic system and to one frozen 4B judge family. [Literature review](reports/literature-review.md) · [State-of-the-art review](reports/state-of-the-art-review.md)## What happens when you run it1. **`study campaign`** reads the registered manifest in [`src/study/design.py`](src/study/design.py) and runs every pending block on one GPU in dependency order. It measures a disposable timing block, locks the update budget, runs the learnability screen and then the matched matrix. Each training run writes `results/<run>/rollouts.jsonl`, `metrics.jsonl` and `monitor.jsonl`. Adapters and resumable trainer snapshots go under `STUDY_STATE`. Each development evaluation writes `replay.jsonl` and `development.json` and links to its checkpoint. Final evaluation runs only after the checkpoint seal.2. **`study frozen-judges`** screens newer frozen GGUF judges on fixed solver answers and confirms the winner on fresh problems. **`study online-solvers`** trains solvers rewarded by that judge. Both write to `results/new-judges/`.3. **Every model call** prints its prompt and full output to the terminal and to timestamped JSONL under `logs/`. `study dashboard` serves a live local explorer that refreshes during training.4. **`study report`** runs on CPU. It re-verifies the raw records, recomputes every table and interval, and redraws every figure, the summary card, the poster and the animation in `docs/assets/`. It then rewrites the generated regions of this README, `reports/summary.md`, `reports/progress.md`, `reports/paper.pdf`, the experiment pages and the explorer data.5. **`study publish --milestone NAME`**, run from `main`, rebuilds the report, commits and pushes it, and uploads the results, logs, dataset card and adapters to Hugging Face.## Features- A recursive judge chain with fixed numeric evidence records, where an exact checker labels every field of every report.- One dependency-ordered run manifest that drives training, evaluation, publication and analysis.- Role-labelled baselines, controls and ablations that change only the reward, with matched initialization, seed, prompt order and budget.- Resumable GRPO training at group boundaries, a sealed held-out test and a checkpoint digest seal.- Full prompt and output logs in timestamped JSONL, a live dashboard and a static explorer on [GitHub Pages](https://burnycoder.github.io/verifying-verifier-of-verifier-llm-reinforcement-learning/).- A cross-model screen of frozen GGUF judges with independent confirmation before online use.- One command that regenerates every number, table, figure, animation, the paper and this README's results from `results/`.- Publication of results, logs and adapters to one [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/recursive-llm-judges-for-grpo-6b081abfdc1b0975ad60b14a).## TechnologiesExact versions are pinned in [`pyproject.toml`](pyproject.toml) and [`uv.lock`](uv.lock).| Purpose | Library or tool || --- | --- || Environment and dependencies | Python 3.12, [uv](https://docs.astral.sh/uv/) || Training | [PyTorch](https://pytorch.org/) (CUDA 13.2 wheel), [Transformers](https://huggingface.co/docs/transformers), [TRL `GRPOTrainer`](https://huggingface.co/docs/trl/grpo_trainer), [PEFT LoRA](https://huggingface.co/docs/peft), [bitsandbytes NF4](https://huggingface.co/docs/bitsandbytes), [Accelerate](https://huggingface.co/docs/accelerate), [Datasets](https://huggingface.co/docs/datasets) || Frozen GGUF judges | [llama.cpp](https://github.com/ggml-org/llama.cpp) server (build pinned in [`src/study/frozen_gpu.py`](src/study/frozen_gpu.py)) || Problems | [Reasoning Gym](https://github.com/open-thought/reasoning-gym) arithmetic generator (vendored, Apache-2.0) || Analysis, figures and media | NumPy, [Matplotlib](https://matplotlib.org/) (Pillow GIF writer, FFmpeg MP4 writer via [imageio-ffmpeg](https://github.com/imageio/imageio-ffmpeg)) || Paper | [ReportLab](https://www.reportlab.com/opensource/), [pypdf](https://pypdf.readthedocs.io/) || Tests | [pytest](https://docs.pytest.org/) || Publication | GitHub, GitHub Pages, [Hugging Face Hub](https://huggingface.co/docs/huggingface_hub) |## Installation and usageRequirements: Python 3.12, [uv](https://docs.astral.sh/uv/getting-started/installation/), and for training an NVIDIA GPU whose driver supports the locked CUDA 13.2 PyTorch wheel. The study ran on one 8 GB GPU. Tests of the oracle logic, the report and publication run on CPU.```shgit clone https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learningcd verifying-verifier-of-verifier-llm-reinforcement-learninguv sync --extra gpu # CPU only: uv syncuv run --extra gpu pytest```Copy `.env.example` to `.env` to move checkpoints and the model cache to a larger disk. Keep GitHub and Hugging Face credentials in their own credential stores, not in `.env`.| Command | What it does || --- | --- || `uv run --extra gpu study campaign` | Runs or resumes every registered block (add `--publish` only on the owning account) || `uv run --extra gpu study train --run d3-17` | Trains one registered run || `uv run --extra gpu study evaluate --run d3-17` | Scores a trained run on development problems || `uv run --extra gpu study frozen-judges` | Screens and confirms frozen GGUF judges || `uv run --extra gpu study online-solvers` | Trains solvers rewarded by the confirmed frozen judge || `uv run --extra gpu study solver-fit` | One-update hardware probes of other solver precisions and backbones || `uv run study dashboard` | Live local explorer during training || `uv run study report` | Regenerates every table, figure, animation, the paper and the README results from `results/` || `uv run study publish --milestone NAME` | Rebuilds, pushes and uploads a milestone (owner only) |For an independent replication next to the published results, set `STUDY_STATE` and `STUDY_RESULTS` to a fresh pair of directories, as described in `.env.example`. To load a released adapter, see [Using a published adapter](docs/usage.md#using-a-published-adapter). [Implementation guide](docs/usage.md) · [Study plan](reports/plan.md) · [Progress](reports/progress.md)## Repository layout| Path | Contents || --- | --- || [`src/study/`](src/study) | Sampler, prompts, judging, training, evaluation, analysis, report, figures and publication || [`tests/`](tests) | Tests for arithmetic, review semantics, data separation, design, statistics, resume and the full report || [`results/`](results) | Raw training and evaluation records for each run; every reported number is computed from here || [`reports/`](reports) | Preregistration, amendments, run matrix, reviews, experiment notes, summary and paper || [`docs/`](docs) | GitHub Pages explorer, generated figures and media, usage guide || `logs/` | Timestamped prompt and output logs (local; compressed copies are on Hugging Face) || [`third_party/reasoning-gym/`](third_party/reasoning-gym) | License and notice for the vendored generator |## Run matrixThe first run trains only the solver against three frozen judges. Subsequent runs compare depth, flat voting, programmatic rewards, a hybrid gate and shuffled rewards. We then train the judges one at a time with exact supervision or supervision from the next judge. The final stage trains solvers against partial and complete sets of trained judges and refreshes all four roles in alternating blocks. The primary metric is complete-trace accuracy on the same held-out problems. [Run matrix](reports/planned-runs.md) · [Analysis protocol](reports/preregistration.md)One manifest, `matrix()` in [`src/study/design.py`](src/study/design.py), lists every registered run and its dependencies. The full matrix, with model, data, training and evaluation for each run, is in [reports/planned-runs.md](reports/planned-runs.md). The status of each run is in the collapsed run inventory above and in [reports/run-inventory.md](reports/run-inventory.md).| Group | Runs | What differs || --- | --- | --- || Solver reward, seed 17 | `d3-17`, `d2-17`, `d1-17`, `flat-17`, `oracle-17`, `hybrid-17`, `shuffle-17` | The reward rule || Judge fine-tuning | `exact-j1`–`exact-j3`, `top-j2`, `top-j1` | Which judge learns, from exact labels or from the next judge || Solver with fine-tuned judge prefixes | `exact-prefix1`–`3`, `top-prefix1`–`3` | How many of the three judges were fine-tuned || Alternating refresh | `alt-exact-*`, `alt-top-*` | Judges and solver retrained in turn || Matched depth | `exact-depth1`, `exact-depth2`, `top-depth1`, `top-depth2` | Chain depth with fine-tuned judges || Seed replication | `d3`, `d2` and `flat` with seeds 29 and 43 | The seed || Frozen Qwen3.5-4B judges | `new-judges/winner-d1`, `-d2`, `-d3` | Depth with a stronger frozen judge || Hardware probes | `solver-fit/original-nf4`, `original-bf16`, `base-2b` | Solver precision and backbone, one update each |## To-do- [ ] Complete the frozen-judge solver comparison.- [ ] Evaluate Judge 3 on natural reviews and paired evidence changes.- [ ] Compare exact and top-down judge supervision and alternating training.- [ ] Resume the paused top-down two-judge solver (`top-depth2`) from its saved checkpoint.- [ ] Release complete paired held-out results, positive and negative examples, and the reproducible analysis.- [ ] Repeat the frozen Qwen3.5-4B solver comparison with more seeds.- [ ] Train matched solvers from the pretraining-only [Qwen3.5-2B-Base](https://huggingface.co/Qwen/Qwen3.5-2B-Base) candidate. [Hardware protocol](reports/solver-precision.md)The first five items are ticked automatically by `study report` from the result files.## References- Shao et al. [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://arxiv.org/html/2402.03300v3), §4 (GRPO).- Shao et al. (DeepSeek-AI). [DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning](https://arxiv.org/html/2511.22570v1), §2.1.2 and Appendix A.3 (meta-verification).- Wen et al. [Scalable Oversight for Superhuman AI via Recursive Self-Critiquing](https://arxiv.org/html/2502.04675v4), §§2 and 5.- Wu et al. [Meta-Rewarding Language Models: Self-Improving Alignment with LLM-as-a-Meta-Judge](https://arxiv.org/html/2407.19594v2), §2.- Meta FAIR. [RLLM](https://facebookresearch.github.io/RAM/blogs/rllm/).- Huang et al. [From Accuracy to Robustness: A Study of Rule- and Model-based Verifiers in Mathematical Reasoning](https://arxiv.org/html/2505.22203v3), §§4–5.- Shao et al. [Spurious Rewards: Rethinking Training Signals in RLVR](https://proceedings.mlr.press/v306/shao26d.html).- Zheng et al. [ProcessBench: Identifying Process Errors in Mathematical Reasoning](https://arxiv.org/html/2412.06559v1), §3.- Stojanovski et al. [Reasoning Gym: Reasoning Environments for Reinforcement Learning with Verifiable Rewards](https://arxiv.org/html/2505.24760v1).- Hu et al. [LoRA: Low-Rank Adaptation of Large Language Models](https://arxiv.org/abs/2106.09685).- Dettmers et al. [QLoRA: Efficient Finetuning of Quantized LLMs](https://arxiv.org/abs/2305.14314).- Wilson. [Probable Inference, the Law of Succession, and Statistical Inference](https://doi.org/10.1080/01621459.1927.10502953), JASA 22, 1927.- Hugging Face. [TRL GRPO Trainer documentation](https://huggingface.co/docs/trl/grpo_trainer).- Methodology guides: [Lones](https://arxiv.org/abs/2108.02497), [Lipton and Steinhardt](https://arxiv.org/abs/1807.03341), [Henderson et al.](https://arxiv.org/abs/1709.06560), [NeurIPS checklist](https://neurips.cc/public/guides/PaperChecklist).
247323 unmodified lines24732424732524732624732724732824732941 unmodified lines247371247372247373247374247375247376247323 unmodified lines],"solver_n": 32,"judge_n": 32,"frozen_changes": [{"key": "92f5d94354a5034766d138463c71c62b40bfec70de25249d63bdf4549088714d",41 unmodified lines"judge_note": "On the original frozen judges’ row, Judge 3 fixed Judge 2’s verdict on 0/32 answers and introduced a grading error on 2/32. Always accepting scores 20/32 (62.5%) on these same responses. The stack trained on exact labels approved all 32 answers at every depth, including all 12 incorrect solutions. The stack trained top-down approved 32, 30, 30 answers at depths one, two and three, respectively. It accepted all 12 incorrect solutions at every depth."}],"primary": {"status": "pending","reason": "Incomplete matched final checkpoints or IDs",247323 unmodified lines24732424732524732624732724732824732924733024733124733224733324733424733524733624733724733824733924734024734124734224734324734424734524734624734724734824734924735024735124735224735324735424735524735624735724735824735941 unmodified lines247401247402247403247404247405247406247407247408247409247410247411247412247413247414247415247416247417247418247419247420247421247422247423247424247425247426247427247428247429247430247431247432247433247434247435247436247437247438247439247440247441247442247443247444247445247446247447247448247449247450247451247452247453247454247455247456247457247458247459247460247461247462247463247464247465247466247467247468247469247470247471247472247473247474247475247476247477247478247479247480247481247482247483247484247485247486247487247488247489247490247491247492247493247494247495247496247497247498247499247500247501247502247503247504247505247506247507247508247509247510247511247512247513247514247515247516247517247518247519247520247521247522247523247524247525247526247527247528247529247530247531247532247533247534247535247536247537247538247539247540247541247542247543247544247545247546247547247548247549247550247551247552247553247554247555247556247557247558247559247560247561247562247563247564247565247566247567247568247569247570247571247572247573247574247575247576247577247578247579247580247581247582247583247584247585247586247587247588247589247590247591247592247593247594247595247596247597247598247599247600247601247602247603247604247605247606247607247608247609247610247611247612247613247614247615247616247617247618247619247620247621247622247623247624247625247626247627247628247629247630247631247632247633247634247635247636247637247638247639247640247641247642247643247644247645247646247647247648247649247650247651247652247653247654247655247656247657247658247659247660247661247662247663247664247665247666247667247668247669247670247671247672247673247674247675247676247677247678247679247680247681247682247683247684247685247686247687247688247689247690247691247692247693247694247695247696247697247698247699247700247701247702247703247704247705247706247707247708247709247710247711247712247713247714247715247716247717247718247719247720247721247722247723247724247725247726247727247728247729247730247731247732247733247734247735247736247737247738247739247740247741247742247743247744247745247746247747247748247749247750247751247752247753247754247755247756247757247758247759247760247761247762247763247764247765247766247767247768247769247770247771247772247773247774247775247776247777247778247779247780247781247782247783247784247785247786247787247788247789247790247791247792247793247794247795247796247797247798247799247800247801247802247803247804247805247806247807247808247809247810247811247812247813247814247815247816247817247818247819247820247821247822247823247824247825247826247827247828247829247830247831247832247833247834247835247836247837247838247839247840247841247842247843247844247845247846247847247848247849247850247851247852247853247854247855247856247857247858247859247860247861247862247863247864247865247866247867247868247869247870247871247872247873247874247875247876247877247878247879247880247881247882247883247884247323 unmodified lines],"solver_n": 32,"judge_n": 32,"stacks": {"exact": {"approved": [32,32,32],"false": [12,12,12],"n": 32,"invalid": 12},"top": {"approved": [32,30,30],"false": [12,12,12],"n": 32,"invalid": 12}},"frozen_changes": [{"key": "92f5d94354a5034766d138463c71c62b40bfec70de25249d63bdf4549088714d",41 unmodified lines"judge_note": "On the original frozen judges’ row, Judge 3 fixed Judge 2’s verdict on 0/32 answers and introduced a grading error on 2/32. Always accepting scores 20/32 (62.5%) on these same responses. The stack trained on exact labels approved all 32 answers at every depth, including all 12 incorrect solutions. The stack trained top-down approved 32, 30, 30 answers at depths one, two and three, respectively. It accepted all 12 incorrect solutions at every depth."}],"glance": [{"family": "frozen","role": "Method","key": "new-judges/winner-d3","label": "Three judges: Judge 3's verdict is the reward","correct": 27,"n": 32,"interval": [0.6824585040246961,0.931355797174943],"change": null},{"family": "frozen","role": "Baseline","key": "new-judges/winner-d2","label": "Two judges: Judge 2's verdict","correct": 29,"n": 32,"interval": [0.7578184527161214,0.9675984487016338],"change": {"n": 32,"delta": 0.0625,"interval": [0.0,0.15625],"fixed": 2,"harmed": 0}},{"family": "frozen","role": "Baseline","key": "new-judges/winner-d1","label": "One judge: Judge 1's verdict","correct": 18,"n": 32,"interval": [0.39325591136851984,0.7183466888495962],"change": {"n": 32,"delta": -0.28125,"interval": [-0.46875,-0.09375],"fixed": 1,"harmed": 10}},{"family": "frozen","role": "Control","key": "base","label": "Starting solver, no training","correct": 20,"n": 32,"interval": [0.4525440735307745,0.7706611269054578],"change": {"n": 32,"delta": -0.21875,"interval": [-0.375,-0.09375],"fixed": 0,"harmed": 7}},{"family": "original","role": "Method","key": "d3-17","label": "Three judges: Judge 3's verdict is the reward","correct": 3,"n": 32,"interval": [0.032401551298366194,0.24218154728387864],"change": null},{"family": "original","role": "Baseline","key": "d2-17","label": "Two judges: Judge 2's verdict","correct": 25,"n": 32,"interval": [0.6124500635075647,0.8897616374739581],"change": {"n": 32,"delta": 0.6875,"interval": [0.5,0.84375],"fixed": 23,"harmed": 1}},{"family": "original","role": "Baseline","key": "d1-17","label": "One judge: Judge 1's verdict","correct": 21,"n": 32,"interval": [0.48311087978962225,0.7958956207556682],"change": {"n": 32,"delta": 0.5625,"interval": [0.375,0.71875],"fixed": 18,"harmed": 0}},{"family": "original","role": "Baseline","key": "flat-17","label": "Majority of three independent Judge 1 votes","correct": 24,"n": 32,"interval": [0.5789344100575552,0.8674759908149096],"change": {"n": 32,"delta": 0.65625,"interval": [0.46875,0.8125],"fixed": 21,"harmed": 0}},{"family": "original","role": "Control","key": "base","label": "Starting solver, no training","correct": 20,"n": 32,"interval": [0.4525440735307745,0.7706611269054578],"change": {"n": 32,"delta": 0.53125,"interval": [0.34375,0.6875],"fixed": 17,"harmed": 0}},{"family": "original","role": "Control","key": "oracle-17","label": "Exact checker reward (upper reference)","correct": 32,"n": 32,"interval": [0.8928208017449296,1.0],"change": {"n": 32,"delta": 0.90625,"interval": [0.78125,1.0],"fixed": 29,"harmed": 0}},{"family": "original","role": "Control","key": "shuffle-17","label": "Judge 3 rewards shuffled within each group of four","correct": 5,"n": 32,"interval": [0.06864420282505711,0.3175414959753039],"change": {"n": 32,"delta": 0.0625,"interval": [-0.0625,0.1875],"fixed": 3,"harmed": 1}},{"family": "original","role": "Ablation","key": "hybrid-17","label": "Judge 3 verdict multiplied by the exact checker","correct": 31,"n": 32,"interval": [0.8425573617998745,0.994462139835997],"change": {"n": 32,"delta": 0.875,"interval": [0.75,0.96875],"fixed": 28,"harmed": 0}},{"family": "original","role": "Ablation","key": "exact-prefix1","label": "Three calls, Judge 1 first trained on exact labels","correct": 24,"n": 32,"interval": [0.5789344100575552,0.8674759908149096],"change": {"n": 32,"delta": 0.65625,"interval": [0.46875,0.84375],"fixed": 22,"harmed": 1}},{"family": "original","role": "Ablation","key": "exact-prefix2","label": "Three calls, Judges 1–2 first trained on exact labels","correct": 4,"n": 32,"interval": [0.04970134387480073,0.2806830548165022],"change": {"n": 32,"delta": 0.03125,"interval": [-0.0625,0.125],"fixed": 2,"harmed": 1}},{"family": "original","role": "Ablation","key": "exact-prefix3","label": "Three calls, Judges 1–3 first trained on exact labels","correct": 25,"n": 32,"interval": [0.6124500635075647,0.8897616374739581],"change": {"n": 32,"delta": 0.6875,"interval": [0.53125,0.84375],"fixed": 22,"harmed": 0}},{"family": "original","role": "Ablation","key": "top-prefix1","label": "Three calls, Judge 1 first trained top-down","correct": 2,"n": 32,"interval": [0.01731056703164098,0.20147123144154577],"change": {"n": 32,"delta": -0.03125,"interval": [-0.15625,0.09375],"fixed": 2,"harmed": 3}},{"family": "original","role": "Ablation","key": "top-prefix2","label": "Three calls, Judges 1–2 first trained top-down","correct": 31,"n": 32,"interval": [0.8425573617998745,0.994462139835997],"change": {"n": 32,"delta": 0.875,"interval": [0.75,0.96875],"fixed": 28,"harmed": 0}},{"family": "original","role": "Ablation","key": "top-prefix3","label": "Three calls, Judges 1–3 first trained top-down","correct": 28,"n": 32,"interval": [0.7193169451834979,0.9502986561251993],"change": {"n": 32,"delta": 0.78125,"interval": [0.625,0.90625],"fixed": 25,"harmed": 0}},{"family": "original","role": "Ablation","key": "exact-depth1","label": "One judge, trained on exact labels","correct": 20,"n": 32,"interval": [0.4525440735307745,0.7706611269054578],"change": {"n": 32,"delta": 0.53125,"interval": [0.34375,0.6875],"fixed": 17,"harmed": 0}},{"family": "original","role": "Ablation","key": "exact-depth2","label": "Two judges, trained on exact labels","correct": 20,"n": 32,"interval": [0.4525440735307745,0.7706611269054578],"change": {"n": 32,"delta": 0.53125,"interval": [0.34375,0.6875],"fixed": 17,"harmed": 0}},{"family": "original","role": "Ablation","key": "top-depth1","label": "One judge, trained top-down","correct": 25,"n": 32,"interval": [0.6124500635075647,0.8897616374739581],"change": {"n": 32,"delta": 0.6875,"interval": [0.5,0.84375],"fixed": 23,"harmed": 1}},{"family": "original","role": "Ablation","key": "top-depth2","label": "Two judges, trained top-down","correct": null,"n": null,"interval": null,"change": null},{"family": "original","role": "Ablation","key": "alt-exact-solver","label": "Continues exact-prefix3 against refreshed exact-route judges","correct": 2,"n": 32,"interval": [0.01731056703164098,0.20147123144154577],"change": {"n": 32,"delta": -0.03125,"interval": [-0.09375,0.0],"fixed": 0,"harmed": 1}}],"primary": {"status": "pending","reason": "Incomplete matched final checkpoints or IDs",
123version https://git-lfs.github.com/spec/v1oid sha256:49e50e4d3296cbeb2f8d81a68c9f6758eb267c354f2e9b8ee28040a336da4322size 1258141234567<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Recursive judge study</title><link rel="stylesheet" href="style.css"></head><body><main><header><div><h1>Does a third judge help?</h1><p>Recursive LLM judgments as rewards for an arithmetic solver trained with GRPO.</p></div><nav><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md">Protocol</a><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/paper.pdf">Paper</a></nav></header><section id="online-section" hidden><h2>Training the original solver with frozen Qwen3.5-4B judges</h2><p id="online-result"></p><div class="scroll"><table><thead><tr><th>Solver reward</th><th>Status</th><th>Optimizer updates</th><th>Mixed reward groups</th><th>Latest development probe</th><th>Final development accuracy</th></tr></thead><tbody id="online-scores"></tbody></table></div><div id="online-contrasts" class="scroll" hidden><table><thead><tr><th>Solver comparison</th><th>Gained</th><th>Lost</th><th>Difference (pp)</th><th>Paired 95% interval (pp)</th></tr></thead><tbody id="contrast-rows"></tbody></table></div><label>Training run <select id="online-depth"><option value="1">One judge</option><option value="2">Two judges</option><option value="3">Three judges</option></select></label><canvas id="online-trend" aria-label="Assigned reward and exact accuracy by optimizer group" hidden></canvas>12345678<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Verifying a verifier of a verifier</title><link rel="stylesheet" href="style.css"></head><body><main><header><div><h1>Verifying a verifier of a verifier</h1><p>An experimental study of three recursive LLM judges as online GRPO rewards. Every figure and number below is regenerated from the raw results by <code>uv run study report</code>.</p></div><nav><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md">Protocol</a><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/paper.pdf">Paper</a></nav></header><section id="overview"><h2>The study at a glance</h2><figure><video controls muted loop playsinline preload="metadata" poster="assets/twitter-summary.png" width="1280" height="720"><source src="assets/walkthrough.mp4" type="video/mp4" onerror="this.closest('figure').hidden=true"></video><figcaption>Replay of one logged GRPO update: the problem, four sampled answers, the exact checker, the Judge 2 and Judge 3 rewards, and the credit each reward gives.</figcaption></figure><div class="media"><figure><a href="assets/twitter-summary.png"><img src="assets/twitter-summary.png" alt="One-image summary of the study for social media" loading="lazy" onerror="this.closest('figure').hidden=true"></a><figcaption>Summary card</figcaption></figure><figure><a href="assets/poster.png"><img src="assets/poster.png" alt="Conference poster of the study" loading="lazy" onerror="this.closest('figure').hidden=true"></a><figcaption>Poster</figcaption></figure></div><figure><img src="assets/architecture.png" alt="Training loop with the solver, three recursive judges, exact checker, reward rule and GRPO update" loading="lazy" onerror="this.closest('figure').hidden=true"><figcaption>Architecture</figcaption></figure></section><section id="online-section" hidden><h2>Training the original solver with frozen Qwen3.5-4B judges</h2><p id="online-result"></p><div class="scroll"><table><thead><tr><th>Solver reward</th><th>Status</th><th>Optimizer updates</th><th>Mixed reward groups</th><th>Latest development probe</th><th>Final development accuracy</th></tr></thead><tbody id="online-scores"></tbody></table></div><div id="online-contrasts" class="scroll" hidden><table><thead><tr><th>Solver comparison</th><th>Gained</th><th>Lost</th><th>Difference (pp)</th><th>Paired 95% interval (pp)</th></tr></thead><tbody id="contrast-rows"></tbody></table></div><label>Training run <select id="online-depth"><option value="1">One judge</option><option value="2">Two judges</option><option value="3">Three judges</option></select></label><canvas id="online-trend" aria-label="Assigned reward and exact accuracy by optimizer group" hidden></canvas>
123:root{font:16px/1.5 system-ui,sans-serif;color:#142f32;background:#f6f7f3}*{box-sizing:border-box}main{max-width:1080px;margin:auto;padding:2rem clamp(1rem,4vw,3rem)}header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding:1rem 0 2rem;border-bottom:3px solid #18594f}h1{font:600 clamp(2rem,4.8vw,3.8rem)/1.07 Georgia,serif;letter-spacing:-.04em;margin:0}h2{font:600 1.65rem Georgia,serif;margin:0 0 1rem}header p{max-width:55ch;color:#375a59;margin-bottom:0}nav,.controls{display:flex;gap:1rem;flex-wrap:wrap}a{color:#145c52;text-underline-offset:.2em}section{padding:1.55rem 0;border-bottom:1px solid #c5d3cf}select{font:inherit;padding:.35rem;background:#fff;border:1px solid #849f96;border-radius:.2rem;color:inherit}label{display:flex;align-items:center;gap:.45rem}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #d6dfd9;white-space:nowrap}th{font-size:.84rem;color:#43615f}code,pre{font: .92rem/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}article{background:white;border-left:3px solid #377f70;margin-top:1rem;padding:.8rem 1rem}article.error{border-color:#ad512e}article h3{margin:.1rem 0 .45rem}pre{margin:.4rem 0}footer{padding:1.5rem 0;color:#516865}@media(max-width:640px){header{flex-direction:column;gap:.8rem}.controls{gap:.65rem}}canvas{display:block;width:100%;height:auto;margin:1rem 0}canvas[hidden]{display:none}caption{text-align:left;font-weight:600;margin:1rem 0 .4rem}#validation-chart,#depth-trajectory{max-width:100%;height:auto}1234:root{font:16px/1.5 system-ui,sans-serif;color:#142f32;background:#f6f7f3}*{box-sizing:border-box}main{max-width:1080px;margin:auto;padding:2rem clamp(1rem,4vw,3rem)}header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding:1rem 0 2rem;border-bottom:3px solid #18594f}h1{font:600 clamp(2rem,4.8vw,3.8rem)/1.07 Georgia,serif;letter-spacing:-.04em;margin:0}h2{font:600 1.65rem Georgia,serif;margin:0 0 1rem}header p{max-width:55ch;color:#375a59;margin-bottom:0}nav,.controls{display:flex;gap:1rem;flex-wrap:wrap}a{color:#145c52;text-underline-offset:.2em}section{padding:1.55rem 0;border-bottom:1px solid #c5d3cf}select{font:inherit;padding:.35rem;background:#fff;border:1px solid #849f96;border-radius:.2rem;color:inherit}label{display:flex;align-items:center;gap:.45rem}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #d6dfd9;white-space:nowrap}th{font-size:.84rem;color:#43615f}code,pre{font: .92rem/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}article{background:white;border-left:3px solid #377f70;margin-top:1rem;padding:.8rem 1rem}article.error{border-color:#ad512e}article h3{margin:.1rem 0 .45rem}pre{margin:.4rem 0}footer{padding:1.5rem 0;color:#516865}@media(max-width:640px){header{flex-direction:column;gap:.8rem}.controls{gap:.65rem}}canvas{display:block;width:100%;height:auto;margin:1rem 0}canvas[hidden]{display:none}caption{text-align:left;font-weight:600;margin:1rem 0 .4rem}#validation-chart,#depth-trajectory{max-width:100%;height:auto}figure{margin:1rem 0}figure img,figure video{display:block;width:100%;height:auto;background:#fff;border:1px solid #d6dfd9}figcaption{font-size:.9rem;color:#43615f;margin-top:.35rem}.media{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}
29 unmodified lines30313233343529 unmodified linesThe default campaign retains the original frozen-judge solver, runs the learnability experiment and starts the matched matrix when its registered learning criterion is met. Its frozen decision and source digests are in `results/calibrated/profile.json`. All amended raw results, role adapters and logs are in their own `calibrated` subdirectories. The final seal covers that matrix alone. The amended benchmark uses new problem IDs, with a second cohort for judging evidence and signed harder expressions for transfer. To reproduce the entire original design independently, use `study campaign --registered-only` with a fresh pair of result and state directories. The normal `study report` detects the frozen decision and includes observations from the initial study.## Using a published adapterThe model repository stores each original adapter in `runs/RUN_ID` and each amended adapter in `runs/calibrated/RUN_ID`. Download a released directory and load its adapter on the pinned base model. The `timing` directory contains the disposable timing-policy adapter. The study runtime loads the base with the registered NF4 configuration in `src/study/backend.py`. [Released adapters](https://huggingface.co/BurnyCoder/recursive-judge-grpo-adapters/tree/main/runs) · [PEFT checkpoint format](https://huggingface.co/docs/peft/developer_guides/checkpoint)29 unmodified lines303132333435363738394041424329 unmodified linesThe default campaign retains the original frozen-judge solver, runs the learnability experiment and starts the matched matrix when its registered learning criterion is met. Its frozen decision and source digests are in `results/calibrated/profile.json`. All amended raw results, role adapters and logs are in their own `calibrated` subdirectories. The final seal covers that matrix alone. The amended benchmark uses new problem IDs, with a second cohort for judging evidence and signed harder expressions for transfer. To reproduce the entire original design independently, use `study campaign --registered-only` with a fresh pair of result and state directories. The normal `study report` detects the frozen decision and includes observations from the initial study.## Regenerating the README, figures and animations`uv run study report` runs on CPU and needs no GPU packages. It rewrites only the text between the `<!-- HIGHLIGHTS:START -->`/`<!-- HIGHLIGHTS:END -->` and `<!-- RESULTS:START -->`/`<!-- RESULTS:END -->` markers in `README.md`. Everything outside those markers is hand-written and contains no result numbers. Edit it directly. The report also ticks the To-do items whose completion it can read from `results/`. Running the command twice on unchanged results produces identical files.- [`src/study/overview.py`](../src/study/overview.py) builds the Key results bullets and the role-labelled Results at a glance table. Each arm is labelled Method, Baseline, Control or Ablation in `ARMS`. Its difference from the same family's three-judge solver uses the seeded paired bootstrap of `learnability_analysis.paired_change`. An arm is called higher or lower only when the whole 95% interval lies on one side of zero.- [`src/study/visual_summary.py`](../src/study/visual_summary.py) draws `architecture.png`, the social-media card `twitter-summary.png`, the conference poster `poster.png`, and the walkthrough `walkthrough.gif` and `walkthrough.mp4` in `docs/assets/`. The walkthrough replays the logged training group selected by the depth diagnosis. Its GRPO credits follow TRL's group-scaled advantage, (r − mean) / (sample std + 10⁻⁴). The GIF uses Matplotlib's Pillow writer and the MP4 its FFmpeg writer, with the FFmpeg binary from `imageio-ffmpeg`. A figure whose data are missing is deleted and not referenced.- README images use absolute `raw/refs/heads/main` URLs so they also render on the Hugging Face dataset card, which `study publish` builds from `README.md`. A new figure therefore appears on GitHub and Hugging Face once it is pushed to `main`.## Using a published adapterThe model repository stores each original adapter in `runs/RUN_ID` and each amended adapter in `runs/calibrated/RUN_ID`. Download a released directory and load its adapter on the pinned base model. The `timing` directory contains the disposable timing-policy adapter. The study runtime loads the base with the registered NF4 configuration in `src/study/backend.py`. [Released adapters](https://huggingface.co/BurnyCoder/recursive-judge-grpo-adapters/tree/main/runs) · [PEFT checkpoint format](https://huggingface.co/docs/peft/developer_guides/checkpoint)
2 unmodified lines34567892 unmodified linesversion = "0.1.0"description = "Exact evidence audits for recursive generative rewards in GRPO"requires-python = ">=3.12,<3.13"dependencies = ["numpy>=2.0", "reportlab>=4", "matplotlib>=3.9", "python-dotenv>=1", "pytest>=8", "pypdf>=5"][project.optional-dependencies]gpu = ["torch==2.15.0", "transformers==5.24.1", "peft==0.22.0", "bitsandbytes==0.50.2", "trl==1.19.0", "accelerate>=1.12", "datasets>=4.7", "safetensors>=0.5"]2 unmodified lines345678910111213141516172 unmodified linesversion = "0.1.0"description = "Exact evidence audits for recursive generative rewards in GRPO"requires-python = ">=3.12,<3.13"dependencies = ["numpy>=2.0","reportlab>=4","matplotlib>=3.9","python-dotenv>=1","pytest>=8","pypdf>=5","imageio-ffmpeg>=0.8.2",][project.optional-dependencies]gpu = ["torch==2.15.0", "transformers==5.24.1", "peft==0.22.0", "bitsandbytes==0.50.2", "trl==1.19.0", "accelerate>=1.12", "datasets>=4.7", "safetensors>=0.5"]
18 unmodified lines192021222324255 unmodified lines313233343536373839404142434418 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate..Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.18 unmodified lines1920212223242526272829305 unmodified lines363738394041424344454647484918 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.<details><summary>Tokens and time used by each scored model file</summary>Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.</details>Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.
123version https://git-lfs.github.com/spec/v1oid sha256:1763c074736488c17807efd197e95aedc957dfdd15d2bb92756158f77ea01127size 1111944123version https://git-lfs.github.com/spec/v1oid sha256:a1496e20a7da17129965943e31c9ae8098c9a1074153e2ae2369083eccfd8060size 1250339
123484 unmodified lines899091929394955 unmodified lines101102103104105106107108109110111112113114# Progress · 2026-11-2723 of 32 registered training blocks have completed. 0 have completed final evaluation. Amended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.84 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate..Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.123484 unmodified lines89909192939495969798991005 unmodified lines106107108109110111112113114115116117118119# Progress · 2026-12-0623 of 32 registered training blocks have completed. 0 have completed final evaluation. Amended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.84 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.<details><summary>Tokens and time used by each scored model file</summary>Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.</details>Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.
123456789101112131415161718192021222324252627282930313233343536# README restructuring audit
6 December 2026 · Independent check of the README rewritten to the project's README format, against the README at commit `aaaca45`.
## What changed
- The title is now "Verifying a verifier of a verifier", with the subtitle and the owner's three introductory paragraphs kept word for word. A source row links the closest prior work. The former opening paragraph and the (4 + 3) × 2 example remain verbatim under "At a glance".- A second generated region (`<!-- HIGHLIGHTS:START/END -->`) holds Key results, the social-media card, the poster, the animated walkthrough and the architecture figure. All of them are built by `uv run study report` from `results/` ([`src/study/overview.py`](../../src/study/overview.py), [`src/study/visual_summary.py`](../../src/study/visual_summary.py)).- The results region now opens with a role-labelled table, "Results at a glance", followed by "Concrete inputs and outputs". Every earlier section follows in its original order with its original heading. Long detail is collapsed in `<details>`: solver precision trials, the run table, the run inventory, and per-model token and time costs.- The hand-written tail replaces "Experiment", "Reproduction" and "Milestones" with Methodology, What happens when you run it, Features, Technologies, Installation and usage, Repository layout, Run matrix, To-do and References.
## Checks and outcomes
| Check | Method | Outcome || --- | --- | --- || Nothing removed | Script comparing headings, image files, table header rows and long lines between `git show aaaca45:README.md` and the new README | All old headings remain except the four renamed ones above. All 7 old images, plus 4 new media files, are present. Every old table header is present. The remaining differences are intended: image links became absolute URLs, two text glitches were fixed, and the Experiment and Reproduction prose was absorbed into Methodology, Installation and usage, and Run matrix. The stage-order paragraph is kept verbatim under Run matrix. || Generated numbers | Independent script reading the raw files without the report code | Solver scores for `winner-d1/d2/d3` (18, 29, 27 of 32) and ten calibrated arms match `solutions.jsonl` / `replay.jsonl`. The frozen contrasts and intervention counts match `results/new-judges/three-depth-comparison.json`. Judge 3's reward rates on the three-judge run's training answers (88/144 = 61.1% correct, 569/880 = 64.7% wrong) match `results/calibrated/d3-17/rollouts.jsonl`. || Hand-written text has no result numbers | Read-through | Only design facts (e.g. three judges, seeds 17/29/43, CUDA 13.2) appear outside the generated regions. Each points to the code or protocol that defines it. || Design claims match code | `training.py` (reward rules, `GRPOConfig`), `backend.py` (NF4, LoRA targets), `prompts.py` (report fields), `judging.py` (flat majority), `design.py` (run manifest), `cli.py` (commands), `frozen_gpu.py` (llama.cpp build) | Consistent. `flat` uses three Judge 1 calls, the same count as the three-judge chain. `hybrid` multiplies Judge 3's verdict by the exact label. `shuffle` permutes Judge 3's rewards within each group. || GRPO advantage formula | Installed TRL 1.19 source: `(r − mean) / (nanstd + 1e-4)`, where `nanstd` applies Bessel's correction | `overview.group_advantages` matches. `tests/test_overview.py` pins the value for rewards [1, 1, 0, 0]. || References | arXiv and PMLR pages fetched on 6 December 2026 | Titles and first authors verified for Wen et al., DeepSeekMath-V2, Huang et al., Wu et al., Shao et al. (Spurious Rewards), ProcessBench and Reasoning Gym. DeepSeekMath-V2 §2.1.2 is "Introducing Meta-Verification to Review Proof Analyses", and its Eq. 3 multiplies the verifier reward by the meta-verifier score. The Wilson (1927) DOI publisher page refused automated access, so that link was not fetched. || Rendering targets | `tests/test_release.py` | README images use absolute `raw/refs/heads/main` URLs, which the Hugging Face dataset card also renders. A media file is referenced only if this build drew it. An empty results directory removes the card, poster and animation. || Idempotence | `uv run study report` twice | README.md and reports/summary.md are byte-identical across runs. || Pages | Local HTTP server and browser pane | The overview video loads (1280×720 MP4, with the summary card as its poster frame). The card, poster and architecture figures load. Each figure hides itself if its file is missing. |
## Statistical presentation
- "Results at a glance" compares each arm with the same family's three-judge solver on identical development problems. It uses Wilson intervals per arm and the seeded paired bootstrap of `learnability_analysis.paired_change` for differences. An arm is called higher or lower only if the whole interval excludes zero. The table states that this is single-seed, descriptive, uncorrected for multiple comparisons, and separate from the pending preregistered held-out primary.- Key results label their evidence type. The one-judge frozen arm was registered after the two- and three-judge scores were known. The original-judge reward-rate comparison is a post hoc diagnosis. The controls are interventions on the reward.- Bars in the card, poster and `outcomes.png` start at zero and show Wilson intervals. Colours encode role (method, baseline, control, ablation) consistently across these figures.
## Remaining limitations
- Every reported solver result is one seed on 32 development problems. Seeds 29 and 43 and the sealed held-out comparison have not run.- Arm roles in `overview.ARMS` follow reports/planned-runs.md. Calling `hybrid` an ablation rather than a control is a labelling choice and is stated in the table.- Mermaid renders on GitHub. A reader of the Hugging Face card may see the flowchart as source text. The architecture PNG above it carries the same information.147 unmodified lines14814915015115215315415515622 unmodified lines1791801811821831841855 unmodified lines191192193194195196197198199200201202203204147 unmodified linesOn the original signed development population, base solved 0/32, d3-17 solved 0/32.**Untrained solver.** Every step was correct on 20 of 32 development problems. Of 0 malformed outputs, 0 contained all correct numbers as named assignments. Judge 3 corrected 0 of Judge 2’s verdicts and introduced 2 errors on these traces.**First three-judge-trained solver.** Every step was correct on 3 of 32 development problems. Of 1 malformed outputs, 0 contained all correct numbers as named assignments. Judge 3 corrected 1 of Judge 2’s verdicts and introduced 1 errors on these traces.### Reward and arithmetic during training, seed 1722 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate..Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.147 unmodified lines14814915015115215315415515622 unmodified lines1791801811821831841851861871881891905 unmodified lines196197198199200201202203204205206207208209147 unmodified linesOn the original signed development population, base solved 0/32, d3-17 solved 0/32.**Untrained solver.** Every step was correct on 20 of 32 development problems. It wrote no malformed outputs. Judge 3 corrected 0 of Judge 2’s verdicts and introduced 2 errors on these traces.**First three-judge-trained solver.** Every step was correct on 3 of 32 development problems. Of its 1 malformed output, 0 contained all correct numbers as named assignments. Judge 3 corrected 1 of Judge 2’s verdicts and introduced 1 error on these traces.### Reward and arithmetic during training, seed 1722 unmodified lines| Qwen2.5-1.5B-Instruct · confirmation · balanced | 64/128 | 63/128 | 61/128 | 1/64 | 0/64 | 23 / 25 || Qwen3.5-4B · confirmation · balanced | 72/128 | 73/128 | 73/128 | 10/64 | 0/64 | 0 / 0 |Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.Qwen3.8-27B · Incomplete, sustained latency. The 4 pilot calls averaged 2.56 seconds. Stopped after 51 scored requests. Consecutive requests exceeded the 30-second ceiling and the slowdown persisted after reloading the same file. No cohort accuracy estimate.<details><summary>Tokens and time used by each scored model file</summary>Qwen3.5-9B (deployment replicate, Ollama-Qwen3.5-9B-Q4_K_M.gguf) used 191,377 input and 4,963 output tokens in 241.4 seconds of end-to-end calls.5 unmodified linesQwen3.5-9B (screen, Qwen3.5-9B-Q4_K_M.gguf) used 191,371 input and 5,018 output tokens in 251.2 seconds of end-to-end calls.Qwen3.8-27B (amended screen, Qwen3.8-27B-UD-IQ1_S.gguf) used 197,374 input and 4,029 output tokens in 866.0 seconds of end-to-end calls.Qwen2.5-1.5B-Instruct (confirmation, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 298,364 input and 7,883 output tokens in 101.4 seconds of end-to-end calls.Qwen3.5-4B (confirmation, Qwen3.5-4B-Q4_K_M.gguf) used 301,038 input and 7,660 output tokens in 262.0 seconds of end-to-end calls.</details>Qwen3.8-27B-UD-IQ2_XS.gguf failed the GPU fit check before generating any answers. The process has 7094.4 MiB in dedicated GPU memory, below 7539.8 MiB of weights and state.Qwen3.8-27B-UD-IQ2_XXS.gguf failed the GPU fit check before generating any answers. The process has 7034.1 MiB in dedicated GPU memory, below 7139.4 MiB of weights and state.
4 unmodified lines567891011305 unmodified lines3173183193203213223234 unmodified linesfrom collections import Counterfrom itertools import batched, combinationsfrom .design import SEEDSfrom .domain import Problemfrom .learning_review import execute_stepsfrom .paired_examples import differing_examples, explain_report, outcome_counts, output_table, pair_saved_outputs, report_key305 unmodified lines"Each column pair below splits the assigned rewards by the independent arithmetic grade. All four ""training quarters use the same question schedule across runs, and each solver samples its own answers.",quarter_table(r), late_rewards(r),""]matched = r["matched_training"]sections.append(f"We also compared the **two actual training runs** while matching the prompt, all four solver "f"texts and all Judge 1 and Judge 2 reports word for word. This held at {len(matched['matched'])}/"4 unmodified lines567891011305 unmodified lines3173183193203213223234 unmodified linesfrom collections import Counterfrom itertools import batched, combinationsfrom .design import GITHUB, SEEDSfrom .domain import Problemfrom .learning_review import execute_stepsfrom .paired_examples import differing_examples, explain_report, outcome_counts, output_table, pair_saved_outputs, report_key305 unmodified lines"Each column pair below splits the assigned rewards by the independent arithmetic grade. All four ""training quarters use the same question schedule across runs, and each solver samples its own answers.",quarter_table(r), late_rewards(r),f""]matched = r["matched_training"]sections.append(f"We also compared the **two actual training runs** while matching the prompt, all four solver "f"texts and all Judge 1 and Judge 2 reports word for word. This held at {len(matched['matched'])}/"
123 unmodified lines124125126127128129130131132133134135123 unmodified linesparts += ["Every depth grades the same solver responses within a cohort. A visible-pair success requires both complete audit records and the exact numerical correction. Each balanced problem contributes one valid trace and one invalid trace. The last column counts Judge 2 errors that Judge 3 fixed, followed by correct Judge 2 verdicts that Judge 3 overturned.",markdown(HEAD,records)]else:parts.append("No completed fixed-trace score has been released.")for r in study["results"]:if r.get("metrics"):costs = r["cost"]parts.append(f"{r['model']} ({r['phase']}, {r['file']}) used {costs['input_tokens']:,} input and {costs['output_tokens']:,} output tokens in {costs['elapsed_seconds']:.1f} seconds of end-to-end calls.")else:parts.append(f"{r['model']} · {r['status']}. {r['result']}.")parts.extend(interpretation(study))return "\n\n".join(parts)123 unmodified lines124125126127128129130131132133134135136137138139123 unmodified linesparts += ["Every depth grades the same solver responses within a cohort. A visible-pair success requires both complete audit records and the exact numerical correction. Each balanced problem contributes one valid trace and one invalid trace. The last column counts Judge 2 errors that Judge 3 fixed, followed by correct Judge 2 verdicts that Judge 3 overturned.",markdown(HEAD,records)]else:parts.append("No completed fixed-trace score has been released.")usage = []for r in study["results"]:if r.get("metrics"):costs = r["cost"]usage.append(f"{r['model']} ({r['phase']}, {r['file']}) used {costs['input_tokens']:,} input and {costs['output_tokens']:,} output tokens in {costs['elapsed_seconds']:.1f} seconds of end-to-end calls.")else:# Unscored runs stay visible: an archived or stopped deployment is itself a result.parts.append(f"{r['model']} · {r['status']}. {r['result'].rstrip('.')}.")if usage:parts.append("<details>\n<summary>Tokens and time used by each scored model file</summary>\n\n"+"\n\n".join(usage)+"\n\n</details>")parts.extend(interpretation(study))return "\n\n".join(parts)
67 unmodified lines68697071727336 unmodified lines11011111211311411510 unmodified lines12612712812913013113267 unmodified linesif (len(base),len(shared)) != ((32,32) if is_dev else (2048,128)):raise ValueError(f"Incomplete base cohort for the {phase} tables")solver_table,judge_table = [],[]valid = sum(r["correct"] for r in shared)changed = [r for r in shared if r["verdicts"][1] != r["verdicts"][2]]fixes = sum(r["verdicts"][2] == r["correct"] for r in changed)36 unmodified linesraise ValueError(f"Identical trained Judge 1 reports differ across {route} conditions")approved = [sum(r["verdicts"][i] for r in records) for i in range(3)]inaccurate = [sum(r["verdicts"][i] and not r["correct"] for r in records) for i in range(3)]stack_label = "stack trained on exact labels" if route=="exact" else "stack trained top-down"if all(n==len(records) for n in approved):notes.append(f"The {stack_label} approved all {len(records)} answers at every depth, "10 unmodified linesjudge_table.append([label+" · all participating judges trained",*fitted])frozen_changes = [{k: r[k] for k in ("key","expression","trace","expected_values","correct","reports","verdicts")}for r in changed]grids.append(dict(phase=phase,solver=solver_table,judge=judge_table,solver_n=len(base),judge_n=len(shared),frozen_changes=frozen_changes, solver_note=shallow_feedback_note(root) if is_dev else "",frozen_solver=cell(sum(r["correct"] for r in base),len(base)),judge_note=" ".join(notes)))return grids67 unmodified lines6869707172737436 unmodified lines11111211311411511611711810 unmodified lines12913013113213313413567 unmodified linesif (len(base),len(shared)) != ((32,32) if is_dev else (2048,128)):raise ValueError(f"Incomplete base cohort for the {phase} tables")solver_table,judge_table = [],[]stacks = {}valid = sum(r["correct"] for r in shared)changed = [r for r in shared if r["verdicts"][1] != r["verdicts"][2]]fixes = sum(r["verdicts"][2] == r["correct"] for r in changed)36 unmodified linesraise ValueError(f"Identical trained Judge 1 reports differ across {route} conditions")approved = [sum(r["verdicts"][i] for r in records) for i in range(3)]inaccurate = [sum(r["verdicts"][i] and not r["correct"] for r in records) for i in range(3)]# Structured approvals for the README highlights; the sentence below reports the same counts.stacks[route] = dict(approved=approved, false=inaccurate, n=len(records), invalid=len(records)-valid)stack_label = "stack trained on exact labels" if route=="exact" else "stack trained top-down"if all(n==len(records) for n in approved):notes.append(f"The {stack_label} approved all {len(records)} answers at every depth, "10 unmodified linesjudge_table.append([label+" · all participating judges trained",*fitted])frozen_changes = [{k: r[k] for k in ("key","expression","trace","expected_values","correct","reports","verdicts")}for r in changed]grids.append(dict(phase=phase,solver=solver_table,judge=judge_table,solver_n=len(base),judge_n=len(shared),stacks=stacks,frozen_changes=frozen_changes, solver_note=shallow_feedback_note(root) if is_dev else "",frozen_solver=cell(sum(r["correct"] for r in base),len(base)),judge_note=" ".join(notes)))return grids
534 unmodified lines535536537538539540541542543544545546547548549550534 unmodified linesimport matplotlib.pyplot as pltfig,axes = plt.subplots(1,2,figsize=(10,3.8),layout="constrained")base=study["base"]def bars(ax, labels, pairs, colors, title):scales=[100*x/n for x,n in pairs]rectangles=ax.bar(labels,scales,color=colors)ax.set(ylim=(0,110),ylabel="Percent", title=title,yticks=[0,25,50,75,100])ax.bar_label(rectangles,labels=[f"{x}/{n}" for x,n in pairs],padding=3)ax.spines[["top","right"]].set_visible(False)labels=["1 judge" if a["depth"]==1 else f"{a['depth']} judges" for a in completed]colors=[{1:"#ab692b",2:"#24796c",3:"#4776ad"}[a["depth"]] for a in completed]bars(axes[0],["Starting solver",*labels],[(base["correct"],base["n"]),*((a["correct"],a["n"]) for a in completed)],["#72807f",*colors],"Exact development solutions")bars(axes[1],labels,[(a["signal"]["mixed"],a["signal"]["groups"]) for a in completed],colors,"Training groups with mixed rewards")fig.suptitle("Training Qwen2.5-1.5B with frozen Qwen3.5-4B judges")534 unmodified lines535536537538539540541542543544545546547548549550551552553554555556557558559534 unmodified linesimport matplotlib.pyplot as pltfig,axes = plt.subplots(1,2,figsize=(10,3.8),layout="constrained")base=study["base"]def bars(ax, labels, pairs, colors, title, intervals=False):scales=[100*x/n for x,n in pairs]errors=Noneif intervals:# Wilson 95% intervals over distinct development problems; training groups share a policy, so none there.from .overview import wilsonbounds=[wilson(x/n,n) for x,n in pairs]errors=[[s-100*lo for s,(lo,_) in zip(scales,bounds,strict=True)],[100*hi-s for s,(_,hi) in zip(scales,bounds,strict=True)]]rectangles=ax.bar(labels,scales,color=colors,yerr=errors,capsize=4)ax.set(ylim=(0,115),ylabel="Percent", title=title,yticks=[0,25,50,75,100])tops=[s+(errors[1][i] if errors else 0) for i,s in enumerate(scales)]for rectangle,top,(x,n) in zip(rectangles,tops,pairs,strict=True):ax.text(rectangle.get_x()+rectangle.get_width()/2,top+2,f"{x}/{n}",ha="center")ax.spines[["top","right"]].set_visible(False)labels=["1 judge" if a["depth"]==1 else f"{a['depth']} judges" for a in completed]colors=[{1:"#ab692b",2:"#24796c",3:"#4776ad"}[a["depth"]] for a in completed]bars(axes[0],["Starting solver",*labels],[(base["correct"],base["n"]),*((a["correct"],a["n"]) for a in completed)],["#72807f",*colors],"Exact development solutions (Wilson 95%)",intervals=True)bars(axes[1],labels,[(a["signal"]["mixed"],a["signal"]["groups"]) for a in completed],colors,"Training groups with mixed rewards")fig.suptitle("Training Qwen2.5-1.5B with frozen Qwen3.5-4B judges")
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254"""Top-of-README summaries: role-labelled solver scores, paired differences against three judges, and highlights.
Global context: `report.build()` calls these helpers and writes their markdown into the HIGHLIGHTS and RESULTSregions of README.md. Every number below is read from results files; nothing here is typed by hand."""
from collections import namedtuplefrom math import sqrtfrom statistics import NormalDist, mean
from .design import GITHUBfrom .learnability_analysis import paired_changefrom .storage import rowsfrom .tables import markdown
# One solver arm in the summary table. `family` names the judge model, `role` its place in the design.Arm = namedtuple("Arm", "family role key label")
FAMILIES = {"frozen": "Frozen Qwen3.5-4B judges", "original": "Qwen2.5-1.5B-Instruct judges"}
# Roles follow reports/planned-runs.md: D3 is the treatment, shallower chains and flat votes are baselines,# the untrained, exact and shuffled rewards are controls, and the gated or pre-trained judge stacks are ablations.ARMS = ( Arm("frozen", "Method", "new-judges/winner-d3", "Three judges: Judge 3's verdict is the reward"), Arm("frozen", "Baseline", "new-judges/winner-d2", "Two judges: Judge 2's verdict"), Arm("frozen", "Baseline", "new-judges/winner-d1", "One judge: Judge 1's verdict"), Arm("frozen", "Control", "base", "Starting solver, no training"), Arm("original", "Method", "d3-17", "Three judges: Judge 3's verdict is the reward"), Arm("original", "Baseline", "d2-17", "Two judges: Judge 2's verdict"), Arm("original", "Baseline", "d1-17", "One judge: Judge 1's verdict"), Arm("original", "Baseline", "flat-17", "Majority of three independent Judge 1 votes"), Arm("original", "Control", "base", "Starting solver, no training"), Arm("original", "Control", "oracle-17", "Exact checker reward (upper reference)"), Arm("original", "Control", "shuffle-17", "Judge 3 rewards shuffled within each group of four"), Arm("original", "Ablation", "hybrid-17", "Judge 3 verdict multiplied by the exact checker"), Arm("original", "Ablation", "exact-prefix1", "Three calls, Judge 1 first trained on exact labels"), Arm("original", "Ablation", "exact-prefix2", "Three calls, Judges 1–2 first trained on exact labels"), Arm("original", "Ablation", "exact-prefix3", "Three calls, Judges 1–3 first trained on exact labels"), Arm("original", "Ablation", "top-prefix1", "Three calls, Judge 1 first trained top-down"), Arm("original", "Ablation", "top-prefix2", "Three calls, Judges 1–2 first trained top-down"), Arm("original", "Ablation", "top-prefix3", "Three calls, Judges 1–3 first trained top-down"), Arm("original", "Ablation", "exact-depth1", "One judge, trained on exact labels"), Arm("original", "Ablation", "exact-depth2", "Two judges, trained on exact labels"), Arm("original", "Ablation", "top-depth1", "One judge, trained top-down"), Arm("original", "Ablation", "top-depth2", "Two judges, trained top-down"), Arm("original", "Ablation", "alt-exact-solver", "Continues exact-prefix3 against refreshed exact-route judges"),)
def replace_region(text, name, content, required=True): """Swap the text between `<!-- NAME:START -->` and `<!-- NAME:END -->`, keeping everything else verbatim.""" start, end = f"<!-- {name}:START -->", f"<!-- {name}:END -->" if start not in text or end not in text: if required: raise ValueError(f"README.md lacks the {name} markers") return text head, rest = text.split(start, 1) _, tail = rest.split(end, 1) return f"{head}{start}\n{content.strip(chr(10))}\n{end}{tail}"
def wilson(proportion, n): """Wilson score endpoints for a binomial proportion on distinct problems (Wilson, 1927, JASA 22:209).""" z = NormalDist().inv_cdf(.975) denominator = 1+z*z/n center = (proportion+z*z/(2*n))/denominator radius = z*sqrt(proportion*(1-proportion)/n+z*z/(4*n*n))/denominator return max(0.0, center-radius), min(1.0, center+radius)
def outcomes(path): """Per-problem exact outcomes from a finished development evaluation, keyed by canonical problem ID.""" if not (path.parent/"development.json").is_file() or not path.is_file(): return None return {r["key"]: int(r["correct"]) for r in rows(path)}
def solver_scores(source, root): """Read every registered arm. Arms whose problem IDs differ from the starting solver's are left out.""" base = outcomes(source/"base"/"replay.jsonl") scores = {family: {} for family in FAMILIES} for arm in ARMS: path = (source/arm.key/"replay.jsonl" if arm.family == "original" or arm.key == "base" else root/arm.key/"solutions.jsonl") values = outcomes(path) if values is not None and base is not None and values.keys() == base.keys(): scores[arm.family][arm.key] = values return scores
def glance_rows(scores): """One row per registered arm, with the paired difference from that family's three-judge solver.""" method = {a.family: scores[a.family].get(a.key) for a in ARMS if a.role == "Method"} table = [] for arm in ARMS: values = scores[arm.family].get(arm.key) reference = method[arm.family] row = dict(family=arm.family, role=arm.role, key=arm.key, label=arm.label, correct=None, n=None, interval=None, change=None) if values: row.update(correct=sum(values.values()), n=len(values)) row["interval"] = wilson(row["correct"]/row["n"], row["n"]) if reference and arm.role != "Method": # Same seeded paired bootstrap as the registered learnability contrasts (learnability_analysis.py). row["change"] = paired_change(values, reference) table.append(row) return table
def verdict(change): """A difference counts only when its whole paired 95% interval lies on one side of zero.""" low, high = change["interval"] return "higher" if low > 0 else "lower" if high < 0 else "not distinguishable"
def plain(label): """The treatment in a few words: 'Exact checker reward (upper reference)' becomes 'exact checker reward'.""" words = label.split(":")[0].split(" (")[0] return words[0].lower() + words[1:]
def short(row): return row["key"].removeprefix("new-judges/winner-")
def glance_markdown(table): """Render the role-labelled table, then say in words which arms beat or trailed three judges.""" records, sentences = [], [] for family, title in FAMILIES.items(): members = [r for r in table if r["family"] == family] groups = {"higher": [], "lower": [], "not distinguishable": []} for r in members: if r["correct"] is None: records.append([title, r["role"], f"`{short(r)}`", r["label"], "Pending", "—", "—", "—"]) continue low, high = r["interval"] difference = interval = "—" if r["change"]: c = r["change"] difference = f"{100*c['delta']:+.2f}" interval = f"{100*c['interval'][0]:+.1f} to {100*c['interval'][1]:+.1f}" groups[verdict(c)].append(f"{plain(r['label'])} (`{short(r)}`, {difference} pp)") records.append([title, f"**{r['role']}**" if r["role"] == "Method" else r["role"], f"`{short(r)}`", r["label"], f"{r['correct']}/{r['n']} ({100*r['correct']/r['n']:.1f}%)", f"{100*low:.1f}–{100*high:.1f}", difference, interval]) parts = [f"{label} three judges: " + "; ".join(names) for label, names in (("Higher than", groups["higher"]), ("Lower than", groups["lower"]), ("Not distinguishable from", groups["not distinguishable"])) if names] if parts: sentences.append(f"- **{title}.** " + ". ".join(parts) + ".") headers = ["Judges", "Role", "Arm", "Solver reward or treatment", "Exact development solutions", "Wilson 95% (%)", "Minus three judges (pp)", "Paired 95% interval (pp)"] return (markdown(headers, records) + "\n\n**In plain words.** \"Higher\" or \"lower\" means the whole paired " "95% interval lies above or below zero.\n\n" + "\n".join(sentences))
def group_advantages(rewards): """GRPO advantages exactly as TRL 1.19 computes them with scale_rewards="group" (training.py).
TRL `GRPOTrainer._generate_and_score_completions`: (r - mean_g) / (nanstd_g + 1e-4), where `trl.trainer.utils.nanstd` applies Bessel's correction. https://github.com/huggingface/trl/blob/v1.19.0/trl/trainer/grpo_trainer.py """ center = mean(rewards) spread = sqrt(sum((r-center)**2 for r in rewards)/(len(rewards)-1)) return [(r-center)/(spread+1e-4) for r in rewards]
def pp(change): return (f"{100*change['delta']:+.2f} percentage points, paired 95% interval " f"{100*change['interval'][0]:+.1f} to {100*change['interval'][1]:+.1f}")
def score(row): return f"{row['correct']}/{row['n']}"
def highlights(data, table): """Positive and negative findings, each with its denominator, interval and kind of evidence.""" find = {(r["family"], r["key"]): r for r in table if r["correct"] is not None} bullets = [] online = data.get("online_solvers") or {} contrasts = online.get("three_depths", {}).get("contrasts", {}) one, two, three = (find.get(("frozen", f"new-judges/winner-d{d}")) for d in (1, 2, 3)) if one and two and "two_minus_one" in contrasts: bullets.append(f"**Positive: a second judge helped.** With frozen Qwen3.5-4B judges, the solver trained on " f"Judge 2's verdict solved {score(two)} development problems, against {score(one)} with " f"Judge 1 alone ({pp(contrasts['two_minus_one'])}). Single seed; the one-judge arm was " "registered after the two- and three-judge scores were known.") audit = next((i for i in online.get("three_depths", {}).get("interventions", []) if (i["lower"], i["upper"]) == (2, 3)), None) if two and three and "three_minus_two" in contrasts: text = (f"**Negative: a third judge did not help.** Rewarding Judge 3's verdict gave {score(three)}, against " f"{score(two)} for Judge 2 ({pp(contrasts['three_minus_two'])}).") if audit: text += (f" Replayed on the three-judge run's own training answers, Judge 3 fixed {audit['fixed']} of " f"Judge 2's verdicts, introduced {audit['harmed']} errors and changed the relative GRPO credit " f"in {audit['changed_credit_groups']}/{audit['groups']} groups.") bullets.append(text) review = (data.get("depth_review") or [None])[0] deep, shallow = find.get(("original", "d3-17")), find.get(("original", "d2-17")) if deep and shallow and shallow["change"]: text = (f"**Negative: with Qwen2.5-1.5B-Instruct judges, the third judge collapsed training.** The " f"three-judge solver solved {score(deep)} development problems, against {score(shallow)} for two " f"judges (two minus three: {pp(shallow['change'])}).") if review: valid = review["three"]["training"]["correct"] wrong = review["n"]-valid j2, j3 = review["same_answers_paid"] text += (f" On the same {review['n']:,} training answers, Judge 3 rewarded {100*j3['correct']/valid:.1f}% " f"of correct and {100*j3['wrong']/wrong:.1f}% of wrong answers; Judge 2 rewarded " f"{100*j2['correct']/valid:.1f}% and {100*j2['wrong']/wrong:.1f}%. Post hoc diagnosis.") bullets.append(text) controls = [(find.get(("original", key)), label) for key, label in (("oracle-17", "the exact checker"), ("hybrid-17", "Judge 3 gated by the checker"), ("shuffle-17", "within-group shuffled Judge 3 rewards"))] if all(row for row, _ in controls): (oracle, _), (hybrid, _), (shuffle, _) = controls bullets.append(f"**Controls: the solver can learn this task; the judge reward limits it.** With the same " f"Qwen2.5-1.5B-Instruct judges and seed, the solver reached {score(oracle)} with the exact " f"checker as reward (control) and {score(hybrid)} with Judge 3's verdict gated by the checker " f"(ablation), against {score(shuffle)} with Judge 3's rewards shuffled within each group " f"(control) and {score(deep) if deep else 'no score'} with Judge 3 alone.") grid = next((g for g in data.get("matched_depth", []) if g["phase"] == "development"), None) stack = (grid or {}).get("stacks", {}).get("exact") if stack: bullets.append(f"**Negative: judges trained on exact labels learned to approve everything.** The fitted " f"exact-label stack approved {', '.join(map(str, stack['approved']))} of {stack['n']} " f"starting-solver answers at depths one, two and three, including " f"{', '.join(map(str, stack['false']))} of the {stack['invalid']} incorrect ones.") frozen = data.get("newer_judges") or {} if frozen.get("review"): records = {r["key"]: r for r in frozen["results"]} w, c = (records[k]["metrics"]["twins"] for k in ("confirm-winner", "confirm-control")) estimate = frozen["decision"]["estimates"]["twins"] bullets.append(f"**Evidence audit: Judge 3 rarely checks the evidence it reviews.** When one number in " f"Judge 2's report was altered, frozen {records['confirm-winner']['model']} endorsed the sound " f"report and located and repaired the altered one on {w['visible']}/{w['n']} fresh pairs, " f"against {c['visible']}/{c['n']} for {records['confirm-control']['model']} " f"({100*estimate['delta']:+.2f} percentage points, paired 95% interval " f"{100*estimate['ci'][0]:+.2f} to {100*estimate['ci'][1]:+.2f}). With the evidence masked, " f"both passed {w['masked']}/{w['n']} and {c['masked']}/{c['n']}.") primary = data.get("primary", {}) sizes = sorted({r["n"] for r in table if r["n"]}) cohort = f" on {' or '.join(map(str, sizes))} problems" if sizes else "" bullets.append("**Still open.** " + ( "The preregistered three-seed held-out comparison has not run, so every result above is a single-seed " f"development estimate{cohort}." if "delta" not in primary else f"The preregistered held-out difference (three minus two judges) was {100*primary['delta']:+.2f} percentage " f"points, interval {100*primary['ci'][0]:+.2f} to {100*primary['ci'][1]:+.2f}.")) return ("## Key results\n\n" + "\n".join(f"- {b}" for b in bullets) + f"\n\nRole-labelled scores for every arm are in [Results at a glance](#results-at-a-glance). " f"[Preregistration]({GITHUB}/blob/main/reports/preregistration.md) · " f"[Paper]({GITHUB}/blob/main/reports/paper.pdf)\n\n")1 unmodified line234567897 unmodified lines1718192021222324252627282930313233343536373839404142100 unmodified lines14314414514614714810 unmodified lines159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204120 unmodified lines325326327328329330331272 unmodified lines60460560660760860961021 unmodified lines63263363463563663763863964010 unmodified lines65165265365465565665765865966066166266366466566666715 unmodified lines6836846856866876886896906916926936946956966976986997007017021 unmodified line70470570670770870971071171271371471571671771871938 unmodified lines7587597607617627637647657667677687697701 unmodified linefrom collections import defaultdictfrom datetime import datetimefrom math import sqrtfrom statistics import NormalDist, meanfrom zoneinfo import ZoneInfofrom .analysis import evidence_fields, paired_comparison, paired_primary, replay_metrics7 unmodified linesfrom .inventory import GUIDE, HEADERS, grouped, inventory, inventory_markdownfrom .frozen_report import collect_frozen, confirmation_headline, confirmation_review_text, depth_rows as frozen_rows, experiment_pages, frozen_text, interpretation, plot_scoresfrom .matched_tables import accuracy_grid, grid_markdownfrom . import online_reportfrom .records import named_valuesfrom .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_jsonfrom .tables import contrast_rows, markdown, rate as percent, run_evidence, training_methodDOCS = ROOT / "docs"REPORTS = ROOT / "reports"def fraction(records, key):return mean(r[key] for r in records) if records else Nonedef wilson(proportion, n):"""Wilson score endpoints for a descriptive binomial proportion on distinct problems."""z=NormalDist().inv_cdf(.975)denominator=1+z*z/ncenter=(proportion+z*z/(2*n))/denominatorradius=z*sqrt(proportion*(1-proportion)/n+z*z/(4*n*n))/denominatorreturn max(0.0,center-radius),min(1.0,center+radius)def collect():100 unmodified linesonline_solvers=online_report.collect_online(ORIGINAL_RESULTS/"new-judges"),solver_fit=fit, solver_fit_assessment=online_report.fit_assessment(fit),newer_judges=collect_frozen(ORIGINAL_RESULTS/"new-judges"), matched_depth=accuracy_grid(source,profile),**contrasts, planned=registered,learnability=learning, profile=profile, original_development=archive,budget=read_json(source/"budget.json"), sealed=(source/"seal.json").is_file(),10 unmodified linesimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltfrom matplotlib.patches import FancyBboxPatchdest = DOCS/"assets"dest.mkdir(parents=True, exist_ok=True)plot_scores(data["newer_judges"],dest/"frozen-judge-scores.png")online_report.plot_online(data["online_solvers"],dest/"online-solvers.png")learning_figure(data["learnability"],dest/"learnability.png")colors = ("#1e5260", "#177267", "#b65127")fig, ax = plt.subplots(figsize=(11, 2.45))ax.set(xlim=(0, 11), ylim=(0, 2.5))ax.axis("off")for i, (title, sub) in enumerate((("Solver","step values"),("Judge 1","solution evidence"),("Judge 2","review of Judge 1"),("Judge 3","review of Judge 2"))):x = .15+2.75*iax.add_patch(FancyBboxPatch((x, .88), 2.15, .95, boxstyle="round,pad=.07",fc="#e8f3f1", ec=colors[0], linewidth=1.5))ax.text(x+1.075, 1.49, title, ha="center", fontsize=13, weight="bold", color=colors[0])ax.text(x+1.075, 1.1, sub, ha="center", fontsize=10)if i < 3:ax.annotate("", (x+2.65, 1.35), (x+2.23,1.35), arrowprops={"arrowstyle":"->","color":colors[0]})ax.text(.12,2.2,"Each reviewer receives the original problem, solver trace and all preceding reports.",fontsize=10,color=colors[0])ax.plot([9.475,9.475,1.225],[.81,.50,.50],color=colors[1],linewidth=1.3)ax.annotate("",(1.225,.82),(1.225,.48),arrowprops={"arrowstyle":"->","color":colors[1]})ax.text(5.35,.51,"Final solution bit supplies the solver’s GRPO reward",ha="center",va="center",fontsize=9.5,color=colors[1],bbox={"facecolor":"white","edgecolor":"none","pad":2})ax.text(.12,.09,"The independent checker labels every field and supplies the exact and hybrid reward arms.",fontsize=9.5, color=colors[0])fig.tight_layout()fig.savefig(dest/"architecture.png", dpi=150, bbox_inches="tight")plt.close(fig)scored = [r for r in data["runs"] if r["dev"] is not None and r["role"] == "solver"]if scored:fig, ax = plt.subplots(figsize=(8, max(2.8,.33*len(scored)+1)))rates=[r["dev"] for r in scored]intervals=[wilson(r["dev"],r["dev_n"]) for r in scored]errors=[[max(0.0,p-lo) for p,(lo,hi) in zip(rates,intervals,strict=True)],[max(0.0,hi-p) for p,(lo,hi) in zip(rates,intervals,strict=True)]]ax.barh([r["name"] for r in scored], rates, color=colors[1],xerr=errors,capsize=3)ax.set(xlim=(0,1), xlabel="Complete-trace development accuracy with 95% Wilson intervals")ax.invert_yaxis()fig.tight_layout()fig.savefig(dest/"outcomes.png", dpi=140)120 unmodified linesline(escape(online_report.conclusion(data["online_solvers"])))line("Motivation and related work","Heading2")line("Wen et al. studied third-order pairwise critique and reward-model-guided best-of-N selection [1]. DeepSeekMath-V2 used a learned meta-verifier to review identified proof defects [2]. Our intervention uses the terminal solution verdict as an online policy reward and tests the review itself through an exact counterfactual. Comparing a chain with three independent votes measures the contribution of reviewing previous claims at a comparable generation budget.")story.append(Image(str(DOCS/"assets/architecture.png"), width=164*mm, height=37*mm))line("Methods","Heading2")line("The Reasoning Gym-derived sampler produces signed-integer expression trees [3]. Each operation has a numbered result. A report names the first erroneous step and its correction, following the first-error formulation used by ProcessBench [4]. An audit identifies the first erroneous field in the previous report, its replacement, and the final verdict on the original solution. A correct final value with a wrong intermediate step fails the complete-trace metric.")line("Policies share the pinned Qwen2.5-1.5B-Instruct backbone and use separate NF4/LoRA role configurations. GRPO uses four samples per prompt, group-scaled rewards, a clipped ratio, and a zero KL coefficient [5]. Solver-only, judge-only and alternating stages isolate which component learns. The control arms use depth one, depth two, a three-vote panel, exact outcomes, exact-gated learned rewards, and within-group shuffled rewards.")272 unmodified linesstatus += f" Every arm uses {profile['family']} problems and {profile['style']} prompts."if "delta" in primary:status += f" Difference {100*primary['delta']:.2f} percentage points, conditional 95% interval [{100*primary['ci'][0]:.2f}, {100*primary['ci'][1]:.2f}]."summary = status+"\n\n"+scoreif data["depth_review"]:summary += f"\n\n[How the third judge changed actual training rewards and worked examples]({GITHUB}/blob/main/reports/reviews/depth-diagnosis.md)."seed = data["depth_review"][0]["seed"]21 unmodified linesfor run in data["runs"]:if run["name"] in ("base","d3-17") and run["completed_development"]:label = "Untrained solver" if run["name"]=="base" else "First three-judge-trained solver"summary += (f"\n\n**{label}.** Every step was correct on {run['dev_correct_n']} of {run['dev_n']} development problems. "f"Of {run['dev_malformed']} malformed outputs, {run['dev_named_correct']} contained all correct numbers as named assignments. "f"Judge 3 corrected {run['fixed']} of Judge 2’s verdicts and introduced {run['harmed']} errors on these traces.")comparisons = list(contrast_rows(data))if comparisons:summary += "\n\n" + markdown(["Contrast", "Seed", "Difference (pp)", "95% lower", "95% upper"], comparisons)10 unmodified linesheadline = confirmation_headline(data['newer_judges'])highlight = f"**Independent frozen-judge confirmation.** {headline}\n\n" if headline else ""online_summary = online_report.online_text(data["online_solvers"])if (DOCS/"assets/online-solvers.png").is_file():online_summary += f"\n\n"online_summary += online_report.solver_examples(data["online_solvers"] or {}) + online_report.fit_text(data["solver_fit"])if data["solver_fit"]:atomic(REPORTS/"reviews/solver-precision.md",online_report.fit_review(ORIGINAL_RESULTS/"solver-fit",data["solver_fit"]))online_summary += f"[Precision trials, paired arithmetic scores and the actual optimizer groups]({GITHUB}/blob/main/reports/reviews/solver-precision.md).\n\n"online_review = online_report.paired_review(data["online_solvers"] or {})if online_review:atomic(REPORTS/"reviews/online-solvers.md",online_review)online_summary += f"[Paired effects and independent reward checks]({GITHUB}/blob/main/reports/reviews/online-solvers.md).\n\n"highlight = online_summary + highlightif data['newer_judges'].get('review'):atomic(REPORTS/'reviews/frozen-confirmation.md',confirmation_review_text(data['newer_judges']))frozen_summary += f"\n\n[Case identities, selection and interval audit]({GITHUB}/blob/main/reports/reviews/frozen-confirmation.md)."15 unmodified linesledger_links += (f" · [Paused solver checkpoint, update {paused['checkpoint_step']}]"f"(https://huggingface.co/{paused['repo']}/tree/{paused['revision']}/{paused['path']})")atomic(REPORTS/"run-inventory.md","# Run inventory\n\n"+ledger+"\n\n"+ledger_links+"\n")atomic(REPORTS/"summary.md","# Study summary\n\n"+highlight+ledger_links+"\n\n"+grid_text.replace("(reports/matched-depth-protocol.md)","(matched-depth-protocol.md)")+summary.replace("(reports/learnability.md)","(learnability.md)")+trajectory_note+"\n\n"+explanation+" [Preregistration](preregistration.md).\n\n"+frozen_summary+"\n\n## Run inventory\n\n"+ledger+"\n")readme = (ROOT/"README.md").read_text(encoding="utf-8")pre, tail = readme.split("<!-- RESULTS:START -->",1)_, post = tail.split("<!-- RESULTS:END -->",1)assets = "\n\n"if (DOCS/"assets/learnability.png").exists():assets += "\n\n"if "delta" in primary:assets += "\n\n"if (DOCS/"assets/outcomes.png").exists():assets += "\n\n"if (DOCS/"assets/examples.png").exists():assets += "\n\n"completed_dev = {r["name"] for r in data["runs"] if r["completed_development"]}completed_final = {r["name"] for r in data["runs"] if r["completed_final"]}schedule = matrix(profile)1 unmodified line("Complete the frozen-judge solver comparison.", all(r.name in completed_dev for r in schedule if r.name.rsplit("-",1)[-1].isdigit())),("Evaluate Judge 3 on natural reviews and paired evidence changes.", {"base","exact-j3","alt-exact-j3","alt-top-j3"} <= completed_final),("Compare exact and top-down judge supervision and alternating training.", all(r.name in completed_dev for r in schedule if not r.name.rsplit("-",1)[-1].isdigit())),("Release complete paired held-out results, positive and negative examples, and the reproducible analysis.",data["completed"] and "delta" in primary)]for label, done in milestones:marker="- [x] " if done else "- [ ] "post=post.replace("- [ ] "+label,marker+label).replace("- [x] "+label,marker+label)diagnostic = readme_depth(data)if diagnostic:diagnostic += "## Study results\n\n"inline_inventory = ("<details>\n<summary>All runs, their results, and what is still scheduled</summary>\n\n"+ledger+"\n\n</details>\n\n")atomic(ROOT/"README.md",pre+"<!-- RESULTS:START -->\n"+highlight+ledger_links+"\n\n"+inline_inventory+grid_text+frozen_summary+"\n\n"+diagnostic+assets+summary+f"\n\n[Interactive results explorer]({PAGES}) · [Paper](reports/paper.pdf)\n<!-- RESULTS:END -->"+post)experiments=REPORTS/"experiments"notes=[]methods=[]38 unmodified linesreferences+="".join(f"\n- [Original {r['name']}]({r['name']}/experiment.md)" for r in data["original_development"])references+="".join(f"\n- [Hardware trial with {r['model']} at {r['precision'].upper()}](solver-fit/{r['key']}/experiment.md)" for r in data["solver_fit"])methods_table=markdown(["Run","Role","Reward","Seed","Problem source","Dev. parsed","Dev. exact","Held-out exact"],methods)atomic(experiments/"experiments.md","# Experiment index\n\n"+online_summary+ledger_links+"\n\nThe original and calibrated training comparisons use grouped reinforcement learning with one active LoRA adapter on Qwen2.5-1.5B-Instruct. The solver predicts values in signed-integer expression trees. Judges predict evidence records about earlier outputs. A parsed output supplies the required number of integers. An exact output also gets every field right. The hardware trials state the backbone and storage precision for each disposable update.\n\n"+methods_table+"\n\n[Update counts and sample sizes](../summary.md) · [Objectives and curricula](../planned-runs.md) · [Analysis protocol](../preregistration.md)\n\n"+references+"\n")link_to_findings = "[Frozen judge comparisons and independent confirmation](new-judges/learnings.md).\n\n" if findings else ""atomic(experiments/"learnings.md","# Experimental learnings\n\n"+online_summary+link_to_findings+("\n".join(notes) or "No experimental observations yet.")+"\n")core=[r for r in data["runs"] if r["name"]!="base" and not r["diagnostic"] and not r["supplemental"]]complete=sum(r["completed_final"] for r in core)trained=sum(r["updates"] is not None for r in core)activity = [online_summary.rstrip(), ledger_links] if online_summary else [ledger_links]operations=read_json(ORIGINAL_RESULTS/"run-snapshot.json",{})if operations.get("campaign")=="deferred":activity.append("The unfinished original optimizer blocks and their sealed evaluation were deferred. "1 unmodified line23456787 unmodified lines16171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091100 unmodified lines19219319419519619719810 unmodified lines209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239120 unmodified lines360361362363364365366367368369272 unmodified lines64264364464564664764864921 unmodified lines67167267367467567667767867968068168268310 unmodified lines69469569669769869970070170270370470570670770870971071171271315 unmodified lines7297307317327337347357367371 unmodified line73974074174274374474574674774874975075175275375475575675775875976076176276376476538 unmodified lines8048058068078088098108118128138148158161 unmodified linefrom collections import defaultdictfrom datetime import datetimefrom statistics import meanfrom zoneinfo import ZoneInfofrom .analysis import evidence_fields, paired_comparison, paired_primary, replay_metrics7 unmodified linesfrom .inventory import GUIDE, HEADERS, grouped, inventory, inventory_markdownfrom .frozen_report import collect_frozen, confirmation_headline, confirmation_review_text, depth_rows as frozen_rows, experiment_pages, frozen_text, interpretation, plot_scoresfrom .matched_tables import accuracy_grid, grid_markdownfrom . import online_report, overview, visual_summaryfrom .overview import replace_region, wilsonfrom .records import named_valuesfrom .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_jsonfrom .tables import contrast_rows, markdown, rate as percent, run_evidence, training_methodDOCS = ROOT / "docs"REPORTS = ROOT / "reports"# Absolute image URLs render both on GitHub and on the Hugging Face dataset card, which publish.py builds from README.md.RAW = f"{GITHUB}/raw/refs/heads/main/docs/assets/"def image(name, alt):"""Markdown image for a generated asset, or nothing when this build did not draw it."""return f"\n\n" if (DOCS/"assets"/name).is_file() else ""def side_by_side(*pictures):"""Up to two generated figures in one row; each opens at full resolution when clicked."""cells = "".join(f'<td width="50%"><a href="{RAW}{name}"><img src="{RAW}{name}" alt="{alt}"></a></td>'for name, alt in pictures if (DOCS/"assets"/name).is_file())return f"<table><tr>{cells}</tr></table>\n\n" if cells else ""def collapsed(summary, body):"""Keep long detail in the README without making readers scroll past it."""return f"<details>\n<summary>{summary}</summary>\n\n{body.strip()}\n\n</details>\n\n" if body.strip() else ""GLANCE_NOTE = ("These are descriptive comparisons on one training seed, each arm answering the same development ""problems as its family's three-judge solver. Intervals resample problems within that seed and are not ""corrected for the number of comparisons; the two judge families are not compared with each other. "f"Pending rows have no finished development evaluation. [Preregistered primary comparison]"f"({GITHUB}/blob/main/reports/preregistration.md) · [Run matrix]({GITHUB}/blob/main/reports/planned-runs.md)")def highlight_region(data):"""README text between the HIGHLIGHTS markers: findings, one-picture summaries, the animation and the design."""text = overview.highlights(data, data["glance"])pictures = side_by_side(("twitter-summary.png", "The study in one image, sized for an X/Twitter post"),("poster.png", "NeurIPS-style poster of the study"))if pictures:text += ("## The study in one picture\n\n" + pictures +"Left: summary card for an X/Twitter post. Right: conference poster. Click an image for full size.\n\n")review = (data["depth_review"] or [{}])[0]example = review.get("credit_example")if example and (DOCS/"assets/walkthrough.gif").is_file():text += ("## Animated walkthrough\n\n" + image("walkthrough.gif", "Animated replay of one logged GRPO update") +f"The animation replays logged update {example['update']} of the seed-{review['seed']} three-judge run ""with Qwen2.5-1.5B-Instruct judges: the problem, the four sampled answers, the exact checker, the rewards ""Judge 2 and Judge 3 gave, the GRPO credit each reward produces, and the whole-run totals. "f"[MP4 video]({RAW}walkthrough.mp4)\n\n")return text + "## Architecture\n\n" + image("architecture.png", "Training loop: solver, three recursive judges, ""exact checker, reward rule and GRPO update")def concrete_links(data):"""Point to the literal model outputs that stay in their narrative sections, so no table is printed twice."""links = []if data["depth_review"]:links += ["[Both trained solvers' answers with each judge's literal report](#what-did-the-solvers-and-judges-actually-write)","[The four answers and rewards behind one logged update](#what-changed-during-training)"]if data["matched_depth"]:links.append("[Every verdict Judge 3 changed on the starting solver's answers](#development-judge-verdict-accuracy)")links.append(f"[Interactive explorer with every judge report]({PAGES})")return " · ".join(links) + "\n\n"def fraction(records, key):return mean(r[key] for r in records) if records else Nonedef collect():100 unmodified linesonline_solvers=online_report.collect_online(ORIGINAL_RESULTS/"new-judges"),solver_fit=fit, solver_fit_assessment=online_report.fit_assessment(fit),newer_judges=collect_frozen(ORIGINAL_RESULTS/"new-judges"), matched_depth=accuracy_grid(source,profile),glance=overview.glance_rows(overview.solver_scores(source, ORIGINAL_RESULTS)),**contrasts, planned=registered,learnability=learning, profile=profile, original_development=archive,budget=read_json(source/"budget.json"), sealed=(source/"seal.json").is_file(),10 unmodified linesimport matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltfrom matplotlib.patches import Patchdest = DOCS/"assets"dest.mkdir(parents=True, exist_ok=True)plot_scores(data["newer_judges"],dest/"frozen-judge-scores.png")online_report.plot_online(data["online_solvers"],dest/"online-solvers.png")learning_figure(data["learnability"],dest/"learnability.png")# Architecture, X/Twitter card, poster and the animated walkthrough share one module and palette.visual_summary.draw_all(data["glance"], data, dest)colors = ("#1e5260", "#177267", "#b65127")scored = [r for r in data["runs"] if r["dev"] is not None and r["role"] == "solver"]if scored:fig, ax = plt.subplots(figsize=(8, max(2.8,.33*len(scored)+1.6)))rates=[r["dev"] for r in scored]intervals=[wilson(r["dev"],r["dev_n"]) for r in scored]errors=[[max(0.0,p-lo) for p,(lo,hi) in zip(rates,intervals,strict=True)],[max(0.0,hi-p) for p,(lo,hi) in zip(rates,intervals,strict=True)]]# Colour each bar by its registered role in the design (overview.ARMS); unregistered runs stay grey.roles = {a.key: a.role for a in overview.ARMS if a.family == "original"}palette = {**visual_summary.ROLE_COLORS, None: "#b9c3c1"}ax.barh([r["name"] for r in scored], rates, color=[palette[roles.get(r["name"])] for r in scored],xerr=errors, capsize=3)ax.set(xlim=(0,1), xlabel="Complete-trace development accuracy with 95% Wilson intervals")ax.legend(handles=[Patch(color=c, label=k) for k, c in visual_summary.ROLE_COLORS.items()],loc="lower center", bbox_to_anchor=(.5, 1.0), ncol=4, frameon=False)ax.invert_yaxis()fig.tight_layout()fig.savefig(dest/"outcomes.png", dpi=140)120 unmodified linesline(escape(online_report.conclusion(data["online_solvers"])))line("Motivation and related work","Heading2")line("Wen et al. studied third-order pairwise critique and reward-model-guided best-of-N selection [1]. DeepSeekMath-V2 used a learned meta-verifier to review identified proof defects [2]. Our intervention uses the terminal solution verdict as an online policy reward and tests the review itself through an exact counterfactual. Comparing a chain with three independent votes measures the contribution of reviewing previous claims at a comparable generation budget.")from reportlab.lib.utils import ImageReader# Keep the drawn aspect ratio; the figure is regenerated by visual_summary.architecture().w,h=ImageReader(str(DOCS/"assets/architecture.png")).getSize()story.append(Image(str(DOCS/"assets/architecture.png"), width=164*mm, height=164*mm*h/w))line("Methods","Heading2")line("The Reasoning Gym-derived sampler produces signed-integer expression trees [3]. Each operation has a numbered result. A report names the first erroneous step and its correction, following the first-error formulation used by ProcessBench [4]. An audit identifies the first erroneous field in the previous report, its replacement, and the final verdict on the original solution. A correct final value with a wrong intermediate step fails the complete-trace metric.")line("Policies share the pinned Qwen2.5-1.5B-Instruct backbone and use separate NF4/LoRA role configurations. GRPO uses four samples per prompt, group-scaled rewards, a clipped ratio, and a zero KL coefficient [5]. Solver-only, judge-only and alternating stages isolate which component learns. The control arms use depth one, depth two, a three-vote panel, exact outcomes, exact-gated learned rewards, and within-group shuffled rewards.")272 unmodified linesstatus += f" Every arm uses {profile['family']} problems and {profile['style']} prompts."if "delta" in primary:status += f" Difference {100*primary['delta']:.2f} percentage points, conditional 95% interval [{100*primary['ci'][0]:.2f}, {100*primary['ci'][1]:.2f}]."# Everything after the run table; summary.md prints the table inline and README.md collapses it.summary = ""if data["depth_review"]:summary += f"\n\n[How the third judge changed actual training rewards and worked examples]({GITHUB}/blob/main/reports/reviews/depth-diagnosis.md)."seed = data["depth_review"][0]["seed"]21 unmodified linesfor run in data["runs"]:if run["name"] in ("base","d3-17") and run["completed_development"]:label = "Untrained solver" if run["name"]=="base" else "First three-judge-trained solver"bad = run["dev_malformed"]malformed = ("It wrote no malformed outputs." if not bad elsef"Of its {bad} malformed output{'s'*(bad!=1)}, {run['dev_named_correct']} contained all correct ""numbers as named assignments.")summary += (f"\n\n**{label}.** Every step was correct on {run['dev_correct_n']} of {run['dev_n']} development problems. "f"{malformed} Judge 3 corrected {run['fixed']} of Judge 2’s verdicts and introduced "f"{run['harmed']} error{'s'*(run['harmed']!=1)} on these traces.")comparisons = list(contrast_rows(data))if comparisons:summary += "\n\n" + markdown(["Contrast", "Seed", "Difference (pp)", "95% lower", "95% upper"], comparisons)10 unmodified linesheadline = confirmation_headline(data['newer_judges'])highlight = f"**Independent frozen-judge confirmation.** {headline}\n\n" if headline else ""online_summary = online_report.online_text(data["online_solvers"])online_figure = image("online-solvers.png", "Exact solver accuracy and the fraction of groups with mixed rewards")solver_examples = online_report.solver_examples(data["online_solvers"] or {})precision = online_report.fit_text(data["solver_fit"])if data["solver_fit"]:atomic(REPORTS/"reviews/solver-precision.md",online_report.fit_review(ORIGINAL_RESULTS/"solver-fit",data["solver_fit"]))precision += f"[Precision trials, paired arithmetic scores and the actual optimizer groups]({GITHUB}/blob/main/reports/reviews/solver-precision.md).\n\n"online_review = online_report.paired_review(data["online_solvers"] or {})review_link = ""if online_review:atomic(REPORTS/"reviews/online-solvers.md",online_review)review_link = f"[Paired effects and independent reward checks]({GITHUB}/blob/main/reports/reviews/online-solvers.md).\n\n"# Reports and experiment notes keep the online results in one block; README.md spreads them over sections.online_full = online_summary + online_figure + solver_examples + precision + review_linkstory = online_full + highlightif data['newer_judges'].get('review'):atomic(REPORTS/'reviews/frozen-confirmation.md',confirmation_review_text(data['newer_judges']))frozen_summary += f"\n\n[Case identities, selection and interval audit]({GITHUB}/blob/main/reports/reviews/frozen-confirmation.md)."15 unmodified linesledger_links += (f" · [Paused solver checkpoint, update {paused['checkpoint_step']}]"f"(https://huggingface.co/{paused['repo']}/tree/{paused['revision']}/{paused['path']})")atomic(REPORTS/"run-inventory.md","# Run inventory\n\n"+ledger+"\n\n"+ledger_links+"\n")atomic(REPORTS/"summary.md","# Study summary\n\n"+story+ledger_links+"\n\n"+grid_text.replace("(reports/matched-depth-protocol.md)","(matched-depth-protocol.md)")+(status+"\n\n"+score+summary).replace("(reports/learnability.md)","(learnability.md)")+trajectory_note+"\n\n"+explanation+" [Preregistration](preregistration.md).\n\n"+frozen_summary+"\n\n## Run inventory\n\n"+ledger+"\n")readme = (ROOT/"README.md").read_text(encoding="utf-8")completed_dev = {r["name"] for r in data["runs"] if r["completed_development"]}completed_final = {r["name"] for r in data["runs"] if r["completed_final"]}schedule = matrix(profile)1 unmodified line("Complete the frozen-judge solver comparison.", all(r.name in completed_dev for r in schedule if r.name.rsplit("-",1)[-1].isdigit())),("Evaluate Judge 3 on natural reviews and paired evidence changes.", {"base","exact-j3","alt-exact-j3","alt-top-j3"} <= completed_final),("Compare exact and top-down judge supervision and alternating training.", all(r.name in completed_dev for r in schedule if not r.name.rsplit("-",1)[-1].isdigit())),("Resume the paused top-down two-judge solver (`top-depth2`) from its saved checkpoint.", "top-depth2" in completed_dev),("Release complete paired held-out results, positive and negative examples, and the reproducible analysis.",data["completed"] and "delta" in primary)]for label, done in milestones:marker="- [x] " if done else "- [ ] "readme=readme.replace("- [ ] "+label,marker+label).replace("- [x] "+label,marker+label)# README order: one role-labelled table, concrete outputs, then every detailed section with its heading unchanged.glance = ("## Results at a glance\n\n"+overview.glance_markdown(data["glance"])+"\n\n"+GLANCE_NOTE+"\n\n"+side_by_side(("online-solvers.png","Exact solver accuracy with frozen Qwen3.5-4B judges and the fraction of groups with mixed rewards"),("outcomes.png","Development solver accuracy for every arm, coloured by role")))concrete = ("## Concrete inputs and outputs\n\n"+solver_examples+image("examples.png","Every run's output on one common development problem, against the exact steps")+concrete_links(data))study_results = ("## Study results\n\n"+image("learnability.png","Learning validation for the exact-reward and shuffled controls")+(image("paired-outcomes.png","Conditional paired held-out effects") if "delta" in primary else "")+status+"\n\n"+collapsed("Updates and development and held-out accuracy for every run", score)+summary.lstrip("\n"))results = (glance+concrete+online_summary+review_link+collapsed("Solver precision and pretraining-only hardware checks", precision)+highlight+ledger_links+"\n\n"+collapsed("All runs, their results, and what is still scheduled", ledger)+grid_text+frozen_summary+"\n\n"+readme_depth(data)+study_results+f"\n\n[Interactive results explorer]({PAGES}) · [Paper](reports/paper.pdf)")readme = replace_region(readme, "HIGHLIGHTS", highlight_region(data), required=False)atomic(ROOT/"README.md", replace_region(readme, "RESULTS", results))experiments=REPORTS/"experiments"notes=[]methods=[]38 unmodified linesreferences+="".join(f"\n- [Original {r['name']}]({r['name']}/experiment.md)" for r in data["original_development"])references+="".join(f"\n- [Hardware trial with {r['model']} at {r['precision'].upper()}](solver-fit/{r['key']}/experiment.md)" for r in data["solver_fit"])methods_table=markdown(["Run","Role","Reward","Seed","Problem source","Dev. parsed","Dev. exact","Held-out exact"],methods)atomic(experiments/"experiments.md","# Experiment index\n\n"+online_full+ledger_links+"\n\nThe original and calibrated training comparisons use grouped reinforcement learning with one active LoRA adapter on Qwen2.5-1.5B-Instruct. The solver predicts values in signed-integer expression trees. Judges predict evidence records about earlier outputs. A parsed output supplies the required number of integers. An exact output also gets every field right. The hardware trials state the backbone and storage precision for each disposable update.\n\n"+methods_table+"\n\n[Update counts and sample sizes](../summary.md) · [Objectives and curricula](../planned-runs.md) · [Analysis protocol](../preregistration.md)\n\n"+references+"\n")link_to_findings = "[Frozen judge comparisons and independent confirmation](new-judges/learnings.md).\n\n" if findings else ""atomic(experiments/"learnings.md","# Experimental learnings\n\n"+online_full+link_to_findings+("\n".join(notes) or "No experimental observations yet.")+"\n")core=[r for r in data["runs"] if r["name"]!="base" and not r["diagnostic"] and not r["supplemental"]]complete=sum(r["completed_final"] for r in core)trained=sum(r["updates"] is not None for r in core)activity = [online_full.rstrip(), ledger_links] if online_full else [ledger_links]operations=read_json(ORIGINAL_RESULTS/"run-snapshot.json",{})if operations.get("campaign")=="deferred":activity.append("The unfinished original optimizer blocks and their sealed evaluation were deferred. "
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360"""Paper-style overview figures: architecture, X/Twitter summary card, poster, and an animated reward walkthrough.
Global context: `report.figures()` calls `draw_all()` after the per-experiment plots. Every number drawn herecomes from the role-labelled rows of `overview.glance_rows()` or from the verified study data; design constants inthe architecture diagram are the training settings in training.py (TRL GRPOConfig) and records.py."""
from textwrap import fill
from .design import GITHUBfrom .overview import FAMILIES, group_advantages
ROLE_COLORS = {"Method": "#3f6fb0", "Baseline": "#23796c", "Control": "#6f7d7c", "Ablation": "#8a62a8"}INK, PAPER, ACCENT = "#173a43", "#f4f8f7", "#b65127"SHORT = {"base": "Start", "d1-17": "1 judge", "d2-17": "2 judges", "d3-17": "3 judges", "flat-17": "3 votes", "oracle-17": "Exact", "hybrid-17": "J3 × exact", "shuffle-17": "Shuffled", "new-judges/winner-d1": "1 judge", "new-judges/winner-d2": "2 judges", "new-judges/winner-d3": "3 judges"}HEADLINE = {"frozen": ("base", "new-judges/winner-d1", "new-judges/winner-d2", "new-judges/winner-d3"), "original": ("base", "d1-17", "d2-17", "d3-17", "flat-17", "oracle-17", "hybrid-17", "shuffle-17")}OUTPUTS = ("architecture.png", "twitter-summary.png", "poster.png", "walkthrough.gif", "walkthrough.mp4")
def pyplot(): import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt return plt
def box(ax, x, y, w, h, title, body, face="#e8f3f1", edge=INK, size=10.5): """A rounded block with a bold title and wrapped body lines, as in ML architecture figures.""" from matplotlib.patches import FancyBboxPatch ax.add_patch(FancyBboxPatch((x, y), w, h, boxstyle="round,pad=.06,rounding_size=.12", fc=face, ec=edge, lw=1.6)) ax.text(x+w/2, y+h-.28, title, ha="center", va="top", fontsize=size+1.5, weight="bold", color=edge) ax.text(x+w/2, y+h-.75, body, ha="center", va="top", fontsize=size, color="#1d2b2e", linespacing=1.35)
def arrow(ax, start, end, color=INK, dashed=False, text=None, offset=(0, .18), curve=0): ax.annotate("", end, start, arrowprops=dict(arrowstyle="-|>", color=color, lw=1.5, ls="--" if dashed else "-", shrinkA=2, shrinkB=2, connectionstyle=f"arc3,rad={curve}")) if text: ax.text((start[0]+end[0])/2+offset[0], (start[1]+end[1])/2+offset[1], text, ha="center", fontsize=9.5, color=color, bbox=dict(fc="white", ec="none", pad=1.5))
def architecture(path): """Training and evaluation loop. Constants: num_generations=4, epsilon=0.2, beta=0, LoRA r=16 (training.py).""" plt = pyplot() fig, ax = plt.subplots(figsize=(16, 7.6)) ax.set(xlim=(0, 19), ylim=(0, 8.6)) ax.axis("off") green = "#3d7a3a" box(ax, .2, 4.7, 2.6, 2.1, "Problem sampler", "(a ± b) ± c, fresh\nproblem per update\ne.g. (18 − 11) − 3", PAPER) box(ax, 3.3, 4.7, 3.0, 2.1, "Solver · trained", "Qwen2.5-1.5B-Instruct\nNF4 base + LoRA (r = 16)\nwrites every step: 7,4", "#fbe9df", ACCENT) judges = (("Judge 1", "verdict, first wrong\nstep, value\n→ 1,0,4"), ("Judge 2", "audits Judge 1,\nre-grades the solver\n→ 1,0,4,1,0,4"), ("Judge 3", "audits Judge 2,\nre-grades the solver\n→ 1,0,4,1,0,4")) for i, (title, body) in enumerate(judges): box(ax, 7.0+2.6*i, 4.7, 2.3, 2.1, title, body, "#e6eef8", ROLE_COLORS["Method"], 10) ax.text(10.95, 7.35, "Frozen LLM judges: Qwen2.5-1.5B-Instruct or Qwen3.5-4B. Each reads the problem, the " "solver's trace and every earlier report.", ha="center", fontsize=11, color=ROLE_COLORS["Method"]) ax.plot([7.0, 14.5], [7.1, 7.1], color=ROLE_COLORS["Method"], lw=1.2) box(ax, 15.1, 3.0, 3.75, 3.8, "Reward rule", "one rule per arm\nD1 / D2 / D3: last judge's\nsolution verdict (0 or 1)\nflat: majority of three\n" "independent Judge 1 calls\noracle: exact checker bit\nhybrid: D3 × exact bit\nshuffle: D3, permuted in group", "#f1ecf7", ROLE_COLORS["Ablation"], 10) box(ax, 3.3, 2.0, 9.0, 2.05, "GRPO update (TRL GRPOTrainer)", "4 sampled traces per problem; credit A = (r − mean) / (sd + 0.0001)\n" "clipped ratio ε = 0.2, no KL term (β = 0); only the LoRA weights change\n" "identical rewards in a group give zero credit", PAPER) box(ax, .2, .15, 18.65, 1.45, "Exact integer checker", "executes every numbered step and labels every solver and judge field · scores every evaluation · " "is the reward only in the oracle and hybrid arms", "#eef6ec", green) arrow(ax, (2.85, 5.75), (3.28, 5.75)) arrow(ax, (6.35, 5.75), (6.98, 5.75), text="×4", offset=(0, .2)) for i in range(2): arrow(ax, (9.33+2.6*i, 5.75), (9.58+2.6*i, 5.75)) arrow(ax, (14.53, 5.75), (15.08, 5.75)) arrow(ax, (15.08, 3.5), (12.33, 3.0), text="rewards r", offset=(0, .25)) arrow(ax, (4.8, 4.08), (4.8, 4.67), text="LoRA update", offset=(-1.05, -.1)) arrow(ax, (17.0, 1.63), (17.0, 2.97), green, dashed=True, text="exact bit", offset=(.75, -.1)) fig.savefig(path, dpi=150, bbox_inches="tight", facecolor="white") plt.close(fig)
def pick(table, family, keys): found = {r["key"]: r for r in table if r["family"] == family and r["correct"] is not None} return [found[k] for k in keys if k in found]
def score_bars(ax, records, title, label_size=10): """Vertical bars with Wilson 95% intervals and literal denominators; the axis always starts at zero.""" heights = [100*r["correct"]/r["n"] for r in records] lows = [h-100*r["interval"][0] for h, r in zip(heights, records, strict=True)] highs = [100*r["interval"][1]-h for h, r in zip(heights, records, strict=True)] xs = range(len(records)) ax.bar(xs, heights, color=[ROLE_COLORS[r["role"]] for r in records], yerr=[lows, highs], capsize=4, error_kw=dict(lw=1.1, color="#33413f")) for x, r, h, top in zip(xs, records, heights, highs, strict=True): ax.text(x, h+top+2, f"{r['correct']}/{r['n']}", ha="center", fontsize=label_size, color=INK) ax.set(xticks=list(xs), ylim=(0, 115), yticks=[0, 25, 50, 75, 100], ylabel="Exact solutions (%)") ax.set_xticklabels([SHORT.get(r["key"], r["key"]) for r in records], fontsize=label_size) ax.set_title(title, fontsize=label_size+2, loc="left", color=INK) ax.spines[["top", "right"]].set_visible(False)
def role_legend(fig, y, size=11): from matplotlib.patches import Patch fig.legend(handles=[Patch(color=c, label=role) for role, c in ROLE_COLORS.items()], loc="lower center", ncol=4, frameon=False, fontsize=size, bbox_to_anchor=(.5, y))
def takeaways(table, data): """Three numeric sentences shared by the card and the poster.""" lines = [] contrasts = (data.get("online_solvers") or {}).get("three_depths", {}).get("contrasts", {}) for key, text in (("two_minus_one", "Qwen3.5-4B judges · 2 minus 1 judge"), ("three_minus_two", "Qwen3.5-4B judges · 3 minus 2 judges")): if key in contrasts: c = contrasts[key] lines.append(f"{text}: {100*c['delta']:+.1f} pp, 95% CI [{100*c['interval'][0]:+.1f}, " f"{100*c['interval'][1]:+.1f}]") two = pick(table, "original", ("d2-17",)) if two and two[0]["change"]: # The table stores two minus three; negating the shared bootstrap draws gives three minus two. c = two[0]["change"] lines.append(f"Qwen2.5-1.5B judges · 3 minus 2 judges: {-100*c['delta']:+.1f} pp, 95% CI " f"[{-100*c['interval'][1]:+.1f}, {-100*c['interval'][0]:+.1f}]") return lines
def cohort(table): sizes = sorted({r["n"] for r in table if r["n"]}) return f"Single seed · {' or '.join(map(str, sizes))} development problems"
def twitter_card(table, data, path): plt = pyplot() fig = plt.figure(figsize=(16, 9), facecolor="white") fig.text(.04, .93, "Does a third LLM judge improve GRPO rewards?", fontsize=30, weight="bold", color=INK) fig.text(.04, .875, "Verifying a verifier of a verifier: a solver learns from the verdict of 1, 2 or 3 recursive " "LLM judges, and an exact checker grades everything.", fontsize=15, color="#355") axes = [fig.add_axes(rect) for rect in ((.05, .3, .36, .5), (.47, .3, .5, .5))] for ax, family in zip(axes, ("frozen", "original"), strict=True): score_bars(ax, pick(table, family, HEADLINE[family]), FAMILIES[family], 12) role_legend(fig, .205, 13) for i, line in enumerate(takeaways(table, data)): fig.text(.05, .16-.04*i, "• "+line, fontsize=14.5, color=INK) fig.text(.05, .045, cohort(table) + " · error bars: Wilson 95% · differences: paired bootstrap 95% CI", fontsize=11.5, color="#556") fig.text(.05, .015, GITHUB.removeprefix("https://"), fontsize=11.5, color="#556") fig.text(.97, .015, "Libor “Burny” Burian · Hypercurious Lab", fontsize=11.5, color="#556", ha="right") fig.savefig(path, dpi=100) plt.close(fig)
def all_original(ax, table): """Horizontal bars for every original-judge arm, coloured by role, with Wilson intervals.""" records = pick(table, "original", [r["key"] for r in table if r["family"] == "original"]) ys = range(len(records)) values = [100*r["correct"]/r["n"] for r in records] errors = [[v-100*r["interval"][0] for v, r in zip(values, records, strict=True)], [100*r["interval"][1]-v for v, r in zip(values, records, strict=True)]] ax.barh(ys, values, xerr=errors, color=[ROLE_COLORS[r["role"]] for r in records], capsize=3) for y, r, v in zip(ys, records, values, strict=True): ax.text(101, y, f"{r['correct']}/{r['n']}", va="center", fontsize=15, color=INK) ax.set(yticks=list(ys), xlim=(0, 112), xticks=[0, 25, 50, 75, 100], xlabel="Exact development solutions (%)") ax.set_yticklabels([r["key"] for r in records], fontsize=15) ax.invert_yaxis() ax.spines[["top", "right"]].set_visible(False) ax.set_title("Every arm with Qwen2.5-1.5B-Instruct judges", loc="left", fontsize=21, color=INK)
def panel(fig, rect, title, text, size=15): ax = fig.add_axes(rect) ax.axis("off") ax.set_title(title, loc="left", fontsize=21, weight="bold", color=INK) ax.text(0, 1, text, va="top", fontsize=size, color="#1d2b2e", linespacing=1.45, transform=ax.transAxes) return ax
def example_lines(example): """Text rows for the logged update shown in the walkthrough, with TRL advantages for both reward rules.""" second, third = ([s[column] for s in example["samples"]] for column in (2, 3)) a2, a3 = group_advantages(second), group_advantages(third) rows = [f"{'Answer':8}{'Checker':10}{'J2 r':>6}{'A':>7}{'J3 r':>7}{'A':>7}"] for (answer, label, *_), r2, x2, r3, x3 in zip(example["samples"], second, a2, third, a3, strict=True): rows.append(f"{answer:8}{'correct' if label else 'wrong':10}{r2:>6}{x2:>+7.2f}{r3:>7}{x3:>+7.2f}") return rows
def poster(table, data, path, architecture_png): """A landscape poster: question, method, setup, results, training dynamics, evidence audit and a real example.""" plt = pyplot() style = {"font.size": 16, "axes.labelsize": 17, "xtick.labelsize": 15, "ytick.labelsize": 15} with plt.rc_context(style): fig = plt.figure(figsize=(33.1, 23.4), facecolor="white") fig.patches.append(plt.Rectangle((0, .905), 1, .095, transform=fig.transFigure, color=INK, zorder=-1)) fig.text(.02, .955, "Verifying a verifier of a verifier: does a third LLM judge improve GRPO rewards?", fontsize=46, weight="bold", color="white", va="center") fig.text(.02, .92, "Libor “Burny” Burian · Hypercurious Lab · " + GITHUB.removeprefix("https://"), fontsize=24, color="#d8ecea", va="center") panel(fig, (.02, .76, .30, .11), "Question", fill("DeepSeekMath-V2 and others let a second LLM judge check the first. We add a third judge that " "checks the second and use its verdict as an online GRPO reward for a small solver. Does the extra " "review make the reward more accurate and the trained solver better? An exact integer checker " "grades every solver step and every judge field.", 56), 18) image = fig.add_axes((.015, .44, .315, .29)) image.imshow(plt.imread(architecture_png)) image.axis("off") image.set_title("Method", loc="left", fontsize=24, weight="bold", color=INK) panel(fig, (.02, .04, .30, .36), "Setup", fill("Solver: Qwen2.5-1.5B-Instruct, NF4 base with a rank-16 LoRA adapter. Judges: frozen " "Qwen2.5-1.5B-Instruct (original study) or frozen Qwen3.5-4B (newer study). Task: two-step " "addition and subtraction, (a ± b) ± c; a solution counts only when every intermediate value is " "correct. " + cohort(table) + ".", 56) + "\n\n" + fill("GRPO in TRL: four samples per problem, group-scaled advantages, clipped ratio 0.2, no " "KL term. Every arm uses the same seed, initial adapter, prompt order and update budget; " "only the reward rule changes. Baselines: one or two judges and three independent votes. " "Controls: no training, exact reward, shuffled reward. Ablations: checker-gated reward " "and pre-trained judge stacks.", 56), 18) score_bars(fig.add_axes((.38, .63, .26, .22)), pick(table, "frozen", HEADLINE["frozen"]), FAMILIES["frozen"], 17) all_original(fig.add_axes((.44, .10, .20, .45)), table) role_legend(fig, .015, 22) primary = data.get("primary", {}) lines = takeaways(table, data) + ([cohort(table) + "; the preregistered held-out comparison is pending."] if "delta" not in primary else []) panel(fig, (.69, .73, .29, .13), "Key results", "\n".join("• "+fill(line, 50) for line in lines), 18) review = (data.get("depth_review") or [None])[0] if review: ax = fig.add_axes((.715, .47, .26, .17)) for arm, color, name in (("two", ROLE_COLORS["Baseline"], "2-judge run"), ("three", ROLE_COLORS["Method"], "3-judge run")): windows = review[arm]["quarters"] x = [w["last_update"] for w in windows] ax.plot(x, [100*w["correct"]/w["n"] for w in windows], "o-", color=color, lw=3, label=name+": exact") ax.plot(x, [100*(w["rewarded_correct"]+w["rewarded_wrong"])/w["n"] for w in windows], "s--", color=color, lw=2.5, label=name+": rewarded") ax.set(ylim=(0, 100), xticks=x, xlabel="Last update in training quarter", ylabel="Sampled answers (%)") ax.set_title(f"Training quarters · Qwen2.5-1.5B judges · seed {review['seed']}", loc="left", fontsize=21, color=INK) ax.legend(fontsize=15, frameon=False, ncol=2, loc="upper center", bbox_to_anchor=(.5, -.2)) ax.spines[["top", "right"]].set_visible(False) frozen = data.get("newer_judges") or {} if frozen.get("review"): records = {r["key"]: r for r in frozen["results"]} ax = fig.add_axes((.75, .235, .22, .11)) names = [records[k]["model"] for k in ("confirm-winner", "confirm-control")] twins = [records[k]["metrics"]["twins"] for k in ("confirm-winner", "confirm-control")] for offset, field, shade in ((-.2, "visible", ROLE_COLORS["Method"]), (.2, "masked", ROLE_COLORS["Control"])): ax.barh([i+offset for i in range(2)], [100*t[field]/t["n"] for t in twins], height=.38, color=shade, label=f"evidence {field}") for i, t in enumerate(twins): ax.text(100*t[field]/t["n"]+1, i+offset, f"{t[field]}/{t['n']}", va="center", fontsize=15) ax.set(yticks=[0, 1], xlim=(0, 100), xlabel="Evidence pairs fully audited by Judge 3 (%)") ax.set_yticklabels(names) ax.invert_yaxis() ax.legend(fontsize=15, frameon=False, loc="lower right") ax.set_title("Evidence audit: one number in Judge 2's report altered", loc="left", fontsize=21, color=INK) ax.spines[["top", "right"]].set_visible(False) if review and review.get("credit_example"): e = review["credit_example"] ax = panel(fig, (.69, .03, .29, .14), f"Logged update {e['update']}: {e['expression']}", "", 16) ax.text(0, .95, "\n".join(example_lines(e)) + "\nA: TRL group credit under each reward", va="top", family="monospace", fontsize=17, transform=ax.transAxes) fig.savefig(path, dpi=90) plt.close(fig)
def walkthrough(review, gif, mp4): """Animate one real logged GRPO group: answers, checker, Judge 2 and Judge 3 rewards, TRL credit, whole run.""" plt = pyplot() import imageio_ffmpeg from matplotlib import animation, rcParams
from .domain import Problem from .learning_review import execute_steps from .paired_examples import explain_report
example = review["credit_example"] steps = ",".join(map(str, execute_steps(Problem.from_expression(example["expression"])))) labels = [int(s[1]) for s in example["samples"]] second, third = ([s[column] for s in example["samples"]] for column in (2, 3)) advantages = [group_advantages(second), group_advantages(third)]
def paid(bits, wanted): return f"{sum(b for b, y in zip(bits, labels, strict=True) if y == wanted)}/{labels.count(wanted)}"
stages = ("Problem", "Solver", "Checker", "Judge 2", "Judge 3", "GRPO credit", "Whole run") captions = (f"Logged GRPO update {example['update']} of the three-judge run with Qwen2.5-1.5B-Instruct judges. " f"Exact steps: {steps}.", f"The solver samples {len(labels)} answers to the same problem.", "The exact integer checker grades every step. It is not the reward in this run.", f"Judge 2, which reviews Judge 1, rewards {paid(second, 1)} correct and {paid(second, 0)} wrong answers.", f"Judge 3 reviews Judge 2 and rewards {paid(third, 1)} correct and {paid(third, 0)} wrong answers. " "Judge 3's verdict is the reward.", "TRL credit = (r − mean) / (sd + 0.0001) within the group of four.", fill(f"Across all {review['groups']} updates, Judge 3 fixed {review['fixes']} of Judge 2's verdicts and " f"spoiled {review['harms']}. Paying Judge 2's verdict instead would have changed the relative " f"credit in {review['changed_groups']}/{review['groups']} updates.", 110)) headers = ("Solver wrote", "Checker", "Judge 2 says", "Judge 3 says", "Credit if J2 paid", "Credit J3 paid") columns = (0, 1, 2, 3, 4, 6, 6) good, bad = "#2f7a39", ACCENT fig = plt.figure(figsize=(12.8, 7.2), facecolor="white")
def draw(stage): fig.clear() fig.text(.04, .92, example["expression"], fontsize=30, weight="bold", color=INK) fig.text(.04, .855 if stage < 6 else .82, captions[stage], fontsize=14.5, color="#244") for i, name in enumerate(stages): fig.text(.04+.135*i, .74, name, fontsize=13, weight="bold", color=bad if i == stage else ("#9ab" if i > stage else INK)) shown = columns[stage] for j, header in enumerate(headers[:shown]): fig.text(.06+.15*j, .65, header, fontsize=13, weight="bold", color=INK) for i, (answer, label, j2, j3) in enumerate(example["samples"]): sign = [(a[i] > 0) == bool(label) or abs(a[i]) < 1e-9 for a in advantages] cells = [(answer, INK), ("correct" if label else "wrong", INK), (str(j2), good if j2 == label else bad), (str(j3), good if j3 == label else bad), (f"{advantages[0][i]:+.2f}", good if sign[0] else bad), (f"{advantages[1][i]:+.2f}", good if sign[1] else bad)] for j, (value, color) in enumerate(cells[:shown]): fig.text(.06+.15*j, .55-.1*i, value, fontsize=19, family="monospace", color=color) if stage in (3, 4): report = example["reports"][0][stage-3] meaning = explain_report(report, stage-1, example["samples"][0][stage-1]).split("<br>")[0] fig.text(.06, .1, fill(f"First answer: Judge {stage-1} wrote {report}. {meaning}", 125), fontsize=12, color="#355") if stage >= 3: fig.text(.06, .035, "Green: agrees with the exact checker (reward) or has the right sign (credit). " "Orange: disagrees.", fontsize=11.5, color="#556")
sequence = [stage for stage in range(len(stages)) for _ in range(5)] + [len(stages)-1]*5 movie = animation.FuncAnimation(fig, draw, frames=sequence, interval=500) movie.save(gif, writer=animation.PillowWriter(fps=2)) # imageio-ffmpeg ships a static ffmpeg binary; yuv420p keeps the H.264 file playable in browsers. rcParams["animation.ffmpeg_path"] = imageio_ffmpeg.get_ffmpeg_exe() movie.save(mp4, writer=animation.FFMpegWriter(fps=2, codec="libx264", extra_args=["-pix_fmt", "yuv420p"])) plt.close(fig)
def draw_all(table, data, dest): """Draw what the evidence supports and delete outputs whose inputs are absent, so stale media never linger.""" architecture(dest/"architecture.png") scored = any(r["correct"] is not None for r in table) if scored: twitter_card(table, data, dest/"twitter-summary.png") poster(table, data, dest/"poster.png", dest/"architecture.png") review = (data.get("depth_review") or [{}])[0] or {} example = review.get("credit_example") if example: walkthrough(review, dest/"walkthrough.gif", dest/"walkthrough.mp4") for name, available in (("twitter-summary.png", scored), ("poster.png", scored), ("walkthrough.gif", example), ("walkthrough.mp4", example)): if not available: (dest/name).unlink(missing_ok=True)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081"""Check the generated top-of-README summaries on artificial per-problem outcomes."""
import json
import pytest
from study.overview import (ARMS, glance_markdown, glance_rows, group_advantages, replace_region, solver_scores, verdict)
def test_replace_region_rewrites_each_marked_block_and_keeps_hand_written_text(): text = "Head\n<!-- A:START -->\nold a\n<!-- A:END -->\nMiddle\n<!-- B:START -->old b<!-- B:END -->\nTail\n" text = replace_region(text, "A", "new a") text = replace_region(text, "B", "new b") assert text == "Head\n<!-- A:START -->\nnew a\n<!-- A:END -->\nMiddle\n<!-- B:START -->\nnew b\n<!-- B:END -->\nTail\n"
def test_replace_region_tolerates_an_optional_missing_region_but_not_a_required_one(): assert replace_region("Fixture\n", "HIGHLIGHTS", "x", required=False) == "Fixture\n" with pytest.raises(ValueError): replace_region("Fixture\n", "RESULTS", "x")
def write_replay(folder, outcomes, name="replay.jsonl"): folder.mkdir(parents=True, exist_ok=True) (folder/"development.json").write_text("{}", encoding="utf-8") (folder/name).write_text("".join(json.dumps(dict(key=f"p{i}", correct=c))+"\n" for i, c in enumerate(outcomes)), encoding="utf-8")
def test_rows_label_roles_and_compare_every_arm_with_three_judges_on_the_same_problems(tmp_path): source, root = tmp_path/"calibrated", tmp_path n = 32 write_replay(source/"base", [1]*16+[0]*16) write_replay(source/"d3-17", [0]*n) write_replay(source/"oracle-17", [1]*n) write_replay(source/"d2-17", [0]*(n-1)+[1]) write_replay(root/"new-judges/winner-d3", [1]*n, "solutions.jsonl") write_replay(root/"new-judges/winner-d2", [1]*n, "solutions.jsonl") rows = glance_rows(solver_scores(source, root)) by_key = {(r["family"], r["key"]): r for r in rows} oracle = by_key["original", "oracle-17"] assert (oracle["role"], oracle["correct"], oracle["n"]) == ("Control", n, n) assert oracle["change"]["delta"] == 1 and oracle["change"]["interval"] == [1, 1] assert verdict(oracle["change"]) == "higher" assert verdict(by_key["original", "d2-17"]["change"]) == "not distinguishable" assert by_key["original", "d3-17"]["change"] is None and by_key["original", "d3-17"]["role"] == "Method" # A registered arm without a development receipt is shown as pending, never as a score. assert by_key["original", "flat-17"]["correct"] is None assert by_key["frozen", "new-judges/winner-d2"]["change"]["delta"] == 0 table = glance_markdown(rows) assert "Pending" in table and "32/32 (100.0%)" in table and "+100.00" in table assert "Higher than three judges" in table and "Not distinguishable from three judges" in table assert "exact checker reward (`oracle-17`" in table
def test_rows_skip_arms_whose_problems_differ_from_the_starting_solver(tmp_path): source = tmp_path/"calibrated" write_replay(source/"base", [1, 0]) write_replay(source/"d3-17", [1, 0, 1]) rows = glance_rows(solver_scores(source, tmp_path)) assert next(r for r in rows if r["key"] == "d3-17")["correct"] is None
def test_verdict_requires_the_whole_interval_on_one_side_of_zero(): assert verdict(dict(interval=[-.15625, 0.0])) == "not distinguishable" assert verdict(dict(interval=[-.9, -.4])) == "lower" assert verdict(dict(interval=[.1, .5])) == "higher"
def test_group_advantages_follow_trl_group_scaling_with_bessel_correction(): # TRL 1.19 GRPOTrainer: (r - mean) / (nanstd + 1e-4), nanstd applies count/(count-1). values = group_advantages([1, 1, 0, 0]) assert values[0] == pytest.approx(.5/(3**-.5+1e-4)) assert values[2] == pytest.approx(-values[0]) assert group_advantages([1, 1, 1, 1]) == [0, 0, 0, 0]
def test_every_registered_family_has_exactly_one_method_arm(): for family in {a.family for a in ARMS}: assert sum(a.role == "Method" for a in ARMS if a.family == family) == 112 unmodified lines1314151617181937 unmodified lines575859606162636465666712 unmodified linesdef test_full_release_from_synthetic_raw_records(tmp_path):results=tmp_path/"results"(tmp_path/"README.md").write_text("Fixture\n<!-- RESULTS:START -->\n<!-- RESULTS:END -->\n",encoding="utf-8")natural=dict(key="fixture-common",expression="(2+3)*4",problem=["s1 = 2 + 3","s2 = s1 * 4"],trace="5,20",expected_values=[5,20],correct=1,final_correct=1,malformed=False,split="dev",reports=["1,0,20","1,0,20,1,0,20","1,0,20,1,0,20"],votes=["1,0,20"]*3,verdicts=[1]*3,37 unmodified linespaper=PdfReader(tmp_path/"reports/paper.pdf")assert "AI statement" in paper.pages[-1].extract_text()assert "D3" in (tmp_path/"reports/summary.md").read_text(encoding="utf-8")# Regenerating from a second, empty results directory must not show the previous study's plots.env["STUDY_RESULTS"]=str(tmp_path/"empty-results")subprocess.run([sys.executable,"-m","study.cli","report"],cwd=tmp_path,env=env,check=True,capture_output=True)assert not (tmp_path/"docs/assets/paired-outcomes.png").exists()assert "outcomes.png" not in (tmp_path/"README.md").read_text(encoding="utf-8")def test_learning_figure_contains_only_observed_conditions_and_is_removed_when_empty(tmp_path):12 unmodified lines131415161718192037 unmodified lines585960616263646566676869707172737475767778798081828312 unmodified linesdef test_full_release_from_synthetic_raw_records(tmp_path):results=tmp_path/"results"(tmp_path/"README.md").write_text("Fixture\n<!-- HIGHLIGHTS:START -->\n<!-- HIGHLIGHTS:END -->\nHand-written\n""<!-- RESULTS:START -->\n<!-- RESULTS:END -->\n",encoding="utf-8")natural=dict(key="fixture-common",expression="(2+3)*4",problem=["s1 = 2 + 3","s2 = s1 * 4"],trace="5,20",expected_values=[5,20],correct=1,final_correct=1,malformed=False,split="dev",reports=["1,0,20","1,0,20,1,0,20","1,0,20,1,0,20"],votes=["1,0,20"]*3,verdicts=[1]*3,37 unmodified linespaper=PdfReader(tmp_path/"reports/paper.pdf")assert "AI statement" in paper.pages[-1].extract_text()assert "D3" in (tmp_path/"reports/summary.md").read_text(encoding="utf-8")readme=(tmp_path/"README.md").read_text(encoding="utf-8")assert "Hand-written" in readme and "## Key results" in readme and "## Results at a glance" in readmeassert_media_match_readme(tmp_path)# Regenerating from a second, empty results directory must not show the previous study's plots.env["STUDY_RESULTS"]=str(tmp_path/"empty-results")subprocess.run([sys.executable,"-m","study.cli","report"],cwd=tmp_path,env=env,check=True,capture_output=True)assert not (tmp_path/"docs/assets/paired-outcomes.png").exists()assert "outcomes.png" not in (tmp_path/"README.md").read_text(encoding="utf-8")for name in ("twitter-summary.png","poster.png","walkthrough.gif","walkthrough.mp4"):assert not (tmp_path/"docs/assets"/name).exists()assert_media_match_readme(tmp_path)def assert_media_match_readme(root):"""README images use absolute URLs (they also render on the Hugging Face card) and name only drawn files."""readme=(root/"README.md").read_text(encoding="utf-8")assert "](docs/assets/" not in readme and 'src="docs/assets/' not in readmeassert (root/"docs/assets/architecture.png").stat().st_size>1000for name in ("architecture.png","twitter-summary.png","poster.png","walkthrough.gif","walkthrough.mp4"):assert ((root/"docs/assets"/name).exists())==(f"docs/assets/{name}" in readme), namedef test_learning_figure_contains_only_observed_conditions_and_is_removed_when_empty(tmp_path):
333 unmodified lines334335336337338339467 unmodified lines80780880981081181219 unmodified lines832833834835836837333 unmodified lines{ url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },][[package]]name = "iniconfig"version = "2.3.1"467 unmodified linesversion = "0.1.0"source = { editable = "." }dependencies = [{ name = "matplotlib" },{ name = "numpy" },{ name = "pypdf" },19 unmodified lines{ name = "accelerate", marker = "extra == 'gpu'", specifier = ">=1.12" },{ name = "bitsandbytes", marker = "extra == 'gpu'", specifier = "==0.50.2" },{ name = "datasets", marker = "extra == 'gpu'", specifier = ">=4.7" },{ name = "matplotlib", specifier = ">=3.9" },{ name = "numpy", specifier = ">=2.0" },{ name = "peft", marker = "extra == 'gpu'", specifier = "==0.22.0" },333 unmodified lines334335336337338339340341342343344345346347348349467 unmodified lines81781881982082182282319 unmodified lines843844845846847848849333 unmodified lines{ url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },][[package]]name = "imageio-ffmpeg"version = "0.8.2"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/ee/2c/33984d8484293367e34c810e8c871559c48ca8bdb2e1ad153326ad0efcb9/imageio_ffmpeg-0.8.2.tar.gz", hash = "sha256:f818b96bcc4af49ac5fd91c69c9b3b4dbb1ed7a7f2209c27f623ccecf38f2be3", size = 28219, upload-time = "2026-11-27T09:42:37.803Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/5d/14/3b70aad546d18016d41ab45f41046ea0ab857a9b353fdf12f3f07a7a6f15/imageio_ffmpeg-0.8.2-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:4749aa8d7c46c0c194373e97d0dba0b8cee66cd1c4fcea84a91ac37d46f79dc1", size = 67998765, upload-time = "2026-11-27T09:42:25.871Z" },{ url = "https://files.pythonhosted.org/packages/d9/07/73b19acba7237928a8199c5526d9370b842bf51db457c4cbe835d7d2b9cd/imageio_ffmpeg-0.8.2-py3-none-win_amd64.whl", hash = "sha256:c5d528e1daa9c17c71d7a600c31e1a0983ca739a20dd014159b2b7431b0b1ea7", size = 38893844, upload-time = "2026-11-27T09:42:32.586Z" },][[package]]name = "iniconfig"version = "2.3.1"467 unmodified linesversion = "0.1.0"source = { editable = "." }dependencies = [{ name = "imageio-ffmpeg" },{ name = "matplotlib" },{ name = "numpy" },{ name = "pypdf" },19 unmodified lines{ name = "accelerate", marker = "extra == 'gpu'", specifier = ">=1.12" },{ name = "bitsandbytes", marker = "extra == 'gpu'", specifier = "==0.50.2" },{ name = "datasets", marker = "extra == 'gpu'", specifier = ">=4.7" },{ name = "imageio-ffmpeg", specifier = ">=0.8.2" },{ name = "matplotlib", specifier = ">=3.9" },{ name = "numpy", specifier = ">=2.0" },{ name = "peft", marker = "extra == 'gpu'", specifier = "==0.22.0" },
.gitattributes+7-46
README.md+288-40
docs/assets/architecture.png

Large File Pointer Details
- SHA256: b539ba76af9e28de6d95c6c1e7ff6949c509aee4f67c9d65dc4c2d47f580e9c8
- Pointer size: 130 Bytes
- Size of remote file: 54.6 kB

Large File Pointer Details
- SHA256: c0b743cfac31f85ee6e7523ebb9e57d6a00df8f7828fbc3464675228176ef867
- Pointer size: 131 Bytes
- Size of remote file: 187 kB
docs/assets/online-solvers.png


docs/assets/outcomes.png


docs/assets/poster.pngAdded

Large File Pointer Details
- SHA256: 3e3f1ed22cf1b32d46de934f57d3f43bddd4f033d299a2104e8cecbb84ae71db
- Pointer size: 131 Bytes
- Size of remote file: 670 kB
docs/assets/study.json+508
docs/assets/twitter-summary.pngAdded

Large File Pointer Details
- SHA256: 17d00a07c9ba3566abee450e78fc4a5188182f8b00944891a1f7c6f054a2f215
- Pointer size: 131 Bytes
- Size of remote file: 126 kB
docs/assets/walkthrough.gifAdded

Large File Pointer Details
- SHA256: 4dc8881b74d8b3873ceaf69d51256315579ba251d461190f5f62324abcaa8036
- Pointer size: 131 Bytes
- Size of remote file: 177 kB
docs/assets/walkthrough.mp4Added+3
docs/index.html+3-2
docs/style.css+1
docs/usage.md+8
pyproject.toml+9-1
reports/experiments/new-judges/experiment.md+8-3
reports/paper.pdf+2-2
reports/progress.md+9-4
reports/reviews/readme-audit.mdAdded+36
reports/summary.md+10-5
src/study/depth_review.py+2-2
src/study/frozen_report.py+6-2
src/study/matched_tables.py+4-1
src/study/online_report.py+14-5
src/study/overview.pyAdded+254
src/study/report.py+116-70
src/study/visual_summary.pyAdded+360
tests/test_overview.pyAdded+81
tests/test_release.py+17-1
uv.lock+12