frozen-role-signal · b6fbcf6f2f25
Browse filesFiles changed (5)
10 unmodified lines111213141415161719 unmodified lines37383940404142434445464748495010 unmodified lines<!-- RESULTS:START -->## Why did the two-judge and three-judge solvers diverge?
**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). 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.**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.
The same evaluation gave 20/32 for the starting solver, 21/32 for one judge, 24/32 for three independent votes, 32/32 for the exact checker, 31/32 for the third judge gated by the exact checker, 5/32 for shuffled three-judge rewards.
19 unmodified lines
On the same 1,024 training answers sampled by the three-judge solver, Judge 3 fixed 58 of Judge 2’s verdicts and spoiled 44. Substituting Judge 2’s reward would have changed the relative credits in **81/256 optimizer updates**. Each GRPO update compares four answers to one question. When gradings change early on, the solvers can learn different answers and receive different training data at subsequent updates. [GRPO advantage calculation](https://huggingface.co/docs/trl/grpo_trainer#computing-the-advantage)
Judge 3 rewarded **569/880 incorrect answers (64.7%)** and **88/144 correct answers (61.1%)**.Reading each frozen verdict on exactly the same sampled answers measures the change in reward for correct and incorrect arithmetic. A positive rate difference means correct answers receive reward more often.
| Frozen reward source | Correct answers rewarded | Wrong answers rewarded | Correct minus wrong rate (pp) || --- | --- | --- | --- || Judge 2 | 104/144 (72.2%) | 599/880 (68.1%) | +4.2 || Judge 3 | 88/144 (61.1%) | 569/880 (64.7%) | -3.5 |
During its own training run, the two-judge solver generated 648/1,024 exact answers and received 751 positive rewards. The three-judge solver generated 144/1,024 exact answers and received 657 positive rewards. Each run sampled from its own evolving solver.
| Within the same training question | Correct answer ranks higher | Tied | Wrong answer ranks higher || --- | --- | --- | --- |195115 unmodified lines195116195117195118195119195120195121195122195123195124195125195126195127195128195129195130195131195115 unmodified lines "fixes": 58, "harms": 44, "changed_groups": 81, "same_answers_paid": [ { "correct": 104, "wrong": 599 }, { "correct": 88, "wrong": 569 } ], "j2_pairs": [ 28, 81,13 unmodified lines14151617171819202122232425262713 unmodified lines| second wrong | 0 | 18 | 3 || format | 1 | 93 | 49 |
On the same 1024 training answers, Judge 3 fixed 58 effective Judge 2 verdicts and spoiled 44. Its decision changed the within-group advantages in 81/256 optimizer updates. Each row below compares correct and incorrect completions of the same question. Pairs within and across rows share observations.On the same 1024 training answers, Judge 3 fixed 58 effective Judge 2 verdicts and spoiled 44. Its decision changed the within-group advantages in 81/256 optimizer updates. Reward rates compare all answers of each class on this fixed trajectory.
| Frozen reward source | Correct answers rewarded | Wrong answers rewarded | Correct minus wrong rate (pp) || --- | --- | --- | --- || Judge 2 | 104/144 (72.2%) | 599/880 (68.1%) | +4.2 || Judge 3 | 88/144 (61.1%) | 569/880 (64.7%) | -3.5 |
Within-question pairs compare correct and incorrect completions of the same problem. Pairs within and across rows share observations.
| Reward applied to these answers | Correct ranks higher | Tied | Incorrect ranks higher || --- | --- | --- | --- |49 unmodified lines5051525354555657585960616263644 unmodified lines697071687273747566 unmodified lines14214314414514614714814915015115215315415515615715815916011 unmodified lines17217317417517617717828 unmodified lines2072082091921931941952102112121 unmodified line21421521620320420521721821922022122222322422522697 unmodified lines32432532630932732832933033133249 unmodified lines """Replay both reward rules on identical samples, preserving the four-way GRPO groups.""" fixes = harms = changed = 0 preferences = [Counter(), Counter()] paid = [dict(correct=0,wrong=0) for _ in range(2)] for group in batched(deep, 4): if len(group) != 4: raise ValueError("A comparison requires four samples per group") labels = [r["label"] for r in group] second, third = [[effective_bit(r["reports"][index]) for r in group] for index in (1, 2)] for counts, votes in zip(paid,(second,third),strict=True): for label,bit in zip(labels,votes,strict=True): counts["correct" if label else "wrong"] += bit fixes += sum(a != y and b == y for a, b, y in zip(second, third, labels, strict=True)) harms += sum(a == y and b != y for a, b, y in zip(second, third, labels, strict=True)) # Centered binary returns induce the same normalized advantages if both vectors are constant.4 unmodified lines good, bad = (i, j) if labels[i] else (j, i) for counts, votes in zip(preferences, (second, third), strict=True): counts[votes[good] - votes[bad]] += 1 return dict(fixes=fixes, harms=harms, changed_groups=changed, return dict(fixes=fixes, harms=harms, changed_groups=changed, same_answers_paid=paid, j2_pairs=[preferences[0][i] for i in (1, 0, -1)], j3_pairs=[preferences[1][i] for i in (1, 0, -1)])
66 unmodified lines transcript_audit=read_json(directory/"diagnostics"/f"depth-transcripts-{seed}.json"), **group_evidence(deep))
def reward_rates(r): """Compare final-bit reward rates on the identical examples at each depth.""" valid = r["three"]["training"]["correct"] wrong = r["n"]-valid records = [] for level,paid in enumerate(r["same_answers_paid"],2): counts = [(paid["correct"],valid),(paid["wrong"],wrong)] cells = [f"{n}/{total} ({100*n/total:.1f}%)" if total else "0/0" for n,total in counts] gap = f"{100*(paid['correct']/valid - paid['wrong']/wrong):+.1f}" if valid and wrong else "—" records.append([f"Judge {level}",*cells,gap]) return markdown(["Frozen reward source","Correct answers rewarded","Wrong answers rewarded","Correct minus wrong rate (pp)"],records)
def readme_depth(data): """Keep the original seed's worked examples visible as later replications arrive.""" reviews = data["depth_review"]11 unmodified lines f"**With seed {seed}, training the solver with two frozen judges gave {two_correct}/{n} correct " f"solutions ({100*two_correct/n:.1f}%). Training it with three gave {correct}/{n} ({100*correct/n:.1f}%).** " f"The gap was {abs(correct-two_correct)} complete solutions ({100*(correct-two_correct)/n:+.2f} percentage points, three minus two). " f"Only the solver adapter learned. All judging used the frozen, original Qwen instruction model. " f"Both solvers started from the same model and saw the same problems in the same order. An integer program " f"graded every intermediate step. On the paired problems, only the two-judge solver was correct on " f"{paired['two only']}, only the three-judge solver on {paired['three only']}, both on {paired['both']}, "28 unmodified lines e = r["shared_error"] sections.append(f"On `{e['expression']}`, the two-judge-trained solver wrote `{e['right']}`. The three-judge-trained " f"solver wrote `{e['wrong']}`, and all three judges approved it in the replay.") valid = deep["training"]["correct"] wrong = r["n"]-valid valid_paid = deep["rewarded"]["correct"] wrong_paid = sum(deep["rewarded"].values())-valid_paid sections += ["### What changed during training?", f"On the same {r['n']:,} training answers sampled by the three-judge solver, Judge 3 fixed {r['fixes']} " f"of Judge 2’s verdicts and spoiled {r['harms']}. Substituting Judge 2’s reward would have changed the "1 unmodified line "Each GRPO update compares four answers to one question. When gradings change early on, the solvers can " "learn different answers and receive different training data at subsequent updates. " "[GRPO advantage calculation](https://huggingface.co/docs/trl/grpo_trainer#computing-the-advantage)", f"Judge 3 rewarded **{wrong_paid}/{wrong} incorrect answers ({100*wrong_paid/wrong:.1f}%)** and " f"**{valid_paid}/{valid} correct answers ({100*valid_paid/valid:.1f}%)**." if valid and wrong else f"Judge 3 rewarded {wrong_paid}/{wrong} incorrect and {valid_paid}/{valid} correct answers.", "Reading each frozen verdict on exactly the same sampled answers measures the change in reward for correct " "and incorrect arithmetic. A positive rate difference means correct answers receive reward more often.", reward_rates(r), f"During its own training run, the two-judge solver generated {r['two']['training']['correct']}/{r['n']:,} " f"exact answers and received {sum(r['two']['rewarded'].values())} positive rewards. The three-judge solver " f"generated {deep['training']['correct']}/{r['n']:,} exact answers and received {sum(deep['rewarded'].values())} positive rewards. " "Each run sampled from its own evolving solver.", markdown(["Within the same training question", "Correct answer ranks higher", "Tied", "Wrong answer ranks higher"], [["Judge 2 on those answers",*r["j2_pairs"]],["Judge 3 on those answers",*r["j3_pairs"]]]), f"In its first quarter of training, the three-judge solver produced {deep['first_quarter'][0]} correct "97 unmodified lines ("correct","first wrong, second consistent","first wrong, second inconsistent","second wrong","format")]), f"On the same {r['n']} training answers, Judge 3 fixed {r['fixes']} effective Judge 2 verdicts and " f"spoiled {r['harms']}. Its decision changed the within-group advantages in {r['changed_groups']}/{r['groups']} " "optimizer updates. Each row below compares correct and incorrect completions of the same question. " "optimizer updates. Reward rates compare all answers of each class on this fixed trajectory.", reward_rates(r), "Within-question pairs compare correct and incorrect completions of the same problem. " "Pairs within and across rows share observations.", markdown(["Reward applied to these answers", "Correct ranks higher", "Tied", "Incorrect ranks higher"], [["Judge 2",*r["j2_pairs"]],["Judge 3",*r["j3_pairs"]]]),35 unmodified lines3637383940414235 unmodified lines assert result["changed_groups"] == 1 assert result["j2_pairs"] == [1,2,0] assert result["j3_pairs"] == [0,2,1] assert result["same_answers_paid"] == [{"correct":1,"wrong":2},{"correct":0,"wrong":1}]
def test_group_evidence_rejects_an_incomplete_training_group():README.md+9-2
docs/assets/study.json+10
reports/reviews/depth-diagnosis.md+8-1
src/study/depth_review.py+29-9
tests/test_depth_review.py+1