Commit ad9e543
committed
feat(bench): add depth axis to sweep matrix; aggregator parses L<depth>
Workflow `sweep-full` matrix now includes `depth: [-1, 0, 1, 2, 3, 4]`
with EGO running on {0,1,2,3,4} and non-EGO methods (PPR, BM25, Aider)
running only on the sentinel depth=-1. Excludes are explicit so the
matrix doesn't accidentally multiply 5x for modes that ignore depth.
Per-cell wiring:
- CELL_TAG / CELL_DIR include `L${depth}` so EGO cells with the same
(method, budget, test_set) but different depth land in distinct dirs.
- The Run cell step exports `DIFFCTX_OP_GRAPH_DEPTH=${matrix.depth}`
before invoking `run_final_eval` (skipped when depth=-1 sentinel,
so non-EGO methods inherit the default).
- metadata.json gains `cell.depth` for reproducibility.
- upload-artifact name is `cell-<method>-b<budget>-L<depth>-<test_set>`,
so 5 EGO cells under the same (budget, test_set) no longer collide.
aggregate_sweep.py:
- Regex split into _ARTIFACT_RE_WITH_DEPTH and _ARTIFACT_RE_LEGACY so
the new dirs parse with depth and legacy dirs (no L segment) parse
with depth=-1 sentinel. `_parse_artifact` returns a 4-tuple
(method, budget, depth, test_set); legacy callers continue to use
metadata.json values when present.
- collect_cells captures depth into the cell record.
- CSV gains a `depth` column so the L sweep is queryable downstream.
Sanity checks performed before this commit (all PASS, no blockers):
- source_benchmark adapter strings == manifest names
(swebench_verified, polybench500, contextbench_verified)
- Aider/BM25 do not crash on budget=0 (existing run_25288507618
shows 100% ok|empty_query|clone_fail status, no crashes)
- Aider PolyBench 0.284 is real, not an integration bug; root cause
documented in paper Limitations section.
Run-time projection at full matrix (162 cells, 4 self-hosted runners):
~9-15h optimistic, ~50-70h pessimistic depending on per-cell variance.
The multi-budget reuse path (`pool_eval_all_cells`) is implemented but
not used by this workflow — each cell runs heavy phase from scratch
because budget remains a matrix axis. Trade-off is explicit; collapse
to per-(method, depth, test_set) cells with --budgets is a future
optimization.1 parent 73678ac commit ad9e543
3 files changed
Lines changed: 74 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
441 | 463 | | |
442 | 464 | | |
443 | 465 | | |
| |||
455 | 477 | | |
456 | 478 | | |
457 | 479 | | |
458 | | - | |
459 | | - | |
| 480 | + | |
| 481 | + | |
460 | 482 | | |
461 | 483 | | |
462 | 484 | | |
| |||
475 | 497 | | |
476 | 498 | | |
477 | 499 | | |
| 500 | + | |
478 | 501 | | |
479 | 502 | | |
480 | 503 | | |
| |||
653 | 676 | | |
654 | 677 | | |
655 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
656 | 685 | | |
657 | 686 | | |
658 | 687 | | |
| |||
665 | 694 | | |
666 | 695 | | |
667 | 696 | | |
| 697 | + | |
668 | 698 | | |
669 | 699 | | |
670 | 700 | | |
| |||
764 | 794 | | |
765 | 795 | | |
766 | 796 | | |
767 | | - | |
| 797 | + | |
768 | 798 | | |
769 | 799 | | |
770 | 800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
81 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
82 | 93 | | |
83 | 94 | | |
84 | | - | |
85 | | - | |
| 95 | + | |
| 96 | + | |
86 | 97 | | |
87 | | - | |
88 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
89 | 103 | | |
90 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
91 | 116 | | |
92 | | - | |
| 117 | + | |
93 | 118 | | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
97 | | - | |
| 122 | + | |
98 | 123 | | |
99 | 124 | | |
100 | 125 | | |
| |||
147 | 172 | | |
148 | 173 | | |
149 | 174 | | |
| 175 | + | |
150 | 176 | | |
151 | 177 | | |
152 | 178 | | |
| |||
170 | 196 | | |
171 | 197 | | |
172 | 198 | | |
| 199 | + | |
173 | 200 | | |
174 | 201 | | |
175 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
0 commit comments