|
1 | 1 | # SolvAI |
2 | 2 |
|
3 | | -**SolvAI learns reusable solvent-response coordinates from calculated, empirical and |
4 | | -corrected solvation data and predicts hydration free energy directly from molecular |
5 | | -structure—without running simulation at inference.** |
| 3 | +<p align="center"> |
| 4 | + <img src="assets/readme/solvai-hero.svg" alt="Conceptual SolvAI overview: six existing solvent-data sources become 15 structure-predicted response descriptors that can be reused by different hydration endpoints." width="100%"> |
| 5 | +</p> |
6 | 6 |
|
7 | | - |
| 7 | +<p align="center"> |
| 8 | + <a href="paper/main.pdf">Read the manuscript and supplement</a> · |
| 9 | + <a href="#the-results">Explore the results</a> · |
| 10 | + <a href="#quick-start">Run a prediction</a> · |
| 11 | + <a href="repro/QUICK_REPRODUCTION.md">Reproduce the paper</a> |
| 12 | +</p> |
8 | 13 |
|
9 | | -SolvAI predicts 15 solvent-response descriptors from six source families, then |
10 | | -combines them with molecular structure in a learned hydration endpoint. The response |
11 | | -representation is shared across the tested endpoint families; SolvAI is not a |
12 | | -particular endpoint algorithm. Inference starts from SMILES and does not rerun the |
13 | | -source calculations. PIMD-derived features were tested but are not in the final |
14 | | -response set. |
| 14 | +SolvAI turns **existing physical and empirical solvent data** into 15 molecular response descriptors predicted from structure. The descriptors can be combined with different endpoint models to predict hydration free energy. After training, a query starts with a SMILES string; the released predictor performs **no new solvent simulation**. |
15 | 15 |
|
16 | | -## Endpoint comparison |
| 16 | +The research question is not whether one model can imitate a particular simulation. It is whether solvent-response information can be learned once, reused across molecules, and remain useful when the hydration predictor changes. |
17 | 17 |
|
18 | | -The journal study evaluates ExtraTrees, residual and dual-branch MLPs, a |
19 | | -ridge-plus-neural residual, size-sensitive message passing, frozen MoLFormer with |
20 | | -neural and tree heads, TabM and TabPFN-3.5. All nine fixed configurations have |
21 | | -matched fits with and without the 15 responses on the same three evaluation |
22 | | -cohorts. Those fits test the value of the representation separately from the |
23 | | -absolute-error ranking. No endpoint wins every evaluation. |
| 18 | +## The results |
| 19 | + |
| 20 | +In a matched ExtraTrees implementation, adding the 15 predicted responses changes only the response feature block; labels, folds, structural features, weights and model seeds remain fixed. |
| 21 | + |
| 22 | +| Evaluation | Structure only | + Responses | Molecules | |
| 23 | +|:--|--:|--:|--:| |
| 24 | +| ARROW-85, out of fold | 0.303 | **0.202** | 85 | |
| 25 | +| External-220, endpoint-disjoint | 1.532 | **1.153** | 220 | |
| 26 | +| Strict-97, also response-source-disjoint | 2.138 | **1.536** | 97 | |
| 27 | + |
| 28 | +Values are mean absolute error (MAE), kcal mol⁻¹. The strict 97 are a subset of the external 220, not a separate fit. The published ARROW/PIMD8 value is 0.205 on the same 85 molecules: an **accuracy reference**, not a SolvAI training target or evidence of physical equivalence. Shuffling molecule-to-response assignments removes the matched ARROW gain. These alignment and chemical-separation controls were run for ExtraTrees; the broader endpoint study uses its own matched response/no-response comparisons. |
| 29 | + |
| 30 | +### One representation, different endpoint behaviors |
| 31 | + |
| 32 | +The same 15 frozen response predictions were tested across tree ensembles, neural networks, message-passing graphs, pretrained molecular encoders, TabM and TabPFN-3.5. The lowest *absolute* MAE and the strongest *benefit from adding responses* are different questions. Seven of nine fixed endpoint configurations show a response-associated reduction on External-220 and its nested Strict-97 subset. |
24 | 33 |
|
25 | 34 | | Endpoint with responses | ARROW-85 | External-220 | Strict-97 | Size holdout | |
26 | | -|---|---:|---:|---:|---:| |
| 35 | +|:--|--:|--:|--:|--:| |
27 | 36 | | ExtraTrees | 0.202 | 1.153 | 1.536 | 1.772 | |
28 | 37 | | Residual MLP | 0.340 | 1.428 | 2.016 | 1.813 | |
29 | 38 | | Dual branch | 0.288 | 1.234 | 1.616 | 1.560 | |
30 | | -| Ridge + neural residual | 0.336 | 1.172 | 1.429 | 1.391 | |
| 39 | +| Ridge + neural residual | 0.336 | 1.172 | **1.429** | 1.391 | |
31 | 40 | | Message passing | 0.288 | 1.168 | 1.505 | 1.729 | |
32 | | -| MoLFormer + neural head | 0.273 | 1.111 | 1.450 | 1.609 | |
| 41 | +| MoLFormer + neural head | 0.273 | **1.111** | 1.450 | 1.609 | |
33 | 42 | | TabM | 0.291 | 1.132 | 1.454 | 1.389 | |
34 | | -| TabPFN-3.5 | 0.199 | 1.134 | 1.493 | 1.318 | |
35 | | -| MoLFormer + ExtraTrees | 0.234 | 1.174 | 1.564 | not evaluated | |
36 | | - |
37 | | -MAE is in kcal/mol. The strict set is nested within External-220. The size |
38 | | -diagnostic refits eight configurations on 1,160 labels and evaluates |
39 | | -205 size-held-out molecules, reusing development data. Its source surrogates stay |
40 | | -fixed, and endpoint input recipes differ; the contrast does not isolate architecture |
41 | | -alone or test a pipeline with all upstream source exposure removed. Responses do not |
42 | | -benefit TabPFN uniformly. Peptide curves have no experimental reference and native |
43 | | -TabPFN intervals under-cover. The architecture study is retrospective, with final |
44 | | -configurations selected inside training pools. Complete results and |
45 | | -reproduction details: [`repro/endpoint_models/`](repro/endpoint_models/README.md). |
46 | | -## Matched response controls with ExtraTrees |
47 | | - |
48 | | -One endpoint has additional prespecified alignment, shuffling, partition and |
49 | | -chemical-separation controls. On ARROW-85, adding responses to a matched ExtraTrees |
50 | | -fit lowers MAE from 0.303 to 0.202 kcal/mol (paired OOF change −0.101; 95% |
51 | | -bootstrap interval, −0.215 to −0.020). The labels, structural features, |
52 | | -weights, folds and seeds are identical across the pair. Shuffling the responses |
53 | | -abolishes the gain. ARROW/PIMD8 has an MAE of 0.205 on this chemistry but is an |
54 | | -accuracy reference, not a model input. |
55 | | - |
56 | | -On a prospectively frozen external cohort, the same matched comparison lowers MAE |
57 | | -from 1.532 to 1.153 kcal/mol (N=220). In its nested 97-molecule subset absent from |
58 | | -all six supervised response-source tables, the corresponding errors are 2.138 and |
59 | | -1.536. These tests support response usefulness for this endpoint; they do not imply |
60 | | -PIMD8-level absolute accuracy beyond ARROW-85 or the same effect size for every |
61 | | -endpoint. The public inference command below uses this packaged ExtraTrees endpoint. |
62 | | - |
63 | | -## Install and predict |
64 | | - |
65 | | -Python 3.11, [uv](https://docs.astral.sh/uv/) and Git LFS are required. |
| 43 | +| TabPFN-3.5 | **0.199** | 1.134 | 1.493 | **1.318** | |
| 44 | +| MoLFormer + ExtraTrees | 0.234 | 1.174 | 1.564 | Not evaluated | |
| 45 | + |
| 46 | +All entries include responses and are MAE in kcal mol⁻¹. Bold marks the lowest displayed point estimate per column, **not a statistically established winner**. The size column is a separate exploratory refit on 1,160 training and 205 held-out molecules; fixed source surrogates and model-specific input recipes limit what can be attributed to endpoint architecture alone. Full no-response comparisons and intervals are in [the paper](paper/main.pdf), [Supplementary Data 6](results/endpoint_models_20261006/) and the [endpoint reproduction guide](repro/endpoint_models/README.md). |
| 47 | + |
| 48 | +The experiments also reveal a source-composition trade-off: all 15 descriptors are better on ARROW-85, while a fixed ten-descriptor subset derived from computed sources has lower error externally. There is no universally preferred endpoint or source mixture in these data. |
| 49 | + |
| 50 | +<details> |
| 51 | +<summary><strong>See the paper's full workflow figure</strong></summary> |
| 52 | +<br> |
| 53 | +<img src="paper/figures/journal/F1_overview.svg" alt="Figure 1: repeated solvent calculation versus learning six source-to-response mappings once and predicting hydration from SMILES." width="100%"> |
| 54 | +</details> |
| 55 | + |
| 56 | +## Quick start |
| 57 | + |
| 58 | +Requires Python 3.11, [uv](https://docs.astral.sh/uv/) and [Git LFS](https://git-lfs.com/). The released SMILES-only command uses the packaged **ExtraTrees endpoint**; the other endpoint families are research comparisons, not interchangeable public CLI checkpoints. On a fresh clone, pull the LFS model files before predicting. |
66 | 59 |
|
67 | 60 | ```bash |
68 | 61 | git lfs install |
69 | 62 | git clone https://github.com/Scientific-Computing-Lab/SolvAI.git |
70 | 63 | cd SolvAI |
| 64 | +git lfs pull |
71 | 65 | make setup |
72 | 66 | uv run solvai predict 'CCO' |
73 | 67 | ``` |
74 | 68 |
|
75 | | -The command returns the ensemble-mean hydration free energy and ensemble spread in |
76 | | -kcal/mol: |
77 | | - |
78 | | -```text |
79 | | -CCO -5.012566 0.004714 |
80 | | -``` |
81 | | - |
82 | | -The API is equally small: |
| 69 | +The command prints the input SMILES, predicted hydration free energy and seed-ensemble spread, in kcal mol⁻¹. From Python: |
83 | 70 |
|
84 | 71 | ```python |
85 | 72 | from solv_ai import predict_smiles |
86 | 73 |
|
87 | | -prediction, spread = predict_smiles(["CCO", "c1ccccc1"]) |
| 74 | +predictions, spread = predict_smiles(["CCO", "c1ccccc1"]) |
88 | 75 | ``` |
89 | 76 |
|
90 | | -On the release CPU host, the packaged artifact has a 15.29 s warm single-molecule |
91 | | -median and processes a batch of 32 in 15.82 s (0.494 s per molecule). Startup of the |
92 | | -two response D-MPNNs dominates single-query latency; no simulation is performed. |
| 77 | +The spread is **not** a calibrated per-molecule uncertainty estimate. On the release CPU host, the warm single-query median was 15.29 s; a batch of 32 took 15.82 s (0.494 s per molecule). These are measurements of the packaged ExtraTrees stack, not a same-hardware comparison with PIMD or the alternative endpoints. See the [model card](models/final/MODEL_CARD.md) for the inference boundary. |
93 | 78 |
|
94 | | -## Reproduce the paper |
| 79 | +## Reproduce and inspect |
| 80 | + |
| 81 | +The [combined manuscript](paper/main.pdf) contains the main text, references and Supplementary Information in one continuously numbered PDF. Its figures are editable SVG/PDF assets; the Figure 1 illustrations are explicitly non-evidential. With a LaTeX installation, rebuild the reading copy using: |
95 | 82 |
|
96 | 83 | ```bash |
97 | | -make test && make verify && make figures && make paper |
| 84 | +make journal-paper |
98 | 85 | ``` |
99 | 86 |
|
100 | | -This path checks the original release and rebuilds its metrics and displays from |
101 | | -frozen artifacts. It does not rerun physical calculations or model training; |
102 | | -the journal extension's additional rebuild commands are documented below and in |
103 | | -`repro/endpoint_models/`. The preregistered confirmation protocol is in |
104 | | -[`release/CONFIRMATORY_FREEZE.md`](release/CONFIRMATORY_FREEZE.md), with results in |
105 | | -[`reports/CONFIRMATORY_ANALYSIS.md`](reports/CONFIRMATORY_ANALYSIS.md). |
106 | | -The prospectively frozen external protocol and report are |
107 | | -[`release/TIER_A_EXTERNAL_VALIDATION_FREEZE.md`](release/TIER_A_EXTERNAL_VALIDATION_FREEZE.md) |
108 | | -and [`reports/TIER_A_EXTERNAL_VALIDATION.md`](reports/TIER_A_EXTERNAL_VALIDATION.md). |
109 | | - |
110 | | -The compiled [journal manuscript](paper/main.pdf) is one continuous PDF containing |
111 | | -the main text, references and Supplementary Information (eight main figures, twelve |
112 | | -supporting figures and sixteen supplementary tables). `make journal-paper` rebuilds |
113 | | -this complete document from the existing figures and tables; the supplement |
114 | | -is included automatically, never compiled as a separate default deliverable. |
115 | | -Machine-readable Supplementary Data are also included. See |
116 | | -[`paper/README.md`](paper/README.md), |
117 | | -[`repro/QUICK_REPRODUCTION.md`](repro/QUICK_REPRODUCTION.md), |
118 | | -[`repro/FULL_REPRODUCTION.md`](repro/FULL_REPRODUCTION.md) and |
119 | | -[`repro/DATA_PROVENANCE.md`](repro/DATA_PROVENANCE.md). |
120 | | - |
121 | | -## Scientific safeguards |
122 | | - |
123 | | -- Exact and standardized benchmark equivalents are absent from all supervised |
124 | | - external training sources used by the confirmatory model. |
125 | | -- Every reported accuracy value is held out; the all-data deployment refit is never |
126 | | - used as evidence. |
127 | | -- Shuffled-response, global chemical-separation and zero-ARROW-label controls |
128 | | - are included molecule by molecule for the ExtraTrees configuration; matched |
129 | | - response/no-response fits cover all nine fixed configurations. |
130 | | -- Tier-A eligibility was frozen before evaluation; all 220 rows are endpoint-disjoint |
131 | | - and the strict 97-molecule subset is also response-source-disjoint. |
132 | | -- Inference requires no experimental target, family/scaffold label, MD, PIMD, ARROW |
133 | | - trajectory, probe or routing policy. |
134 | | -- The released artifact contains no retained PIMD-trained feature. |
135 | | -- The returned ensemble spread is not a calibrated applicability or reliability |
136 | | - score; the validated scope is neutral small-molecule hydration chemistry. |
137 | | - |
138 | | -## Repository map |
139 | | - |
140 | | -- `solv_ai/` — SMILES-only inference and metric code |
141 | | -- `models/final/` — standardized-exclusion response surrogates and endpoint ensemble |
142 | | -- `results/confirmatory/` — preregistered predictions, comparisons and statistics |
143 | | -- `audits/confirmatory/` — identity, similarity and refit audits |
144 | | -- `paper/` — unified journal manuscript, vector figures and Supplementary Data |
145 | | -- `repro/` — quick/full reproduction and data provenance |
146 | | - |
147 | | -Citation metadata are provided in `CITATION.cff`. Code is MIT licensed; external |
148 | | -datasets retain the terms listed in the provenance record. |
| 87 | +The frozen-artifact route reproduces the original confirmatory metrics and displays without new physical calculations; the extended architecture study has separate scripts, results and licensed dependencies. Start with the [quick reproduction guide](repro/QUICK_REPRODUCTION.md), then the [full protocol](repro/FULL_REPRODUCTION.md), [endpoint-study guide](repro/endpoint_models/README.md) and [data provenance](repro/DATA_PROVENANCE.md). The [confirmatory freeze](release/CONFIRMATORY_FREEZE.md) and [external-cohort freeze](release/TIER_A_EXTERNAL_VALIDATION_FREEZE.md) record their respective evaluation boundaries. |
| 88 | + |
| 89 | +| Find | Location | |
| 90 | +|:--|:--| |
| 91 | +| Unified manuscript, source and vector figures | [`paper/`](paper/README.md) | |
| 92 | +| Supplementary Data 1–5 | [`paper/supplementary_data/`](paper/supplementary_data/README.md) | |
| 93 | +| Endpoint comparison and size diagnostics | [`results/endpoint_models_20261006/`](results/endpoint_models_20261006/) | |
| 94 | +| Public inference code and model card | [`solv_ai/`](solv_ai/) · [`models/final/`](models/final/MODEL_CARD.md) | |
| 95 | +| Confirmatory predictions and audits | [`results/confirmatory/`](results/confirmatory/) · [`audits/confirmatory/`](audits/confirmatory/) | |
| 96 | +| Reproduction instructions and source manifests | [`repro/`](repro/QUICK_REPRODUCTION.md) | |
| 97 | + |
| 98 | +## Scope and limits |
| 99 | + |
| 100 | +The validated application is hydration free energy for neutral small molecules near room temperature. The architecture search reused already examined evaluation sets and is retrospective. The size holdout is exploratory and does not exclude its molecules from every upstream source dataset. The peptide series have no experimental reference values: a less saturated curve is **not** proof of physically accurate extrapolation or extensivity. Original pretraining membership of external molecular encoders was not audited, and native TabPFN predictive intervals under-cover the external observations. SolvAI does not yet provide conformer-resolved energies, forces, other solvents, temperatures, ions or biomacromolecular validation. |
| 101 | + |
| 102 | +## Citation and license |
| 103 | + |
| 104 | +Gal Oren, Boris Fain and Michael Levitt. *A reusable solvent-response framework for molecular hydration prediction.* Manuscript and citation metadata are in [`paper/main.pdf`](paper/main.pdf) and [`CITATION.cff`](CITATION.cff). The code is [MIT licensed](LICENSE); third-party data and model weights retain the terms listed in [data provenance](repro/DATA_PROVENANCE.md). TabPFN weights require the provider's license, and fitted contexts containing training labels are not redistributed. |
0 commit comments