lietzsche;perron

updated 2026-11-26·3 min read

Preregistration v1 (SWE-bench Lite)

Protocol v1.0.0 defining Hypotheses H1/H2, the Lite split quarantine, bootstrap/McNemar testing rules, and post-run outcomes.

Tuning γ\gamma, τ\tau, and lexical cutoffs on the same SWE-bench Lite tasks you report makes every ablation look cleaner than it really is. Dated 2026-10-03 (v1.0.0), this protocol wrote down the hypotheses, disjoint dataset splits, endpoints, and statistical tests for SWE-bench Lite so I wouldn’t keep shifting the goalposts mid-run.

Pre-Specified Hypotheses

  • Hypothesis 1 (Primary Function-Level Retrieval): Perron Adaptive Specificity (γq\gamma_q with relative hub prominence ηq\eta_q) achieves non-inferior Function Acc@10\text{Function Acc}@10 relative to the strongest tuned baseline on Sfunc\mathcal{S}_{\text{func}}, while beating Hub Blocklist with Lexical Override on hub-located defects.
  • Hypothesis 2 (Spectral Decoupling Equivalence): Post-walk decoupled Specificity produces rankings statistically indistinguishable from dynamic Query-Reweighted PPR (p>0.05p > 0.05 under exact McNemar test) while keeping the underlying CSR matrix shared across parallel workers.

Split Quarantine (dev_pilot, dev_val, heldout)

To stop parameter sweeps from leaking straight into test scores, data/swebench_lite_split.json splits the 300 Lite tasks into three disjoint sets (SHA-256 checked in tests/test_split_frozen.py):

  1. dev_pilot (N = 50)

    Exploratory tasks (6 Requests + 44 SymPy) used for early parameter tuning and sanity checks.

  2. dev_val (N = 100)

    Stratified validation split used to calibrate baseline hyperparameters (k1, b, gamma, tau_lex).

  3. heldout (N = 150)

    Held-out evaluation split run under fixed parameters.

Endpoints and Statistical Protocol

  1. Primary Endpoint: Function Acc@10\text{Function Acc}@10 on Sfunc\mathcal{S}_{\text{func}} (N=227N = 227).
  2. Secondary Endpoints: File Acc@5\text{File Acc}@5 across all 300 tasks, Coverage@4096\text{Coverage}@4096, and HSI@10\text{HSI}@10 avoiding the top repository in-degree hubs.
  3. Confidence Intervals: B=10,000B = 10,000 paired repository-stratified bootstrap resamples reporting empirical 95%95\% CIs for all means and pairwise differences Δ=ScorePerron−ScoreBaseline\Delta = \text{Score}_{\text{Perron}} - \text{Score}_{\text{Baseline}}.
  4. Significance & FWER Control: Exact two-sided McNemar paired tests on discordant pairs (n10n_{10} vs n01n_{01}) with step-down Holm-Bonferroni correction (α=0.05\alpha = 0.05) and deterministic ascending AST symbol ID tie-breaking.

What Actually Happened

  • H2 failed cleanly: Post-walk Specificity and Query-Reweighted PPR were not equivalent. On heldout Sfunc\mathcal{S}_{\text{func}}, Query-Reweighted PPR collapsed to 0.00% while Perron hit 11.86% (p=0.000122p = 0.000122).
  • H1 came back mixed: Perron cleared the Hub Blocklist baseline on hub targets (33.3% vs 0.0% on dev_val), albeit on heldout (N = 150) plain BM25 (18.1% non-hub) still beat Perron Static (11.4%), and every method hit 0.0% on Hub-Gold targets.
  • Timing note: To be upfront about the paper trail, several protocol commits in git postdated the earliest exploratory runs rather than sitting locked ahead of every experiment, so I keep this page up as a transparent record of the split setup and where H2 broke.

Continue to Preregistration v2 (Verified) for the SWE-bench Verified follow-up.

Search wiki and portfolio

type to search across all entries.