Riemannian Denoising Score Matching for Molecular Structure Optimization with Accurate Energy

Jeheon Woo, Seonghwan Kim, Jun Hyeong Kim, Woo Youn Kim · DOI

Introduction

In computational chemistry, the determination of a molecule's equilibrium structure—the arrangement of atoms that minimizes potential energy—is a foundational task. Traditionally, this process relies on Density Functional Theory (DFT) to navigate the Potential Energy Surface (PES). While DFT provides high accuracy, its computational cost is prohibitive for large-scale screening or complex systems.

Recent advancements in machine learning have introduced denoising models (DMs) as a faster alternative. These models learn to map "noisy" or high-energy configurations back to stable, low-energy states. However, standard DMs typically operate in Euclidean space using Cartesian coordinates ($x, y, z$). This approach faces a significant hurdle: the PES is highly anisotropic. A minor displacement in Cartesian space can lead to unphysical atomic overlaps or bond stretching, resulting in massive energy spikes. Consequently, Euclidean-based models often fail to achieve "chemical accuracy"—defined as an energy error of less than 1 kcal/mol.

The Riemannian Denoising Model (R-DM)

To address these limitations, this research introduces the Riemannian Denoising Model (R-DM). Rather than treating molecular space as a flat Euclidean plane, R-DM operates on a physics-informed Riemannian manifold ($\mathcal{M}$). This shift allows the model to align its geometric operations with the underlying physical constraints of the molecule.

Physics-Informed Manifold Construction

The core of the R-DM framework lies in its coordinate system and metric:

  1. Internal Coordinates ($q$-coordinates): Instead of raw Cartesian positions, the model utilizes interatomic distances. These coordinates are specifically designed to prioritize short-range steric repulsions, which are the primary drivers of high-energy barriers in molecular structures.
  2. The Pull-back Metric: The authors define a Riemannian metric that warps the space such that the "shortest path" (geodesic) between two configurations follows the natural valleys of the energy landscape. This ensures that the denoising process avoids high-energy "mountainous" regions of the PES.
  3. Geometric Operations: The model employs Exponential Maps to project noise onto the manifold and Logarithmic Maps to calculate the vector fields required for denoising. This ensures that every step of the optimization remains constrained to the manifold's geometry.

Unified Training Objective

R-DM utilizes a training objective that unifies Score Matching (SM) and Flow Matching (FM). This allows the model to function as a robust optimizer. It can take a rough initial guess—such as a structure generated by a simple force field—and refine it into a high-accuracy equilibrium state.

Experimental Evaluation

The R-DM framework was evaluated against three major benchmarks: QM9 (small organic molecules), QM7-X (non-equilibrium structures with vibrational perturbations), and GEOM-QM9 (conformer ensembles).

Achieving Chemical Accuracy

The results on the QM9 dataset demonstrate a significant leap in performance. R-DM achieved a median energy error of 0.177 kcal/mol, comfortably surpassing the 1 kcal/mol threshold for chemical accuracy. In comparison, the Euclidean counterpart (E-DM) reached only 0.816 kcal/mol. Furthermore, R-DM achieved a median Root Mean Square Deviation (RMSD) of 0.031 Å, a three-fold improvement over the 0.091 Å achieved by the Euclidean model.

Efficiency and Robustness

Beyond accuracy, R-DM offers substantial computational gains. When used as a pre-optimizer for DFT, it reduced the required number of DFT "force calls" by more than half. Most structures reached equilibrium in just three iterations following R-DM refinement. Interestingly, the model maintained high precision even without explicit molecular graph information, suggesting that the geometric inductive bias of the Riemannian manifold is sufficient to capture essential chemical constraints.

Key Insights: Geometry as Physics

A pivotal finding of this work is the correlation between geometric distance and physical energy. In Euclidean space, the correlation between RMSD and energy differences is relatively weak ($r = 0.37$). However, the Riemannian geodesic distance shows a remarkably strong correlation ($r = 0.90$). This confirms that the manifold successfully encodes the physics of the energy landscape, allowing the denoising path to mirror actual energy minimization.

Limitations and Future Directions

While R-DM represents a significant step forward, several challenges remain:

  • Scalability: Current validation is limited to small organic molecules (up to 9 heavy atoms). Scaling to larger proteins or materials is constrained by the availability of high-quality quantum chemical reference data.
  • Prior Distributions: The mathematical complexity of defining a prior distribution on a Riemannian manifold makes it "intractable." Currently, the model requires a starting guess (like an MMFF structure) rather than generating molecules from pure noise.
  • Torsional Sensitivity: The model shows some sensitivity to dihedral angles near 0° or 180°. Future work will focus on refining the Riemannian metric to better capture these specific torsional dynamics.

Conclusion

The Riemannian Denoising Model demonstrates that by embedding physical constraints directly into the geometry of the model's operating space, we can achieve unprecedented accuracy and efficiency in molecular optimization. By bridging the gap between machine learning and the complex topology of potential energy surfaces, R-DM paves the way for more rapid and accurate computational drug discovery and materials science.

Summary updated

BibTeX
@misc{woo2024riemannian,
  author = {Jeheon Woo and Seonghwan Kim and Jun Hyeong Kim and Woo Youn Kim},
  title = {{Riemannian Denoising Score Matching for Molecular Structure Optimization with Accurate Energy}},
  year = {2024},
  eprint = {2411.19769},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.19769},
}
Figure