Introduction
The ensemble average of physical properties in molecular systems is fundamentally linked to the distribution of molecular conformations. Accurately sampling these distributions is a cornerstone of computational physics and chemistry. Traditionally, methods such as Molecular Dynamics (MD) simulations and Markov chain Monte Carlo (MCMC) sampling have been the standard. However, these approaches are often computationally prohibitive for complex systems due to the time required to achieve ergodicity.
Recent advancements in generative AI, particularly diffusion models, have offered a promising alternative by learning to sample from training data distributions efficiently. Yet, a significant challenge remains: standard diffusion models tend to overfit to the biases present in their training data. If the training set is non-equilibrium or limited, the model will reproduce these physical inaccuracies. To address this, we present Potential Score Matching (PSM), a method that leverages potential energy gradients to guide generative models toward true physical distributions.
Methodology: Integrating Physics into Diffusion
The core innovation of PSM lies in the realization that for a system in equilibrium, the score function—the gradient of the log-probability density—is directly proportional to the physical force ($-\nabla E$) acting on the atoms.
Force-Based Training
Unlike standard Denoising Score Matching (DSM), which learns to reverse a noise process based on atom positions, PSM trains the model to match the actual physical forces derived from the potential energy function. This ensures that the model learns the underlying physical "rules" rather than just memorizing specific trajectories.
Piecewise Loss Functions
Empirical analysis revealed that PSM is exceptionally accurate at low noise levels (near $t=0$), where fine structural details are determined. Conversely, standard DSM performs better at high noise levels, capturing the global structure of the distribution. To exploit these complementary strengths, we propose "Piecewise" and "Piecewise Weighted" loss functions. These hybrid approaches use physical forces to refine local details while relying on standard diffusion for global connectivity.
Equivariant Architecture
To maintain physical consistency, PSM utilizes the Equiformer-v2 network. This architecture respects the fundamental symmetries of 3D space—rotation and translation—ensuring that the model's predictions are invariant to the coordinate system's orientation.
Experimental Evaluation
We evaluated PSM across several benchmarks, ranging from toy models to high-dimensional molecular datasets.
Lennard-Jones Clusters
On Lennard-Jones (LJ-13 and LJ-55) clusters, PSM demonstrated a superior ability to "debias" sample distributions. Even when trained on restricted, non-equilibrium data, PSM successfully recovered the true interatomic distance distributions, significantly outperforming state-of-the-art models like iDEM and FAB.
MD17 and MD22 Datasets
The method was further tested on the MD17 (small organic molecules) and MD22 (large peptides and nanotubes) datasets. PSM achieved significantly lower Total Variation Distance (TVD) and Mean Absolute Error (MAE) compared to traditional diffusion models. This indicates that the generated conformations more closely approximate the Boltzmann distribution.
Key Insights and Efficiency
A critical theoretical finding proves that PSM provides a more accurate score function estimation near $t=0$ when training data is biased. This is vital for high-fidelity molecular generation.
Furthermore, PSM offers massive computational speedups. For instance, generating conformations for an Aspirin molecule took only 10 minutes with PSM, compared to over 31 hours for a traditional MD simulation. This amortized efficiency allows for rapid exploration of molecular space once the model is trained.
Conclusion and Future Directions
Potential Score Matching represents a significant step forward in physics-guided generative modeling. By using forces as "ground truth" labels, it overcomes the data bias limitations of standard diffusion models. While PSM requires force labels and depends on the accuracy of the underlying potential energy surface, its ability to generate physically plausible structures rapidly is a major boon for the field. Future work will explore extending this framework to Flow Matching and refining time-dependent embeddings for even greater accuracy.
Summary updated