BurnyCoder commited on
Commit
ac5a572
·
verified ·
1 Parent(s): 6bd96b5

fixed-solver-approval-control · 2234fd36f524

Browse files
README.md CHANGED
@@ -35,6 +35,8 @@ Every judge grades the same 32 saved responses from the starting solver. A verdi
35
  | Top-down supervision · only final judge trained | 20/32 (62.5%) | 19/32 (59.4%) | 18/32 (56.2%) |
36
  | Top-down supervision · all participating judges trained | 20/32 (62.5%) | 18/32 (56.2%) | 18/32 (56.2%) |
37
 
 
 
38
  “Only final judge trained” fits the judge used for that column’s terminal decision and uses original judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. [Matched comparison protocol](reports/matched-depth-protocol.md)
39
 
40
  ## Why did the two-judge and three-judge solvers diverge?
 
35
  | Top-down supervision · only final judge trained | 20/32 (62.5%) | 19/32 (59.4%) | 18/32 (56.2%) |
36
  | Top-down supervision · all participating judges trained | 20/32 (62.5%) | 18/32 (56.2%) | 18/32 (56.2%) |
37
 
38
+ 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.
39
+
40
  “Only final judge trained” fits the judge used for that column’s terminal decision and uses original judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. [Matched comparison protocol](reports/matched-depth-protocol.md)
41
 
42
  ## Why did the two-judge and three-judge solvers diverge?
docs/assets/study.json CHANGED
@@ -212282,7 +212282,8 @@
212282
  ],
212283
  "solver_n": 32,
212284
  "judge_n": 32,
212285
- "frozen_solver": "20/32 (62.5%)"
 
212286
  }
212287
  ],
212288
  "primary": {
 
212282
  ],
212283
  "solver_n": 32,
212284
  "judge_n": 32,
212285
+ "frozen_solver": "20/32 (62.5%)",
212286
+ "judge_note": "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."
212287
  }
212288
  ],
212289
  "primary": {
docs/explorer.js CHANGED
@@ -75,6 +75,9 @@ function showMatched(grids) {
75
  for (const fields of records) row(body,fields);
76
  wrapper.append(table); target.append(wrapper);
77
  }
 
 
 
78
  }
79
  }
80
  function showRun() {
 
75
  for (const fields of records) row(body,fields);
76
  wrapper.append(table); target.append(wrapper);
77
  }
78
+ if (grid.judge_note) {
79
+ const note=document.createElement("p"); note.textContent=grid.judge_note; target.append(note);
80
+ }
81
  }
82
  }
