Skip to content

Commit 89faa4b

Browse files
committed
Integrate verified endpoint study and redesign journal figures
1 parent 53fffab commit 89faa4b

258 files changed

Lines changed: 185077 additions & 4640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/paper.yml‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ on:
88
- "figures/**"
99
- "scripts/make_figures.py"
1010
- "scripts/make_tables.py"
11+
- "scripts/*endpoint*.py"
12+
- "scripts/*journal*.py"
13+
- "tests/test*publication*.py"
1114
- "results/**"
1215
pull_request:
1316
paths:
1417
- "paper/**"
1518
- "figures/**"
1619
- "scripts/make_figures.py"
1720
- "scripts/make_tables.py"
21+
- "scripts/*endpoint*.py"
22+
- "scripts/*journal*.py"
23+
- "tests/test*publication*.py"
1824
- "results/**"
1925

2026
jobs:
@@ -30,13 +36,12 @@ jobs:
3036
- run: uv sync --extra dev --locked
3137
- name: Install LaTeX
3238
run: sudo apt-get update && sudo apt-get install -y latexmk poppler-utils qpdf texlive-latex-extra texlive-fonts-recommended
33-
- run: make paper
34-
- name: Validate compiled PDFs
39+
- name: Compile the canonical source with supplied publication assets
40+
run: make journal-paper
41+
- name: Validate the complete journal PDF
3542
run: |
3643
qpdf --check paper/main.pdf
37-
qpdf --check paper/supplementary/supplementary.pdf
38-
qpdf --check paper/extended_data/ED_Table1.pdf
39-
- name: Require deterministic tables and figures
40-
# TeX embeds engine-specific font data in the standalone table PDF;
41-
# compilation is checked above and its generated source remains exact.
42-
run: git diff --exit-code -- paper/tables paper/figures paper/extended_data paper/supplementary_data figures/ ':(exclude)paper/extended_data/ED_Table1.pdf'
44+
uv run pytest -q tests/test_publication_structure.py tests/test_journal_artifacts.py tests/test_publication_presentation.py tests/test_endpoint_publication.py
45+
# Reconstruct numerical claims from frozen rows in the tests above. Exact PDF
46+
# bytes are not portable across font/TeX installations; editable assets remain
47+
# rebuildable with the documented local figure scripts.

‎.gitignore‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,45 @@ results/confirmatory/teacher_refits/*/train.log
3939

4040
# Superseded local Figma prototype; Penpot is the release design source.
4141
figures/source/figma/
42+
43+
# Local-only manuscript development, review, and design-process material.
44+
/assets/figure1/generated/
45+
/assets/figure1/paperbanana/
46+
/audits/claim_red_team.json
47+
/audits/security_audit.json
48+
/figures/SolvAI_Figure1_options.zip
49+
/figures/SolvAI_Figure1_penpot_package.zip
50+
/figures/alternatives/
51+
/figures/penpot/FIG1_BUILD_NOTES.md
52+
/figures/penpot/PENPOT_SETUP_AND_USAGE.md
53+
/figures/penpot/exports/
54+
/figures/penpot/previews/
55+
/figures/source/FIG1_BUILD_NOTES.md
56+
/infra/penpot/
57+
/paper/review_combined.pdf
58+
/paper/neurips_workshop/COMPREHENSION_STRESS_TEST*.md
59+
/paper/neurips_workshop/SIMBIOCHEM_REVIEW.md
60+
/paper/neurips_workshop/hebrew_reading/
61+
/paper/neurips_workshop/assets/*.png
62+
/reports/GLOBAL_SOLVATION_DATA_REVIEW.md
63+
/reports/LITERATURE_AND_FORMAT_AUDIT.md
64+
/reports/MICHAEL_30AUG_WEIGHT_SENSITIVITY.md
65+
/reports/NATURE_EDITORIAL_CALIBRATION.md
66+
/reports/PAPER_FREEZE.md
67+
/reports/PHYSICS_DISTILLATION_FINAL_REPORT.md
68+
/reports/RELEASE_AUDIT.md
69+
/reports/REPOSITORY_RECOVERY.md
70+
/results/confirmatory/INVALID_RUN_20260828.md
71+
/results/followup_audit/
72+
/reviews/
73+
/scripts/analyze_collaborator_followup.py
74+
/scripts/check_claims.py
75+
/scripts/make_figure1_overview.py
76+
/scripts/make_followup_audit_docx.py
77+
/scripts/security_scan.py
78+
/submission/
79+
80+
# Reconstructable local training inputs; do not redistribute third-party label tables.
81+
/results/journal_20261002/molecules.csv
82+
/results/journal_20261002/features.npz
83+
/results/journal_20261002/*.npy

‎CITATION.cff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cff-version: 1.2.0
22
message: "If you use SolvAI, please cite the accompanying manuscript."
3-
title: "Structure-predicted solvent responses enable simulation-free hydration free-energy prediction"
3+
title: "Learning complementary solvent responses for simulation-free hydration prediction"
44
type: software
55
version: 1.0.0
66
date-released: 2026-08-28
@@ -10,7 +10,7 @@ authors:
1010
affiliation: Stanford University
1111
- family-names: Fain
1212
given-names: Boris
13-
affiliation: Freecurve Labs
13+
affiliation: Stanford University
1414
- family-names: Levitt
1515
given-names: Michael
1616
affiliation: Stanford University

‎Makefile‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: setup test verify metrics tables figures paper security claims clean
1+
.PHONY: setup test verify metrics tables figures paper journal-paper clean
22

33
setup:
44
uv sync --extra dev
@@ -12,8 +12,6 @@ metrics:
1212
verify: metrics
1313
uv run python scripts/audit_leakage.py
1414
uv run python scripts/verify_artifact.py
15-
uv run python scripts/check_claims.py
16-
uv run python scripts/security_scan.py
1715
uv run python scripts/build_release_manifest.py
1816
uv run python scripts/verify_release_manifest.py
1917

@@ -25,15 +23,11 @@ figures: tables
2523

2624
paper: figures
2725
SOURCE_DATE_EPOCH=1787788800 FORCE_SOURCE_DATE=1 latexmk -pdf -interaction=nonstopmode -halt-on-error -cd paper/main.tex
28-
SOURCE_DATE_EPOCH=1787788800 FORCE_SOURCE_DATE=1 latexmk -pdf -interaction=nonstopmode -halt-on-error -cd paper/supplementary/supplementary.tex
29-
qpdf --empty --static-id --pages paper/main.pdf paper/supplementary/supplementary.pdf -- paper/review_combined.pdf
30-
31-
security:
32-
uv run python scripts/security_scan.py
33-
34-
claims:
35-
uv run python scripts/check_claims.py
3626

3727
clean:
3828
latexmk -C -cd paper/main.tex
39-
latexmk -C -cd paper/supplementary/supplementary.tex
29+
30+
# One canonical PDF: main text, references and Supplementary Information.
31+
# Compile from verified frozen figures and tables, without retraining.
32+
journal-paper:
33+
latexmk -pdf -interaction=nonstopmode -halt-on-error -cd paper/main.tex

‎README.md‎

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
corrected solvation data and predicts hydration free energy directly from molecular
55
structure—without running simulation at inference.**
66

7-
![SolvAI concept](paper/figures/main/fig1_concept.svg)
7+
![SolvAI concept](paper/figures/journal/F1_overview.svg)
88

99
The released system maps one SMILES string to one hydration free energy. Its response
1010
surrogates were trained on benchmark-disjoint quantum-continuum, alchemical,
@@ -32,14 +32,39 @@ survives global family, scaffold, molecular-cluster and nearest-neighbour exclus
3232

3333
In a prospectively frozen external molecule-disjoint cohort, the same matched
3434
comparison lowers MAE from 1.532 to 1.153 kcal/mol (N=220). The advantage also
35-
survives in 97 molecules absent from all six response-teacher source tables (2.138 to
35+
persists in 97 molecules absent from all six response-source tables (2.138 to
3636
1.536 kcal/mol). These broader molecules establish transfer of the response-layer
3737
advantage, not PIMD8-level absolute accuracy outside ARROW-85.
3838

3939
The supported conclusion is PIMD8-level accuracy on this reference chemistry, not a
4040
general sub-0.20 claim. Global family and scaffold separation
4141
remain harder at 0.468 and 0.376 kcal/mol, respectively.
4242

43+
## Alternative endpoint models
44+
45+
The journal study also evaluates residual and dual-branch MLPs, a ridge-plus-neural
46+
residual, size-sensitive message passing, frozen MoLFormer with a neural head,
47+
TabM, TabPFN-3.5, and MoLFormer with the original tree endpoint. All families and
48+
matched response ablations are reported, not only the selected model.
49+
50+
| Endpoint with responses | ARROW-85 MAE | External-220 MAE | Exploratory size MAE |
51+
|---|---:|---:|---:|
52+
| Original ExtraTrees | 0.202 | 1.153 | 1.772 |
53+
| MoLFormer + neural head | 0.273 | 1.111 | 1.609 |
54+
| TabM | 0.291 | 1.132 | 1.389 |
55+
| TabPFN-3.5 | 0.199 | 1.134 | 1.318 |
56+
57+
MAE is in kcal/mol. The separate size diagnostic refits every method on 1,160
58+
labels and evaluates 205 size-held-out molecules, reusing development data.
59+
Its response-source features remain fixed: this tests endpoint size transfer,
60+
not a pipeline with all upstream source exposure removed.
61+
The original-cohort TabPFN/tree differences do not establish superiority or
62+
equivalence. Responses do not benefit TabPFN uniformly; peptide curves have no
63+
experimental reference and native intervals under-cover. The study is retrospective,
64+
with final configurations selected inside training pools. Complete results and
65+
reproduction details: [`repro/endpoint_models/`](repro/endpoint_models/README.md).
66+
The public inference command below still runs the original ExtraTrees release.
67+
4368
## Install and predict
4469

4570
Python 3.11, [uv](https://docs.astral.sh/uv/) and Git LFS are required.
@@ -77,18 +102,23 @@ two response D-MPNNs dominates single-query latency; no simulation is performed.
77102
make test && make verify && make figures && make paper
78103
```
79104

80-
This quick path uses frozen, hash-verified artifacts to recompute predictions,
81-
metrics, tables, figures and PDFs. It does not rerun physical calculations or model
82-
training. The preregistered confirmation protocol is in
105+
This path checks the original release and rebuilds its metrics and displays from
106+
frozen artifacts. It does not rerun physical calculations or model training;
107+
the journal extension's additional rebuild commands are documented below and in
108+
`repro/endpoint_models/`. The preregistered confirmation protocol is in
83109
[`release/CONFIRMATORY_FREEZE.md`](release/CONFIRMATORY_FREEZE.md), with results in
84110
[`reports/CONFIRMATORY_ANALYSIS.md`](reports/CONFIRMATORY_ANALYSIS.md).
85111
The prospectively frozen external protocol and report are
86112
[`release/TIER_A_EXTERNAL_VALIDATION_FREEZE.md`](release/TIER_A_EXTERNAL_VALIDATION_FREEZE.md)
87113
and [`reports/TIER_A_EXTERNAL_VALIDATION.md`](reports/TIER_A_EXTERNAL_VALIDATION.md).
88114

89-
The compiled [manuscript](paper/main.pdf),
90-
[Supplementary Information](paper/supplementary/supplementary.pdf), including five
91-
supporting figures, and machine-readable Supplementary Data are included. See
115+
The compiled [journal manuscript](paper/main.pdf) is one continuous PDF containing
116+
the main text, references and Supplementary Information (eight main figures, twelve
117+
supporting figures and sixteen supplementary tables). `make journal-paper` rebuilds
118+
this complete document from the existing figures and tables; the supplement
119+
is included automatically, never compiled as a separate default deliverable.
120+
Machine-readable Supplementary Data are also included. See
121+
[`paper/README.md`](paper/README.md),
92122
[`repro/QUICK_REPRODUCTION.md`](repro/QUICK_REPRODUCTION.md),
93123
[`repro/FULL_REPRODUCTION.md`](repro/FULL_REPRODUCTION.md) and
94124
[`repro/DATA_PROVENANCE.md`](repro/DATA_PROVENANCE.md).
@@ -115,7 +145,7 @@ supporting figures, and machine-readable Supplementary Data are included. See
115145
- `models/final/` — standardized-exclusion response surrogates and endpoint ensemble
116146
- `results/confirmatory/` — preregistered predictions, comparisons and statistics
117147
- `audits/confirmatory/` — identity, similarity and refit audits
118-
- `paper/` — Nature Communications manuscript and Supplementary files
148+
- `paper/` — unified journal manuscript, vector figures and Supplementary Data
119149
- `repro/` — quick/full reproduction and data provenance
120150

121151
Citation metadata are provided in `CITATION.cff`. Code is MIT licensed; external
24.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)