EVA-Flow: Learning Shared Chemistry for Unified Environment-Aware Molecular Conformation Generation
Organizations: FAIR at Meta · New York University
Abstract
Molecular 3D structures underpin simulations of thermodynamics, kinetics, crystallization, and nucleation, making their accurate prediction central to drug discovery and materials design. However, molecular geometry can change dramatically across environments. Existing models either ignore environmental effects or train separate models for each environment. We hypothesize that transfer learning across contexts is possible for conformer generation and that a general model will perform better when training data are limited, as in ligand binding and crystallization. We introduce EVA-Flow, a unified framework for environment-aware molecular conformation generation that learns shared chemical structure and adapts it through environment-conditioned generative modeling. Across vacuum, protein-ligand docking, solvation, and crystal packing, pretraining and cross-environment finetuning provide their largest gains in the three data-scarce settings. Evaluation against multiple reference conformations shows that EVA-Flow covers a broad range of solvation conformations. Analyses of molecules shared across environments support its ability to generate different conformations for the same molecule in different environments.
Figures & tables
| Stage/ environment | Target | nodes | edges | Context attributes / coordinates | Available at inference |
|---|---|---|---|---|---|
| Pretraining | Molecule atoms/bonds | Random 30–70% atom-induced subgraph | Retained covalent bonds | Atom features and masked-subgraph coordinates | N/A (pretraining only) |
| Vacuum | Molecule atoms/bonds | Bemis–Murcko scaffold atoms | Scaffold covalent bonds | Atom features; coordinates set to zero | Yes, constructed from input molecule |
| Docking | Ligand atoms/bonds | Protein-pocket heavy atoms | Atoms within the same residue | Atom features and pocket coordinates | Yes, extracted pocket |
| Solvation | Solute atoms/bonds | Atoms of a water proxy | Water covalent bonds | sCAV, vCAV, eSOLV, eNELEC; fixed proxy coordinates | Yes, solvent descriptors |
| Packing | Molecule atoms/bonds | Copy of molecular atoms | Molecular covalent bonds | RDKit geometry, space group, lattice | Yes, crystal metadata |
| Environment | Setup | Recall | Precision | sRMSD | ||||
|---|---|---|---|---|---|---|---|---|
| COV | AMR | COV | AMR | |||||
| mean | mean | median | mean | mean | median | |||
| Vacuum | Pretrain+Unified | 0.747 [-0.2ex] 0.013 | 0.468 [-0.2ex] 0.012 | 0.144 [-0.2ex] 0.024 | 0.463 [-0.2ex] 0.004 | 0.969 [-0.2ex] 0.006 | 0.900 [-0.2ex] 0.023 | – |
| Pretrain+Individual | 0.733 [-0.2ex] 0.010 | 0.481 [-0.2ex] 0.012 | 0.146 [-0.2ex] 0.019 | 0.454 [-0.2ex] 0.004 | 0.980 [-0.2ex] 0.008 | 0.925 [-0.2ex] 0.016 | – | |
| Unified | 0.740 [-0.2ex] 0.007 | 0.456 [-0.2ex] 0.008 | 0.131 [-0.2ex] 0.011 | 0.463 [-0.2ex] 0.003 | 0.954 [-0.2ex] 0.005 | 0.879 [-0.2ex] 0.011 | – | |
| Individual | 0.728 [-0.2ex] 0.005 | 0.487 [-0.2ex] 0.004 | 0.134 [-0.2ex] 0.006 | 0.460 [-0.2ex] 0.003 | 0.978 [-0.2ex] 0.004 | 0.911 [-0.2ex] 0.017 | – | |
| Setup | Recall | Precision | ||||||
|---|---|---|---|---|---|---|---|---|
| COV | AMR | COV | AMR | |||||
| mean | median | mean | median | mean | median | mean | median | |
| GeoDiff | 0.421 | 0.378 | 0.835 | 0.809 | 0.249 | 0.145 | 1.136 | 1.090 |
| GeoMol | 0.446 | 0.414 | 0.875 | 0.834 | 0.430 | 0.364 | 0.928 | 0.841 |
| Torsional Diff. | 0.727 | 0.800 | 0.582 | 0.565 | 0.552 | 0.569 | 0.778 | 0.729 |
| MCF-L | 0.847 | 0.922 | 0.390 | 0.247 | 0.668 | 0.713 | 0.618 | 0.530 |
| Pair ( ) | own | own | cross | cross | generation shift | |
|---|---|---|---|---|---|---|
| Solvation–Vacuum | 142 | 0.12 | 0.64 | 3.41 | 3.31 | 3.41 |
| Docking–Vacuum | 558 | 0.75 | 0.76 | 1.22 | 1.21 | 1.20 |
| Vacuum–Packing | 487 | 0.33 | 0.35 | 0.64 | 0.65 | 0.64 |
| Docking–Solvation | 13 | 0.55 | 0.09 | 2.41 | 2.49 | 2.42 |
| Packing–Solvation | 23 | 0.06 | 0.09 | 1.49 | 1.48 | 1.48 |
| Packing–Docking | 64 | 0.28 | 0.36 | 0.45 | 0.38 | 0.42 |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Batch size | 32 |
| FM decoder layers | 20 |
| Hidden channels | 160 |
| Attention heads | 8 |
| Latent dim ( ) | 128 |
| Environment dim ( ) | 128 |
| Method | Sampler | Steps | R-COV | Time (s/mol) |
|---|---|---|---|---|
| ETFlow (retrained) | SDE | 50 | 0.725 | 0.309 |
| EVA-Flow (P+U) | SDE | 50 | 0.747 | 0.266 |
| EVA-Flow (P+U) | SDE | 100 | 0.752 | 0.530 |
| Environment | Setup | R-COV median | P-COV median |
|---|---|---|---|
| Vacuum | Pretrain+Unified | 1.00 | 0.50 |
| Pretrain+Individual | 1.00 | 0.50 | |
| Unified | 1.00 | 0.50 | |
| Individual | 1.00 | 0.50 | |
| ETFlow (retrained) | 1.00 | 0.50 | |
| Docking | Pretrain+Unified | 1.00 | 0.50 |
| Environment | Mean | Median | Std |
|---|---|---|---|
| Vacuum | 0.915 | 0.903 | 0.620 |
| Docking | 2.227 | 1.828 | 1.508 |
| Solvation | 0.456 | 0.359 | 0.315 |
| Packing | 0.967 | 0.912 | 0.634 |
| Training | Protocol | Refs/mol | Samples/mol | R-COV | R-AMR | P-COV | P-AMR |
|---|---|---|---|---|---|---|---|
| Single conformer | 4-conf. | 1 | 4 | 0.936 | 0.157 | 0.693 | 0.431 |
| Single conformer | 2K | mean 37 | 0.981 | 0.102 | 0.541 | 0.591 | |
| Multiple conformers | 2K | mean 37 | 0.962 | 0.111 | 0.518 | 0.612 |
| Environment | Method | R-COV | R-AMR |
|---|---|---|---|
| Vacuum | ETKDG+MMFF | 0.409 | 1.18 |
| EVA-Flow (P+U) | 0.747 | 0.468 | |
| Docking | ETKDG+MMFF | 0.581 | 2.09 |
| EVA-Flow (P+U) | 0.684 | 1.899 | |
| Solvation | ETKDG+MMFF | 0.006 | 3.42 |
| GFN2-xTB+ALPB-water | 0.006 | 3.38 |
| Model | Training set | Test set | R-COV | R-AMR | P-COV | P-AMR |
|---|---|---|---|---|---|---|
| Published ETFlow checkpoint | Original | Original | 0.549 | 0.766 | 0.339 | 1.057 |
| ETFlow (retrained) | Original | Original | 0.712 | 0.562 | 0.704 | 0.594 |
| EVA-Flow | Original | Original | 0.721 | 0.550 | 0.707 | 0.589 |
| Published ETFlow checkpoint | Original | Cleaned | 0.517 | 0.799 | 0.294 | 1.193 |
| ETFlow (retrained) | Original | Cleaned | 0.759 | 0.505 | 0.629 | 0.688 |
| EVA-Flow | Original | Cleaned | 0.763 | 0.503 | 0.632 | 0.686 |
| Metric | Value |
|---|---|
| UMA relaxation converged | 99.9% (3,995/4,000) |
| Mean after relaxation | 0.302 kcal/mol |
| Median after relaxation | 0.115 kcal/mol |
| Fraction with kcal/mol | 97.1% |
| Mean RMSD shift during relaxation | 0.056 Å |
| Fraction with RMSD shift Å | 84.2% |
| Pair ( ) | own | own | cross | cross | generation shift | |
|---|---|---|---|---|---|---|
| Solvation–Vacuum | 142 | 0.29 | 0.90 | 3.35 | 3.25 | 3.32 |
| Docking–Vacuum | 558 | 0.95 | 0.81 | 1.17 | 1.19 | 1.16 |
| Vacuum–Packing | 487 | 0.38 | 0.43 | 0.64 | 0.59 | 0.62 |
| Docking–Solvation | 13 | 0.63 | 0.35 | 2.34 | 2.27 | 2.23 |
| Packing–Solvation | 23 | 0.14 | 0.14 | 1.48 | 1.47 | 1.50 |
| Packing–Docking | 64 | 0.36 | 0.46 | 0.51 | 0.37 | 0.40 |
| Environment | Ablation | R-COV | R-AMR | P-COV | P-AMR |
|---|---|---|---|---|---|
| Solvation | Full | 0.949 | 0.153 | 0.780 | 0.367 |
| NoSolvDesc | 0.905 | 0.191 | 0.734 | 0.399 | |
| Packing | Full | 0.644 | 0.664 | 0.410 | 1.073 |
| NoLattice | 0.575 | 0.762 | 0.360 | 1.154 | |
| Docking | Full | 0.684 | 1.899 | 0.512 | 2.471 |
| NoPocket | 0.400 | 2.590 | 0.257 | 3.197 |
| Metric | Setup | Vacuum | Docking | Solvation | Packing |
|---|---|---|---|---|---|
| R-COV | EVA (Full) | 0.740 | 0.674 | 0.930 | 0.640 |
| GCN | 0.670 | 0.665 | 0.803 | 0.605 | |
| Gaussian | 0.405 | 0.237 | 0.822 | 0.312 | |
| NoConsist | 0.338 | 0.577 | 0.134 | 0.373 | |
| NoBase | 0.321 | 0.577 | 0.255 | 0.398 | |
| NoFM | 0.000 | 0.126 | 0.006 | 0.005 |
| Environment | Individual | Unified | Pretrain+Ind. | Pretrain+Unified |
|---|---|---|---|---|
| Vacuum | 0.728 | 0.740 | 0.733 | 0.747 |
| Docking | 0.553 | 0.674 | 0.656 | 0.684 |
| Solvation | 0.414 | 0.930 | 0.936 | 0.949 |
| Packing | 0.512 | 0.640 | 0.633 | 0.644 |
| Environment | Individual | Unified | Pretrain+Ind. | Pretrain+Unified |
|---|---|---|---|---|
| Vacuum | 0.727 | 0.708 | 0.688 | 0.672 |
| Docking | 0.470 | 0.660 | 0.614 | 0.628 |
| Solvation | 0.503 | 0.675 | 0.771 | 0.771 |
| Packing | 0.493 | 0.622 | 0.615 | 0.613 |
| Environment | Dataset | Unified/ep | Unified tot. | Indiv./ep | Indiv. tot. |
|---|---|---|---|---|---|
| Vacuum (DRUGS) | 272,641 | 60,000 | 48.0M | 272,641 | 218.1M |
| Packing (COD) | 20,765 | 20,000 | 16.0M | 20,765 | 16.6M |
| Solvation (AQM) | 1,276 | 1,276 | 1.02M | 1,276 | 1.02M |
| Docking (PDB) | 9,940 | 9,940 | 7.95M | 9,940 | 7.95M |
| R-COV | R-AMR | P-COV | P-AMR | |
|---|---|---|---|---|
| 0.00 (default) | 0.747 | 0.468 | 0.464 | 0.979 |
| 0.01 | 0.738 | 0.470 | 0.455 | 0.983 |
| 0.05 | 0.735 | 0.493 | 0.459 | 0.981 |
| 0.10 | 0.745 | 0.471 | 0.464 | 0.973 |
| 0.20 | 0.730 | 0.486 | 0.452 | 0.985 |
| 0.50 | 0.734 | 0.480 | 0.453 | 0.982 |
| Model | Active dims | KL/node (nats) | Pooled | Environment-dependent |
|---|---|---|---|---|
| Full | 0/128 | No (cosine 1.000) | ||
| NoBase | 3/128 | up to | Yes |
| Environment | KL/node mean | KL/node median | Active dims | Posterior | R-COV random | R-COV zero | P-COV random | P-COV zero |
|---|---|---|---|---|---|---|---|---|
| Vacuum | 0/128 | 0.707 | 0.706 | 0.433 | 0.433 | |||
| Docking | 0.0476 | 0/128 | 0.661 | 0.661 | 0.497 | 0.497 | ||
| Solvation | 0/128 | 0.803 | 0.809 | 0.580 | 0.591 | |||
| Packing | 0/128 | 0.649 | 0.649 | 0.419 | 0.418 |
| Weight change | Vacuum | Docking | Solvation | Packing |
|---|---|---|---|---|
| latent-KL | ||||
| latent-KL | ||||
| base-KL | ||||
| base-KL | ||||
| consistency | ||||
| consistency |
| Environment | Coordinate content of | R-COV | R-AMR |
|---|---|---|---|
| Vacuum | zero-coordinate scaffold | ||
| Docking | physical pocket coordinates | ||
| Solvation | fixed proxy; scalar descriptors | ||
| Packing | RDKit proxy and lattice metadata |
| Reference selection | R-COV | R-AMR | P-COV | P-AMR |
|---|---|---|---|---|
| c1 (default) | 0.803 | 0.291 | 0.580 | 0.538 |
| Minimum eSOLV | 0.777 | 0.319 | 0.588 | 0.538 |
| Deterministic random | 0.803 | 0.292 | 0.584 | 0.538 |
| Training-target selection | R-COV |
|---|---|
| c1 (default rule) | 0.580 |
| Minimum eSOLV | 0.561 |
| Deterministic random | 0.618 |
3D Molecular Generation
3D molecular generation creates molecules by modeling their chemical structures and three-dimensional geometries.
See all 55 papers