83
  function showRun() {
reports/paper.pdf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:65f51bc80a582d33971badd9c5320a0dadeceb93eccab2a52afb0fde9737de6c
3
- size 755867
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19714d45e4f8ecc539515884c580ed3202e1164f6060aaf7bd9ed6a55074acc9
3
+ size 756065
reports/summary.md CHANGED
@@ -26,6 +26,8 @@ Every judge grades the same 32 saved responses from the starting solver. A verdi
26
  | Top-down supervision · only final judge trained | 20/32 (62.5%) | 19/32 (59.4%) | 18/32 (56.2%) |
27
  | Top-down supervision · all participating judges trained | 20/32 (62.5%) | 18/32 (56.2%) | 18/32 (56.2%) |
28
 
 
 
29
  “Only final judge trained” fits the judge used for that column’s terminal decision and uses original judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. [Matched comparison protocol](matched-depth-protocol.md)
30
 
31
  Amended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.
 
26
  | Top-down supervision · only final judge trained | 20/32 (62.5%) | 19/32 (59.4%) | 18/32 (56.2%) |
27
  | Top-down supervision · all participating judges trained | 20/32 (62.5%) | 18/32 (56.2%) | 18/32 (56.2%) |
28
 
29
+ 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.
30
+
31
  “Only final judge trained” fits the judge used for that column’s terminal decision and uses original judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. [Matched comparison protocol](matched-depth-protocol.md)
32
 
33
  Amended primary comparison is pending. Every arm uses two-add problems and demonstrated prompts.
src/study/matched_tables.py CHANGED
@@ -44,6 +44,8 @@ def accuracy_grid(root,profile):
44
  if (len(base),len(shared)) != ((32,32) if is_dev else (2048,128)):
45
  raise ValueError(f"Incomplete base cohort for the {phase} tables")
46
  solver_table,judge_table = [],[]
 
 
47
  route_labels = {"frozen":"Only solver trained · original judges","exact":"Exact-trained judges, then solver",
48
  "top":"Top-down-trained judges, then solver"}
49
  for route,label in route_labels.items():
@@ -78,9 +80,24 @@ def accuracy_grid(root,profile):
78
  first = read_cohort(root/ROUTES[route][0]/judge_file,shared,judge=True)
79
  if any(a["reports"][0]!=b["reports"][0] for a,b in zip(first,records,strict=True)):
80
  raise ValueError(f"Identical trained Judge 1 reports differ across {route} conditions")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  judge_table.append([label+" · all participating judges trained",*fitted])
82
  grids.append(dict(phase=phase,solver=solver_table,judge=judge_table,solver_n=len(base),judge_n=len(shared),
83
- frozen_solver=cell(sum(r["correct"] for r in base),len(base))))
84
  return grids
85
 
86
 
@@ -98,7 +115,7 @@ def grid_markdown(grids):
98
  markdown(HEADERS,grid["solver"]),f"### {split} judge verdict accuracy",
99
  f"Every judge grades the same {grid['judge_n']} saved responses from the starting solver. A verdict is correct "
100
  f"when it agrees with the arithmetic checker. In all judge-only conditions the solver itself stays at {grid['frozen_solver']} "
101
- f"on the {grid['solver_n']:,} solver-evaluation questions.",markdown(HEADERS,grid["judge"])]
102
  sections.append("“Only final judge trained” fits the judge used for that column’s terminal decision and uses original "
103
  "judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. "
104
  "Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. "
 
44
  if (len(base),len(shared)) != ((32,32) if is_dev else (2048,128)):
45
  raise ValueError(f"Incomplete base cohort for the {phase} tables")
46
  solver_table,judge_table = [],[]
47
+ valid = sum(r["correct"] for r in shared)
48
+ notes = [f"Always accepting scores {cell(valid,len(shared))} on these same responses."]
49
  route_labels = {"frozen":"Only solver trained · original judges","exact":"Exact-trained judges, then solver",
50
  "top":"Top-down-trained judges, then solver"}
51
  for route,label in route_labels.items():
 
80
  first = read_cohort(root/ROUTES[route][0]/judge_file,shared,judge=True)
81
  if any(a["reports"][0]!=b["reports"][0] for a,b in zip(first,records,strict=True)):
82
  raise ValueError(f"Identical trained Judge 1 reports differ across {route} conditions")
83
+ approved = [sum(r["verdicts"][i] for r in records) for i in range(3)]
84
+ inaccurate = [sum(r["verdicts"][i] and not r["correct"] for r in records) for i in range(3)]
85
+ stack_label = "stack trained on exact labels" if route=="exact" else "stack trained top-down"
86
+ if all(n==len(records) for n in approved):
87
+ notes.append(f"The {stack_label} approved all {len(records)} answers at every depth, "
88
+ f"including all {len(records)-valid} incorrect solutions.")
89
+ else:
90
+ total_text = ", ".join(map(str,approved))
91
+ wrong_text = ", ".join(map(str,inaccurate))
92
+ faults = len(records)-valid
93
+ errors = (f"It accepted all {faults} incorrect solutions at every depth."
94
+ if faults and all(n==faults for n in inaccurate) else
95
+ f"False approvals numbered {wrong_text}, with {faults} incorrect solutions per depth.")
96
+ notes.append(f"The {stack_label} approved {total_text} answers at depths one, two and three, "
97
+ f"respectively. {errors}")
98
  judge_table.append([label+" · all participating judges trained",*fitted])
99
  grids.append(dict(phase=phase,solver=solver_table,judge=judge_table,solver_n=len(base),judge_n=len(shared),
100
+ frozen_solver=cell(sum(r["correct"] for r in base),len(base)),judge_note=" ".join(notes)))
101
  return grids
102
 
103
 
 
115
  markdown(HEADERS,grid["solver"]),f"### {split} judge verdict accuracy",
116
  f"Every judge grades the same {grid['judge_n']} saved responses from the starting solver. A verdict is correct "
117
  f"when it agrees with the arithmetic checker. In all judge-only conditions the solver itself stays at {grid['frozen_solver']} "
118
+ f"on the {grid['solver_n']:,} solver-evaluation questions.",markdown(HEADERS,grid["judge"]),grid["judge_note"]]
119
  sections.append("“Only final judge trained” fits the judge used for that column’s terminal decision and uses original "
120
  "judges for preceding calls. “All participating judges trained” uses fitted adapters at every depth. "
121
  "Top-down training uses the shared exact-trained Judge 3. Pending cells have no completed matched measurement. "
src/study/report.py CHANGED
@@ -341,6 +341,7 @@ def paper(data, date):
341
  "reviews its predecessor. Fitted judges stay frozen during solver optimization.")
