bscost-theory-opt
Build and validate theory-grounded optimization models for backside front-vs-back net cost (signal and clock), with strict metric contracts and stability gates against HPWL baselines. Use when users request principled model fitting, crossover reasoning, or promotion decisions from shadow mode to active optimization.
BS Cost Theory Opt
Use this skill when the task is to move from heuristic cost terms to a validated optimization model that can be promoted only after passing gates.
Step 1: Lock metric contract before fitting
- Use signed target:
delta_tau_ps = tau_back_ps - tau_front_ps
- Use signed model output:
delta_cost = cost_back - cost_front
- Keep compatibility fields:
cost_front,cost_back,min_cost
- Gate-0 contract checks are mandatory before any optimization claim.
Step 2: Theory-grounded feature setup
Build from physically meaningful inputs first:
- Geometry:
- pin-based HPWL and bbox features
- Front/back timing proxy:
- PDK timing proxy, via proxy, fanout/load terms
- Backside overhead:
- nTSV/stack-via related terms (or best available proxy)
Use shared feature names across signal and clock tracks where possible.
Load:
references/theory_formulation.md
Step 3: Optimization procedure
- Compare against HPWL baseline with identical split strategy.
- Use repeated cross-validation (default 5x2).
- Report per-fold and per-dataset metrics:
- Pearson
- Spearman
- sign accuracy
- Use same train/test partitions for baseline and candidate model.
Load:
references/optimization_and_gates.md
Step 4: Promotion gates (stable > HPWL)
Model can be promoted only if:
- Gate-0 pass:
- contract valid
- sign convention fixed
- Gate-1 (delay consistency) pass on all target datasets:
delta_pearson > 0delta_spearman >= 0delta_sign > 0- fold win-rate thresholds satisfied
- Gate-2 (absolute consistency floor) pass:
- candidate Pearson/Spearman/sign must exceed configured minimum floors
- Gate-3 (nTSV capacity behavior) pass:
- high-pressure bins/regions must receive positive cost uplift
- if coordinate-level region data is unavailable, use an explicit pressure proxy and mark as
proxy mode
- Stability pass:
- no single dataset collapses below baseline in key metrics.
If any gate fails, keep shadow mode and iterate model/feature design.
Step 5: Internet-backed benchmark expansion
When moving beyond current datasets:
- Validate benchmark provenance from primary sources.
- Record repo links + commit/branch in summary artifact.
- Include CPU + accelerator classes (not only systolic arrays).
Load:
references/internet_benchmark_notes.md
Mandatory artifacts
*.dataset.tsv(dataset-level scorecard)*.per_fold.tsv(fold-level evidence)*.summary.mdwith final PASS/FAIL and open risks- include gate mode flag:
region_exactvsproxy_mode