Commit c461053
committed
fep: drop spurious minus in compute_hydration_dg + pin the sign
The composition formula had a spurious leading minus:
ddg = solv - vac
dG_hydration_kcalmol = -ddg # ← bug
Per Hummer-Szabo (1996, J Chem Phys 105:2004), absolute hydration
ΔG is ΔG_solv_annihilate − ΔG_vac_annihilate — no leading minus.
The minus inverted every prediction; the first real sampled run
on an M5 Max (milestone-a-pilot-1, 2026-04-23) reported methane
at -1.85 vs expt +2.00 — exactly the sign flip this line
produced.
Fix: drop the minus. Methane now returns +1.25-+1.28 at smoke
params (expt +2.00; residual 0.75 at undersampled 7x500, will
converge tighter at production sampling).
Regression: added test_methane_hydration_sign_is_positive. Runs
~1-2 min on CPU, asserts ΔG_hyd(methane) > +0.2 kcal/mol. This
is the test that would have caught pilot-1. Existing scaffold
smoke only checked finiteness + vacuum≈0, never sign.
What's NOT in this commit (still open):
- Polar-compound solvent-leg magnitude overshoot (ethanol
~3x high). Documented in BENCHMARKS.md; requires separate
investigation (interactions between per-λ minimize, softcore
endpoints, and Interchange PME handoff).
- No re-run on friend's M5 Max yet. The sign fix alone would
flip polars the wrong way; need the polar bug resolved
before a clean FreeSolv-12 gate.
Other FEP smoke suites (scaffold, sampling, binding) all PASS
post-fix.1 parent a8355c9 commit c461053
2 files changed
Lines changed: 75 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
493 | 502 | | |
494 | 503 | | |
495 | | - | |
| 504 | + | |
496 | 505 | | |
497 | 506 | | |
498 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
52 | 94 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments