Scalable and Accurate Generative Sampling of Molecular Equilibrium Ensembles
Authors: Jiajun He, Denis Blessing, Yuanqi Du, Carles Domingo-Enrich
Organizations: Microsoft Research New England, Cambridge, MA 02142, USA · University of Cambridge, Cambridge, CB2 1PZ, UK · Karlsruhe Institute of Technology, 76131 Karlsruhe, Germany
Sampling equilibrium ensembles is central to predicting molecular behavior and thermodynamic properties, yet becomes increasingly difficult as systems grow. Generative models offer a promising route to accelerating these calculations, but scaling them while retaining reliable statistical estimates remains a major challenge. Here we introduce Archimedes, a multiscale diffusion framework that uses physical hierarchies to generate molecular configurations from coarse to fine while retaining evaluable path probabilities for statistical correction. The framework enables physically realistic all-atom protein generation beyond 1,000 atoms and supports highly accurate free energy calculations for solvent dielectric change, host-guest binding and protein mutation. Archimedes also enables establishing transferable neural samplers that train primarily from molecular energies and transfer to unseen peptide sequences. Beyond biomolecules, the spatial hierarchy transfers to CO2 boxes containing eight times as many molecules as in training and reproduces both the local structure of molten and glassy Cu-Zr and the reduced free energy difference between them. Together, these results establish physical hierarchies as a route to scaling generative sampling while preserving access to molecular thermodynamics.
Figures & tables
Figure 1: Level-by-level generation with Archimedes. Columns show successive hierarchy levels from coarse to fine. Rows show the prior ( t=1 ), an intermediate state ( t=0.5 ) and the generated configuration ( t=0 ), from top to bottom. Thin lines show denoising trajectories. a , Generation of 1PRB through four levels: C α atoms, remaining backbone heavy atoms, side-chain heavy atoms and hydrogens. Atoms generated at coarser levels are grey and remain fixed. All stages use the same view and scale. b , Generation of a box of 216 CO 2 molecules through cell occupancies, molecular positions and orientations. Masked cells are grey; revealed occupied cells are light blue for one molecule and dark blue for two. Empty cells are outlined. Molecular positions are generated relative to the assigned cell centres, followed by orientations.
Figure 2: Archimedes enables accurate all-atom protein sampling. a-d , TC10b, GB1 wild type, 1PRB and 2A3D. Generated ensembles (blue) and reference molecular dynamics (MD, grey) are compared through reduced potential energy βU , backbone dihedrals (ϕ,ψ) , C α root-mean-square deviation (RMSD) and radius of gyration Rg . OVL denotes distribution overlap; percentages indicate samples outside the displayed energy range. e , Energy distributions during training for one-, two- and four-level models on TC10b. The two-level model generates heavy atoms before hydrogens. Numbers give overlap with MD. f , Mean atomwise distance between independently drawn prior and training configurations, with prior widths matched to the data at each level. g , Atom pairs within the 0.5nm cutoff during diffusion in 2A3D. Insets show neighbors of a hydrogen at t=0.5 for single-level generation (top) and the hydrogen level (bottom). Filled and open circles denote hydrogens and heavy atoms; dashed circles mark the cutoff. Inset labels give the mean number of neighbours within the cutoff.
Figure 3: Archimedes accurately estimates biomolecular free energy. a , Molecular structures for solvent changes, host-guest binding and protein mutation. b , Free energy differences between solvent dielectrics, ΔF=F(78.5)−F(ϵlow) , with ϵlow=9 for TC10b and 20.4 for 1PRB. c , Relative binding free energy for three guest pairs in each of TEMOA and TEETOA, with ΔΔGij=ΔGi−ΔGj . d , Mutation stability change for GB1 Y33G. In b-d , grey ticks denote MBAR references; blue points and error bars show Archimedes means and standard deviations over three evaluations. e , Effect of hierarchy depth on TC10b at ϵ=78.5 . Left, absolute error in ΔF relative to MBAR for two- and four-level models, each paired with the same final model at ϵ=9 . Middle, sampled work separation, min(−wf)−max(wb) , for one, two and four levels. The left and middle panels show means and standard deviations over two disjoint groups of paths. Right, work distributions at selected training checkpoints: forward noising paths from MD ( −wf , grey) and reverse generative paths ( wb , colour). Annotations give the signed separation; negative values indicate overlap (green), and positive values indicate a gap (red).
Figure 4: Learning transferable peptide samplers from energy. a , Overview of learning from energy. Generated configurations enter a replay buffer, and their energy and forces guide updates to the diffusion models at all hierarchy levels. b , Peptide systems and training split. Lengths exclude terminal caps; atoms are coloured by hierarchy level. Shared training includes reference MD configurations for 40 homopeptides. In c - g , grey denotes MD, blue the four-level model and brown the one-level model. c,d , Generated and reference distributions for training and unseen two-residue ( c ) and three-residue ( d ) sequences. Top, backbone Ramachandran densities pooled over residues; bottom, reduced potential energy βU . e , Transfer to unseen chain lengths. One-residue samples are shown as generated and four-residue samples after 5 ps of Langevin relaxation. Dotted lines show unrelaxed energy distributions. f , Energy (filled circles) and Ramachandran (open squares) overlap with MD. Points represent individual sequences, bars show group medians and n gives group sizes. MD-supervised sequences are excluded. g , Effect of hierarchy depth on separately trained alanine dipeptide samplers: energy and Ramachandran distributions after 4,000 rounds, and energy evolution during training. Curves show the mean (solid) and median (dotted); shading indicates the 5th-95th percentile range. The MD mean and corresponding range are shown in grey.
Figure 5: Sampling and free energy of bulk CO 2 and a glass-forming Cu-Zr alloy. Blue denotes Archimedes, orange the model without cell occupancies and grey the reference. a,d , Boxes of 216 and 1,728 CO 2 molecules at 320K , shown at the same scale. b,c , Distributions of reduced potential energy per molecule, βU/N , compared with molecular dynamics at N=216 ( b ) and after transfer to N=729 and 1,728 ( c ). e,f , Compression free energy per molecule, βΔF/N , relative to 0.040gcm−3 for N=216 ( e ) and 0.080gcm−3 for the larger boxes ( f ). g , Cu 64 Zr 64 representative configurations. Polyhedra mark Cu-centred icosahedra. Solid curves show 700K and dashed curves show 2,000K . h , Reduced potential energy per atom compared with NRPT at three temperatures. i , Change in reduced free energy per atom, Δ(βF)/N , relative to 2,000K . Histogram labels give overlap with the reference and the percentage of generated samples above the plotted range. Free energy points and error bars show BAR means and standard deviations over four paired evaluations. Lower panels show deviations from MBAR for CO 2 and from the NRPT stepping-stone reference for Cu-Zr.
Figure S1 : Five-level generation of host-guest complexes. a,b , Bound configurations of TEMOA with guest G1 (( E )-hex-2-enoate; a ) and TEETOA with guest G1 (3-hydroxy-2-naphthoate; b ). Each column adds one level. Level 1 places six host anchors. Level 2 adds the remaining ten host anchors and two guest anchors, establishing the guest’s position relative to the host. Level 3 completes the molecular scaffolds, defined by the ring core of each host and the TEETOA guest, and by the longest heavy-atom chain of the TEMOA guest. Level 4 adds the remaining heavy atoms, and level 5 adds hydrogens at fixed bond lengths. Colours identify the levels, and grey shading marks the guest. Dashed lines connect each level-2 anchor to the level-1 anchor used to place it. Numbers below each panel give the numbers of host and guest atoms added at that level.
Figure S2 : Conditional path averaging on GB1. a,b , Forward-reverse gap ( a ) and work separation ( b ), averaged over GB1 wild type and Y33G. Each curve holds NM fixed, where N is the number of paths per direction and M is the number of trajectories per segment. Lines show means across three evaluations. Bands show the standard deviation of individual runs. c , Forward ( −wf , grey) and reverse ( wb , blue) work distributions from one evaluation at fixed N . Numbers give the work separation in kBT . Green indicates overlap of the sampled ranges and red indicates a gap.
Figure S3 : Energy and work distributions for bulk CO 2 and Cu 64 Zr 64 . Each CO 2 block shows a box size, with one row per density. The Cu-Zr block shows one row per temperature. Energy panels compare the reduced potential energy per molecule or atom, βU/N , for Archimedes (blue) and the CO 2 model without cell occupancies (orange) with the MD or NRPT reference (grey). Numbers give distribution overlap. Percentages indicate samples above the plotted range. Work panels show −wf for forward paths (grey) and wb for reverse paths (model color). Both are centered on the forward estimate of logZ and divided by N . Numbers give the work separation per molecule or atom, computed from all sampled paths. Green indicates overlap of the sampled ranges and red indicates a gap.