independent-frozen-judge-audit · 80e34c944a37
Browse files- README.md +2 -0
- docs/assets/frozen-judge-scores.png +0 -0
- docs/assets/study.json +56 -0
- docs/explorer.js +23 -0
- docs/index.html +1 -1
- reports/experiments/new-judges/experiment.md +2 -0
- reports/experiments/new-judges/q35-9b-ollama/experiment.md +14 -0
- reports/experiments/new-judges/q35-9b-ollama/learnings.md +23 -0
- reports/experiments/new-judges/runtime-format-pilot/experiment.md +5 -0
- reports/experiments/new-judges/runtime-format-pilot/learnings.md +7 -0
- reports/paper.pdf +2 -2
- reports/progress.md +2 -0
- reports/summary.md +2 -0
- src/study/frozen_audit.py +66 -0
- src/study/frozen_report.py +80 -1
- src/study/report.py +12 -1
- tests/test_frozen_screen.py +20 -0
README.md
CHANGED
|
@@ -179,6 +179,8 @@ Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delive
|
|
| 179 |
|
| 180 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 181 |
|
|
|
|
|
|
|
| 182 |
## Why did the two-judge and three-judge solvers diverge?
|
| 183 |
|
| 184 |
**With seed 17, training the solver with two frozen judges gave 25/32 correct solutions (78.1%). Training it with three gave 3/32 (9.4%).** The gap was 22 complete solutions (-68.75 percentage points, three minus two). Only the solver adapter learned. All judging used the frozen, original Qwen instruction model. Both solvers started from the same model and saw the same problems in the same order. An integer program graded every intermediate step. On the paired problems, only the two-judge solver was correct on 23, only the three-judge solver on 1, both on 2, and neither on 6. These are development results on the calibrated arithmetic benchmark.
|
|
|
|
| 179 |
|
| 180 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 181 |
|
| 182 |
+