342
  table(["Solver training","One judge","Two judges","Three judges"],grid["solver"])
343
  table(["Judge training","One judge","Two judges","Three judges"],grid["judge"])
 
344
  line("Development accuracy for a solver requires every arithmetic step to be correct. For a judge it requires its whole record to match the executable audit. Held-out solver accuracy uses one response per problem. A dash denotes a pending measurement.")
345
  if data["runs"]:
346
  table(["Run","Role","Updates","Dev. n","Dev. exact","Test n","Test exact"],
 
341
  "reviews its predecessor. Fitted judges stay frozen during solver optimization.")
342
  table(["Solver training","One judge","Two judges","Three judges"],grid["solver"])
343
  table(["Judge training","One judge","Two judges","Three judges"],grid["judge"])
344
+ line(grid["judge_note"])
345
  line("Development accuracy for a solver requires every arithmetic step to be correct. For a judge it requires its whole record to match the executable audit. Held-out solver accuracy uses one response per problem. A dash denotes a pending measurement.")
346
  if data["runs"]:
347
  table(["Run","Role","Updates","Dev. n","Dev. exact","Test n","Test exact"],
tests/test_matched_tables.py CHANGED
@@ -21,6 +21,7 @@ def test_fitted_adapter_count_does_not_substitute_for_fewer_judge_calls(tmp_path
21
  assert grid["solver"][1][1:]==["Pending","Pending","16/32 (50.0%)"]
22
  assert grid["judge"][0][1:]==["16/32 (50.0%)","16/32 (50.0%)","32/32 (100.0%)"]
23
  assert "Three judges · J3 checks J2" in grid_markdown([grid])
 
24
  save("exact-j1",[dict(r,trace="a different solution") for r in examples])
25
  with pytest.raises(ValueError,match="Unmatched solver responses"):
26
  accuracy_grid(tmp_path,{"family":"two-add"})
 
21
  assert grid["solver"][1][1:]==["Pending","Pending","16/32 (50.0%)"]
22
  assert grid["judge"][0][1:]==["16/32 (50.0%)","16/32 (50.0%)","32/32 (100.0%)"]
23
  assert "Three judges · J3 checks J2" in grid_markdown([grid])
24
+ assert "Always accepting scores 16/32 (50.0%)" in grid_markdown([grid])
25
  save("exact-j1",[dict(r,trace="a different solution") for r in examples])
26
  with pytest.raises(ValueError,match="Unmatched solver responses"):
27
  accuracy_grid(tmp_path,{"family":"two-add"})