Spaces:
Running
Running
Update logbook: Repro - Regression Language Models for Code (RegressLM)
Browse filesFiles changed (3)
10 unmodified lines1112131415161737 unmodified lines55565758596010 unmodified lines"icml2026-repro","paper-utTapVWtc7"],"updated_at": "2026-07-16T14:17:52+00:00","root": {"slug": "index","title": "Repro - Regression Language Models for Code (RegressLM)",37 unmodified lines}]},"agent_view_tokens": 3040,"revision": "1784211472933207696"}10 unmodified lines1112131415161737 unmodified lines55565758596010 unmodified lines"icml2026-repro","paper-utTapVWtc7"],"updated_at": "2026-07-16T14:21:08+00:00","root": {"slug": "index","title": "Repro - Regression Language Models for Code (RegressLM)",37 unmodified lines}]},"agent_view_tokens": 3581,"revision": "1784211668071773904"}
477 unmodified lines478479480477 unmodified lines**📦 Artifact** `outputs/codenet/per_lang.csv` · dataset · 8.9 kBtrackio-local-path://outputs/codenet/per_lang.csv477 unmodified lines478479480481482483484485486487488489490491492493494495477 unmodified lines**📦 Artifact** `outputs/codenet/per_lang.csv` · dataset · 8.9 kBtrackio-local-path://outputs/codenet/per_lang.csv---<!-- trackio-cell{"type": "markdown", "id": "cell_5365b36550c5", "created_at": "2026-07-16T14:21:03+00:00", "title": "C3 local result (n=25/lang): pooled reproduces card; per-lang borderline at small N"}-->Claim 3: unified model obtains >0.5 average Spearman across 17 CodeNet languages.Local small-scale result (released checkpoint, authors' recipe, 25 rows/language x 8 samples, CPU; all 17 CodeNet languages filled in a single CDSS pass):- **Per-language average rho = 0.454** across the 17 languages. Per-language rho is very noisy at n=25 (range -0.15 JavaScript .. +0.77 Perl; SE ~= 0.12), so 0.454 is statistically indistinguishable from the 0.5 threshold at this scale.- **Pooled CDSS rho = 0.806** (95% CI [0.763, 0.844]) across all 425 rows -- **matches the dataset-card CDSS reference of 0.787**. Pearson 0.403, permutation p=0.0005, shuffled-target control rho=-0.019 (signal destroyed as required) -> SIGNAL OK.Interpretation: the model clearly predicts CDSS memory rank (pooled rho ~0.8 reproduces the card). The per-language >0.5 average is borderline at n=25 and needs higher N to resolve. A larger local run (60/lang) is in progress; the authoritative per-language number comes from the Colab notebook at paper scale.Artifacts: outputs/codenet/per_lang.csv (+.json), independent_verification.json.
169 unmodified lines170171172169 unmodified lineswrote outputs/phaseA/independent_verification.json````169 unmodified lines170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329169 unmodified lineswrote outputs/phaseA/independent_verification.json````---<!-- trackio-cell{"type": "code", "id": "cell_1fd363d1dfbb", "created_at": "2026-07-16T14:21:08+00:00", "title": "Independent verification on CDSS 17-language result (pooled)", "command": ["python", "repro/src/verify_independent.py", "--inputs", "outputs/codenet/per_lang.csv", "--out", "outputs/codenet/independent_verification.json"], "exit_code": 0, "duration_s": 3.574}-->````bash$ python repro/src/verify_independent.py --inputs outputs/codenet/per_lang.csv --out outputs/codenet/independent_verification.json````exit 0 · 3.6s````python title=verify_independent.py#!/usr/bin/env python3"""Independent verification + negative controls for RegressLM eval results.Given one or more ``*_*.csv`` files produced by ``run_eval.py`` (columns i,y_true,y_pred),this re-scores each with methods INDEPENDENT of the headline Spearman, and runsfalse-positive controls that MUST pass:* Pearson r (different correlation measure — should agree with Spearman in sign/strength)* 95% bootstrap CI on Spearman (resample pairs with replacement)* permutation test p-value vs H0: "preds independent of targets"* FALSE-POSITIVE CONTROL: Spearman after shuffling preds == ~0 (the metric is nottrivially high). If the shuffled rho is large, the metric is broken.Honest reporting: never force-fit. A small-sample Phase A rho that is positive andsignificant (p<0.05, shuffled ~0) validates the pipeline; the authoritative numbercomes from the full-scale Phase B (Colab GPU)."""import argparseimport csvimport globimport jsonimport osimport numpy as npfrom scipy import statsdef load(path):yt, yp = [], []with open(path) as fh:for row in csv.DictReader(fh):try:t, p = float(row["y_true"]), float(row["y_pred"])except (ValueError, KeyError):continueif np.isfinite(t) and np.isfinite(p):yt.append(t); yp.append(p)return np.array(yt), np.array(yp)def bootstrap_spearman(yt, yp, n=2000, seed=0):rng = np.random.default_rng(seed)n_ = len(yt)if n_ < 4:return float("nan"), float("nan")rhos = []idx = rng.integers(0, n_, size=(n, n_))for r in idx:rhos.append(stats.spearmanr(yt[r], yp[r]).correlation)rhos = np.array(rhos)[np.isfinite(rhos)]return float(np.percentile(rhos, 2.5)), float(np.percentile(rhos, 97.5))def permutation_pvalue(yt, yp, n=2000, seed=0):rng = np.random.default_rng(seed)obs = stats.spearmanr(yt, yp).correlationif not np.isfinite(obs):return float("nan"), obscnt = 0for _ in range(n):perm = rng.permutation(len(yp))r = stats.spearmanr(yt, yp[perm]).correlationif np.isfinite(r) and abs(r) >= abs(obs):cnt += 1return (cnt + 1) / (n + 1), obsdef main():ap = argparse.ArgumentParser(description=__doc__)ap.add_argument("--inputs", nargs="+", required=True,help="result CSVs from run_eval.py (e.g. outputs/phaseA/apps_n40.csv)")ap.add_argument("--out", default=os.path.join("outputs", "independent_verification.json"))args = ap.parse_args()all_res = []for path in args.inputs:yt, yp = load(path)if len(yt) < 5:print(f"{path}: only {len(yt)} finite rows — skipping\n"); continuerho = float(stats.spearmanr(yt, yp).correlation)pr = float(stats.pearsonr(yt, yp)[0])ci_lo, ci_hi = bootstrap_spearman(yt, yp)pval, _ = permutation_pvalue(yt, yp)# false-positive control: shuffle preds, recompute rhorng = np.random.default_rng(0)shuf = stats.spearmanr(yt, yp[rng.permutation(len(yp))]).correlationres = dict(file=path, n=len(yt), spearman=rho, pearson=pr,spearman_ci95=[ci_lo, ci_hi], perm_pvalue=pval,control_shuffled_spearman=float(shuf))all_res.append(res)print("=" * 70)print(f"{os.path.basename(path)} (n={len(yt)})")print(f" Spearman rho = {rho:.3f} 95% CI [{ci_lo:.3f}, {ci_hi:.3f}]")print(f" Pearson r = {pr:.3f}")print(f" permutation p-value (H0: independent) = {pval:.4f}")print(f" CONTROL shuffled Spearman (must be ~0) = {shuf:+.3f}")verdict = ("SIGNAL OK" if (rho > 0.3 and shuf < 0.3 and pval < 0.05)else "weak / inconclusive at this sample size")print(f" -> {verdict}")print("=" * 70)os.makedirs(os.path.dirname(args.out) or ".", exist_ok=True)with open(args.out, "w") as fh:json.dump(all_res, fh, indent=2)print("wrote", args.out)if __name__ == "__main__":main()````````json title=independent_verification.json[{"file": "outputs/codenet/per_lang.csv","n": 425,"spearman": 0.8061707707057375,"pearson": 0.4030749567817209,"spearman_ci95": [0.762616197994575,0.8439232159738025],"perm_pvalue": 0.0004997501249375312,"control_shuffled_spearman": -0.019234067215644805}]````````output======================================================================per_lang.csv (n=425)Spearman rho = 0.806 95% CI [0.763, 0.844]Pearson r = 0.403permutation p-value (H0: independent) = 0.0005CONTROL shuffled Spearman (must be ~0) = -0.019-> SIGNAL OK======================================================================wrote outputs/codenet/independent_verification.json````
logbook.json+3-3
pages/claim-3-codenet-17-languages-0-5/page.md+15
pages/negative-controls-falsification/page.md+157