frozen-conversion-analysis · b3f7632bfa91
Browse files- README.md +4 -0
- docs/assets/study.json +4 -1
- docs/explorer.js +7 -0
- reports/experiments/learnings.md +2 -0
- reports/experiments/new-judges/experiment.md +4 -0
- reports/experiments/new-judges/learnings.md +7 -0
- reports/paper.pdf +2 -2
- reports/progress.md +4 -0
- reports/summary.md +4 -0
- src/study/frozen_report.py +53 -2
- src/study/report.py +9 -8
- tests/test_frozen_screen.py +17 -0
README.md
CHANGED
|
@@ -191,6 +191,10 @@ Qwen2.5-1.5B-Instruct (screen, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 189,653 i
|
|
| 191 |
|
| 192 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |

|
| 195 |
|
| 196 |
## Why did the two-judge and three-judge solvers diverge?
|
|
|
|
| 191 |
|
| 192 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 193 |
|
| 194 |
+
The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.
|
| 195 |
+
|
| 196 |
+
Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text.
|
| 197 |
+
|
| 198 |

|
| 199 |
|
| 200 |
## Why did the two-judge and three-judge solvers diverge?
|
docs/assets/study.json
CHANGED
|
@@ -240961,7 +240961,10 @@
|
|
| 240961 |
"key": "q35-4b"
|
| 240962 |
}
|
| 240963 |
],
|
| 240964 |
-
"decision": {}
|
|
|
|
|
|
|
|
|
|
| 240965 |
},
|
| 240966 |
"matched_depth": [
|
| 240967 |
{
|
|
|
|
| 240961 |
"key": "q35-4b"
|
| 240962 |
}
|
| 240963 |
],
|
| 240964 |
+
"decision": {},
|
| 240965 |
+
"conversions": [
|
| 240966 |
+
"Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text."
|
| 240967 |
+
]
|
| 240968 |
},
|
| 240969 |
"matched_depth": [
|
| 240970 |
{
|
docs/explorer.js
CHANGED
|
@@ -164,7 +164,14 @@ function showNewJudges() {
|
|
| 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);
|
|
|
|
| 167 |
if (newer.decision?.result) messages.push(newer.decision.result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
byId("frozen-status").textContent=messages.join(". ") || "Waiting for the first completed GPU-only evaluation.";
|
| 169 |
}
|
| 170 |
byId("inventory-phase").addEventListener("change", showInventory);
|
|
|
|
| 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);
|
| 167 |
+
for (const finding of newer.conversions ?? []) messages.push(finding.replace(/\.$/,""));
|
| 168 |
if (newer.decision?.result) messages.push(newer.decision.result);
|
| 169 |
+
for (const [name, estimate] of Object.entries(newer.decision?.estimates ?? {})) {
|
| 170 |
+
const points = x => (100*x).toFixed(2);
|
| 171 |
+
const outcome = name === "twins" ? "Whole evidence pairs" : "Balanced Judge 3 verdicts";
|
| 172 |
+
messages.push(outcome+", candidate minus control, differed by "+points(estimate.delta)+" percentage points on "+estimate.n+
|
| 173 |
+
" paired confirmation problems (95% interval "+points(estimate.ci[0])+" to "+points(estimate.ci[1])+")");
|
| 174 |
+
}
|
| 175 |
byId("frozen-status").textContent=messages.join(". ") || "Waiting for the first completed GPU-only evaluation.";
|
| 176 |
}
|
| 177 |
byId("inventory-phase").addEventListener("change", showInventory);
|
reports/experiments/learnings.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
# Experimental learnings
|
| 2 |
|
|
|
|
|
|
|
| 3 |
- [calibrated/base](calibrated/base/learnings.md). The solver completed 20 of 32 development calculations exactly. Among 0 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 2 errors.
|
| 4 |
- [calibrated/d3-17](calibrated/d3-17/learnings.md). The exact checker accepted 14.1% of observed policy outputs. The assigned reward averaged 64.2%. Of 1024 rollouts, 569 received reward for an incorrect output and 56 lost reward for a correct output. 78 of 256 complete groups had identical rewards. The solver completed 3 of 32 development calculations exactly. Among 1 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 1 of Judge 2’s verdicts and introduced 1 errors.
|
| 5 |
- [calibrated/d2-17](calibrated/d2-17/learnings.md). The exact checker accepted 63.3% of observed policy outputs. The assigned reward averaged 73.3%. Of 1024 rollouts, 261 received reward for an incorrect output and 158 lost reward for a correct output. 96 of 256 complete groups had identical rewards. The solver completed 25 of 32 development calculations exactly. Among 0 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 0 errors.
|
|
|
|
| 1 |
# Experimental learnings
|
| 2 |
|
| 3 |
+
[Frozen judge comparisons and independent confirmation](new-judges/learnings.md).
|
| 4 |
+
|
| 5 |
- [calibrated/base](calibrated/base/learnings.md). The solver completed 20 of 32 development calculations exactly. Among 0 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 2 errors.
|
| 6 |
- [calibrated/d3-17](calibrated/d3-17/learnings.md). The exact checker accepted 14.1% of observed policy outputs. The assigned reward averaged 64.2%. Of 1024 rollouts, 569 received reward for an incorrect output and 56 lost reward for a correct output. 78 of 256 complete groups had identical rewards. The solver completed 3 of 32 development calculations exactly. Among 1 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 1 of Judge 2’s verdicts and introduced 1 errors.
|
| 7 |
- [calibrated/d2-17](calibrated/d2-17/learnings.md). The exact checker accepted 63.3% of observed policy outputs. The assigned reward averaged 73.3%. Of 1024 rollouts, 261 received reward for an incorrect output and 158 lost reward for a correct output. 96 of 256 complete groups had identical rewards. The solver completed 25 of 32 development calculations exactly. Among 0 serialization failures, 0 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 0 errors.
|
reports/experiments/new-judges/experiment.md
CHANGED
|
@@ -23,6 +23,10 @@ Qwen2.5-1.5B-Instruct (screen, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 189,653 i
|
|
| 23 |
|
| 24 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |

|
| 27 |
|
| 28 |
[Protocol and case selection](../../newer-frozen-judges.md).
|
|
|
|
| 23 |
|
| 24 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 25 |
|
| 26 |
+
The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.
|
| 27 |
+
|
| 28 |
+
Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text.
|
| 29 |
+
|
| 30 |

|
| 31 |
|
| 32 |
[Protocol and case selection](../../newer-frozen-judges.md).
|
reports/experiments/new-judges/learnings.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Findings on frozen judge releases
|
| 2 |
+
|
| 3 |
+
The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.
|
| 4 |
+
|
| 5 |
+
Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text.
|
| 6 |
+
|
| 7 |
+
[All scored runs and costs](experiment.md) · [Protocol](../../newer-frozen-judges.md).
|
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:d47ab57b7522a56cf826622cd48abe2d3fc68194598e2bf445deedde27022669
|
| 3 |
+
size 970347
|
reports/progress.md
CHANGED
|
@@ -33,6 +33,10 @@ Qwen2.5-1.5B-Instruct (screen, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 189,653 i
|
|
| 33 |
|
| 34 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |

|
| 37 |
|
| 38 |
The matched-depth extension has trained 3 of 4 additional shallow solvers. [Extension](matched-depth-protocol.md).
|
|
|
|
| 33 |
|
| 34 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 35 |
|
| 36 |
+
The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.
|
| 37 |
+
|
| 38 |
+
Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text.
|
| 39 |
+
|
| 40 |

|
| 41 |
|
| 42 |
The matched-depth extension has trained 3 of 4 additional shallow solvers. [Extension](matched-depth-protocol.md).
|
reports/summary.md
CHANGED
|
@@ -121,6 +121,10 @@ Qwen2.5-1.5B-Instruct (screen, qwen2.5-1.5b-instruct-q4_k_m.gguf) used 189,653 i
|
|
| 121 |
|
| 122 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |

|
| 125 |
|
| 126 |
## Run inventory
|
|
|
|
| 121 |
|
| 122 |
Qwen3.5-4B (screen, Qwen3.5-4B-Q4_K_M.gguf) used 191,362 input and 4,918 output tokens in 162.2 seconds of end-to-end calls. On the 32 natural traces, Judge 3 fixed 0 verdicts and introduced 0 errors.
|
| 123 |
|
| 124 |
+
The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.
|
| 125 |
+
|
| 126 |
+
Qwen3.5-4B passed 7/32 whole pairs with the Unsloth release and 1/32 with the Ollama release. Of 64 matched visible reviews, 64 had identical messages, 64 had identical rendered prompts, 64 had equal input token counts and 27 produced identical output text.
|
| 127 |
+
|
| 128 |

|
| 129 |
|
| 130 |
## Run inventory
|
src/study/frozen_report.py
CHANGED
|
@@ -17,6 +17,43 @@ def released_audit(folder, receipt_time):
|
|
| 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"):
|
|
@@ -30,7 +67,7 @@ def collect_frozen(root):
|
|
| 30 |
receipt["gpu"] = dict(peak_dedicated_mib=max(r["dedicated_bytes"] for r in samples)/2**20,
|
| 31 |
engines=samples[-1]["engines"],last_sample=samples[-1]["time"])
|
| 32 |
results.append({**receipt,"key":key})
|
| 33 |
-
return dict(results=results,decision=read_json(root/"decision.json",{}))
|
| 34 |
|
| 35 |
|
| 36 |
def depth_rows(study):
|
|
@@ -63,13 +100,27 @@ def frozen_text(study):
|
|
| 63 |
(f" On the {m['n']} natural traces, Judge 3 fixed {m['fixed']} verdicts and introduced {m['harmed']} errors." if m["n"] else ""))
|
| 64 |
else:
|
| 65 |
parts.append(f"{r['model']} · {r['status']}. {r['result']}.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
decision = study["decision"]
|
| 67 |
if decision:
|
|
|
|
|
|
|
|
|
|
| 68 |
parts.append(decision["result"]+".")
|
| 69 |
for metric, estimate in decision.get("estimates",{}).items():
|
| 70 |
lo,hi = estimate["ci"]
|
| 71 |
parts.append(f"The candidate-minus-control difference in {metric.replace('_',' ')} was {estimate['delta']*100:+.2f} percentage points on {estimate['n']} paired problems (95% interval {100*lo:+.2f} to {100*hi:+.2f}).")
|
| 72 |
-
|
|
|
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
def plot_scores(study, path):
|
|
|
|
| 17 |
return audit(folder, read_json(folder/"result.json"))
|
| 18 |
|
| 19 |
|
| 20 |
+
@lru_cache(maxsize=8)
|
| 21 |
+
def visible_requests(path, modified):
|
| 22 |
+
"""Index visible J3 twin calls. The timestamp invalidates the dashboard cache on a changed journal."""
|
| 23 |
+
return {r["id"]:r for r in rows(path) if r["id"].startswith("twins/") and "/visible/" in r["id"]}
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def compare_conversions(primary, alternate):
|
| 27 |
+
"""Match interventions by problem and review side before comparing text or model responses."""
|
| 28 |
+
left = visible_requests(primary, primary.stat().st_mtime_ns)
|
| 29 |
+
right = visible_requests(alternate, alternate.stat().st_mtime_ns)
|
| 30 |
+
if not left or left.keys() != right.keys():
|
| 31 |
+
raise ValueError("The two releases contain different visible twin request identities")
|
| 32 |
+
def matches(field):
|
| 33 |
+
return sum(item[field] == right[key][field] for key, item in left.items())
|
| 34 |
+
return dict(calls=len(left), same_messages=matches("messages"), same_prompts=matches("rendered_prompt"),
|
| 35 |
+
same_input_counts=matches("input_tokens"), same_outputs=matches("text"))
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def conversion_findings(root, results):
|
| 39 |
+
"""Compare preregistered deployment replicates after seeing their scores. They cannot select the winner."""
|
| 40 |
+
complete = {r["key"]:r for r in results if r.get("metrics")}
|
| 41 |
+
findings = []
|
| 42 |
+
for replica in LOCAL_REPLICATES:
|
| 43 |
+
key = replica.key.removesuffix("-ollama")
|
| 44 |
+
if key not in complete or replica.key not in complete:
|
| 45 |
+
continue
|
| 46 |
+
pair = [complete[k]["metrics"]["twins"] for k in (key, replica.key)]
|
| 47 |
+
same = compare_conversions(root/key/"calls.jsonl", root/replica.key/"calls.jsonl")
|
| 48 |
+
if 2*pair[0]["n"] != same["calls"] or pair[0]["n"] != pair[1]["n"]:
|
| 49 |
+
raise ValueError("The release comparison is missing evidence pairs")
|
| 50 |
+
findings.append(f"{replica.title} passed {pair[0]['visible']}/{pair[0]['n']} whole pairs with the Unsloth release and "
|
| 51 |
+
f"{pair[1]['visible']}/{pair[1]['n']} with the Ollama release. Of {same['calls']} matched visible reviews, "
|
| 52 |
+
f"{same['same_messages']} had identical messages, {same['same_prompts']} had identical rendered prompts, "
|
| 53 |
+
f"{same['same_input_counts']} had equal input token counts and {same['same_outputs']} produced identical output text.")
|
| 54 |
+
return findings
|
| 55 |
+
|
| 56 |
+
|
| 57 |
def collect_frozen(root):
|
| 58 |
results = []
|
| 59 |
for key in ("runtime-format-pilot",*[model.key for model in (*LOCAL_REPLICATES,*MODELS)],"confirm-control","confirm-winner"):
|
|
|
|
| 67 |
receipt["gpu"] = dict(peak_dedicated_mib=max(r["dedicated_bytes"] for r in samples)/2**20,
|
| 68 |
engines=samples[-1]["engines"],last_sample=samples[-1]["time"])
|
| 69 |
results.append({**receipt,"key":key})
|
| 70 |
+
return dict(results=results,decision=read_json(root/"decision.json",{}),conversions=conversion_findings(root,results))
|
| 71 |
|
| 72 |
|
| 73 |
def depth_rows(study):
|
|
|
|
| 100 |
(f" On the {m['n']} natural traces, Judge 3 fixed {m['fixed']} verdicts and introduced {m['harmed']} errors." if m["n"] else ""))
|
| 101 |
else:
|
| 102 |
parts.append(f"{r['model']} · {r['status']}. {r['result']}.")
|
| 103 |
+
parts.extend(interpretation(study))
|
| 104 |
+
return "\n\n".join(parts)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
def interpretation(study):
|
| 108 |
+
"""Keep the matched confirmation distinct from the exploratory comparison of file conversions."""
|
| 109 |
+
parts = []
|
| 110 |
+
if study.get("conversions"):
|
| 111 |
+
parts += ["The comparison of two conversions of the same model was exploratory. Both used the same llama.cpp CUDA executable. The experiment varies each complete model file, so a specific conversion difference cannot be identified as the cause.",*study["conversions"]]
|
| 112 |
decision = study["decision"]
|
| 113 |
if decision:
|
| 114 |
+
selected = next((r for r in study["results"] if r["key"]==decision.get("selected")),None)
|
| 115 |
+
if selected:
|
| 116 |
+
parts.append(f"The screen selected {selected['model']} ({selected['file']}) for independent confirmation against the original frozen model.")
|
| 117 |
parts.append(decision["result"]+".")
|
| 118 |
for metric, estimate in decision.get("estimates",{}).items():
|
| 119 |
lo,hi = estimate["ci"]
|
| 120 |
parts.append(f"The candidate-minus-control difference in {metric.replace('_',' ')} was {estimate['delta']*100:+.2f} percentage points on {estimate['n']} paired problems (95% interval {100*lo:+.2f} to {100*hi:+.2f}).")
|
| 121 |
+
if decision.get("estimates"):
|
| 122 |
+
parts.append("Intervals resample confirmation problems in pairs and condition on the deployed model files. The solver responses were fixed throughout. Measuring what the solver learns from these rewards requires the deferred online comparison.")
|
| 123 |
+
return parts
|
| 124 |
|
| 125 |
|
| 126 |
def plot_scores(study, path):
|
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, 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
|
|
@@ -492,12 +492,8 @@ def paper(data, date):
|
|
| 492 |
for r in data["newer_judges"]["results"]:
|
| 493 |
if not r.get("metrics"):
|
| 494 |
line(escape(f"{r['model']}: {r['result']}."))
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
line(escape(decision["result"]+"."))
|
| 498 |
-
for name,e in decision.get("estimates",{}).items():
|
| 499 |
-
lo,hi=e["ci"]
|
| 500 |
-
line(escape(f"{name}, paired difference {e['delta']*100:+.2f} pp (95% interval {lo*100:+.2f} to {hi*100:+.2f})."))
|
| 501 |
line(f"Model sizes, pinned weights, inclusion rules and the separate follow-up protocol are available in the <link href='{GITHUB}/blob/main/reports/newer-frozen-judges.md'>newer frozen judge protocol</link>. The calibrated final assessment includes paired depth and flat-vote contrasts, signed-difficulty, layout and length transfer, natural verdict changes and visible/masked evidence interventions.")
|
| 502 |
from reportlab.lib.styles import ParagraphStyle
|
| 503 |
small = ParagraphStyle("InventoryCell", parent=styles["BodyText"], fontSize=7.6, leading=9.6, spaceBefore=0, spaceAfter=0)
|
|
@@ -617,6 +613,10 @@ def build():
|
|
| 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)")
|
| 622 |
atomic(REPORTS/"run-inventory.md","# Run inventory\n\n"+ledger+"\n\n"+ledger_links+"\n")
|
|
@@ -695,7 +695,8 @@ def build():
|
|
| 695 |
references+="".join(f"\n- [Original {r['name']}]({r['name']}/experiment.md)" for r in data["original_development"])
|
| 696 |
methods_table=markdown(["Run","Role","Reward","Seed","Problem source","Dev. parsed","Dev. exact","Held-out exact"],methods)
|
| 697 |
atomic(experiments/"experiments.md","# Experiment index\n\n"+ledger_links+"\n\nAll learned models use grouped reinforcement learning with one active LoRA adapter on the shared, quantized Qwen2.5-1.5B-Instruct backbone. The solver predicts values in signed-integer expression trees. Judges predict exact evidence records about earlier outputs. A parsed output supplies the required number of integers. An exact output also gets every field right.\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")
|
| 698 |
-
|
|
|
|
| 699 |
core=[r for r in data["runs"] if r["name"]!="base" and not r["diagnostic"] and not r["supplemental"]]
|
| 700 |
complete=sum(r["completed_final"] for r in core)
|
| 701 |
trained=sum(r["updates"] is not None for r in core)
|
|
|
|
| 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, interpretation, 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
|
|
|
|
| 492 |
for r in data["newer_judges"]["results"]:
|
| 493 |
if not r.get("metrics"):
|
| 494 |
line(escape(f"{r['model']}: {r['result']}."))
|
| 495 |
+
for finding in interpretation(data["newer_judges"]):
|
| 496 |
+
line(escape(finding))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 497 |
line(f"Model sizes, pinned weights, inclusion rules and the separate follow-up protocol are available in the <link href='{GITHUB}/blob/main/reports/newer-frozen-judges.md'>newer frozen judge protocol</link>. The calibrated final assessment includes paired depth and flat-vote contrasts, signed-difficulty, layout and length transfer, natural verdict changes and visible/masked evidence interventions.")
|
| 498 |
from reportlab.lib.styles import ParagraphStyle
|
| 499 |
small = ParagraphStyle("InventoryCell", parent=styles["BodyText"], fontSize=7.6, leading=9.6, spaceBefore=0, spaceAfter=0)
|
|
|
|
| 613 |
frozen_summary += frozen_chart
|
| 614 |
experiment_pages(data["newer_judges"], REPORTS/"experiments/new-judges")
|
| 615 |
atomic(REPORTS/"experiments/new-judges/experiment.md", frozen_summary+"\n\n[Protocol and case selection](../../newer-frozen-judges.md).\n")
|
| 616 |
+
findings = interpretation(data["newer_judges"])
|
| 617 |
+
if findings:
|
| 618 |
+
atomic(REPORTS/"experiments/new-judges/learnings.md", "# Findings on frozen judge releases\n\n"+
|
| 619 |
+
"\n\n".join(findings)+"\n\n[All scored runs and costs](experiment.md) · [Protocol](../../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)")
|
| 622 |
atomic(REPORTS/"run-inventory.md","# Run inventory\n\n"+ledger+"\n\n"+ledger_links+"\n")
|
|
|
|
| 695 |
references+="".join(f"\n- [Original {r['name']}]({r['name']}/experiment.md)" for r in data["original_development"])
|
| 696 |
methods_table=markdown(["Run","Role","Reward","Seed","Problem source","Dev. parsed","Dev. exact","Held-out exact"],methods)
|
| 697 |
atomic(experiments/"experiments.md","# Experiment index\n\n"+ledger_links+"\n\nAll learned models use grouped reinforcement learning with one active LoRA adapter on the shared, quantized Qwen2.5-1.5B-Instruct backbone. The solver predicts values in signed-integer expression trees. Judges predict exact evidence records about earlier outputs. A parsed output supplies the required number of integers. An exact output also gets every field right.\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")
|
| 698 |
+
link_to_findings = "[Frozen judge comparisons and independent confirmation](new-judges/learnings.md).\n\n" if findings else ""
|
| 699 |
+
atomic(experiments/"learnings.md","# Experimental learnings\n\n"+link_to_findings+("\n".join(notes) or "No experimental observations yet.")+"\n")
|
| 700 |
core=[r for r in data["runs"] if r["name"]!="base" and not r["diagnostic"] and not r["supplemental"]]
|
| 701 |
complete=sum(r["completed_final"] for r in core)
|
| 702 |
trained=sum(r["updates"] is not None for r in core)
|
tests/test_frozen_screen.py
CHANGED
|
@@ -100,3 +100,20 @@ def test_release_audit_detects_changed_evidence_even_when_verdict_totals_match(t
|
|
| 100 |
atomic(tmp_path/"cases.jsonl","".join(json.dumps(v)+"\n" for v in data))
|
| 101 |
with pytest.raises(ValueError,match="Logged judge output"):
|
| 102 |
audit(tmp_path,receipt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
atomic(tmp_path/"cases.jsonl","".join(json.dumps(v)+"\n" for v in data))
|
| 101 |
with pytest.raises(ValueError,match="Logged judge output"):
|
| 102 |
audit(tmp_path,receipt)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def test_conversion_comparison_matches_twin_requests_by_identity(tmp_path):
|
| 106 |
+
from study.frozen_report import compare_conversions
|
| 107 |
+
from study.storage import append
|
| 108 |
+
left, right = tmp_path / "primary.jsonl", tmp_path / "alternate.jsonl"
|
| 109 |
+
observations = [dict(id=f"twins/example/visible/{i}", rendered_prompt=f"review {i}",
|
| 110 |
+
messages=[{"role":"user", "content":str(i)}], input_tokens=8, text="yes") for i in range(2)]
|
| 111 |
+
for r in observations:
|
| 112 |
+
append(left, r)
|
| 113 |
+
append(right, {**observations[1], "text":"no"})
|
| 114 |
+
append(right, observations[0])
|
| 115 |
+
summary = compare_conversions(left, right)
|
| 116 |
+
assert summary == dict(calls=2, same_messages=2, same_prompts=2, same_input_counts=2, same_outputs=1)
|
| 117 |
+
append(right, {**observations[0], "id":"twins/unmatched/visible/0"})
|
| 118 |
+
with pytest.raises(ValueError, match="identities"):
|
| 119 |
+
compare_conversions(left, right)
|