LNPBench: code, caches, results and figures
Browse filesFiles changed (3)
294 unmodified lines295296297298299300301294 unmodified lines| PhysSet-LNP | 58 | 3 | 5 | 30 | 2.9 h || AGILE | 60 | 3 | 5 | 30 | 1.5 h || LiON | 60 | 3 | 5 | 30 | 1.3 h || SeqCausal-LNP | 8+ | 1 | 2+ | 30 | 2.1 h || PhyCausal-LNP | 20 | 1 | 5 | 30 | 0.9 h || Identity-free probe | 20 | 1 | 5 | 30 | 0.4 h || Morgan FP + MLP | 20 | 1 | 5 | 45 | 0.1 h |294 unmodified lines295296297298299300301294 unmodified lines| PhysSet-LNP | 58 | 3 | 5 | 30 | 2.9 h || AGILE | 60 | 3 | 5 | 30 | 1.5 h || LiON | 60 | 3 | 5 | 30 | 1.3 h || SeqCausal-LNP | 20 | 1 | 5 | 30 | 3.4 h || PhyCausal-LNP | 20 | 1 | 5 | 30 | 0.9 h || Identity-free probe | 20 | 1 | 5 | 30 | 0.4 h || Morgan FP + MLP | 20 | 1 | 5 | 45 | 0.1 h |
190 unmodified lines1911921931941951961 unmodified line198199200201202203204205137 unmodified lines3433443453463473483493503513523532 unmodified lines356357358359360361190 unmodified lines# ------------------------------------------------------------------# 3. paired tests# ------------------------------------------------------------------if paired is not None:L.append("## 3. Paired Wilcoxon tests over the 20 shared external tasks\n")L.append(md_table(paired.round(4)) + "\n")1 unmodified line"delta means `model_a` is better. These tests use the ""*seed-averaged* per-task scores (a multi-seed model is not ""penalised for seed variance), which is why `physset_phys` shows ""0.358 here and 0.347 in the headline table, where each seed is a ""separate run.\n")# ------------------------------------------------------------------# 4. identity-shortcut diagnosis# ------------------------------------------------------------------137 unmodified linesf"{classical.runtime_s.sum()/60:.0f} min of CPU.\n")L.append("## 8. Caveats\n")L.append("* **LiON and AGILE are trained from scratch** on the training split of each ""task. Nat. Commun. 2026 pretrains LiON on the whole LNPDB corpus, so the published 0.52 ""on ZC_2023 is not reachable under this protocol; the comparison is between ""architectures under an identical budget, not against the published weights.\n""* **PhysSet-LNP ties the random forest** (paired Wilcoxon p = 0.87, n = 20). ""It is the best *neural* model and the best model on the two large held-out ""studies, but it is not a standalone state of the art on this benchmark.\n""* **The state of the art reported here is the stack**, and the gain comes "2 unmodified lines"overfit the held-out studies, but it also has no claim to architectural ""novelty.\n""* **The cCPP surrogate is a descriptor, not a substitute for MD** (section 6).\n")out_path.write_text("\n".join(L))print(f"wrote {out_path} ({len(''.join(L))} chars)")190 unmodified lines1911921931941951961971981992002012022032042052062072082092102111 unmodified line213214215216217218219220137 unmodified lines3583593603613623633643653663673682 unmodified lines371372373374375376377190 unmodified lines# ------------------------------------------------------------------# 3. paired tests# ------------------------------------------------------------------PS_SEED_AVG = float("nan")PS_PER_SEED = float("nan")if ens is not None:_se = ens[ens.group == "single:physset_phys"].spearmanif len(_se):PS_SEED_AVG = _se.mean()if models is not None:_m = models[(models.model == "physset_phys") & models.spearman.notna()]if len(_m):PS_PER_SEED = _m.groupby("task").spearman.mean().mean()PF_RF = "n/a"if paired is not None:_row = paired[(paired.model_a == "physset_phys") & (paired.model_b == "randomforest")]if len(_row):PF_RF = f"{float(_row.iloc[0]['p']):.2f}"if paired is not None:L.append("## 3. Paired Wilcoxon tests over the 20 shared external tasks\n")L.append(md_table(paired.round(4)) + "\n")1 unmodified line"delta means `model_a` is better. These tests use the ""*seed-averaged* per-task scores (a multi-seed model is not ""penalised for seed variance), which is why `physset_phys` shows "f"{PS_SEED_AVG:.3f} here and {PS_PER_SEED:.3f} in the headline ""table, where each seed is a separate run.\n")# ------------------------------------------------------------------# 4. identity-shortcut diagnosis# ------------------------------------------------------------------137 unmodified linesf"{classical.runtime_s.sum()/60:.0f} min of CPU.\n")L.append("## 8. Caveats\n")L.append(("* **LiON and AGILE are trained from scratch** on the training split of each ""task. Nat. Commun. 2026 pretrains LiON on the whole LNPDB corpus, so the published 0.52 ""on ZC_2023 is not reachable under this protocol; the comparison is between ""architectures under an identical budget, not against the published weights.\n""* **PhysSet-LNP ties the random forest** (paired Wilcoxon p = PF_RF, n = 20). ""It is the best *neural* model and the best model on the two large held-out ""studies, but it is not a standalone state of the art on this benchmark.\n""* **The state of the art reported here is the stack**, and the gain comes "2 unmodified lines"overfit the held-out studies, but it also has no claim to architectural ""novelty.\n""* **The cCPP surrogate is a descriptor, not a substitute for MD** (section 6).\n").replace("PF_RF", PF_RF))out_path.write_text("\n".join(L))print(f"wrote {out_path} ({len(''.join(L))} chars)")
91 unmodified lines9293949596979863 unmodified lines16216316416516616791 unmodified lines| LNPBench-Stack | seqcausal | 0.179 | 0.000 | 20 || LNPBench-Stack | xgboost | 0.085 | 0.000 | 20 |`delta` is the mean per-task difference of Spearman. A positive delta means `model_a` is better. These tests use the *seed-averaged* per-task scores (a multi-seed model is not penalised for seed variance), which is why `physset_phys` shows 0.358 here and 0.347 in the headline table, where each seed is a separate run.## 4. The dominant empirical finding: study identity is a shortcut63 unmodified lines## 8. Caveats* **LiON and AGILE are trained from scratch** on the training split of each task. Nat. Commun. 2026 pretrains LiON on the whole LNPDB corpus, so the published 0.52 on ZC_2023 is not reachable under this protocol; the comparison is between architectures under an identical budget, not against the published weights.* **PhysSet-LNP ties the random forest** (paired Wilcoxon p = 0.87, n = 20). It is the best *neural* model and the best model on the two large held-out studies, but it is not a standalone state of the art on this benchmark.* **The state of the art reported here is the stack**, and the gain comes from cross-family diversity rather than from the neural architecture alone. The stack has no fitted weights (equal-weight rank average), so it cannot overfit the held-out studies, but it also has no claim to architectural novelty.* **The cCPP surrogate is a descriptor, not a substitute for MD** (section 6).91 unmodified lines9293949596979863 unmodified lines16216316416516616791 unmodified lines| LNPBench-Stack | seqcausal | 0.179 | 0.000 | 20 || LNPBench-Stack | xgboost | 0.085 | 0.000 | 20 |`delta` is the mean per-task difference of Spearman. A positive delta means `model_a` is better. These tests use the *seed-averaged* per-task scores (a multi-seed model is not penalised for seed variance), which is why `physset_phys` shows 0.356 here and 0.345 in the headline table, where each seed is a separate run.## 4. The dominant empirical finding: study identity is a shortcut63 unmodified lines## 8. Caveats* **LiON and AGILE are trained from scratch** on the training split of each task. Nat. Commun. 2026 pretrains LiON on the whole LNPDB corpus, so the published 0.52 on ZC_2023 is not reachable under this protocol; the comparison is between architectures under an identical budget, not against the published weights.* **PhysSet-LNP ties the random forest** (paired Wilcoxon p = 0.96, n = 20). It is the best *neural* model and the best model on the two large held-out studies, but it is not a standalone state of the art on this benchmark.* **The state of the art reported here is the stack**, and the gain comes from cross-family diversity rather than from the neural architecture alone. The stack has no fitted weights (equal-weight rank average), so it cannot overfit the held-out studies, but it also has no claim to architectural novelty.* **The cCPP surrogate is a descriptor, not a substitute for MD** (section 6).
code/README.md+1-1
code/scripts/report.py+20-4
results/REPORT.md+2-2