Cloud parameter sweeps: 25-knob routing experiments overnight for ~$20 #596
drandyhaas
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Routing quality depends on ~15 tunable defaults (soft proximity costs, A* heuristic weight, via/turn costs, rip-up policy, fanout geometry) that had mostly been inherited rather than measured. Measuring them honestly requires replaying full routing chains across a large board corpus — about 8 CPU-hours per candidate value, or ~5 days of a workstation for one campaign. We built a cloud harness that does it for ~$1 per candidate, ran two campaigns (#584, #586), and shipped four holdout-validated default improvements.
The harness (
tests/stress/modal_sweep/)Every recorded stress-corpus board replays deterministically from its command manifest — no LLM involved, pure CPU. The harness fans this out on Modal:
routing_defaults.pyconstants (patched per-container), or manifest rewrites for baked CLI flags.The methodology
A four-stage funnel, each stage only spending on what the cheaper stage couldn't rule out:
Two rules the data forced on us: measure combinations, never assume additivity (within-family effects composed every time; cross-family combinations broke twice, once at +400 DRC), and holdout-first (tuning-set wins shrank or reversed on fresh boards every single time).
Results
Shipped (holdout: −45% disconnections at −27% route CPU vs the old defaults, DRC neutral-or-better):
heuristic_weightvia_costproximity_heuristic_factorextensionMeasured and deliberately not shipped: deeper rip-up (5) and sum-based proximity composition each looked like −30 wins on the tuning set, but together on the holdout they erased the other flips' gains while adding 37% CPU — textbook selection-set overfit (the tuning boards were chosen for knob-sensitivity). They remain retry-tier tools for hard boards, alongside track-proximity 2.0, the composition modes, and crossing-penalty 2000 — each real in specific regimes, none default-worthy.
Validated as already-optimal: the stock soft-cost defaults (stub 0.2, rip-avoidance 0.1, via-proximity ×10) all sit at their local optima on the new core. Vertical attraction is definitively dead (2.3× CPU for negative quality), as are the experimental fanout modes.
Cost: ~$120 of cloud compute for both campaigns including every bring-up mistake; a repeat under the final harness is ~$15. The follow-on ideas (#587–#595) can now each be judged for about a dollar.
All reactions