learnability-visualization · 10803f8eb03a
Browse filesFiles changed (13)
- README.md+2
- docs/assets/learnability.pngAdded
- docs/explorer.js+15
- docs/index.html+1-1
- docs/style.css+1
- reports/experiments/learn-oracle-17/experiment.md+2
- reports/experiments/learn-oracle-17/learnings.md+1-1
- reports/experiments/learnings.md+1-1
- reports/learnability.md+2
- reports/paper.pdf+2-2
- src/study/learnability_report.py+46
- src/study/report.py+14-3
- tests/test_release.py+15
10 unmodified lines11121314151610 unmodified lines<!-- RESULTS:START -->10 unmodified lines111213141516171810 unmodified lines<!-- RESULTS:START -->
103 unmodified lines104105106107108109110111112113114103 unmodified linesbyId("readiness").textContent=cal?.screen?.selected ? "Selected "+cal.screen.selected.family+" with "+cal.screen.selected.style+" prompts." :cal?.screen ? "No configuration qualified under the registered rule." : "The frozen-model difficulty screen is pending.";for (const c of cal?.screen?.cells ?? []) row(byId("calibration"),[c.family,c.style,pct(c.parsed),pct(c.sampled_exact),pct(c.greedy_exact),c.mixed_groups+" / "+c.problems]);const vals=Object.entries(cal?.evaluations ?? {}).filter(([,v])=>v).map(([k,v])=>k+" "+v.correct+"/"+v.n);byId("learned").textContent=cal?.learning ? "Learning criterion "+(cal.learning.demonstrated?"met. ":"unmet. ")+vals.join(" · ") :vals.length ? "Fresh validation outcomes · "+vals.join(" · ") : "The positive-control test compares exact-reward training with the starting solver and shuffled rewards.";const arithmetic=cal?.learning?.by_parse?.base?.groups?.find(g=>g.stratum==="Both parsed");if (arithmetic) byId("learned").textContent += " Among "+arithmetic.n+" already parseable pairs, training corrected "+arithmetic.gains+" arithmetic traces and broke "+arithmetic.losses+".";byId("results").replaceChildren();for (const r of study.runs) row(byId("results"),[r.name,r.role,r.updates,pct(r.dev),r.dev_n,pct(r.test),r.test_n]);const current=byId("run").value || study.runs.find(r=>r.name!=="base" && r.updates==null)?.name;103 unmodified lines104105106107108109110111112113114115116117118119120121122123124125126127128129103 unmodified linesbyId("readiness").textContent=cal?.screen?.selected ? "Selected "+cal.screen.selected.family+" with "+cal.screen.selected.style+" prompts." :cal?.screen ? "No configuration qualified under the registered rule." : "The frozen-model difficulty screen is pending.";for (const c of cal?.screen?.cells ?? []) row(byId("calibration"),[c.family,c.style,pct(c.parsed),pct(c.sampled_exact),pct(c.greedy_exact),c.mixed_groups+" / "+c.problems]);if (cal?.confirmation) {const c=cal.confirmation.cell;byId("readiness").textContent += " Independent confirmation "+(cal.confirmation.confirmed?"passed":"failed")+" on "+c.problems+" problems. Greedy complete-trace accuracy "+pct(c.greedy_exact)+", with mixed samples on "+c.mixed_groups+" problems.";}const vals=Object.entries(cal?.evaluations ?? {}).filter(([,v])=>v).map(([k,v])=>k+" "+v.correct+"/"+v.n);byId("learned").textContent=cal?.learning ? "Learning criterion "+(cal.learning.demonstrated?"met. ":"unmet. ")+vals.join(" · ") :vals.length ? "Fresh validation outcomes · "+vals.join(" · ") : "The positive-control test compares exact-reward training with the starting solver and shuffled rewards.";const arithmetic=cal?.learning?.by_parse?.base?.groups?.find(g=>g.stratum==="Both parsed");if (arithmetic) byId("learned").textContent += " Among "+arithmetic.n+" already parseable pairs, training corrected "+arithmetic.gains+" arithmetic traces and broke "+arithmetic.losses+".";const chart=byId("validation-chart");const version=vals.join("|")+"|"+(cal?.learning?.status ?? "");if (vals.length && chart.dataset.version!==version) {chart.hidden=true;chart.onload=()=>{chart.hidden=false;};chart.onerror=()=>{chart.hidden=true; delete chart.dataset.version;};chart.dataset.version=version;chart.src="assets/learnability.png?v="+encodeURIComponent(version);} else if (!vals.length) chart.hidden=true;byId("results").replaceChildren();for (const r of study.runs) row(byId("results"),[r.name,r.role,r.updates,pct(r.dev),r.dev_n,pct(r.test),r.test_n]);const current=byId("run").value || study.runs.find(r=>r.name!=="base" && r.updates==null)?.name;
2 unmodified lines34567892 unmodified lines<body><main><header><div><h1>Does a third judge help?</h1><p>Recursive LLM judgments as rewards for an arithmetic solver trained with GRPO.</p></div><nav><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md">Protocol</a><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/paper.pdf">Paper</a></nav></header><section aria-labelledby="outcome"><h2 id="outcome">Primary comparison</h2><p id="primary" aria-live="polite">Loading observations…</p><p id="progress"></p></section><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></section><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><section><h2>Trace explorer</h2><div class="controls"><label>Run <select id="run"></select></label><label>Solution <select id="out"><option value="all">All examples</option><option value="0">Incorrect</option><option value="1">Correct</option></select></label></div><div id="examples" aria-live="polite"></div></section><section><h2>Review evidence</h2><p id="pair"></p><div id="evidence"></div><div class="scroll"><table><caption>Verdicts on the same natural traces</caption><thead><tr><th>Split</th><th>Rule</th><th>Agreement</th><th>False accepts / invalid</th><th>False rejects / valid</th><th>Malformed / reports</th></tr></thead><tbody id="replay"></tbody></table></div></section>2 unmodified lines34567892 unmodified lines<body><main><header><div><h1>Does a third judge help?</h1><p>Recursive LLM judgments as rewards for an arithmetic solver trained with GRPO.</p></div><nav><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/preregistration.md">Protocol</a><a href="https://github.com/BurnyCoder/verifying-verifier-of-verifier-llm-reinforcement-learning/blob/main/reports/paper.pdf">Paper</a></nav></header><section aria-labelledby="outcome"><h2 id="outcome">Primary comparison</h2><p id="primary" aria-live="polite">Loading observations…</p><p id="progress"></p></section><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><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><section><h2>Trace explorer</h2><div class="controls"><label>Run <select id="run"></select></label><label>Solution <select id="out"><option value="all">All examples</option><option value="0">Incorrect</option><option value="1">Correct</option></select></label></div><div id="examples" aria-live="polite"></div></section><section><h2>Review evidence</h2><p id="pair"></p><div id="evidence"></div><div class="scroll"><table><caption>Verdicts on the same natural traces</caption><thead><tr><th>Split</th><th>Rule</th><th>Agreement</th><th>False accepts / invalid</th><th>False rejects / valid</th><th>Malformed / reports</th></tr></thead><tbody id="replay"></tbody></table></div></section>
12:root{font:16px/1.5 system-ui,sans-serif;color:#142f32;background:#f6f7f3}*{box-sizing:border-box}main{max-width:1080px;margin:auto;padding:2rem clamp(1rem,4vw,3rem)}header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding:1rem 0 2rem;border-bottom:3px solid #18594f}h1{font:600 clamp(2rem,4.8vw,3.8rem)/1.07 Georgia,serif;letter-spacing:-.04em;margin:0}h2{font:600 1.65rem Georgia,serif;margin:0 0 1rem}header p{max-width:55ch;color:#375a59;margin-bottom:0}nav,.controls{display:flex;gap:1rem;flex-wrap:wrap}a{color:#145c52;text-underline-offset:.2em}section{padding:1.55rem 0;border-bottom:1px solid #c5d3cf}select{font:inherit;padding:.35rem;background:#fff;border:1px solid #849f96;border-radius:.2rem;color:inherit}label{display:flex;align-items:center;gap:.45rem}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #d6dfd9;white-space:nowrap}th{font-size:.84rem;color:#43615f}code,pre{font: .92rem/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}article{background:white;border-left:3px solid #377f70;margin-top:1rem;padding:.8rem 1rem}article.error{border-color:#ad512e}article h3{margin:.1rem 0 .45rem}pre{margin:.4rem 0}footer{padding:1.5rem 0;color:#516865}@media(max-width:640px){header{flex-direction:column;gap:.8rem}.controls{gap:.65rem}}canvas{display:block;width:100%;height:auto;margin:1rem 0}canvas[hidden]{display:none}caption{text-align:left;font-weight:600;margin:1rem 0 .4rem}123:root{font:16px/1.5 system-ui,sans-serif;color:#142f32;background:#f6f7f3}*{box-sizing:border-box}main{max-width:1080px;margin:auto;padding:2rem clamp(1rem,4vw,3rem)}header{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding:1rem 0 2rem;border-bottom:3px solid #18594f}h1{font:600 clamp(2rem,4.8vw,3.8rem)/1.07 Georgia,serif;letter-spacing:-.04em;margin:0}h2{font:600 1.65rem Georgia,serif;margin:0 0 1rem}header p{max-width:55ch;color:#375a59;margin-bottom:0}nav,.controls{display:flex;gap:1rem;flex-wrap:wrap}a{color:#145c52;text-underline-offset:.2em}section{padding:1.55rem 0;border-bottom:1px solid #c5d3cf}select{font:inherit;padding:.35rem;background:#fff;border:1px solid #849f96;border-radius:.2rem;color:inherit}label{display:flex;align-items:center;gap:.45rem}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #d6dfd9;white-space:nowrap}th{font-size:.84rem;color:#43615f}code,pre{font: .92rem/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}article{background:white;border-left:3px solid #377f70;margin-top:1rem;padding:.8rem 1rem}article.error{border-color:#ad512e}article h3{margin:.1rem 0 .45rem}pre{margin:.4rem 0}footer{padding:1.5rem 0;color:#516865}@media(max-width:640px){header{flex-direction:column;gap:.8rem}.controls{gap:.65rem}}canvas{display:block;width:100%;height:auto;margin:1rem 0}canvas[hidden]{display:none}caption{text-align:left;font-weight:600;margin:1rem 0 .4rem}#validation-chart{max-width:100%;height:auto}
5 unmodified lines678910115 unmodified lines|---|---|---:|---:|---:|---:|---:|| learn-oracle-17 | solver | 128 | — | 0 | — | 0 |### Training generation cost| Role | Calls | Input tokens | Output tokens | CUDA event seconds |5 unmodified lines6789101112135 unmodified lines|---|---|---:|---:|---:|---:|---:|| learn-oracle-17 | solver | 128 | — | 0 | — | 0 |On the fresh learning-validation cohort, 246 of 256 complete traces were correct and 255 parsed. [Individual validation records](../../../results/learnability/evaluations/learn-oracle-17.jsonl).### Training generation cost| Role | Calls | Input tokens | Output tokens | CUDA event seconds |
12345# Observations from learn-oracle-17The exact checker accepted 82.4% of observed policy outputs. The assigned reward averaged 82.4%. Of 512 rollouts, 0 received reward for an incorrect output and 0 lost reward for a correct output. 112 of 128 complete groups had identical rewards.[Raw measurements and denominators](experiment.md) · [Analysis amendments](../../amendments.md)12345# Observations from learn-oracle-17On the fresh learning-validation cohort, 246 of 256 complete traces were correct and 255 parsed. The exact checker accepted 82.4% of observed policy outputs. The assigned reward averaged 82.4%. Of 512 rollouts, 0 received reward for an incorrect output and 0 lost reward for a correct output. 112 of 128 complete groups had identical rewards.[Raw measurements and denominators](experiment.md) · [Analysis amendments](../../amendments.md)
1 unmodified line23451 unmodified line- [base](base/learnings.md). The solver completed 0 of 32 development calculations exactly. Among 26 serialization failures, 5 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 1 errors.- [d3-17](d3-17/learnings.md). The exact checker accepted 0.0% of observed policy outputs. The assigned reward averaged 2.9%. Of 1024 rollouts, 30 received reward for an incorrect output and 0 lost reward for a correct output. 227 of 256 complete groups had identical rewards. The solver completed 0 of 32 development calculations exactly. Among 32 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.- [learn-oracle-17](learn-oracle-17/learnings.md). The exact checker accepted 82.4% of observed policy outputs. The assigned reward averaged 82.4%. Of 512 rollouts, 0 received reward for an incorrect output and 0 lost reward for a correct output. 112 of 128 complete groups had identical rewards.1 unmodified line23451 unmodified line- [base](base/learnings.md). The solver completed 0 of 32 development calculations exactly. Among 26 serialization failures, 5 contained all correct numbers as named assignments. On those same development traces, Judge 3 fixed 0 of Judge 2’s verdicts and introduced 1 errors.- [d3-17](d3-17/learnings.md). The exact checker accepted 0.0% of observed policy outputs. The assigned reward averaged 2.9%. Of 1024 rollouts, 30 received reward for an incorrect output and 0 lost reward for a correct output. 227 of 256 complete groups had identical rewards. The solver completed 0 of 32 development calculations exactly. Among 32 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.- [learn-oracle-17](learn-oracle-17/learnings.md). On the fresh learning-validation cohort, 246 of 256 complete traces were correct and 255 parsed. The exact checker accepted 82.4% of observed policy outputs. The assigned reward averaged 82.4%. Of 512 rollouts, 0 received reward for an incorrect output and 0 lost reward for a correct output. 112 of 128 complete groups had identical rewards.
34 unmodified lines35363734 unmodified lines| --- | --- | --- | --- | --- || base | 256 | 256 | 153 | 59.8% || learn-oracle-17 | 256 | 255 | 246 | 96.1% |34 unmodified lines353637383934 unmodified lines| --- | --- | --- | --- | --- || base | 256 | 256 | 153 | 59.8% || learn-oracle-17 | 256 | 255 | 246 | 96.1% |
123version https://git-lfs.github.com/spec/v1oid sha256:5b50463fa608f59f1f63aedb0dee1f8931e6261929c12ff1fbf7eb7f2cf5bbdasize 277982123version https://git-lfs.github.com/spec/v1oid sha256:9f3703eadc81a8891ec726956c765dd8929378ebdcca9c3a3bb85c7e3f35f04dsize 306178
13 unmodified lines14151617181927 unmodified lines47484950515213 unmodified linesevaluations={name:read_json(root/"evaluations"/(name+".json")) for name in ("base",*PILOTS)})def learnability_text(data):out=["# Can this model learn the benchmark?","The frozen-model screen and the checkpoint comparison answer different questions. "27 unmodified linesif measured:out.extend(["## Fresh learning-validation problems",markdown(["Checkpoint","Problems","Parsed","Entire trace correct","Exact accuracy"],[[name,e["n"],e["parsed"],e["correct"],rate(e["correct"]/e["n"])] for name,e in measured])])if data["learning"]:result=data["learning"]out.append("The registered learning criterion was "+("met." if result["demonstrated"] else "unmet."))13 unmodified lines14151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636427 unmodified lines9293949596979813 unmodified linesevaluations={name:read_json(root/"evaluations"/(name+".json")) for name in ("base",*PILOTS)})def learning_figure(data, path):"""Plot observed accuracy and, once measured, paired improvements on the same problems."""import matplotlibmatplotlib.use("Agg")import matplotlib.pyplot as pltlabels = {"base":"Starting solver",PILOTS[0]:"Exact reward",PILOTS[1]:"Shuffled reward"}colors = {"base":"#52656b",PILOTS[0]:"#167666",PILOTS[1]:"#a7562b"}measured = [(name,e) for name,e in data["evaluations"].items() if e]if not measured:path.unlink(missing_ok=True)returnresult = data["learning"]cols = 2 if result else 1fig, grid = plt.subplots(1,cols,figsize=(10.8 if result else 6.8,3.2),squeeze=False,layout="constrained")ax = grid[0,0]for i,(name,e) in enumerate(measured):score=100*e["correct"]/e["n"]ax.barh(i,score,color=colors[name],height=.52)inside=score >= 28ax.text(score-2 if inside else score+2,i,f"{e['correct']}/{e['n']}",ha="right" if inside else "left",va="center",color="white" if inside else "#1b3439")ax.set(yticks=range(len(measured)),yticklabels=[labels[name] for name,_ in measured],xlim=(0,100),xlabel="Entire trace correct (%)",title="Fresh validation problems")ax.invert_yaxis()if result:ax=grid[0,1]for i,key in enumerate(("over_base","over_shuffled")):statistic=result[key]value=100*statistic["delta"]low,high=[100*x for x in statistic["interval"]]ax.hlines(i,low,high,color=colors[PILOTS[0]],linewidth=2)ax.plot(value,i,"o",color=colors[PILOTS[0]])ax.text(value,i+.16,f"{value:+.1f} [{low:+.1f}, {high:+.1f}]",ha="center",va="top",fontsize=9)ax.axvline(0,color="#657477",linestyle="--",linewidth=1)ax.set(yticks=[0,1],yticklabels=["vs starting solver","vs shuffled reward"],ylim=(1.5,-.35),xlabel="Percentage-point difference",title="Exact reward · paired 95% intervals")ax.margins(x=.22)for ax in grid.flat:ax.spines[["top","right"]].set_visible(False)path.parent.mkdir(parents=True,exist_ok=True)fig.savefig(path,dpi=150,bbox_inches="tight")plt.close(fig)def learnability_text(data):out=["# Can this model learn the benchmark?","The frozen-model screen and the checkpoint comparison answer different questions. "27 unmodified linesif measured:out.extend(["## Fresh learning-validation problems",markdown(["Checkpoint","Problems","Parsed","Entire trace correct","Exact accuracy"],[[name,e["n"],e["parsed"],e["correct"],rate(e["correct"]/e["n"])] for name,e in measured])])out.append("")if data["learning"]:result=data["learning"]out.append("The registered learning criterion was "+("met." if result["demonstrated"] else "unmet."))
7 unmodified lines891011121314132 unmodified lines147148149150151152260 unmodified lines41341441541641741841975 unmodified lines49549649749849950021 unmodified lines52252352452552652715 unmodified lines5435445455465475485497 unmodified linesfrom .analysis import evidence_fields, paired_comparison, paired_primary, replay_metricsfrom .design import GITHUB, PAGES, PILOTS, Run, matrixfrom .learnability_report import collect_learnability, learnability_textfrom .records import named_valuesfrom .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_jsonfrom .tables import contrast_rows, markdown, rate as percent, run_evidence, training_method132 unmodified linesdest = DOCS/"assets"dest.mkdir(parents=True, exist_ok=True)colors = ("#1e5260", "#177267", "#b65127")fig, ax = plt.subplots(figsize=(11, 2.45))ax.set(xlim=(0, 11), ylim=(0, 2.5))260 unmodified linesline("Reward signal and generation cost","Heading2")table(["Run","Constant groups","Groups","Judge calls","Input tokens","Output tokens","CUDA seconds"],cost_rows)line("Counts cover reward-provider calls during training. CUDA events span batched generation and can include device idle time between kernel submissions. The flat panel and recursive chain share a call count and output ceiling. Their prompt lengths and stopping lengths may differ.")for filename, caption in (("paired-outcomes.png","Seed-specific and pooled held-out effects"),("outcomes.png","Development complete-trace accuracy"),("examples.png","Common problem across methods"),("training.png","Frozen three-judge solver training")):asset=DOCS/"assets"/filenameif asset.exists():from reportlab.lib.utils import ImageReader75 unmodified linespre, tail = readme.split("<!-- RESULTS:START -->",1)_, post = tail.split("<!-- RESULTS:END -->",1)assets = "\n\n"if "delta" in primary:assets += "\n\n"if (DOCS/"assets/outcomes.png").exists():21 unmodified linesdirectory = experiments/sub/r["name"]up = "../" if sub else ""observations=[]if r["groups"]:observations.append(f"The exact checker accepted {percent(r['train_exact'])} of observed policy outputs. "f"The assigned reward averaged {percent(r['train_reward'])}. Of {r['observations']} rollouts, "15 unmodified linescoverage=1-malformed/r["dev_n"]methods.append([r["name"],r["role"],r["reward"],r["seed"],"arithmetic" if r["role"]=="solver" else r["corpus"],percent(coverage),percent(r["dev"]),percent(r["test"])])atomic(directory/"experiment.md",f"# {sub}{r['name']}\n\n{meta}\n\n{scores_table({'runs':[r]})}\n\n{run_evidence(r)}\n\n[Machine observations]({up}../../../results/{sub}{r['name']})\n")atomic(directory/"learnings.md",f"# Observations from {sub}{r['name']}\n\n{obs}\n\n[Raw measurements and denominators](experiment.md) · [Analysis amendments]({up}../../amendments.md)\n")notes.append(f"- [{sub}{r['name']}]({sub}{r['name']}/learnings.md). {obs}")references="\n".join(f"- [{r['name']}]({'' if r['diagnostic'] else prefix}{r['name']}/experiment.md)" for r in data["runs"])7 unmodified lines891011121314132 unmodified lines147148149150151152153260 unmodified lines41441541641741841942075 unmodified lines49649749849950050150250321 unmodified lines52552652752852953053153253353453553653753815 unmodified lines5545555565575585595607 unmodified linesfrom .analysis import evidence_fields, paired_comparison, paired_primary, replay_metricsfrom .design import GITHUB, PAGES, PILOTS, Run, matrixfrom .learnability_report import collect_learnability, learnability_text, learning_figurefrom .records import named_valuesfrom .storage import ORIGINAL_RESULTS, ROOT, atomic, read_json, rows, write_jsonfrom .tables import contrast_rows, markdown, rate as percent, run_evidence, training_method132 unmodified linesdest = DOCS/"assets"dest.mkdir(parents=True, exist_ok=True)learning_figure(data["learnability"],dest/"learnability.png")colors = ("#1e5260", "#177267", "#b65127")fig, ax = plt.subplots(figsize=(11, 2.45))ax.set(xlim=(0, 11), ylim=(0, 2.5))260 unmodified linesline("Reward signal and generation cost","Heading2")table(["Run","Constant groups","Groups","Judge calls","Input tokens","Output tokens","CUDA seconds"],cost_rows)line("Counts cover reward-provider calls during training. CUDA events span batched generation and can include device idle time between kernel submissions. The flat panel and recursive chain share a call count and output ceiling. Their prompt lengths and stopping lengths may differ.")for filename, caption in (("learnability.png","Solver learnability on fresh validation problems"),("paired-outcomes.png","Seed-specific and pooled held-out effects"),("outcomes.png","Development complete-trace accuracy"),("examples.png","Common problem across methods"),("training.png","Frozen three-judge solver training")):asset=DOCS/"assets"/filenameif asset.exists():from reportlab.lib.utils import ImageReader75 unmodified linespre, tail = readme.split("<!-- RESULTS:START -->",1)_, post = tail.split("<!-- RESULTS:END -->",1)assets = "\n\n"if (DOCS/"assets/learnability.png").exists():assets += "\n\n"if "delta" in primary:assets += "\n\n"if (DOCS/"assets/outcomes.png").exists():21 unmodified linesdirectory = experiments/sub/r["name"]up = "../" if sub else ""observations=[]pilot_validation = learning["evaluations"].get(r["name"]) if r["diagnostic"] else Nonevalidation_text = ""if pilot_validation:e=pilot_validationobservation=(f"On the fresh learning-validation cohort, {e['correct']} of {e['n']} complete traces "f"were correct and {e['parsed']} parsed.")observations.append(observation)validation_text=f"\n\n{observation} [Individual validation records](../../../results/learnability/evaluations/{r['name']}.jsonl)."if r["groups"]:observations.append(f"The exact checker accepted {percent(r['train_exact'])} of observed policy outputs. "f"The assigned reward averaged {percent(r['train_reward'])}. Of {r['observations']} rollouts, "15 unmodified linescoverage=1-malformed/r["dev_n"]methods.append([r["name"],r["role"],r["reward"],r["seed"],"arithmetic" if r["role"]=="solver" else r["corpus"],percent(coverage),percent(r["dev"]),percent(r["test"])])atomic(directory/"experiment.md",f"# {sub}{r['name']}\n\n{meta}\n\n{scores_table({'runs':[r]})}{validation_text}\n\n{run_evidence(r)}\n\n[Machine observations]({up}../../../results/{sub}{r['name']})\n")atomic(directory/"learnings.md",f"# Observations from {sub}{r['name']}\n\n{obs}\n\n[Raw measurements and denominators](experiment.md) · [Analysis amendments]({up}../../amendments.md)\n")notes.append(f"- [{sub}{r['name']}]({sub}{r['name']}/learnings.md). {obs}")references="\n".join(f"- [{r['name']}]({'' if r['diagnostic'] else prefix}{r['name']}/experiment.md)" for r in data["runs"])
61 unmodified lines62636461 unmodified linessubprocess.run([sys.executable,"-m","study.cli","report"],cwd=tmp_path,env=env,check=True,capture_output=True)assert not (tmp_path/"docs/assets/paired-outcomes.png").exists()assert "outcomes.png" not in (tmp_path/"README.md").read_text(encoding="utf-8")61 unmodified lines62636465666768697071727374757677787961 unmodified linessubprocess.run([sys.executable,"-m","study.cli","report"],cwd=tmp_path,env=env,check=True,capture_output=True)assert not (tmp_path/"docs/assets/paired-outcomes.png").exists()assert "outcomes.png" not in (tmp_path/"README.md").read_text(encoding="utf-8")def test_learning_figure_contains_only_observed_conditions_and_is_removed_when_empty(tmp_path):from study.learnability_report import learning_figurechart = tmp_path / "learnability.png"trials = {"base":{"n":256,"correct":128}, "learn-oracle-17":{"n":256,"correct":192}, "learn-shuffle-17":None}learning_figure({"evaluations":trials, "learning":None},chart)assert chart.stat().st_size>1000trials["learn-shuffle-17"]={"n":256,"correct":128}change={"delta":.25, "interval":[.14,.36]}learning_figure({"evaluations":trials, "learning":{"over_base":change,"over_shuffled":change}},chart)assert chart.stat().st_size>1000learning_figure({"evaluations":{}, "learning":None},chart)assert not chart.exists()
README.md+2
docs/assets/learnability.pngAdded

docs/explorer.js+15
docs/index.html+1-1
docs/style.css+1
reports/experiments/learn-oracle-17/experiment.md+2
reports/experiments/learn-oracle-17/learnings.md+1-1
reports/experiments/learnings.md+1-1
reports/learnability.md+2
reports/paper.pdf+2-2
src/study/learnability_report.py+46
src/study/report.py+14-3
tests/test_release.py+15