|
| 183 |
+
|
| 184 |
## Why did the two-judge and three-judge solvers diverge?
|
| 185 |
|
| 186 |
**With seed 17, training the solver with two frozen judges gave 25/32 correct solutions (78.1%). Training it with three gave 3/32 (9.4%).** The gap was 22 complete solutions (-68.75 percentage points, three minus two). Only the solver adapter learned. All judging used the frozen, original Qwen instruction model. Both solvers started from the same model and saw the same problems in the same order. An integer program graded every intermediate step. On the paired problems, only the two-judge solver was correct on 23, only the three-judge solver on 1, both on 2, and neither on 6. These are development results on the calibrated arithmetic benchmark.
|
docs/assets/frozen-judge-scores.png
ADDED
|
docs/assets/study.json
CHANGED
|
@@ -240433,6 +240433,62 @@
|
|
| 240433 |
"generation_ms": 88132.605
|
| 240434 |
},
|
| 240435 |
"timing_seconds": 0.6365000000041618,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240436 |
"key": "q35-9b-ollama"
|
| 240437 |
}
|
| 240438 |
],
|
|
|
|
| 240433 |
"generation_ms": 88132.605
|
| 240434 |
},
|
| 240435 |
"timing_seconds": 0.6365000000041618,
|
| 240436 |
+
"audit": {
|
| 240437 |
+
"calls": 416,
|
| 240438 |
+
"matched_masked_outputs": 32,
|
| 240439 |
+
"examples": {
|
| 240440 |
+
"failed": {
|
| 240441 |
+
"key": "0360e34dc98fec16268444b3951abf4b5a78f76c98630b472a6a26b8406c9539",
|
| 240442 |
+
"expression": "(15 - 6) - 12",
|
| 240443 |
+
"trace": "9,-2",
|
| 240444 |
+
"first": "0,2,-2",
|
| 240445 |
+
"reviews": [
|
| 240446 |
+
"0,3,-3,0,2,-3",
|
| 240447 |
+
"0,3,-2,0,2,-3"
|
| 240448 |
+
],
|
| 240449 |
+
"outputs": [
|
| 240450 |
+
"0,3,-2,0,2,-2",
|
| 240451 |
+
"0,3,-2,0,2,-3"
|
| 240452 |
+
],
|
| 240453 |
+
"expected": [
|
| 240454 |
+
"1,0,-3,0,2,-3",
|
| 240455 |
+
"0,3,-3,0,2,-3"
|
| 240456 |
+
]
|
| 240457 |
+
},
|
| 240458 |
+
"passed": {
|
| 240459 |
+
"key": "9a0a01b8dc0073b26eecd9b2acd1b76450355b7298314025f8f9e0a5b183396f",
|
| 240460 |
+
"expression": "(12 + 12) - 6",
|
| 240461 |
+
"trace": "24,18",
|
| 240462 |
+
"first": "1,0,18",
|
| 240463 |
+
"reviews": [
|
| 240464 |
+
"1,0,18,1,0,18",
|
| 240465 |
+
"1,0,17,1,0,18"
|
| 240466 |
+
],
|
| 240467 |
+
"outputs": [
|
| 240468 |
+
"1,0,18,1,0,18",
|
| 240469 |
+
"0,3,18,1,0,18"
|
| 240470 |
+
],
|
| 240471 |
+
"expected": [
|
| 240472 |
+
"1,0,18,1,0,18",
|
| 240473 |
+
"0,3,18,1,0,18"
|
| 240474 |
+
]
|
| 240475 |
+
}
|
| 240476 |
+
}
|
| 240477 |
+
},
|
| 240478 |
+
"gpu": {
|
| 240479 |
+
"peak_dedicated_mib": 5627.578125,
|
| 240480 |
+
"engines": [
|
| 240481 |
+
{
|
| 240482 |
+
"engine": "Copy",
|
| 240483 |
+
"seconds": 4.3711994
|
| 240484 |
+
},
|
| 240485 |
+
{
|
| 240486 |
+
"engine": "3D",
|
| 240487 |
+
"seconds": 195.4857742
|
| 240488 |
+
}
|
| 240489 |
+
],
|
| 240490 |
+
"last_sample": "2026-11-27T06:24:30.0568777Z"
|
| 240491 |
+
},
|
| 240492 |
"key": "q35-9b-ollama"
|
| 240493 |
}
|
| 240494 |
],
|
docs/explorer.js
CHANGED
|
@@ -130,6 +130,9 @@ function showNewJudges() {
|
|
| 130 |
body.replaceChildren();
|
| 131 |
const newer = study.newer_judges ?? {};
|
| 132 |
const messages = [];
|
|
|
|
|
|
|
|
|
|
| 133 |
for (const result of newer.results ?? []) {
|
| 134 |
messages.push(result.model+" · "+result.phase+" · "+result.result);
|
| 135 |
for (const name of ["balanced","natural"]) {
|
|
@@ -138,6 +141,26 @@ function showNewJudges() {
|
|
| 138 |
row(body,[result.model+" · "+result.phase+" · "+name,...cohort.depths.map(d => d.correct+"/"+cohort.n),
|
| 139 |
...["visible","masked"].map(k => name==="balanced" ? twins[k]+"/"+twins.n : "—")]);
|
| 140 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
}
|
| 142 |
for (const r of study.inventory ?? []) if (r.id.startsWith("new-judges/") &&
|
| 143 |
(r.status.startsWith("Evaluating") || r.status.startsWith("Checking GPU"))) messages.push(r.id+" · "+r.status);
|
|
|
|
| 130 |
body.replaceChildren();
|
| 131 |
const newer = study.newer_judges ?? {};
|
| 132 |
const messages = [];
|
| 133 |
+
const examples=byId("frozen-evidence");
|
| 134 |
+
const openKeys=new Set([...examples.querySelectorAll("details[open]")].map(e=>e.dataset.key));
|
| 135 |
+
examples.replaceChildren();
|
| 136 |
for (const result of newer.results ?? []) {
|
| 137 |
messages.push(result.model+" · "+result.phase+" · "+result.result);
|
| 138 |
for (const name of ["balanced","natural"]) {
|
|
|
|
| 141 |
row(body,[result.model+" · "+result.phase+" · "+name,...cohort.depths.map(d => d.correct+"/"+cohort.n),
|
| 142 |
...["visible","masked"].map(k => name==="balanced" ? twins[k]+"/"+twins.n : "—")]);
|
| 143 |
}
|
| 144 |
+
if (result.audit?.examples) {
|
| 145 |
+
const details=document.createElement("details"), summary=document.createElement("summary");
|
| 146 |
+
details.dataset.key=result.key; details.open=openKeys.has(result.key);
|
| 147 |
+
summary.textContent="Evidence examples · "+result.model+" · "+result.phase;
|
| 148 |
+
details.append(summary);
|
| 149 |
+
for (const [outcome,x] of Object.entries(result.audit.examples)) {
|
| 150 |
+
const lines=["Solver "+x.trace,"Judge 1 "+x.first,...x.reviews.map((v,i)=>
|
| 151 |
+
"Judge 2 "+v+"\nJudge 3 "+x.outputs[i]+"\nExpected "+x.expected[i])];
|
| 152 |
+
details.append(exampleCard(x.expression+" · pair "+outcome,lines,outcome==="failed"));
|
| 153 |
+
}
|
| 154 |
+
examples.append(details);
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
const chart=byId("frozen-chart");
|
| 158 |
+
const version=(newer.results ?? []).filter(r=>r.metrics).map(r=>r.key).join(",");
|
| 159 |
+
if (version && chart.dataset.version!==version) {
|
| 160 |
+
chart.dataset.version=version;
|
| 161 |
+
chart.onload=()=>{chart.hidden=false;};
|
| 162 |
+
chart.onerror=()=>{chart.hidden=true;delete chart.dataset.version;};
|
| 163 |
+
chart.src="assets/frozen-judge-scores.png?v="+encodeURIComponent(version);
|
| 164 |
}
|
| 165 |
for (const r of study.inventory ?? []) if (r.id.startsWith("new-judges/") &&
|
| 166 |
(r.status.startsWith("Evaluating") || r.status.startsWith("Checking GPU"))) messages.push(r.id+" · "+r.status);
|
docs/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<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>
|
| 5 |
<section id="matched-section" hidden><h2>Matched accuracy by judge depth</h2><p>Each solver answers the same questions. Each judge grades the same saved starting-solver answers. Counts show successes out of all observations in that cohort. <a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/paired-outputs-seed-17.md">Compare the solvers’ answers and original judge reports</a>.</p><div id="matched-tables"></div><img id="depth-trajectory" hidden alt="By training quarter, the two solvers’ exact arithmetic diverges while both continue earning frequent judge rewards"></section>
|
| 6 |
<section aria-labelledby="outcome"><h2 id="outcome">Primary comparison</h2><p id="primary" aria-live="polite">Loading observations…</p><p id="progress"></p></section>
|
| 7 |
-
<section><h2>Frozen Qwen judges on the same answers</h2><p id="frozen-status">Waiting for the first completed GPU-only evaluation.</p><div class="scroll"><table><thead><tr><th>Model and cohort</th><th>J1 verdict</th><th>J2 verdict</th><th>J3 verdict</th><th>Visible pairs</th><th>Masked pairs</th></tr></thead><tbody id="frozen-scores"></tbody></table></div></section>
|
| 8 |
<section><h2>All past, current and planned runs</h2><p>Each solver score counts complete traces. Judge-training scores require every field in a report. A pending observation has no assigned score. The fixed-answer stack replay reports verdict accuracy at successive depths. <a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/newer-frozen-judges.md">Newer frozen Qwen protocol</a>.</p><label>Experiment phase <select id="inventory-phase"><option value="">All phases</option></select></label><div class="scroll"><table><thead><tr><th>Run and evidence</th><th>Treatment or measurement</th><th>Status</th><th>Development or pilot</th><th>Held out</th></tr></thead><tbody id="inventory"></tbody></table></div></section>
|
| 9 |
<section><h2>Benchmark learnability</h2><p id="readiness"></p><div class="scroll"><table><thead><tr><th>Family</th><th>Prompt</th><th>Parsed</th><th>Sample exact</th><th>Greedy exact</th><th>Mixed groups</th></tr></thead><tbody id="calibration"></tbody></table></div><p id="learned"></p><img id="validation-chart" hidden alt="Complete-trace accuracy on the same fresh problems and available paired contrasts"></section>
|
| 10 |
<section><h2>Run results</h2><div class="scroll"><table><thead><tr><th>Run</th><th>Role</th><th>Updates</th><th>Dev. exact</th><th>Dev. size</th><th>Held-out exact</th><th>Held-out size</th></tr></thead><tbody id="results"></tbody></table></div><p>Solver scores require the complete calculation. Judge scores require the complete evidence record.</p></section>
|
|
|
|
| 4 |
<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>
|
| 5 |
<section id="matched-section" hidden><h2>Matched accuracy by judge depth</h2><p>Each solver answers the same questions. Each judge grades the same saved starting-solver answers. Counts show successes out of all observations in that cohort. <a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/reviews/paired-outputs-seed-17.md">Compare the solvers’ answers and original judge reports</a>.</p><div id="matched-tables"></div><img id="depth-trajectory" hidden alt="By training quarter, the two solvers’ exact arithmetic diverges while both continue earning frequent judge rewards"></section>
|
| 6 |
<section aria-labelledby="outcome"><h2 id="outcome">Primary comparison</h2><p id="primary" aria-live="polite">Loading observations…</p><p id="progress"></p></section>
|
| 7 |
+
<section><h2>Frozen Qwen judges on the same answers</h2><p id="frozen-status">Waiting for the first completed GPU-only evaluation.</p><div class="scroll"><table><thead><tr><th>Model and cohort</th><th>J1 verdict</th><th>J2 verdict</th><th>J3 verdict</th><th>Visible pairs</th><th>Masked pairs</th></tr></thead><tbody id="frozen-scores"></tbody></table></div><img id="frozen-chart" hidden alt="Balanced verdict and visible and masked whole-pair scores with denominators for each evaluated model"><div id="frozen-evidence"></div></section>
|
| 8 |
<section><h2>All past, current and planned runs</h2><p>Each solver score counts complete traces. Judge-training scores require every field in a report. A pending observation has no assigned score. The fixed-answer stack replay reports verdict accuracy at successive depths. <a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/newer-frozen-judges.md">Newer frozen Qwen protocol</a>.</p><label>Experiment phase <select id="inventory-phase"><option value="">All phases</option></select></label><div class="scroll"><table><thead><tr><th>Run and evidence</th><th>Treatment or measurement</th><th>Status</th><th>Development or pilot</th><th>Held out</th></tr></thead><tbody id="inventory"></tbody></table></div></section>
|
| 9 |
<section><h2>Benchmark learnability</h2><p id="readiness"></p><div class="scroll"><table><thead><tr><th>Family</th><th>Prompt</th><th>Parsed</th><th>Sample exact</th><th>Greedy exact</th><th>Mixed groups</th></tr></thead><tbody id="calibration"></tbody></table></div><p id="learned"></p><img id="validation-chart" hidden alt="Complete-trace accuracy on the same fresh problems and available paired contrasts"></section>
|
| 10 |
<section><h2>Run results</h2><div class="scroll"><table><thead><tr><th>Run</th><th>Role</th><th>Updates</th><th>Dev. exact</th><th>Dev. size</th><th>Held-out exact</th><th>Held-out size</th></tr></thead><tbody id="results"></tbody></table></div><p>Solver scores require the complete calculation. Judge scores require the complete evidence record.</p></section>
|
reports/experiments/new-judges/experiment.md
CHANGED
|
@@ -11,4 +11,6 @@ Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delive
|
|
| 11 |
|
| 12 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 13 |
|
|
|
|
|
|
|
| 14 |
[Protocol and case selection](../../newer-frozen-judges.md).
|
|
|
|
| 11 |
|
| 12 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 13 |
|
| 14 |
+

|
| 15 |
+
|
| 16 |
[Protocol and case selection](../../newer-frozen-judges.md).
|
reports/experiments/new-judges/q35-9b-ollama/experiment.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Qwen3.5-9B · deployment replicate
|
| 2 |
+
|
| 3 |
+
Complete. J3 verdict 43/64, twins 1/32, masked 0/32
|
| 4 |
+
|
| 5 |
+
[Complete raw records](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b-ollama) · [Case and selection protocol](../../../newer-frozen-judges.md)
|
| 6 |
+
|
| 7 |
+
| Model and cohort | J1 verdict | J2 verdict | J3 verdict | J3 visible pairs | J3 masked pairs |
|
| 8 |
+
| --- | --- | --- | --- | --- | --- |
|
| 9 |
+
| Qwen3.5-9B · deployment replicate · balanced | 37/64 | 44/64 | 43/64 | 1/32 | 0/32 |
|
| 10 |
+
| Qwen3.5-9B · deployment replicate · natural | 23/32 | 24/32 | 24/32 | — | — |
|
| 11 |
+
|
| 12 |
+
The release checked 416 scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on 32/32 pairs.
|
| 13 |
+
|
| 14 |
+
Windows sampled the dedicated allocation of the llama.cpp process at up to 5,628 MiB. At its last sample, per-process engine running time was Copy 4.4 s, 3D 195.5 s. Engine counters include model loading. Sampling can end before the final kernel completes. [Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).
|
reports/experiments/new-judges/q35-9b-ollama/learnings.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# What this run showed
|
| 2 |
+
|
| 3 |
+
J3 verdict 43/64, twins 1/32, masked 0/32
|
| 4 |
+
|
| 5 |
+
## A failed evidence pair
|
| 6 |
+
|
| 7 |
+
Problem `(15 - 6) - 12`. The solver wrote `9,-2`. Judge 1 wrote `0,2,-2`.
|
| 8 |
+
|
| 9 |
+
| Judge 2 review | Judge 3 wrote | Checker expected |
|
| 10 |
+
| --- | --- | --- |
|
| 11 |
+
| 0,3,-3,0,2,-3 | 0,3,-2,0,2,-2 | 1,0,-3,0,2,-3 |
|
| 12 |
+
| 0,3,-2,0,2,-3 | 0,3,-2,0,2,-3 | 0,3,-3,0,2,-3 |
|
| 13 |
+
|
| 14 |
+
## A successful evidence pair
|
| 15 |
+
|
| 16 |
+
Problem `(12 + 12) - 6`. The solver wrote `24,18`. Judge 1 wrote `1,0,18`.
|
| 17 |
+
|
| 18 |
+
| Judge 2 review | Judge 3 wrote | Checker expected |
|
| 19 |
+
| --- | --- | --- |
|
| 20 |
+
| 1,0,18,1,0,18 | 1,0,18,1,0,18 | 1,0,18,1,0,18 |
|
| 21 |
+
| 1,0,17,1,0,18 | 0,3,18,1,0,18 | 0,3,18,1,0,18 |
|
| 22 |
+
|
| 23 |
+
[Raw evidence](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/q35-9b-ollama).
|
reports/experiments/new-judges/runtime-format-pilot/experiment.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Qwen3.5-9B · runtime diagnostic
|
| 2 |
+
|
| 3 |
+
Archived, invalid scoring. Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.
|
| 4 |
+
|
| 5 |
+
[Complete raw records](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/runtime-format-pilot) · [Case and selection protocol](../../../newer-frozen-judges.md)
|
reports/experiments/new-judges/runtime-format-pilot/learnings.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# What this run showed
|
| 2 |
+
|
| 3 |
+
Empty reasoning wrapper on 65/65 delivered messages. No accuracy estimate.
|
| 4 |
+
|
| 5 |
+
The archived attempt is excluded from accuracy comparisons. Its recorded termination reason is available in the raw evidence.
|
| 6 |
+
|
| 7 |
+
[Raw evidence](https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/tree/main/results/new-judges/runtime-format-pilot).
|
reports/paper.pdf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1041d04f6ead1173b027f4f2e01c042725fdc4eed89665d8a8f44b3c9c4c244
|
| 3 |
+
size 927736
|
reports/progress.md
CHANGED
|
@@ -21,6 +21,8 @@ Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delive
|
|
| 21 |
|
| 22 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 23 |
|
|
|
|
|
|
|
| 24 |
The matched-depth extension has trained 3 of 4 additional shallow solvers. [Extension](matched-depth-protocol.md).
|
| 25 |
|
| 26 |
The timing pilot selected 256 updates per block at 38.3 seconds per pilot update. A block at that rate would take 2.72 hours.
|
|
|
|
| 21 |
|
| 22 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 23 |
|
| 24 |
+

|
| 25 |
+
|
| 26 |
The matched-depth extension has trained 3 of 4 additional shallow solvers. [Extension](matched-depth-protocol.md).
|
| 27 |
|
| 28 |
The timing pilot selected 256 updates per block at 38.3 seconds per pilot update. A block at that rate would take 2.72 hours.
|
reports/summary.md
CHANGED
|
@@ -109,6 +109,8 @@ Qwen3.5-9B · Archived, invalid scoring. Empty reasoning wrapper on 65/65 delive
|
|
| 109 |
|
| 110 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 111 |
|
|
|
|
|
|
|
| 112 |
## Run inventory
|
| 113 |
|
| 114 |
The original solver and judge adapters all use Qwen2.5-1.5B-Instruct. A solver score counts complete arithmetic traces. A trained judge score counts complete evidence records. Stack replays report verdict agreement at each depth on the same saved answers. Pending means the phase has no completed measurement. A dash marks an inapplicable endpoint. Timing and calibration are outside the primary comparison.
|
|
|
|
| 109 |
|
| 110 |
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. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 111 |
|
| 112 |
+

|
| 113 |
+
|
| 114 |
## Run inventory
|
| 115 |
|
| 116 |
The original solver and judge adapters all use Qwen2.5-1.5B-Instruct. A solver score counts complete arithmetic traces. A trained judge score counts complete evidence records. Stack replays report verdict agreement at each depth on the same saved answers. Pending means the phase has no completed measurement. A dash marks an inapplicable endpoint. Timing and calibration are outside the primary comparison.
|
src/study/frozen_audit.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Reconstruct scores, input histories and evidence interventions from closed GPU journals."""
|
| 2 |
+
|
| 3 |
+
from .domain import Problem
|
| 4 |
+
from .frozen_cases import metrics
|
| 5 |
+
from .learning_review import execute_steps
|
| 6 |
+
from .prompts import messages
|
| 7 |
+
from .records import expected, mask_evidence, parse, render, solver_truth, sound, terminal
|
| 8 |
+
from .storage import rows
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def audit(folder, receipt):
|
| 12 |
+
"""Audit the scored output boundary without interpreting the server's prefilling as model text."""
|
| 13 |
+
data = list(rows(folder/"cases.jsonl"))
|
| 14 |
+
calls = {r["id"]:r for r in rows(folder/"calls.jsonl")}
|
| 15 |
+
example = {}
|
| 16 |
+
counter = 0
|
| 17 |
+
identical_masked = 0
|
| 18 |
+
|
| 19 |
+
def checked(call_id,level,p,trace,history):
|
| 20 |
+
nonlocal counter
|
| 21 |
+
c = calls[call_id]
|
| 22 |
+
if (c["messages"]!=messages(f"j{level}",p,trace,history,"demonstrated") or
|
| 23 |
+
not isinstance(c["generated_token_ids"],list) or len(c["generated_token_ids"])>48):
|
| 24 |
+
raise ValueError(f"Unmatched prompt or token budget in {folder.name}/{call_id}")
|
| 25 |
+
counter+=1
|
| 26 |
+
return c
|
| 27 |
+
for r in sorted(data,key=lambda x:(x["key"],x["kind"])):
|
| 28 |
+
p = Problem.from_expression(r["expression"])
|
| 29 |
+
if p.key!=r["key"] or tuple(execute_steps(p))!=p.values:
|
| 30 |
+
raise ValueError("Independent arithmetic evaluator disagrees")
|
| 31 |
+
if r["kind"]=="twins":
|
| 32 |
+
masked = []
|
| 33 |
+
for mode in ("visible","masked"):
|
| 34 |
+
passed = True
|
| 35 |
+
for i,review in enumerate(r["reviews"]):
|
| 36 |
+
actual = review if mode=="visible" else mask_evidence(review)
|
| 37 |
+
c = checked(f"{r['id']}/{mode}/{i}",3,p,r["trace"],[r["first"],actual])
|
| 38 |
+
truth = expected(p,r["trace"],[r["first"],review])
|
| 39 |
+
if c["text"]!=r[mode]["outputs"][i] or list(truth)!=r["labels"][i]:
|
| 40 |
+
raise ValueError("Logged judge output or exact reference changed")
|
| 41 |
+
passed &= sound(c["text"],truth)
|
| 42 |
+
if mode=="masked":
|
| 43 |
+
masked.append(c)
|
| 44 |
+
if passed!=r[mode]["correct"]:
|
| 45 |
+
raise ValueError("Recorded whole-pair grade disagrees with raw generations")
|
| 46 |
+
if masked[0]["rendered_prompt"]!=masked[1]["rendered_prompt"]:
|
| 47 |
+
raise ValueError("The mask did not remove the distinguishing evidence")
|
| 48 |
+
identical_masked += masked[0]["generated_token_ids"]==masked[1]["generated_token_ids"]
|
| 49 |
+
outcome = "passed" if r["visible"]["correct"] else "failed"
|
| 50 |
+
example.setdefault(outcome,dict(key=p.key,expression=p.expression,trace=r["trace"],first=r["first"],
|
| 51 |
+
reviews=r["reviews"],outputs=r["visible"]["outputs"],expected=[render(v) for v in r["labels"]]))
|
| 52 |
+
else:
|
| 53 |
+
verdict = solver_truth(p,r["trace"])[0]
|
| 54 |
+
history = []
|
| 55 |
+
for level in (1,2,3):
|
| 56 |
+
c = checked(f"{r['id']}/j{level}",level,p,r["trace"],history)
|
| 57 |
+
truth = expected(p,r["trace"],history)
|
| 58 |
+
bit = terminal(c["text"],level)
|
| 59 |
+
grade = dict(verdict=bit,agreement=int(bit==verdict),full=int(sound(c["text"],truth)),
|
| 60 |
+
malformed=parse(c["text"],len(truth)) is None,expected=list(truth))
|
| 61 |
+
if grade!=r["grades"][level-1] or c["text"]!=r["reports"][level-1] or verdict!=r["valid"]:
|
| 62 |
+
raise ValueError("Logged chain disagrees with executable rescore")
|
| 63 |
+
history.append(c["text"])
|
| 64 |
+
if metrics(data)!=receipt["metrics"] or counter!=receipt["cost"]["calls"] or len(calls)!=counter+4:
|
| 65 |
+
raise ValueError("Published summary disagrees with complete raw observations")
|
| 66 |
+
return dict(calls=counter,matched_masked_outputs=identical_masked,examples=example)
|
src/study/frozen_report.py
CHANGED
|
@@ -1,18 +1,33 @@
|
|
| 1 |
"""Use the completed fixed-trace receipts for side-by-side depth and evidence results."""
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
from .frozen_models import LOCAL_REPLICATES, MODELS
|
| 4 |
-
from .storage import read_json
|
| 5 |
from .tables import markdown
|
| 6 |
|
| 7 |
|
| 8 |
HEAD = ["Model and cohort","J1 verdict","J2 verdict","J3 verdict","J3 visible pairs","J3 masked pairs"]
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
def collect_frozen(root):
|
| 12 |
results = []
|
| 13 |
for key in ("runtime-format-pilot",*[model.key for model in (*LOCAL_REPLICATES,*MODELS)],"confirm-control","confirm-winner"):
|
| 14 |
receipt = read_json(root/key/"result.json",{})
|
| 15 |
if receipt:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
results.append({**receipt,"key":key})
|
| 17 |
return dict(results=results,decision=read_json(root/"decision.json",{}))
|
| 18 |
|
|
@@ -54,3 +69,67 @@ def frozen_text(study):
|
|
| 54 |
lo,hi = estimate["ci"]
|
| 55 |
parts.append(f"{metric.replace('_',' ')} improved by a signed {estimate['delta']*100:+.2f} percentage points on {estimate['n']} paired problems (95% interval {100*lo:+.2f} to {100*hi:+.2f}).")
|
| 56 |
return "\n\n".join(parts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
"""Use the completed fixed-trace receipts for side-by-side depth and evidence results."""
|
| 2 |
|
| 3 |
+
from functools import lru_cache
|
| 4 |
+
|
| 5 |
+
from .frozen_audit import audit
|
| 6 |
from .frozen_models import LOCAL_REPLICATES, MODELS
|
| 7 |
+
from .storage import atomic, read_json, rows
|
| 8 |
from .tables import markdown
|
| 9 |
|
| 10 |
|
| 11 |
HEAD = ["Model and cohort","J1 verdict","J2 verdict","J3 verdict","J3 visible pairs","J3 masked pairs"]
|
| 12 |
|
| 13 |
|
| 14 |
+
@lru_cache(maxsize=16)
|
| 15 |
+
def released_audit(folder, receipt_time):
|
| 16 |
+
"""A completed receipt identifies immutable calls. Avoid re-reading them on every dashboard refresh."""
|
| 17 |
+
return audit(folder, read_json(folder/"result.json"))
|
| 18 |
+
|
| 19 |
+
|
| 20 |
def collect_frozen(root):
|
| 21 |
results = []
|
| 22 |
for key in ("runtime-format-pilot",*[model.key for model in (*LOCAL_REPLICATES,*MODELS)],"confirm-control","confirm-winner"):
|
| 23 |
receipt = read_json(root/key/"result.json",{})
|
| 24 |
if receipt:
|
| 25 |
+
if receipt.get("metrics"):
|
| 26 |
+
receipt["audit"] = released_audit(root/key,receipt["time"])
|
| 27 |
+
samples = list(rows(root/key/"gpu-telemetry.jsonl"))
|
| 28 |
+
if samples:
|
| 29 |
+
receipt["gpu"] = dict(peak_dedicated_mib=max(r["dedicated_bytes"] for r in samples)/2**20,
|
| 30 |
+
engines=samples[-1]["engines"],last_sample=samples[-1]["time"])
|
| 31 |
results.append({**receipt,"key":key})
|
| 32 |
return dict(results=results,decision=read_json(root/"decision.json",{}))
|
| 33 |
|
|
|
|
| 69 |
lo,hi = estimate["ci"]
|
| 70 |
parts.append(f"{metric.replace('_',' ')} improved by a signed {estimate['delta']*100:+.2f} percentage points on {estimate['n']} paired problems (95% interval {100*lo:+.2f} to {100*hi:+.2f}).")
|
| 71 |
return "\n\n".join(parts)
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
def plot_scores(study, path):
|
| 75 |
+
"""Keep distinct denominators visible even when the fraction correct shares a common color scale."""
|
| 76 |
+
import matplotlib.pyplot as plt
|
| 77 |
+
import numpy as np
|
| 78 |
+
selected=[r for r in study["results"] if r.get("metrics")]
|
| 79 |
+
if not selected:
|
| 80 |
+
path.unlink(missing_ok=True)
|
| 81 |
+
return
|
| 82 |
+
counts, denominators, names = [], [], []
|
| 83 |
+
for r in selected:
|
| 84 |
+
b,t=r["metrics"]["balanced"],r["metrics"]["twins"]
|
| 85 |
+
counts.append([d["correct"] for d in b["depths"]]+[t["visible"],t["masked"]])
|
| 86 |
+
denominators.append([b["n"]]*3+[t["n"]]*2)
|
| 87 |
+
names.append(r["model"]+" · "+r["phase"])
|
| 88 |
+
rates=np.array(counts)/np.array(denominators)
|
| 89 |
+
fig,ax=plt.subplots(figsize=(9.8,1.9+.43*len(selected)),layout="constrained")
|
| 90 |
+
ax.imshow(rates,cmap="YlGnBu",vmin=0,vmax=1,aspect="auto")
|
| 91 |
+
ax.set_xticks(range(5),["J1 verdict","J2 verdict","J3 verdict","Visible pair","Masked pair"])
|
| 92 |
+
ax.set_yticks(range(len(names)),names)
|
| 93 |
+
ax.xaxis.tick_top()
|
| 94 |
+
ax.tick_params(length=0,pad=6)
|
| 95 |
+
ax.axvline(2.5,color="white",linewidth=3)
|
| 96 |
+
for i,row in enumerate(counts):
|
| 97 |
+
for j,count in enumerate(row):
|
| 98 |
+
ax.text(j,i,f"{count}/{denominators[i][j]}",ha="center",va="center",weight="bold",
|
| 99 |
+
color="white" if rates[i,j]>.57 else "#173b40")
|
| 100 |
+
ax.set_title("Frozen judges on balanced traces and matched evidence pairs",loc="left",pad=16)
|
| 101 |
+
ax.set_xlabel("Verdict scores count solver traces. Pair scores require two complete and correct Judge 3 reports.",fontsize=9,labelpad=9)
|
| 102 |
+
for spine in ax.spines.values():
|
| 103 |
+
spine.set_visible(False)
|
| 104 |
+
fig.savefig(path,dpi=155,bbox_inches="tight")
|
| 105 |
+
plt.close(fig)
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def experiment_pages(study, dest):
|
| 109 |
+
"""Keep per-configuration evidence and the reason a run succeeded or failed accessible by run ID."""
|
| 110 |
+
from .design import GITHUB
|
| 111 |
+
for r in study["results"]:
|
| 112 |
+
folder = dest/r["key"]
|
| 113 |
+
raw = f"{GITHUB}/tree/main/results/new-judges/{r['key']}"
|
| 114 |
+
method = (f"# {r['model']} · {r['phase']}\n\n{r['status']}. {r['result']}\n\n"
|
| 115 |
+
f"[Complete raw records]({raw}) · [Case and selection protocol](../../../newer-frozen-judges.md)")
|
| 116 |
+
note = [f"# What this run showed\n\n{r['result']}"]
|
| 117 |
+
if r.get("metrics"):
|
| 118 |
+
method += "\n\n"+markdown(HEAD,list(depth_rows({"results":[r]})))
|
| 119 |
+
for label,record in r["audit"]["examples"].items():
|
| 120 |
+
note += [f"## A {'successful' if label=='passed' else 'failed'} evidence pair",
|
| 121 |
+
f"Problem `{record['expression']}`. The solver wrote `{record['trace']}`. Judge 1 wrote `{record['first']}`.",
|
| 122 |
+
markdown(["Judge 2 review","Judge 3 wrote","Checker expected"],
|
| 123 |
+
list(zip(record["reviews"],record["outputs"],record["expected"],strict=True)))]
|
| 124 |
+
method += f"\n\nThe release checked {r['audit']['calls']} scored calls against the original prompts, raw generated text and independent arithmetic values. The masked twins returned identical token sequences on {r['audit']['matched_masked_outputs']}/{r['metrics']['twins']['n']} pairs."
|
| 125 |
+
gpu = r.get("gpu")
|
| 126 |
+
if gpu:
|
| 127 |
+
method += ("\n\nWindows sampled the dedicated allocation of the llama.cpp process at up to "
|
| 128 |
+
f"{gpu['peak_dedicated_mib']:,.0f} MiB. At its last sample, per-process engine running time was "
|
| 129 |
+
+", ".join(f"{e['engine']} {e['seconds']:.1f} s" for e in gpu["engines"])+
|
| 130 |
+
". Engine counters include model loading. Sampling can end before the final kernel completes. "
|
| 131 |
+
"[Windows GPU accounting](https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/).")
|
| 132 |
+
else:
|
| 133 |
+
note += ["The archived attempt is excluded from accuracy comparisons. Its recorded termination reason is available in the raw evidence."]
|
| 134 |
+
atomic(folder/"experiment.md",method+"\n")
|
| 135 |
+
atomic(folder/"learnings.md","\n\n".join(note)+f"\n\n[Raw evidence]({raw}).\n")
|
src/study/report.py
CHANGED
|
@@ -15,7 +15,7 @@ from .final_review import review_completed, review_text as final_review_text
|
|
| 15 |
from .learnability_report import collect_learnability, learnability_text, learning_figure
|
| 16 |
from .learning_review import check_release, review_text
|
| 17 |
from .inventory import GUIDE, HEADERS, grouped, inventory, inventory_markdown
|
| 18 |
-
from .frozen_report import collect_frozen, depth_rows as frozen_rows, frozen_text
|
| 19 |
from .matched_tables import accuracy_grid, grid_markdown
|
| 20 |
from .records import named_values
|
| 21 |
from .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_json
|
|
@@ -159,6 +159,7 @@ def figures(data):
|
|
| 159 |
|
| 160 |
dest = DOCS/"assets"
|
| 161 |
dest.mkdir(parents=True, exist_ok=True)
|
|
|
|
| 162 |
learning_figure(data["learnability"],dest/"learnability.png")
|
| 163 |
colors = ("#1e5260", "#177267", "#b65127")
|
| 164 |
fig, ax = plt.subplots(figsize=(11, 2.45))
|
|
@@ -479,6 +480,12 @@ def paper(data, date):
|
|
| 479 |
line(GUIDE)
|
| 480 |
if data["newer_judges"]["results"]:
|
| 481 |
line("Frozen Qwen verdict and evidence scores", "Heading2")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 482 |
for values in frozen_rows(data["newer_judges"]):
|
| 483 |
name,*scores = values
|
| 484 |
line(escape(f"{name}. J1, J2 and J3 verdict accuracy: {', '.join(scores[:3])}. Visible and masked whole-pair accuracy: {', '.join(scores[3:])}."))
|
|
@@ -605,6 +612,10 @@ def build():
|
|
| 605 |
f" [All four quarters, denominators and original records]({GITHUB}/blob/main/reports/reviews/depth-diagnosis.md).")
|
| 606 |
ledger = inventory_markdown(data["inventory"])
|
| 607 |
frozen_summary = frozen_text(data["newer_judges"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 608 |
atomic(REPORTS/"experiments/new-judges/experiment.md", frozen_summary+"\n\n[Protocol and case selection](../../newer-frozen-judges.md).\n")
|
| 609 |
ledger_links = (f"[Run inventory, including upcoming experiments]({GITHUB}/blob/main/reports/run-inventory.md) · "
|
| 610 |
f"[Newer frozen Qwen protocol]({GITHUB}/blob/main/reports/newer-frozen-judges.md)")
|
|
|
|
| 15 |
from .learnability_report import collect_learnability, learnability_text, learning_figure
|
| 16 |
from .learning_review import check_release, review_text
|
| 17 |
from .inventory import GUIDE, HEADERS, grouped, inventory, inventory_markdown
|
| 18 |
+
from .frozen_report import collect_frozen, depth_rows as frozen_rows, experiment_pages, frozen_text, plot_scores
|
| 19 |
from .matched_tables import accuracy_grid, grid_markdown
|
| 20 |
from .records import named_values
|
| 21 |
from .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_json
|
|
|
|
| 159 |
|
| 160 |
dest = DOCS/"assets"
|
| 161 |
dest.mkdir(parents=True, exist_ok=True)
|
| 162 |
+
plot_scores(data["newer_judges"],dest/"frozen-judge-scores.png")
|
| 163 |
learning_figure(data["learnability"],dest/"learnability.png")
|
| 164 |
colors = ("#1e5260", "#177267", "#b65127")
|
| 165 |
fig, ax = plt.subplots(figsize=(11, 2.45))
|
|
|
|
| 480 |
line(GUIDE)
|
| 481 |
if data["newer_judges"]["results"]:
|
| 482 |
line("Frozen Qwen verdict and evidence scores", "Heading2")
|
| 483 |
+
chart=DOCS/"assets/frozen-judge-scores.png"
|
| 484 |
+
if chart.is_file():
|
| 485 |
+
image=Image(str(chart))
|
| 486 |
+
image.drawHeight=image.imageHeight*165*mm/image.imageWidth
|
| 487 |
+
image.drawWidth=165*mm
|
| 488 |
+
story.append(image)
|
| 489 |
for values in frozen_rows(data["newer_judges"]):
|
| 490 |
name,*scores = values
|
| 491 |
line(escape(f"{name}. J1, J2 and J3 verdict accuracy: {', '.join(scores[:3])}. Visible and masked whole-pair accuracy: {', '.join(scores[3:])}."))
|
|
|
|
| 612 |
f" [All four quarters, denominators and original records]({GITHUB}/blob/main/reports/reviews/depth-diagnosis.md).")
|
| 613 |
ledger = inventory_markdown(data["inventory"])
|
| 614 |
frozen_summary = frozen_text(data["newer_judges"])
|
| 615 |
+
frozen_chart = (f"\n\n"
|
| 616 |
+
if (DOCS/"assets/frozen-judge-scores.png").is_file() else "")
|
| 617 |
+
frozen_summary += frozen_chart
|
| 618 |
+
experiment_pages(data["newer_judges"], REPORTS/"experiments/new-judges")
|
| 619 |
atomic(REPORTS/"experiments/new-judges/experiment.md", frozen_summary+"\n\n[Protocol and case selection](../../newer-frozen-judges.md).\n")
|
| 620 |
ledger_links = (f"[Run inventory, including upcoming experiments]({GITHUB}/blob/main/reports/run-inventory.md) · "
|
| 621 |
f"[Newer frozen Qwen protocol]({GITHUB}/blob/main/reports/newer-frozen-judges.md)")
|
tests/test_frozen_screen.py
CHANGED
|
@@ -15,6 +15,7 @@ class FixtureBackend:
|
|
| 15 |
self.calls += 1
|
| 16 |
# A constant answer earns some solution bits but cannot distinguish evidence twins.
|
| 17 |
return {"text":"1,0,7,0,1,7", "input_tokens":20, "output_tokens":11,
|
|
|
|
| 18 |
"elapsed_seconds":.01, "timings":{}, "finish_reason":"stop"}
|
| 19 |
|
| 20 |
|
|
@@ -62,3 +63,22 @@ def test_replay_preserves_twin_labels_and_resumes_identical_calls(tmp_path):
|
|
| 62 |
assert paired_confirmation(resumed.completed,runner.completed)["twins"]["delta"] == 0
|
| 63 |
with pytest.raises(ValueError):
|
| 64 |
CaseRunner(tmp_path, backend, "different-weights", lambda *args,**kwargs: None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
self.calls += 1
|
| 16 |
# A constant answer earns some solution bits but cannot distinguish evidence twins.
|
| 17 |
return {"text":"1,0,7,0,1,7", "input_tokens":20, "output_tokens":11,
|
| 18 |
+
"generated_token_ids":[1,2], "rendered_prompt":str(conversation),
|
| 19 |
"elapsed_seconds":.01, "timings":{}, "finish_reason":"stop"}
|
| 20 |
|
| 21 |
|
|
|
|
| 63 |
assert paired_confirmation(resumed.completed,runner.completed)["twins"]["delta"] == 0
|
| 64 |
with pytest.raises(ValueError):
|
| 65 |
CaseRunner(tmp_path, backend, "different-weights", lambda *args,**kwargs: None)
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def test_release_audit_detects_changed_evidence_even_when_verdict_totals_match(tmp_path):
|
| 69 |
+
import json
|
| 70 |
+
from study.frozen_audit import audit
|
| 71 |
+
from study.storage import atomic, rows
|
| 72 |
+
p = Problem.from_expression("(4+3)*2")
|
| 73 |
+
r = CaseRunner(tmp_path,FixtureBackend(),"fixture",lambda *a,**kw:None)
|
| 74 |
+
for i in range(4):
|
| 75 |
+
r.ask(f"timing/{i}",1,p,"8,14",[])
|
| 76 |
+
r.balanced(p,0)
|
| 77 |
+
r.twins(p,0)
|
| 78 |
+
receipt = dict(metrics=metrics(r.completed.values()),cost={"calls":10})
|
| 79 |
+
assert audit(tmp_path,receipt)["matched_masked_outputs"]==1
|
| 80 |
+
data=list(rows(tmp_path/"cases.jsonl"))
|
| 81 |
+
data[-1]["visible"]["outputs"][1]="0,3,7,0,1,7"
|
| 82 |
+
atomic(tmp_path/"cases.jsonl","".join(json.dumps(v)+"\n" for v in data))
|
| 83 |
+
with pytest.raises(ValueError,match="Logged judge output"):
|
| 84 |
+
audit(tmp_path,receipt)
|