LNPBench: code, caches, results and figures
Browse filesFiles changed (19)
- TODO.mdAdded+94
- code/TODO.mdAdded+94
- code/scripts/mode_interpret.pyAdded+120
- code/scripts/upload_hf.py+2-2
- code/src/lnpbench/models/attention.py+7-1
- code/src/lnpbench/models/backbone.py+23-6
- code/src/lnpbench/models/physmode.py+265-2
- code/src/lnpbench/registry.py+39-1
- results/f20_base_s0.csvAdded+12
- results/f20_base_s1.csvAdded+12
- results/f20_dm_s1.csvAdded+12
- results/f20_nrw_s0.csvAdded+21
- results/f20_nrw_s1.csvAdded+21
- results/f20_pm_s0.csvAdded+12
- results/f20_pm_s1.csvAdded+12
- results/interp_LM.csvAdded+17
- results/interp_LM_usage.csvAdded+18
- results/interp_ZC.csvAdded+17
- results/interp_ZC_usage.csvAdded+18
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394# LNPBench / *Engineering* 投稿待办清单
> 更新:2026-11-24 21:30 CST。本文所有"全量"指 4 个完整留出研究 × 5 折 = 20 个外部任务。
## 0. 一句话状态
诊断、基准、表示与评估链路已完成;方法正在收敛为**单一方法 RML-LNP**(身份无关表示 + 离散潜关系码本 + 混合读出),三条待定稿实验在跑。当前最佳单模型 PhysChem-Tree 0.3761,参考系统 LNPBench-Stack 0.3918。
## 1. 本轮已完成(有产物、可复现)
| 内容 | 产物 ||---|---|| LaRIN 配方级模式 `physmode*`(3 轮 8 配置) | `results/mode_decoders_summary.csv`、`full20_diffmode_chem.csv` || CoDiffGRN 扩散后验 `diffmode*` | `results/f20_dm_s1.csv`(seed1 在跑) || 对级潜关系 `relmode*`(3 轮 17 配置) | `results/rs_*`、`rt_*`、`ra_*` || 嵌套对照与 20 任务重跑 | `results/f20_base_s{0,1}.csv`、`f20_nrw_s{0,1}.csv` || 模式可解释性(接触×模式矩阵 + 化学签名) | `results/interp_ZC.csv`、`interp_LM.csv`、`*_usage.csv` || 机制诊断脚本 | `scripts/mode_analyze.py`、`mode_diagnose.py`、`mode_results.py`、`mode_interpret.py` || 混合读出实现(`relmode_blk` / `relset_blk`) | `src/lnpbench/models/physmode.py`、`registry.py` || 中文手稿新增 §4.12 + 表 23–25;METHODS §12 | `manuscript/PAPER_zh.md`、`METHODS.md` |
## 2. 正在跑(GPU 队列,预计 1 小时内落盘)
| # | 实验 | 目的 | 判定标准 ||---|---|---|---|| G1 | `relmode_base` 20 任务 × seed0/1 | 嵌套对照(与 relmode_nr_w 同协议同种子) | Δ 的符号与显著性 || G2 | `physmode_chem` 20 任务 × seed0/1 | 配方级 LaRIN 全量 | 与 0.356 基线比 || G3 | `diffmode_chem` seed1 | 补齐第二种子 | 与 seed0 合并 || G4 | `relmode_blk` / `relset_blk` 4 任务 × 2 seed | 混合读出是否消除树/神经差距 | 追平或超过 0.376 → 上全量 || G5 | 消融阶梯 K=8/32、无码本、硬指派、不居中(4 任务 × 2 seed) | LaRIN 式消融 | 全部显著为负才保留该组件 |
## 3. 待跑实验(按优先级)
### P0 —— 决定方法能否定稿(必须)
- [ ] **P0-1 混合读出全量**:若 G4 四任务 ≥ 0.376,跑 `relmode_blk` 20 任务 × 2 seed + save-preds。这是把神经主模型从 0.356 拉到 0.376+ 的唯一在测手段。 预算:约 2.5 GPU 时。- [ ] **P0-2 研究内纯排序读出**(评审建议 2):`lam_reg` 降为 0.1 / 0,`lam_rank` 提到 1.0,四任务先筛。R² 全负说明绝对值回归在浪费容量;若 Spearman 提升且不伤 EF/NDCG,再上全量。 预算:1 GPU 时。- [ ] **P0-3 上下文粗粒化**(评审建议 1):109 维 ctx 中只保留跨文献共享的 3–5 维(in vitro/in vivo、cargo 类型、给药途径、混合方式、IL/RNA 比、剂量),剔除细胞系/缓冲液/读数/批次等研究指纹。四任务先筛,再全量。 预算:1.5 GPU 时(含 ctx 掩码实现)。- [ ] **P0-4 398 维块上的树家族**(评审建议 3):CatBoost / LightGBM / 强正则 XGBoost,全量 20 任务,各 1 seed。若单模型突破 0.38,头条数字改写。 预算:20 分钟 CPU。- [ ] **P0-5 集成重测**:用 P0-1/P0-4 的赢家替换 Stack 成员,重算 Wilcoxon(目标是把 +0.016 的 p=0.053 压到 <0.05)。 预算:10 分钟 CPU(复用已存预测)。
### P1 —— 审稿人一定会问(建议做)
- [ ] **P1-1 主动少样本校准**:LNPAdapt 从"随机 k 条重拟合"升级为"不确定性/多样性选样"。对比同样 53 条随机 vs 主动选样;若 20–30 条主动选样达到 0.450,是工程亮点。- [ ] **P1-2 可达上限分析图**:研究内 CV 0.611 vs 研究间 0.36 的分解图(按研究、按脂质重叠率分层)。把"分数低"转写为"信息论天花板"。- [ ] **P1-3 特征级捷径审计**(评审做法 C):单特征对 study_id 的互信息排名 + 逐特征剪枝的外推/验证曲线。- [ ] **P1-4 GINE 过拟合消融**:去掉 GINE 旁路 / 强 dropout / 冻结,验证"三路冗余"假设(表 7 的解释)。- [ ] **P1-5 模式画像拼进 398 维块**:把 K 维占用 + 模式条件物理摘要作为附加特征给树读出,检验核心层是否不只是装饰。
### P2 —— 可选加分
- [ ] P2-1 V-REx / GroupDRO 研究不变排序(评审做法 A)。- [ ] P2-2 GRL 对抗擦除隐层 study_id,报告识别率从 95% 压到多少、外推是否回升(评审做法 B)。- [ ] P2-3 k=2%/5%/10%/20% 的主动学习曲线全量重跑(现仅随机选样)。
## 4. 方法章节定稿(等 P0 结果)
- [ ] **单一方法 RML-LNP** 的四层结构定稿:身份无关表示 → 物理偏置集合注意力 → 离散潜关系码本(核心)→ 混合读出 + 混合损失。- [ ] 头条数字二选一:A) 神经单模型(需 P0-1 成功);B) 表示 + 树读出 0.376(若 P0-1 失败,核心层定位为"可解释内核")。- [ ] 其余全部降级:PhysSet-LNP=消融;树=同表示读出上界;Stack=参考系统;LNPAdapt=评估设定;PhysMode/DiffMode/Schema/外部监督=负结果(移附录)。- [ ] 新增方法图(四层 + 码本 + 混合读出),替换现有 fig2。- [ ] 参考文献补 [35] LaRIN、[36] CoDiffGRN。
## 5. 正文修改(按评审意见)
- [ ] 删去正文未介绍的 PhyCausal-LNP / SeqCausal-LNP(表 3 移附录)。- [ ] 负结果压缩:4.7/4.8/4.9/4.12 压缩至一节 Summary + 附录;目标负结果篇幅 <20%。- [ ] 主结果表只保留:基线(RF/XGB/ET/AGILE/LiON)+ 我们的方法 + Stack + 参考上界。- [ ] 4.2 节补 R² 全负的讨论(与 P0-2 呼应)。- [ ] 结论段去掉"三件事"并列写法,改为单方法叙事。- [ ] 4.13 局限性补"0-shot 信息论天花板"条目(与 P1-2 呼应)。
## 6. 投稿材料与合规
- [ ] 补作者信息、单位、通讯作者、基金(PAPER_TODO.md A1)。- [ ] CRediT、利益冲突、致谢、数据可用性声明。- [ ] 图 1/图 2 矢量版 + 高分辨率 PNG 检查。- [ ] 关键词复核;摘要数字与最终表对齐。- [ ] 参考文献格式统一(*Engineering* 模板)。- [ ] 补充材料打包(负结果全表、附录 A 逐任务明细、模式使用矩阵)。- [ ] 截稿 2026-12-31,倒排:12-15 前冻结实验,12-20 完成英文稿,12-25 内审。
## 7. 风险与备选
| 风险 | 概率 | 备选 ||---|---|---|| P0-1 混合读出不涨 | 中 | 走写法 B:方法=表示+树读出,核心层定位为可解释内核 || Stack 显著性仍卡 p≈0.05 | 中 | 改报"与最强单模型持平、显著优于全部已发表基线",主卖点切到 P1-1/P1-2 || 时间不够(12-15 冻结) | 低 | 砍 P1-3/P1-4,保 P0-1/P0-5 与第 5 节写作 |12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394# LNPBench / *Engineering* 投稿待办清单
> 更新:2026-11-24 21:30 CST。本文所有"全量"指 4 个完整留出研究 × 5 折 = 20 个外部任务。
## 0. 一句话状态
诊断、基准、表示与评估链路已完成;方法正在收敛为**单一方法 RML-LNP**(身份无关表示 + 离散潜关系码本 + 混合读出),三条待定稿实验在跑。当前最佳单模型 PhysChem-Tree 0.3761,参考系统 LNPBench-Stack 0.3918。
## 1. 本轮已完成(有产物、可复现)
| 内容 | 产物 ||---|---|| LaRIN 配方级模式 `physmode*`(3 轮 8 配置) | `results/mode_decoders_summary.csv`、`full20_diffmode_chem.csv` || CoDiffGRN 扩散后验 `diffmode*` | `results/f20_dm_s1.csv`(seed1 在跑) || 对级潜关系 `relmode*`(3 轮 17 配置) | `results/rs_*`、`rt_*`、`ra_*` || 嵌套对照与 20 任务重跑 | `results/f20_base_s{0,1}.csv`、`f20_nrw_s{0,1}.csv` || 模式可解释性(接触×模式矩阵 + 化学签名) | `results/interp_ZC.csv`、`interp_LM.csv`、`*_usage.csv` || 机制诊断脚本 | `scripts/mode_analyze.py`、`mode_diagnose.py`、`mode_results.py`、`mode_interpret.py` || 混合读出实现(`relmode_blk` / `relset_blk`) | `src/lnpbench/models/physmode.py`、`registry.py` || 中文手稿新增 §4.12 + 表 23–25;METHODS §12 | `manuscript/PAPER_zh.md`、`METHODS.md` |
## 2. 正在跑(GPU 队列,预计 1 小时内落盘)
| # | 实验 | 目的 | 判定标准 ||---|---|---|---|| G1 | `relmode_base` 20 任务 × seed0/1 | 嵌套对照(与 relmode_nr_w 同协议同种子) | Δ 的符号与显著性 || G2 | `physmode_chem` 20 任务 × seed0/1 | 配方级 LaRIN 全量 | 与 0.356 基线比 || G3 | `diffmode_chem` seed1 | 补齐第二种子 | 与 seed0 合并 || G4 | `relmode_blk` / `relset_blk` 4 任务 × 2 seed | 混合读出是否消除树/神经差距 | 追平或超过 0.376 → 上全量 || G5 | 消融阶梯 K=8/32、无码本、硬指派、不居中(4 任务 × 2 seed) | LaRIN 式消融 | 全部显著为负才保留该组件 |
## 3. 待跑实验(按优先级)
### P0 —— 决定方法能否定稿(必须)
- [ ] **P0-1 混合读出全量**:若 G4 四任务 ≥ 0.376,跑 `relmode_blk` 20 任务 × 2 seed + save-preds。这是把神经主模型从 0.356 拉到 0.376+ 的唯一在测手段。 预算:约 2.5 GPU 时。- [ ] **P0-2 研究内纯排序读出**(评审建议 2):`lam_reg` 降为 0.1 / 0,`lam_rank` 提到 1.0,四任务先筛。R² 全负说明绝对值回归在浪费容量;若 Spearman 提升且不伤 EF/NDCG,再上全量。 预算:1 GPU 时。- [ ] **P0-3 上下文粗粒化**(评审建议 1):109 维 ctx 中只保留跨文献共享的 3–5 维(in vitro/in vivo、cargo 类型、给药途径、混合方式、IL/RNA 比、剂量),剔除细胞系/缓冲液/读数/批次等研究指纹。四任务先筛,再全量。 预算:1.5 GPU 时(含 ctx 掩码实现)。- [ ] **P0-4 398 维块上的树家族**(评审建议 3):CatBoost / LightGBM / 强正则 XGBoost,全量 20 任务,各 1 seed。若单模型突破 0.38,头条数字改写。 预算:20 分钟 CPU。- [ ] **P0-5 集成重测**:用 P0-1/P0-4 的赢家替换 Stack 成员,重算 Wilcoxon(目标是把 +0.016 的 p=0.053 压到 <0.05)。 预算:10 分钟 CPU(复用已存预测)。
### P1 —— 审稿人一定会问(建议做)
- [ ] **P1-1 主动少样本校准**:LNPAdapt 从"随机 k 条重拟合"升级为"不确定性/多样性选样"。对比同样 53 条随机 vs 主动选样;若 20–30 条主动选样达到 0.450,是工程亮点。- [ ] **P1-2 可达上限分析图**:研究内 CV 0.611 vs 研究间 0.36 的分解图(按研究、按脂质重叠率分层)。把"分数低"转写为"信息论天花板"。- [ ] **P1-3 特征级捷径审计**(评审做法 C):单特征对 study_id 的互信息排名 + 逐特征剪枝的外推/验证曲线。- [ ] **P1-4 GINE 过拟合消融**:去掉 GINE 旁路 / 强 dropout / 冻结,验证"三路冗余"假设(表 7 的解释)。- [ ] **P1-5 模式画像拼进 398 维块**:把 K 维占用 + 模式条件物理摘要作为附加特征给树读出,检验核心层是否不只是装饰。
### P2 —— 可选加分
- [ ] P2-1 V-REx / GroupDRO 研究不变排序(评审做法 A)。- [ ] P2-2 GRL 对抗擦除隐层 study_id,报告识别率从 95% 压到多少、外推是否回升(评审做法 B)。- [ ] P2-3 k=2%/5%/10%/20% 的主动学习曲线全量重跑(现仅随机选样)。
## 4. 方法章节定稿(等 P0 结果)
- [ ] **单一方法 RML-LNP** 的四层结构定稿:身份无关表示 → 物理偏置集合注意力 → 离散潜关系码本(核心)→ 混合读出 + 混合损失。- [ ] 头条数字二选一:A) 神经单模型(需 P0-1 成功);B) 表示 + 树读出 0.376(若 P0-1 失败,核心层定位为"可解释内核")。- [ ] 其余全部降级:PhysSet-LNP=消融;树=同表示读出上界;Stack=参考系统;LNPAdapt=评估设定;PhysMode/DiffMode/Schema/外部监督=负结果(移附录)。- [ ] 新增方法图(四层 + 码本 + 混合读出),替换现有 fig2。- [ ] 参考文献补 [35] LaRIN、[36] CoDiffGRN。
## 5. 正文修改(按评审意见)
- [ ] 删去正文未介绍的 PhyCausal-LNP / SeqCausal-LNP(表 3 移附录)。- [ ] 负结果压缩:4.7/4.8/4.9/4.12 压缩至一节 Summary + 附录;目标负结果篇幅 <20%。- [ ] 主结果表只保留:基线(RF/XGB/ET/AGILE/LiON)+ 我们的方法 + Stack + 参考上界。- [ ] 4.2 节补 R² 全负的讨论(与 P0-2 呼应)。- [ ] 结论段去掉"三件事"并列写法,改为单方法叙事。- [ ] 4.13 局限性补"0-shot 信息论天花板"条目(与 P1-2 呼应)。
## 6. 投稿材料与合规
- [ ] 补作者信息、单位、通讯作者、基金(PAPER_TODO.md A1)。- [ ] CRediT、利益冲突、致谢、数据可用性声明。- [ ] 图 1/图 2 矢量版 + 高分辨率 PNG 检查。- [ ] 关键词复核;摘要数字与最终表对齐。- [ ] 参考文献格式统一(*Engineering* 模板)。- [ ] 补充材料打包(负结果全表、附录 A 逐任务明细、模式使用矩阵)。- [ ] 截稿 2026-12-31,倒排:12-15 前冻结实验,12-20 完成英文稿,12-25 内审。
## 7. 风险与备选
| 风险 | 概率 | 备选 ||---|---|---|| P0-1 混合读出不涨 | 中 | 走写法 B:方法=表示+树读出,核心层定位为可解释内核 || Stack 显著性仍卡 p≈0.05 | 中 | 改报"与最强单模型持平、显著优于全部已发表基线",主卖点切到 P1-1/P1-2 || 时间不够(12-15 冻结) | 低 | 砍 P1-3/P1-4,保 P0-1/P0-5 与第 5 节写作 |123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120"""Interpret the discrete relation modes of RelMode-LNP.
Trains one checkpoint, then reads the codebook assignment of every *contact*(node pair) of every held-out formulation and reports two tables.
1. **Mode usage by contact class.** Of the 45 contacts of a full formulation, how often does each mode win, split by contact class (intra-lipid fragment pairs, lipid-helper, lipid-cholesterol, lipid-PEG, helper-helper). A mode that is specific to the IL-PEG contact is doing something different from a mode that dominates intra-lipid contacts.
2. **Chemistry of each mode**, for the contacts that actually carry the lipid (every class except intra-lipid fragments): the mean cCPP of the ionisable lipid and the mean molar composition of the formulations in which the mode wins. If the modes are chemically meaningful the columns separate; if they are noise the columns are flat.
PYTHONPATH=src python scripts/mode_interpret.py --model relmode_nr_w \ --study ZC_2023 --fold 0 --seed 0"""
from __future__ import annotations
import argparse
import numpy as npimport pandas as pdimport torch
from lnpbench import data, pathsfrom lnpbench.registry import build_modelfrom lnpbench.store import FeatureStorefrom lnpbench.trainer import TrainConfig, build_batch
NODE_NAMES = ["head", "linker", "tail1", "tail2", "tail3", "tail4", "IL", "HL", "Chol", "PEG"]CLASSES = ["intra-IL", "IL-HL", "IL-Chol", "IL-PEG", "helper-helper"]
def contact_class(u: int, v: int) -> str: lo, hi = min(u, v), max(u, v) if hi <= 6: return "intra-IL" if lo <= 6: return {7: "IL-HL", 8: "IL-Chol", 9: "IL-PEG"}[hi] return "helper-helper"
def main(): ap = argparse.ArgumentParser() ap.add_argument("--model", default="relmode_nr_w") ap.add_argument("--study", default="ZC_2023") ap.add_argument("--fold", type=int, default=0) ap.add_argument("--seed", type=int, default=0) ap.add_argument("--epochs", type=int, default=30) ap.add_argument("--batch-size", type=int, default=256) ap.add_argument("--out", default="results/relmode_interpret.csv") args = ap.parse_args()
store = FeatureStore() tasks = data.load_tasks(paths.CACHE_DIR / "tasks.pkl") task = next(t for t in tasks if t.name == f"{args.study}_fold{args.fold}") model = build_model(args.model) cfg = TrainConfig(epochs=args.epochs, batch_size=args.batch_size, seed=args.seed, device="cuda", verbose=False) info = model.fit(store, task.train_idx, task.val_idx, cfg) mod = model.module.eval() print(f"trained {args.model} on {task.name}: val={info['best_val_spearman']:.4f}")
rel = mod.enc.rel_mode K = rel.n_codes rows = [] # one row per winning contact for start in range(0, len(task.test_idx), 512): chunk = task.test_idx[start:start + 512] batch = build_batch(store, chunk, model.need(), model.device, model.norm) with torch.no_grad(): mod(batch) idx = rel.last["idx"].cpu().numpy() # [B, N, N] valid = rel.last["valid"].cpu().numpy() # [B, N, N] cpp = batch["cpp"].cpu().numpy() # [B, 16] standardised rat = batch["ratios"].cpu().numpy() # [B, 5] for u in range(10): for v in range(u + 1, 10): m = valid[:, u, v] if not m.any(): continue rows.append(pd.DataFrame({ "cls": contact_class(u, v), "mode": idx[m, u, v], "CPP_prot": cpp[m, 2], "CPP_neut": cpp[m, 1], "dCPP": cpp[m, 3], "stab": cpp[m, 4], "w_IL": rat[m, 0], "w_HL": rat[m, 1], "w_Chol": rat[m, 2], "w_PEG": rat[m, 3], })) df = pd.concat(rows, ignore_index=True)
# ---- table 1: usage per contact class -------------------------------- usage = (df.groupby(["cls", "mode"]).size().unstack(fill_value=0) .reindex(CLASSES).reindex(columns=range(K), fill_value=0)) share = usage.div(usage.sum(1), axis=0) print("\n== mode usage by contact class (row = share of contacts) ==") print((share * 100).round(1).to_string())
# ---- table 2: chemistry of each mode -------------------------------- lipid = df[df.cls != "intra-IL"] chem = lipid.groupby("mode")[["CPP_prot", "CPP_neut", "dCPP", "stab", "w_IL", "w_HL", "w_Chol", "w_PEG"]].mean() chem["n"] = lipid.groupby("mode").size() chem["share"] = chem["n"] / len(lipid) chem = chem.reindex(range(K)) print("\n== chemistry of each mode (lipid-carrying contacts only) ==") print(chem.round(3).to_string())
df.groupby(["cls", "mode"]).size().rename("n").reset_index().to_csv( args.out.replace(".csv", "_usage.csv"), index=False) chem.to_csv(args.out, index=False) print("\nwrote", args.out, "and", args.out.replace(".csv", "_usage.csv"))
if __name__ == "__main__": main()205 unmodified lines206207208209210211212213214215205 unmodified linesshutil.copytree(root / "scripts", stage / "code" / "scripts",ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))for name in ("README.md", "requirements.txt", "pyproject.toml","PROGRESS.md", "METHODS.md"):if (root / name).exists():shutil.copy2(root / name, stage / "code" / name)for name in ("PROGRESS.md", "METHODS.md"):if (root / name).exists():shutil.copy2(root / name, stage / name)205 unmodified lines206207208209210211212213214215205 unmodified linesshutil.copytree(root / "scripts", stage / "code" / "scripts",ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))for name in ("README.md", "requirements.txt", "pyproject.toml","PROGRESS.md", "METHODS.md", "TODO.md"):if (root / name).exists():shutil.copy2(root / name, stage / "code" / name)for name in ("PROGRESS.md", "METHODS.md", "TODO.md"):if (root / name).exists():shutil.copy2(root / name, stage / name)
29 unmodified lines3031323334353637383940414229 unmodified lines)self.dropout = nn.Dropout(dropout)def forward(self, x, phys_pair, pad_mask=None, edge_mask=None):B, N, _ = x.shapeqkv = self.qkv(x).view(B, N, 3, self.n_heads, self.d_head).permute(2, 0, 3, 1, 4)q, k, v = qkv[0], qkv[1], qkv[2]scores = torch.matmul(q, k.transpose(-2, -1)) / math.sqrt(self.d_head)if phys_pair is not None:scores = scores + self.bias_mlp(phys_pair).permute(0, 3, 1, 2)if pad_mask is not None:scores = scores.masked_fill(pad_mask[:, None, None, :], float("-inf"))if edge_mask is not None:29 unmodified lines3031323334353637383940414243444546474829 unmodified lines)self.dropout = nn.Dropout(dropout)def forward(self, x, phys_pair, pad_mask=None, edge_mask=None, extra_bias=None):B, N, _ = x.shapeqkv = self.qkv(x).view(B, N, 3, self.n_heads, self.d_head).permute(2, 0, 3, 1, 4)q, k, v = qkv[0], qkv[1], qkv[2]scores = torch.matmul(q, k.transpose(-2, -1)) / math.sqrt(self.d_head)if phys_pair is not None:scores = scores + self.bias_mlp(phys_pair).permute(0, 3, 1, 2)if extra_bias is not None:# bias produced by the discrete relation-mode decoder# (physmode.PairRelationModes): [B, N, N] is shared by all heads,# [B, N, N, H] gives every head its own coupling profilescores = scores + (extra_bias.permute(0, 3, 1, 2)if extra_bias.dim() == 4 else extra_bias.unsqueeze(1))if pad_mask is not None:scores = scores.masked_fill(pad_mask[:, None, None, :], float("-inf"))if edge_mask is not None:
83 unmodified lines84858687888963 unmodified lines15315415515615715829 unmodified lines18818919019119219319419519619719822 unmodified lines22122222322422522622722883 unmodified linesuse_edge_mask: bool = False,use_global: bool = False,global_dim: int = 75,):super().__init__()self.dual_state = dual_state63 unmodified linesself.glob_proj = nn.Sequential(nn.Linear(global_dim, 64), nn.SiLU(), nn.Linear(64, d_model))self.il_graph_proj = nn.Linear(d_model, d_model)self.in_norm = nn.LayerNorm(d_model)self.layers = nn.ModuleList(29 unmodified linesfp = n["fp"]g_il_dual = g_ilx = (self.phys_proj(n["phys"])+ self.ratio_proj(torch.stack([n["ratio"], n["il_na"]], dim=-1))+ self.type_emb(n["type"]))if self.node_mode == "fp":x = x + self.fp_proj(fp)if self.use_onto and "node_onto" in batch:22 unmodified linesx = self.in_norm(x)bias = pair_bias(n["phys"], n["ratio"]) if self.use_physics else Noneem = self.edge_mask if self.use_edge_mask else Nonefor layer in self.layers:x, _ = layer(x, bias, mask, em)z_lnp = self.pma(x, mask)if self.cond_mode == "cross":83 unmodified lines84858687888990919263 unmodified lines15615715815916016116216316416516616716816917029 unmodified lines20020120220320420520620722 unmodified lines23023123223323423523623723823924024124224324424583 unmodified linesuse_edge_mask: bool = False,use_global: bool = False,global_dim: int = 75,use_rel_mode: bool = False,rel_kw: dict | None = None,rel_use_ratio: bool = True,):super().__init__()self.dual_state = dual_state63 unmodified linesself.glob_proj = nn.Sequential(nn.Linear(global_dim, 64), nn.SiLU(), nn.Linear(64, d_model))# LaRIN-style discrete latent relation modes over node pairs: the pair# representation is quantised to K prototypes and the residual expert# posterior is marginalised into the attention logits.self.rel_use_ratio = rel_use_ratioself.rel_mode = Noneif use_rel_mode:from .physmode import PairRelationModesself.rel_mode = PairRelationModes(d_model=d_model, **(rel_kw or {}))self.il_graph_proj = nn.Linear(d_model, d_model)self.in_norm = nn.LayerNorm(d_model)self.layers = nn.ModuleList(29 unmodified linesfp = n["fp"]g_il_dual = g_ilratio_part = self.ratio_proj(torch.stack([n["ratio"], n["il_na"]], dim=-1))x = self.phys_proj(n["phys"]) + ratio_part + self.type_emb(n["type"])if self.node_mode == "fp":x = x + self.fp_proj(fp)if self.use_onto and "node_onto" in batch:22 unmodified linesx = self.in_norm(x)bias = pair_bias(n["phys"], n["ratio"]) if self.use_physics else Noneem = self.edge_mask if self.use_edge_mask else Nonerel_bias, self._rel_stats = (None, None)if self.rel_mode is not None:# inferred once from the input node embeddings, as in LaRIN, so the# discrete relation is a property of the formulation, not of depth.# ``rel_use_ratio=False`` drops the molar-composition channel, which# is a near-unique fingerprint of the source study (Section 3.3.3).x_rel = x if self.rel_use_ratio else x - ratio_partrel_bias, self._rel_stats = self.rel_mode(x_rel, mask)for layer in self.layers:x, _ = layer(x, bias, mask, em, extra_bias=rel_bias)z_lnp = self.pma(x, mask)if self.cond_mode == "cross":
245 unmodified lines246247248249250251252253254255256257269 unmodified lines527528529530531532245 unmodified lineslam_rank: float = 0.5, lam_phys: float = 0.2, rank_gamma: float = 2.0,dual_state: bool = True, use_md_aux: bool = True,cond_mode: str = "concat", node_mode: str = "phys",mode_space: str = "full", **kw):super().__init__()self.enc = FormulationEncoder(fp_dim=fp_dim, ctx_dim=ctx_dim, desc_dim=desc_dim, d_model=d_model,n_heads=n_heads, n_layers=n_layers, dropout=dropout, dual_state=dual_state,cond_mode=cond_mode, node_mode=node_mode,)self.lam_rank, self.lam_phys, self.rank_gamma = lam_rank, lam_phys, rank_gammaself.use_md_aux, self.dual_state = use_md_aux, dual_state269 unmodified linesprint(f"[diffmode] {n_codes} formulation modes, cluster sizes {sizes.tolist()}")return moduledef need(self) -> Sequence[str]:return ("y", "ctx", "ratios", "nodes", "nodes_prot", "helpers", "study_id","cpp", "md_flag", "graph", "desc")245 unmodified lines246247248249250251252253254255256257269 unmodified lines527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795245 unmodified lineslam_rank: float = 0.5, lam_phys: float = 0.2, rank_gamma: float = 2.0,dual_state: bool = True, use_md_aux: bool = True,cond_mode: str = "concat", node_mode: str = "phys",mode_space: str = "full", enc_extra: dict | None = None, **kw):super().__init__()self.enc = FormulationEncoder(fp_dim=fp_dim, ctx_dim=ctx_dim, desc_dim=desc_dim, d_model=d_model,n_heads=n_heads, n_layers=n_layers, dropout=dropout, dual_state=dual_state,cond_mode=cond_mode, node_mode=node_mode, **(enc_extra or {}),)self.lam_rank, self.lam_phys, self.rank_gamma = lam_rank, lam_phys, rank_gammaself.use_md_aux, self.dual_state = use_md_aux, dual_state269 unmodified linesprint(f"[diffmode] {n_codes} formulation modes, cluster sizes {sizes.tolist()}")return moduledef need(self) -> Sequence[str]:return ("y", "ctx", "ratios", "nodes", "nodes_prot", "helpers", "study_id","cpp", "md_flag", "graph", "desc")# ---------------------------------------------------------------------------# Method H - RelMode-LNP : LaRIN's latent-relation decoder on node pairs# ---------------------------------------------------------------------------class PairRelationModes(nn.Module):"""Discrete latent relation modes over the node pairs of a formulation.LaRIN's design has three parts, and all three are kept here verbatim instructure:1. a pair encoder ``z_uv = f([x_u || x_v])``;2. a codebook over those pair representations, assigned by cosinesimilarity and updated by exponential moving averages from the pairsthat actually occur in the batch;3. a residual latent-relation odds decoder: each prototype contributes ascalar correction ``Delta_k(z_uv)`` and the corrections are marginalisedwith the tempered posterior,``b_uv = log sum_k pi_uv,k exp(alpha Delta_k)``.The one transposition is the unit of the discrete variable. LaRIN indexes*relations between two drugs*; here a relation is an *intermolecular contactbetween two formulation components* (ionisable lipid <-> helper lipid,ionisable lipid <-> cholesterol, fragment <-> fragment, ...). The scalar``b_uv`` enters the set attention as an additive logit, so the discrete modemodifies the message passing itself rather than only the output."""def __init__(self, d_model: int = 192, n_codes: int = 16, code_dim: int = 64,tau: float = 0.2, beta: float = 0.25, alpha_init: float = 0.5,hidden: int = 64, mix: str = "logsumexp", hard: bool = False,use_vq: bool = True, center: bool = True, drop: float = 0.0,expert_mode: str = "mlp", n_heads: int = 1, schema_only: bool = False):super().__init__()self.n_codes, self.code_dim = n_codes, code_dimself.tau, self.mix, self.hard = tau, mix, hardself.use_vq, self.center = use_vq, centerself.pair_proj = nn.Sequential(nn.Linear(2 * d_model, d_model), nn.SiLU(),nn.Linear(d_model, code_dim),)self.codebook = LatentModeCodebook(code_dim, n_codes, tau, beta) if use_vq else Noneself.codes = (nn.Parameter(F.normalize(torch.randn(n_codes, code_dim), dim=-1) * 0.5)if not use_vq else None)# The residual expert is the only place where the mode can add capacity.# "mlp" full MLP over [z_uv || c_k] (K * (2 d + 1) free params,# can memorise pair-level patterns)# "linear" rank-1 in z_uv: Delta_k = w.z_uv + b_k# "scalar" Delta_k = b_k (K free parameters: the mode# can only set an interaction archetype, not a pattern)# "head" Delta_kh = b_kh (K x H, one coupling per head)self.expert_mode, self.n_heads = expert_mode, n_headsself.schema_only = schema_onlyif schema_only:from .set_base import schema_edge_maskself.register_buffer("_schema", schema_edge_mask(), persistent=False)if expert_mode == "mlp":self.expert = nn.Sequential(nn.Linear(2 * code_dim, hidden), nn.SiLU(), nn.Dropout(drop), nn.Linear(hidden, 1))self.gain = Noneself.bias = Noneelif expert_mode == "linear":self.gain = nn.Linear(code_dim, n_codes)self.expert = Noneself.bias = Noneelif expert_mode == "scalar":self.expert = Noneself.gain = Noneself.bias = nn.Parameter(torch.zeros(n_codes))elif expert_mode == "head":self.expert = Noneself.gain = Noneself.bias = nn.Parameter(torch.zeros(n_codes, n_heads))else:raise ValueError(expert_mode)self.alpha = nn.Parameter(torch.tensor(float(alpha_init)))# delayed activation: 0 -> 1 over ``warmup`` epochs so that the base# set encoder is fitted before the discrete bias starts to move the# attention logits; held at 1.0 at inferenceself.scale = 1.0self.warmup = 0@propertydef weight(self) -> torch.Tensor:return self.codebook.weight if self.use_vq else F.normalize(self.codes, dim=-1)def forward(self, x: torch.Tensor, mask: torch.Tensor):B, N, _ = x.shapecodes = self.weightz = self.pair_proj(torch.cat([x.unsqueeze(2).expand(B, N, N, -1),x.unsqueeze(1).expand(B, N, N, -1)], dim=-1))cos = F.normalize(z, dim=-1) @ F.normalize(codes, dim=-1).t()pi = F.softmax(cos / self.tau, dim=-1)idx = cos.argmax(-1)if self.expert_mode == "mlp":delta = self.expert(torch.cat([z.unsqueeze(3).expand(B, N, N, self.n_codes, -1),codes.view(1, 1, 1, self.n_codes, -1).expand(B, N, N, self.n_codes, -1)],dim=-1)).squeeze(-1)elif self.expert_mode == "linear":# [B, N, N, d] @ [d, K] -> [B, N, N, K]delta = z @ self.gain.weight.t() + self.gain.biaselse: # scalar / head: broadcast a K (x H) parameter vector over pairsones = torch.ones(B, N, N, *([1] * self.bias.dim()),device=z.device, dtype=z.dtype)delta = self.bias.view(1, 1, 1, *self.bias.shape) * onesif self.center:# a zero-mean correction over the codebook: at initialisation every# expert agrees, so the bias is exactly zero and the model starts as# PhysSet-LNP rather than at an arbitrary offsetdelta = delta - delta.mean(3, keepdim=True)per_head = delta.dim() == 5 # [B, N, N, K, H]if self.hard:oh = F.one_hot(pi.argmax(-1), self.n_codes).to(delta.dtype)bias = ((oh.unsqueeze(-1) * delta).sum(3) if per_headelse (oh * delta).sum(-1))elif self.mix == "logsumexp":lp = torch.log(pi + 1e-9)bias = (torch.logsumexp(lp.unsqueeze(-1) + self.alpha * delta, dim=3) if per_headelse torch.logsumexp(lp + self.alpha * delta, dim=-1))else:bias = (self.alpha * (pi.unsqueeze(-1) * delta).sum(3) if per_headelse self.alpha * (pi * delta).sum(-1))valid = ~(mask[:, :, None] | mask[:, None, :])diag = torch.eye(N, device=x.device, dtype=torch.bool)contact = valid & ~diag.unsqueeze(0)if self.schema_only:contact = contact & self._schema.to(x.device).unsqueeze(0)# [B, N, N] or [B, N, N, H]m = valid.to(bias.dtype)m = m.unsqueeze(-1) if bias.dim() == 4 else mbias = bias * mdmask = diag.view(1, N, N, *([1] * (bias.dim() - 3)))bias = bias.masked_fill(dmask, 0.0)# kept for the interpretability pass (scripts/mode_interpret.py); the# tensors are detached and never enter the graphself.last = {"pi": pi.detach(), "idx": idx.detach(), "valid": valid.detach()}if self.scale != 1.0:bias = bias * self.scalestats = {}if self.training:u = z[contact]pi_c = pi[contact]idx_c = idx[contact]if len(u):if self.use_vq:self.codebook.ema_update(u, idx_c)c = self.codebook.weight[idx_c]stats["commit"] = (u - c.detach()).pow(2).mean()else:c = codes[idx_c]stats["commit"] = (u - c).pow(2).mean()pbar = pi_c.mean(0)stats["bal"] = (pbar * torch.log(pbar * self.n_codes + 1e-9)).sum()cn = F.normalize(self.weight, dim=-1)stats["orth"] = (cn @ cn.t()- torch.eye(self.n_codes, device=cn.device)).pow(2).mean()stats["usage"] = pbar.detach()return bias, statsclass RelModeModule(_ModeTrunk):"""PhysSet-LNP whose attention logits carry discrete relation-mode biases."""def __init__(self, fp_dim: int, ctx_dim: int, desc_dim: int, n_heads: int = 6,rel_n_codes: int = 16, rel_code_dim: int = 64, rel_tau: float = 0.2,rel_alpha: float = 0.5, rel_mix: str = "logsumexp", rel_hard: bool = False,rel_use_vq: bool = True, rel_center: bool = True,rel_expert: str = "mlp", rel_use_ratio: bool = True,rel_schema_only: bool = False, rel_warmup: int = 0,lam_vq: float = 0.02, lam_bal: float = 0.02, lam_orth: float = 0.005,use_rel_mode: bool = True, use_block: bool = False, **kw):rel_kw = dict(n_codes=rel_n_codes, code_dim=rel_code_dim, tau=rel_tau,alpha_init=rel_alpha, mix=rel_mix, hard=rel_hard,use_vq=rel_use_vq, center=rel_center, expert_mode=rel_expert,n_heads=n_heads, schema_only=rel_schema_only)super().__init__(fp_dim=fp_dim, ctx_dim=ctx_dim, desc_dim=desc_dim,enc_extra={"use_rel_mode": use_rel_mode, "rel_kw": rel_kw,"rel_use_ratio": rel_use_ratio}, **kw)out = self.enc.out_dimself.pred = nn.Sequential(nn.Linear(256, 64), nn.SiLU(), nn.Linear(64, 1))self.lam_vq, self.lam_bal, self.lam_orth = lam_vq, lam_bal, lam_orthself.rel_warmup, self._epoch = rel_warmup, 0# hybrid read-out: the same identity-free 398-d chemistry block that the# tree models consume is projected and concatenated with the set# representation before the head. The representation is identical, so# this isolates the *read-out* as the source of the neural/tree gap.self.use_block = use_blockif use_block:self.block_proj = nn.Sequential(nn.Linear(398, 192), nn.SiLU(), nn.Linear(192, 192))def forward(self, batch):if self.enc.rel_mode is not None:self.enc.rel_mode.scale = (min(1.0, (self._epoch + 1) / self.rel_warmup) if self.rel_warmup else 1.0)h, feats, _ = self.encode(batch)stats = getattr(self.enc, "_rel_stats", None) or {}hh = hif self.use_block:hh = torch.cat([h, self.block_proj(self.block[batch["row"]])], dim=-1)return {"y_hat": self.pred(hh).squeeze(-1), "phys": self.phys_head(feats),"z": h, "feats": feats, "rel": stats}def compute_loss(self, batch, out, epoch=0, n_epochs=1):self._epoch = epochreg = F.smooth_l1_loss(out["y_hat"], batch["y"])rank = self._rank_loss(out["y_hat"], batch)total = reg + self.lam_rank * ranklogs = {"reg": float(reg.detach()), "rank": float(rank.detach())}rel = out["rel"]if rel:vq = (self.lam_vq * rel.get("commit", 0.0)+ self.lam_bal * rel.get("bal", 0.0)+ self.lam_orth * rel.get("orth", 0.0))total = total + vqlogs.update({k: float(v.detach()) for k, v in rel.items() if torch.is_tensor(v) and v.dim() == 0})total = self._aux_losses(batch, out["feats"], total, logs)return total, logsclass RelModeLNP(NeuralModel):name = "relmode"def build(self, store: FeatureStore, cfg: TrainConfig) -> nn.Module:kw = dict(self.kwargs)block = Noneif kw.get("use_block"):import numpy as npfrom .. import pathsz = np.load(paths.CACHE_DIR / "schema_blocks.npz", allow_pickle=True)x = np.asarray(z["base"], dtype=np.float32)x = (x - x.mean(0)) / (x.std(0) + 1e-6)block = torch.from_numpy(x)module = RelModeModule(fp_dim=store.il_fp.shape[1], ctx_dim=store.ctx_dim,desc_dim=store.il_desc.shape[1], **kw)if block is not None:module.register_buffer("block", block)module.pred[0] = nn.Linear(256 + 192, 64)print(f"[block] hybrid read-out: {x.shape[1]} chemistry features + 256 learned")return moduledef need(self) -> Sequence[str]:return ("y", "ctx", "ratios", "nodes", "nodes_prot", "helpers", "study_id","cpp", "md_flag", "graph", "desc")
19 unmodified lines20212223242526106 unmodified lines13313413513613713819 unmodified linesfrom .models.backbone import PhyCausalLNP, PhysSetLNPfrom .models.probe import (ProbeFlat, ProbeFlatRank, ProbePhysSet, ProbePhysSetRank,ProbeSet, ProbeSetBias, ProbeSetBiasRank)from .models.physmode import DiffModeLNP, PhysModeLNPfrom .models.seq_backbone import SeqCausalLNPfrom .trainer import TrainConfig106 unmodified lines"diffmode_chem": lambda: DiffModeLNP(**{**DM_KW, "mode_space": "chem"}),"diffmode_chem_hard": lambda: DiffModeLNP(**{**DM_KW, "mode_space": "chem", "hard_mode": True}),"diffmode_r1": lambda: DiffModeLNP(),# ---- Method E: Schema-LNP -------------------------------------------------# ontology node attributes + typed (schema) adjacency on top of PhysSet-LNP"schema_lnp": lambda: PhysSetLNP(cond_mode="concat", node_mode="phys", lam_rank=0.5,19 unmodified lines20212223242526106 unmodified lines13313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517619 unmodified linesfrom .models.backbone import PhyCausalLNP, PhysSetLNPfrom .models.probe import (ProbeFlat, ProbeFlatRank, ProbePhysSet, ProbePhysSetRank,ProbeSet, ProbeSetBias, ProbeSetBiasRank)from .models.physmode import DiffModeLNP, PhysModeLNP, RelModeLNPfrom .models.seq_backbone import SeqCausalLNPfrom .trainer import TrainConfig106 unmodified lines"diffmode_chem": lambda: DiffModeLNP(**{**DM_KW, "mode_space": "chem"}),"diffmode_chem_hard": lambda: DiffModeLNP(**{**DM_KW, "mode_space": "chem", "hard_mode": True}),"diffmode_r1": lambda: DiffModeLNP(),# ---- Method H: RelMode-LNP (LaRIN latent relations over node pairs) ------# The discrete variable is the intermolecular contact, not the formulation:# K prototypes over pair representations, EMA codebook, residual latent-# relation odds marginalised into the attention logits."relmode": lambda: RelModeLNP(),# expert granularity: the only place where a mode can add capacity"relmode_h": lambda: RelModeLNP(rel_expert="head"),"relmode_sc": lambda: RelModeLNP(rel_expert="scalar"),"relmode_sc_a1": lambda: RelModeLNP(rel_expert="scalar", rel_alpha=1.0),"relmode_h_a1": lambda: RelModeLNP(rel_expert="head", rel_alpha=1.0),"relmode_ln": lambda: RelModeLNP(rel_expert="linear"),# identity-free mode space: the molar-composition channel (a near-unique# study fingerprint) is removed from the pair representation"relmode_nr": lambda: RelModeLNP(rel_use_ratio=False),"relmode_nr_sc": lambda: RelModeLNP(rel_use_ratio=False, rel_expert="scalar"),"relmode_nr_w": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8),"relmode_nr_sc_w": lambda: RelModeLNP(rel_use_ratio=False, rel_expert="scalar", rel_warmup=8),"relmode_nr_sch": lambda: RelModeLNP(rel_use_ratio=False, rel_schema_only=True),"relmode_nr_w_sch": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_schema_only=True),# ablation ladder around the adopted configuration"relmode_nr_w_k8": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_n_codes=8),"relmode_nr_w_k32": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_n_codes=32),"relmode_nr_w_novq": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_use_vq=False),"relmode_nr_w_hard": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_hard=True),"relmode_nr_w_nocent": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, rel_center=False),# hybrid read-out: neural head sees the identity-free 398-d chemistry block"relmode_blk": lambda: RelModeLNP(rel_use_ratio=False, rel_warmup=8, use_block=True),"relset_blk": lambda: RelModeLNP(use_rel_mode=False, use_block=True),"relmode_base": lambda: RelModeLNP(use_rel_mode=False),"relmode_hard": lambda: RelModeLNP(rel_hard=True),"relmode_lin": lambda: RelModeLNP(rel_mix="linear"),"relmode_novq": lambda: RelModeLNP(rel_use_vq=False),"relmode_nocent": lambda: RelModeLNP(rel_center=False),"relmode_k8": lambda: RelModeLNP(rel_n_codes=8),"relmode_k32": lambda: RelModeLNP(rel_n_codes=32),"relmode_a01": lambda: RelModeLNP(rel_alpha=0.1),"relmode_a1": lambda: RelModeLNP(rel_alpha=1.0),"relmode_a2": lambda: RelModeLNP(rel_alpha=2.0),# ---- Method E: Schema-LNP -------------------------------------------------# ontology node attributes + typed (schema) adjacency on top of PhysSet-LNP"schema_lnp": lambda: PhysSetLNP(cond_mode="concat", node_mode="phys", lam_rank=0.5,
123456789101112model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10relmode_base,relmode_base,LM_2019_fold0,LM_2019,0,0,14125,1128,0.2827237677280096,30,284.7,0.16130542382715074,0.15465797389115013,-0.05299674689583478,0.781385343656304,1.0261562989745483,1.4134231341530268,1.3692536612107447,0.5523786406484089relmode_base,relmode_base,LM_2019_fold1,LM_2019,1,0,14658,1128,0.38403573967052096,30,282.2,0.09032194818164185,0.11838070805430578,-0.06046745197173142,0.7891787929888351,1.0297900053032807,1.6784399718067193,1.2809147153261806,0.546607427225371relmode_base,relmode_base,LM_2019_fold2,LM_2019,2,0,14503,1128,0.3252599773301269,30,268.0,0.1443361824265214,0.12794586792995608,-0.06504299395282054,0.7874247786226248,1.0320092039399569,0.9717284047302059,1.1704910329704754,0.5333819361127213relmode_base,relmode_base,LM_2019_fold3,LM_2019,3,0,14810,1128,0.17120528868811685,30,267.2,0.07456489040870563,0.03985032716854748,-0.054336580267282386,0.782529444331891,1.0268089322266556,1.7667789176912834,1.1704910329704754,0.5819003489032372relmode_base,relmode_base,LM_2019_fold4,LM_2019,4,0,14932,1128,0.394972920692621,30,269.4,0.17203301733461243,0.15234412719199142,-0.068954426730377,0.7779341725646322,1.0339025243249929,1.3250841882684627,1.126321560028193,0.5440533556968675relmode_base,relmode_base,BL_2023_fold0,BL_2023,0,0,14524,773,0.2872739694439904,30,267.3,0.18674073085573156,0.19077069170925728,-0.5868654978047034,0.9897961563431932,1.2597084999028236,1.8252656434474617,1.2548178980228926,0.6235318235328465relmode_base,relmode_base,BL_2023_fold1,BL_2023,1,0,14731,773,0.31529535938422504,30,269.1,0.04126656276683151,0.03516003197544573,-0.29592306916957023,0.9461594337517971,1.1383861712191736,0.7822567043346265,0.8365452653485952,0.5281327782108569relmode_base,relmode_base,BL_2023_fold2,BL_2023,2,0,15189,773,0.42782301615870666,30,280.8,0.15994033216896505,0.20021752000591445,-0.35916766733896477,0.9299837231158941,1.1658334672106256,2.4771462303929837,1.7374401664932362,0.6832829820684352relmode_base,relmode_base,BL_2023_fold3,BL_2023,3,0,14825,773,0.3501936183429795,30,281.6,0.19833149007667045,0.23327126405773277,-0.3539553793089667,0.9277124312208703,1.163595885698988,2.4771462303929837,1.8339646201873048,0.6981712403617713relmode_base,relmode_base,BL_2023_fold4,BL_2023,4,0,15192,773,0.3411813966446397,30,191.2,0.18410613317129965,0.21698022249977497,-0.2657697557672096,0.9000419675653263,1.1250643365110924,2.4771462303929837,1.7696149843912592,0.6738357678259034relmode_base,relmode_base,SL_2020_fold0,SL_2020,0,0,15234,91,0.2614232569841324,30,198.3,0.6795646507433695,0.6068082040634342,0.11939583850581881,0.7817619123629161,0.9384050968413029,1.1234567901234567,2.2469135802469133,0.6057017136194932123456789101112model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10relmode_base,relmode_base,LM_2019_fold0,LM_2019,0,1,14125,1128,0.30452256354462903,30,283.3,0.24142872824070677,0.23369970567399737,-0.04487848572272246,0.7725081132645056,1.022192980179709,2.2084736471141047,1.4134231341530268,0.5883684191398932relmode_base,relmode_base,LM_2019_fold1,LM_2019,1,1,14658,1128,0.3868590920809844,30,283.4,0.13810881081278356,0.12708126015664462,-0.0046460393974221414,0.7825188233079784,1.0023203291800642,1.4134231341530268,1.3029994517973216,0.545681485419305relmode_base,relmode_base,LM_2019_fold2,LM_2019,2,1,14503,1128,0.3048078887611774,30,268.1,0.0817680864809772,0.12791193057350406,-0.13722718273048717,0.80647045836636,1.0664085455406445,1.590101025922155,1.3913383976818856,0.5709684312378477relmode_base,relmode_base,LM_2019_fold3,LM_2019,3,1,14810,1128,0.16384401216703168,19,168.8,0.21874035913496412,0.21735935318581495,0.006120605426587877,0.7734656480654063,0.996935001608755,1.4134231341530268,1.3692536612107447,0.5797457392386446relmode_base,relmode_base,LM_2019_fold4,LM_2019,4,1,14932,1128,0.3713036266022884,30,269.7,0.09795229973146945,0.06254011148094146,-0.0893494717063541,0.7849209513109582,1.0437190593451107,1.06006735061477,1.1042368235570523,0.5310110617605077relmode_base,relmode_base,BL_2023_fold0,BL_2023,0,1,14524,773,0.29935629979333755,30,269.5,0.09185302889252836,0.12221823149115059,-0.2670107242511448,0.8930816353644506,1.1256157114124221,1.303761173891044,0.7721956295525494,0.6031844412400722relmode_base,relmode_base,BL_2023_fold1,BL_2023,1,1,14731,773,0.3001076913846095,30,270.7,-0.06569117881291907,-0.05616579682716843,-0.20414691419027564,0.9160637501826001,1.0973362836630256,0.7822567043346265,0.7400208116545265,0.5218081188180183relmode_base,relmode_base,BL_2023_fold2,BL_2023,2,1,15189,773,0.40978009400181753,30,281.9,0.055903000087196265,0.10228602898505432,-0.5680655572546873,0.989292193668621,1.2522242467287523,1.4341372912801484,1.1582934443288242,0.6038957068679426relmode_base,relmode_base,BL_2023_fold3,BL_2023,3,1,14825,773,0.3411947117603853,30,281.0,0.13286329578184836,0.16959741375391008,-0.41209667132005556,0.9260648370552976,1.1883167412269944,2.2163939956147747,1.6087408949011446,0.683985934654441relmode_base,relmode_base,BL_2023_fold4,BL_2023,4,1,15192,773,0.34491360115741565,30,222.7,0.16493947160129432,0.21122465204367338,-0.12097684015322963,0.8555322515306558,1.0587619397407066,2.607522347782088,1.8983142559833506,0.7024670374345171relmode_base,relmode_base,SL_2020_fold0,SL_2020,0,1,15234,91,0.24595632198417103,30,199.9,0.7403924359139803,0.6299059058098494,0.2312036807643273,0.7295308761288423,0.8768102919412178,1.1234567901234567,2.2469135802469133,0.6690221775104146123456789101112model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10diffmode_chem,diffmode_chem,LM_2019_fold0,LM_2019,0,1,14125,1128,0.3028859258613945,30,318.2,0.21658957852000188,0.2586693168121521,-0.06245028447051948,0.7829276728351893,1.030752292030934,1.8551178635758478,1.47967734356645,0.5942871443322706diffmode_chem,diffmode_chem,LM_2019_fold1,LM_2019,1,1,14658,1128,0.3727990751464812,30,285.0,0.16802017884164952,0.12455576241481367,-0.015510220305972489,0.7744208325842192,1.0077252717022815,1.06006735061477,1.2146605059127573,0.5287810666149432diffmode_chem,diffmode_chem,LM_2019_fold2,LM_2019,2,1,14503,1128,0.33387872253485845,30,278.8,0.18996373584648327,0.22764037983160182,-0.05283072423477919,0.7824455964987247,1.0260754003793333,1.8551178635758478,1.545931552979873,0.5886936705249838diffmode_chem,diffmode_chem,LM_2019_fold3,LM_2019,3,1,14810,1128,0.17721105482897123,19,179.4,0.23869285800276432,0.24587820984662206,0.03093088118250864,0.7703010758989994,0.9844130848405827,1.501762080037591,1.3471689247396035,0.59528005833897diffmode_chem,diffmode_chem,LM_2019_fold4,LM_2019,4,1,14932,1128,0.41029991509350805,30,282.4,0.18144537045288686,0.16019200452389717,-0.07696544618226908,0.787362757389381,1.037769458637385,1.2367452423838985,1.3913383976818856,0.5416896693288384diffmode_chem,diffmode_chem,BL_2023_fold0,BL_2023,0,1,14524,773,0.2942203803871018,30,280.2,-0.09640245242521646,-0.019301295623381436,-0.3333916103394876,0.9235731147417623,1.1547257753061648,1.4341372912801484,0.6756711758584808,0.5923764515405517diffmode_chem,diffmode_chem,BL_2023_fold1,BL_2023,1,1,14731,773,0.3176696094593116,30,283.8,-0.017775384014101413,-0.009280777996181428,-0.18802262344896237,0.8982933743201428,1.0899645079688258,1.1733850565019397,0.9330697190426639,0.5793811597334155diffmode_chem,diffmode_chem,BL_2023_fold2,BL_2023,2,1,15189,773,0.36718431095115955,30,291.1,-0.06422777365629756,-0.007071534986535826,-0.2829005795562687,0.9181019006674099,1.132652014147742,1.6948895260583574,1.0617689906347554,0.5605595872444197diffmode_chem,diffmode_chem,BL_2023_fold3,BL_2023,3,1,14825,773,0.3724986033035471,30,252.0,0.10206730545900426,0.1186129014663204,-0.36486176296148076,0.9261664186097094,1.1682729856141096,1.8252656434474617,1.0939438085327784,0.6268821566373104diffmode_chem,diffmode_chem,BL_2023_fold4,BL_2023,4,1,15192,773,0.32019519852164136,30,200.9,0.17310937392628462,0.18312196620874513,-0.34028129978080024,0.9292530182382769,1.1577051894276853,2.4771462303929837,2.1235379812695108,0.6797020434256029diffmode_chem,diffmode_chem,SL_2020_fold0,SL_2020,0,1,15234,91,0.2536901169865348,30,205.9,0.6792593056891225,0.5368764799576191,0.05747403331734402,0.8160165280594931,0.9708377456891145,1.1234567901234567,1.9660493827160495,0.6057017136194932123456789101112131415161718192021model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10relmode_nr_w,relmode_nr_w,LM_2019_fold0,LM_2019,0,0,14125,1128,0.27523603014546405,30,149.8,0.22282422368576357,0.17739996466148758,-0.04894062929891163,0.780522730157615,1.024178027647806,1.590101025922155,1.5238468165087318,0.56554618166394relmode_nr_w,relmode_nr_w,LM_2019_fold1,LM_2019,1,0,14658,1128,0.3888314014086752,30,98.0,0.2207385993065688,0.17235883550485046,-0.04115245480676655,0.7779064987484192,1.0203687851958232,1.501762080037591,1.3029994517973216,0.5418518309636795relmode_nr_w,relmode_nr_w,LM_2019_fold2,LM_2019,2,0,14503,1128,0.31455693151981623,30,90.2,0.09852611419437099,0.08515486607671566,-0.08073487724735484,0.7859198944749385,1.039583993892009,0.9717284047302059,1.1042368235570523,0.538290339898911relmode_nr_w,relmode_nr_w,LM_2019_fold3,LM_2019,3,0,14810,1128,0.16607789164498354,30,92.3,0.2376011887479559,0.2375407405378935,0.0034581831346256475,0.7650636859286297,0.9982694123994134,1.7667789176912834,1.3692536612107447,0.5932131312976113relmode_nr_w,relmode_nr_w,LM_2019_fold4,LM_2019,4,0,14932,1128,0.3939707957525913,30,95.3,0.09298918776675896,0.08394308871786062,-0.10751527616756973,0.7889663871246166,1.0523855184074506,1.3250841882684627,1.126321560028193,0.5400672480087508relmode_nr_w,relmode_nr_w,BL_2023_fold0,BL_2023,0,0,14524,773,0.27789465353988946,30,97.8,0.11006869052061997,0.12101084226343065,-0.5315389392650434,0.9688328409357837,1.237553613362427,1.1733850565019397,0.6756711758584808,0.5738709761142315relmode_nr_w,relmode_nr_w,BL_2023_fold1,BL_2023,1,0,14731,773,0.31515605652480566,30,91.8,0.05494733556969279,0.03497938751662885,-0.2025251543687674,0.9030151774391127,1.0965970817099584,0.7822567043346265,0.8687200832466181,0.5174264221559499relmode_nr_w,relmode_nr_w,BL_2023_fold2,BL_2023,2,0,15189,773,0.4011012673861166,30,87.7,0.15364263344767717,0.1789079186450098,-0.6110612163581068,1.0192638503997207,1.2692758657543204,2.737898465171192,1.8017898022892818,0.6893774264341936relmode_nr_w,relmode_nr_w,BL_2023_fold3,BL_2023,3,0,14825,773,0.34233095871159663,30,87.4,0.15791439535806576,0.1872886497933196,-0.534012736504397,0.98716126584519,1.2385526808321659,2.3467701130038794,1.4478668054110302,0.6809188354410711relmode_nr_w,relmode_nr_w,BL_2023_fold4,BL_2023,4,0,15192,773,0.3268932167807209,30,97.7,0.14416483999966276,0.17548915840814072,-0.31559470605973794,0.9103044478239595,1.1469937714735137,2.3467701130038794,1.4478668054110302,0.6776774695692379relmode_nr_w,relmode_nr_w,SL_2020_fold0,SL_2020,0,0,15234,91,0.2581260479816316,30,115.0,0.7591436327135891,0.7011024578795142,-0.1316323529163177,0.9457244204132111,1.0637820768458233,2.2469135802469133,2.5277777777777777,0.6435671319265007relmode_nr_w,relmode_nr_w,SL_2020_fold1,SL_2020,1,0,15298,91,0.23570165149350913,30,108.9,0.7275447775275139,0.6644772257180042,0.1388978857971912,0.7862090487647188,0.9279558606298829,1.1234567901234567,2.5277777777777777,0.688000707083357relmode_nr_w,relmode_nr_w,SL_2020_fold2,SL_2020,2,0,15311,91,0.4224481666796436,30,95.7,0.7338943577554254,0.6180797315932591,0.2588987121969232,0.690043817878097,0.8608723817992602,2.2469135802469133,2.5277777777777777,0.692951839416365relmode_nr_w,relmode_nr_w,SL_2020_fold3,SL_2020,3,0,15423,91,0.3325969681162203,30,94.9,0.7941773418836663,0.680153613141743,0.3285282211595175,0.6808391242891878,0.8194337994043459,1.1234567901234567,2.5277777777777777,0.688000707083357relmode_nr_w,relmode_nr_w,SL_2020_fold4,SL_2020,4,0,15910,91,0.3749186000299752,30,100.4,0.7542177721526188,0.580317821745515,0.138583412513814,0.7750582241422528,0.9281252892513862,2.2469135802469133,1.9660493827160495,0.7060081809655793relmode_nr_w,relmode_nr_w,ZC_2023_fold0,ZC_2023,0,0,15246,131,0.31049324359129954,30,97.6,0.3656450151210085,0.4227355464800514,0.1760212086845201,0.6938239270039187,0.9077327742691736,0.0,1.1627218934911243,0.8797551571772841relmode_nr_w,relmode_nr_w,ZC_2023_fold1,ZC_2023,1,0,15183,131,0.21806035240594693,30,99.2,0.5028225389245864,0.5330521746313274,-1.36413469933259,1.2899067989969981,1.5375742889607655,1.5502958579881658,1.3565088757396448,0.9690343154676415relmode_nr_w,relmode_nr_w,ZC_2023_fold2,ZC_2023,2,0,15342,131,0.42920966795902876,30,94.9,0.44050896305593007,0.47789893493162094,-1.6534671928157216,1.3755897296066502,1.6289466494985863,2.3254437869822486,1.9378698224852073,0.9624621140200098relmode_nr_w,relmode_nr_w,ZC_2023_fold3,ZC_2023,3,0,15378,131,0.339408225740786,30,98.3,0.5271128702770856,0.49313045786641463,-1.9328206763246114,1.475267608401202,1.7125480051082056,3.1005917159763317,2.3254437869822486,0.94840070542306relmode_nr_w,relmode_nr_w,ZC_2023_fold4,ZC_2023,4,0,15877,131,0.36318572952925454,30,86.2,0.3748517453431314,0.4218710285562212,-2.2352069247385,1.5371059933464035,1.798668095436531,1.5502958579881658,1.1627218934911243,0.8046318636540741123456789101112131415161718192021model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10relmode_nr_w,relmode_nr_w,LM_2019_fold0,LM_2019,0,1,14125,1128,0.2824374156082436,30,149.7,0.24211369284049805,0.19350984105940489,-0.03012366689336332,0.7723875956943966,1.0149500824458653,1.4134231341530268,1.3913383976818856,0.5661277022089595relmode_nr_w,relmode_nr_w,LM_2019_fold1,LM_2019,1,1,14658,1128,0.39698231522590344,30,98.0,0.18114963199440962,0.16005289991726643,-0.012876842774097508,0.778747045975502,1.0064178285821384,1.6784399718067193,1.457592607095309,0.5541284315349619relmode_nr_w,relmode_nr_w,LM_2019_fold2,LM_2019,2,1,14503,1128,0.2900801785903935,30,90.2,0.14223742721462124,0.1374461597997283,-0.02614401168401681,0.7786772557184769,1.0129876675636647,1.6784399718067193,1.4355078706241677,0.5732046746966821relmode_nr_w,relmode_nr_w,LM_2019_fold3,LM_2019,3,1,14810,1128,0.1597635545379786,19,57.5,0.1662741626943832,0.15745955215732507,0.003100752677270835,0.776140676704721,0.9984484213972462,1.4134231341530268,1.2367452423838985,0.594826553079572relmode_nr_w,relmode_nr_w,LM_2019_fold4,LM_2019,4,1,14932,1128,0.3811841332631923,30,95.5,0.12450359176454373,0.0641244709466513,-0.07133053328938943,0.7789030684089415,1.0350509824986596,0.8833894588456417,1.015897877672488,0.5357243515737223relmode_nr_w,relmode_nr_w,BL_2023_fold0,BL_2023,0,1,14524,773,0.27903230340973706,30,97.7,-0.06775684792519115,0.006919126740994615,-0.2685433236376724,0.8969872364651456,1.1262962883591987,0.9126328217237308,0.45044745057232044,0.5740990695942638relmode_nr_w,relmode_nr_w,BL_2023_fold1,BL_2023,1,1,14731,773,0.29169305515872107,30,94.2,0.016857183510687924,0.0008310567187254853,-0.22520088631769508,0.9234054270345009,1.1068879309409096,0.7822567043346265,0.7078459937565036,0.5404595415567638relmode_nr_w,relmode_nr_w,BL_2023_fold2,BL_2023,2,1,15189,773,0.39930931462260294,30,85.5,0.07326449797050312,0.1043298296345565,-0.491564705289685,0.9651564388990133,1.2212963243196358,1.4341372912801484,1.1261186264308012,0.6274472277157362relmode_nr_w,relmode_nr_w,BL_2023_fold3,BL_2023,3,1,14825,773,0.34741104343919,30,86.5,0.15762732195067,0.1769709884371069,-0.45808508319940766,0.9447273669010184,1.2075119417878732,2.4771462303929837,1.5443912591050988,0.6914430995398939relmode_nr_w,relmode_nr_w,BL_2023_fold4,BL_2023,4,1,15192,773,0.3192213467368348,30,84.3,0.14594861885866026,0.18850513056934304,-0.14718103623675494,0.8651111100524432,1.0710653767354004,2.4771462303929837,1.7374401664932362,0.7013470689390074relmode_nr_w,relmode_nr_w,SL_2020_fold0,SL_2020,0,1,15234,91,0.2379523723009353,30,112.5,0.7034220424197007,0.5787593993923551,0.020904622974038833,0.8392344306294734,0.9894924645063283,1.1234567901234567,2.2469135802469133,0.595649893245172relmode_nr_w,relmode_nr_w,SL_2020_fold1,SL_2020,1,1,15298,91,0.22253864301498696,30,115.2,0.7530316597101899,0.6823637277359661,0.2835421676386055,0.7152439435677869,0.8464383044868441,2.2469135802469133,2.808641975308642,0.7060081809655793relmode_nr_w,relmode_nr_w,SL_2020_fold2,SL_2020,2,1,15311,91,0.4046837717333693,30,96.7,0.7349685843719789,0.6194077573050832,0.296226564843314,0.6862345946195362,0.838912037470152,1.1234567901234567,2.5277777777777777,0.6653158501344816relmode_nr_w,relmode_nr_w,SL_2020_fold3,SL_2020,3,1,15423,91,0.3253473760565371,26,83.9,0.7607137525726423,0.6352931104163503,0.33998661250481876,0.651218844311578,0.8124120633802048,1.1234567901234567,2.5277777777777777,0.5768608296492274relmode_nr_w,relmode_nr_w,SL_2020_fold4,SL_2020,4,1,15910,91,0.3765894268255314,30,98.1,0.7675865449915692,0.5539470598773093,0.2158924507995369,0.738807471121078,0.8854984570273544,1.1234567901234567,1.9660493827160495,0.688000707083357relmode_nr_w,relmode_nr_w,ZC_2023_fold0,ZC_2023,0,1,15246,131,0.2999909199167189,30,99.2,0.4124146533481823,0.43641668148341267,0.09157974986149098,0.6957760384548028,0.953110826775977,0.0,1.7440828402366864,0.8943013748758489relmode_nr_w,relmode_nr_w,ZC_2023_fold1,ZC_2023,1,1,15183,131,0.22725466543611628,30,99.1,0.5068635768005241,0.5448430400885809,-1.2465162147423383,1.2497771228201517,1.498838286722291,2.3254437869822486,1.3565088757396448,0.9787758514168009relmode_nr_w,relmode_nr_w,ZC_2023_fold2,ZC_2023,2,1,15342,131,0.4152908126678761,30,96.7,0.3968073160674457,0.4342903748562055,-1.0049753021047323,1.1300126741860659,1.415971503118743,2.3254437869822486,1.9378698224852073,0.8968501276576979relmode_nr_w,relmode_nr_w,ZC_2023_fold3,ZC_2023,3,1,15378,131,0.33540926765343315,30,97.8,0.3153498056500936,0.40001315878158694,-1.1010832345753685,1.1344109506893705,1.449511376257938,0.0,1.5502958579881658,0.7885402739650486relmode_nr_w,relmode_nr_w,ZC_2023_fold4,ZC_2023,4,1,15877,131,0.36929855639200315,30,99.1,0.3920137520386217,0.41709830097412076,-1.246958909874409,1.2360876710474036,1.4989859588654253,0.0,1.5502958579881658,0.805275512988697123456789101112model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10physmode_chem,physmode_chem,LM_2019_fold0,LM_2019,0,0,14125,1128,0.26930922399354296,30,312.8,0.24992456512190286,0.20765020816516314,-0.013345390467079055,0.7660602960471917,1.006650581573525,1.4134231341530268,1.3913383976818856,0.5609153211913434physmode_chem,physmode_chem,LM_2019_fold1,LM_2019,1,0,14658,1128,0.3864110642727149,30,279.3,0.2131495340043688,0.18698717984606747,-0.05963204046314985,0.7786450671660121,1.0293843031208247,1.501762080037591,1.2809147153261806,0.5542529990101731physmode_chem,physmode_chem,LM_2019_fold2,LM_2019,2,0,14503,1128,0.3014023393505062,30,270.4,0.12060749268683006,0.0898850517999672,-0.06205938858801541,0.7853598250578727,1.030562657795922,1.2367452423838985,1.126321560028193,0.5270401608173191physmode_chem,physmode_chem,LM_2019_fold3,LM_2019,3,0,14810,1128,0.1659076044139683,20,181.1,0.1492332639860802,0.13908790865856535,-0.02232542959068695,0.7795051075525299,1.0111010990656464,1.3250841882684627,1.3029994517973216,0.558286596946816physmode_chem,physmode_chem,LM_2019_fold4,LM_2019,4,0,14932,1128,0.3758351396533802,30,274.4,0.1295051639842334,0.09067447849782032,-0.12143616991663708,0.7887050400508456,1.058978835077847,0.8833894588456417,1.037982614143629,0.5184856252703448physmode_chem,physmode_chem,BL_2023_fold0,BL_2023,0,0,14524,773,0.27337028482653786,30,271.6,0.05677924146322168,0.10739303454113235,-0.35313492973253324,0.9155418381581678,1.1632432830820902,1.4341372912801484,0.9652445369406867,0.5997132964429582physmode_chem,physmode_chem,BL_2023_fold1,BL_2023,1,0,14731,773,0.3218420824275708,30,273.3,0.057985944859985074,0.0378168275944493,-0.10944800864768212,0.8839022650191847,1.0533033815039528,1.0430089391128354,1.0295941727367326,0.5499849844743216physmode_chem,physmode_chem,BL_2023_fold2,BL_2023,2,0,15189,773,0.40049553376040614,30,283.9,0.08881780025197485,0.11525934218247272,-0.2552052439414898,0.9003646184086684,1.1203594286733776,1.6948895260583574,1.2548178980228926,0.61359526599392physmode_chem,physmode_chem,BL_2023_fold3,BL_2023,3,0,14825,773,0.3541459585551206,30,267.6,0.17523953104352086,0.20501045882564964,-0.31221066207786996,0.9048351998408392,1.1455176418555952,2.3467701130038794,1.7052653485952132,0.6948925252810723physmode_chem,physmode_chem,BL_2023_fold4,BL_2023,4,0,15192,773,0.3211484602552895,30,188.8,0.12718986747383187,0.16404509485960742,-0.33302762899918315,0.9183995479508212,1.1545681594494677,2.3467701130038794,1.4478668054110302,0.6624186594019601physmode_chem,physmode_chem,SL_2020_fold0,SL_2020,0,0,15234,91,0.25801424402450696,30,195.4,0.7089192761045818,0.6460128469667307,-0.22112640315717225,0.9301529726893693,1.1050458604191393,1.1234567901234567,2.2469135802469133,0.6510147036281924123456789101112model,protocol,task,study,fold,seed,n_train,n_test,val_spearman,epochs_run,runtime_s,spearman,pearson,r2,mae,rmse,ef10,ef20,ndcg10physmode_chem,physmode_chem,LM_2019_fold0,LM_2019,0,1,14125,1128,0.2538746545172485,30,313.3,0.2216645759302795,0.188995371990771,-0.03674343688790094,0.7687424839537572,1.0182059908832055,1.2367452423838985,1.1484062964993342,0.5681789319887428physmode_chem,physmode_chem,LM_2019_fold1,LM_2019,1,1,14658,1128,0.3925076863747773,30,279.3,0.10194404779113131,0.0810988098660875,-0.08789450267337662,0.7881184817804257,1.0430218146343249,0.9717284047302059,1.0821520870859112,0.5243546848429805physmode_chem,physmode_chem,LM_2019_fold2,LM_2019,2,1,14503,1128,0.2848103700159714,30,270.2,0.11642592236653355,0.10307459879382642,-0.08194982306940579,0.7866205257925616,1.0401681720673859,0.9717284047302059,1.037982614143629,0.530071604339354physmode_chem,physmode_chem,LM_2019_fold3,LM_2019,3,1,14810,1128,0.16453053876531717,19,171.9,0.17807351391377657,0.17169919711047993,-0.00239795526650477,0.7746748634115926,1.0011982611602197,1.501762080037591,1.1484062964993342,0.5908123619173881physmode_chem,physmode_chem,LM_2019_fold4,LM_2019,4,1,14932,1128,0.35858334831950134,30,274.6,0.1114157091308611,0.07626041664192593,-0.04955482063490657,0.7750912512402144,1.024477829752461,0.9717284047302059,0.9496436682590648,0.5240354101274352physmode_chem,physmode_chem,BL_2023_fold0,BL_2023,0,1,14524,773,0.26413027117199694,30,272.2,-0.045494272524347394,0.024471918247194115,-0.5064830543688732,0.9613955208687124,1.2273887163164416,0.9126328217237308,0.6756711758584808,0.5764851448824732physmode_chem,physmode_chem,BL_2023_fold1,BL_2023,1,1,14731,773,0.26709892511635935,30,274.9,-0.023927198160613023,-0.02716397658830395,-0.20086446970967353,0.9044744938028854,1.0958396209977344,1.0430089391128354,0.8365452653485952,0.5812787501327178physmode_chem,physmode_chem,BL_2023_fold2,BL_2023,2,1,15189,773,0.3599750907371343,30,283.9,0.03030844640085074,0.07137744731871758,-0.5480276542616105,0.9858324500439354,1.244197597254913,1.1733850565019397,1.0617689906347554,0.5896230935825861physmode_chem,physmode_chem,BL_2023_fold3,BL_2023,3,1,14825,773,0.3419921219295967,30,270.4,0.13381549279959623,0.1627565563933516,-0.3319749269445462,0.9126887293158998,1.1541121837825394,2.086017878225671,1.5765660770031216,0.6791369679542552physmode_chem,physmode_chem,BL_2023_fold4,BL_2023,4,1,15192,773,0.31117716797115336,30,189.7,0.13776344319648326,0.17721691037421752,-0.27963324252651756,0.9009546506089697,1.1312087553183683,2.3467701130038794,1.7052653485952132,0.6826991019239874physmode_chem,physmode_chem,SL_2020_fold0,SL_2020,0,1,15234,91,0.2533799593936189,30,197.0,0.7023468519799485,0.5730743867471865,-0.20402547265954696,0.9319296840701129,1.0972809229296971,1.1234567901234567,2.2469135802469133,0.64857751763477711234567891011121314151617CPP_prot,CPP_neut,dCPP,stab,w_IL,w_HL,w_Chol,w_PEG,n,share,,,,,,,,,-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667,,,,,,,,,-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,3384.0,0.2-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,4512.0,0.26666666666666666-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667,,,,,,,,,-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,2256.0,0.13333333333333333,,,,,,,,,,,,,,,,,,-0.39451602,-0.07932882,-0.10541732,0.07953255,0.35,0.16,0.465,0.025,1128.0,0.06666666666666667,,,,,,,,,,,,,,,,,,123456789101112131415161718cls,mode,nIL-Chol,1,1128IL-Chol,6,2256IL-Chol,13,1128IL-HL,2,1128IL-HL,6,1128IL-HL,8,1128IL-HL,10,1128IL-PEG,5,1128IL-PEG,6,1128IL-PEG,7,1128IL-PEG,10,1128helper-helper,3,1128helper-helper,5,2256intra-IL,0,1128intra-IL,6,2256intra-IL,10,1128intra-IL,13,22561234567891011121314151617CPP_prot,CPP_neut,dCPP,stab,w_IL,w_HL,w_Chol,w_PEG,n,share,,,,,,,,,0.180294,0.09917296,0.1402132,0.026095308,0.23809524,0.23809524,0.47619048,0.04761905,131.0,0.066870852475752930.180294,0.09917296,0.1402132,0.026095308,0.23809524,0.23809524,0.47619048,0.04761905,131.0,0.066870852475752930.180294,0.09917296,0.1402132,0.026095308,0.23809524,0.23809524,0.47619048,0.04761905,131.0,0.06687085247575293,,,,,,,,,0.180294,0.09917296,0.1402132,0.026095308,0.23809524,0.23809524,0.47619048,0.04761905,262.0,0.133741704951505860.17514558,0.095073484,0.13318194,0.018741207,0.23809524,0.23809524,0.47619048,0.04761905,520.0,0.265441551812149070.180294,0.09917296,0.1402132,0.026095308,0.23809524,0.23809524,0.47619048,0.04761905,131.0,0.066870852475752930.17514558,0.095073484,0.13318194,0.018741207,0.23809524,0.23809524,0.47619048,0.04761905,260.0,0.13272077590607453,,,,,,,,,0.180294,0.09917296,0.14021319,0.026095308,0.23809524,0.23809524,0.47619048,0.047619052,393.0,0.2006125574272588,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,123456789101112131415161718cls,mode,nIL-Chol,1,131IL-Chol,6,260IL-Chol,10,131IL-HL,2,131IL-HL,6,130IL-HL,8,130IL-HL,10,131IL-PEG,6,130IL-PEG,7,131IL-PEG,8,130IL-PEG,10,131helper-helper,3,131helper-helper,5,262intra-IL,0,130intra-IL,6,260intra-IL,7,130intra-IL,13,261TODO.mdAdded+94
code/TODO.mdAdded+94
code/scripts/mode_interpret.pyAdded+120
code/scripts/upload_hf.py+2-2
code/src/lnpbench/models/attention.py+7-1
code/src/lnpbench/models/backbone.py+23-6
code/src/lnpbench/models/physmode.py+265-2
code/src/lnpbench/registry.py+39-1
results/f20_base_s0.csvAdded+12
results/f20_base_s1.csvAdded+12
results/f20_dm_s1.csvAdded+12
results/f20_nrw_s0.csvAdded+21
results/f20_nrw_s1.csvAdded+21
results/f20_pm_s0.csvAdded+12
results/f20_pm_s1.csvAdded+12
results/interp_LM.csvAdded+17
results/interp_LM_usage.csvAdded+18
results/interp_ZC.csvAdded+17
results/interp_ZC_usage.csvAdded+18