Abstract
With many frameworks based on message passing neural networks proposed to predict molecular and bulk properties, machine learning methods have tremendously shifted the paradigms of computational sciences underpinning physics, material science, chemistry, and biology. While existing machine learning models have yielded superior performances in many occasions, most of them model and process molecular systems in terms of homogeneous graphs, which severely limits the expressive power for representing diverse interactions. In practice, graph data with multiple node and edge types is ubiquitous and more appropriate for molecular systems. Thus, we propose the heterogeneous relational message passing network (HermNet), an end-to-end heterogeneous graph neural network, to efficiently express multiple interactions in a single model with ab initio accuracy. HermNet performs impressively against many top-performing models on both molecular and extended systems. Specifically, HermNet outperforms other tested models in nearly 75%, 83% and 69% of tasks on revised Molecular Dynamics 17 (rMD17), Quantum Machines 9 (QM9) and extended systems datasets, respectively. Finally, we elucidate how the design of HermNet is compatible with quantum mechanics from the perspective of the density functional theory.
Introduction: The Challenge of Molecular Representation
Molecular Dynamics (MD) simulations serve as a critical "microscope" for computational chemistry and materials science. However, researchers traditionally face a stark trade-off: classical force fields offer high speed but limited accuracy and transferability, while ab initio methods like Density Functional Theory (DFT) provide high accuracy at a prohibitive computational cost.
Machine Learning Force Fields (MLFFs) have emerged to bridge this gap. Yet, most existing Graph Neural Networks (GNNs) for MD treat molecular systems as homogeneous graphs. In these models, the message-passing function—the mathematical description of how atoms interact—is uniform across all atom types. This "averaging" approach fails to capture the nuanced chemical environments found in complex systems where, for instance, a Carbon-Carbon interaction differs fundamentally from a Carbon-Fluorine interaction.
Methodology: HermNet Architecture
HermNet (Heterogeneous Relational Message Passing Network) addresses these limitations by treating different atomic interactions as distinct "relations." Instead of a single message-passing protocol, HermNet decomposes molecular graphs into type-specific subgraphs and applies distinct sub-networks to each.
Key Technical Features
- Relational Decomposition: The system is partitioned into subgraphs based on specific relations (e.g., A–A, A–B, B–B). This allows the model to learn specialized parameters for different chemical bonds.
- Hierarchical Interaction Modeling: HermNet models interactions hierarchically, beginning with radial (two-body) interactions and progressing to angular (three-body) interactions. This structure mirrors the expansion of potential energy in physical chemistry.
- Equivariant Engine: By utilizing a modified version of the Polarizable Atom Interaction Neural Network (PAINN), HermNet ensures rotational equivariance, maintaining physical consistency regardless of the coordinate system's orientation.
- Theoretical Grounding: The authors demonstrate that this hierarchical, heterogeneous approach is mathematically compatible with the tight-binding representation of DFT, providing a rigorous physical foundation for the model's architecture.
Benchmarking and Performance
HermNet was rigorously tested against several standard and complex datasets, consistently outperforming established models like SchNet, DimeNet, and PAINN.
- Molecular Accuracy: On the revised MD17 (rMD17) and QM9 datasets, HermNet achieved state-of-the-art results in 75% and 83% of tasks, respectively. This demonstrates its superior ability to predict potential energy surfaces and quantum chemical properties for small organic molecules.
- Extended Systems and Bulk Materials: The model showed exceptional performance on bulk materials, including Silicon, Alumina ($Al_2O_3$), and Titanium Dioxide ($TiO_2$). It consistently achieved lower Root Mean Square Errors (RMSE) for both energy and forces compared to the popular DeepPot-SE framework.
- Complex Alloys and Vibrational Properties: HermNet successfully modeled High Entropy Alloys (HEA), which are notoriously difficult due to their diverse local chemical environments. Furthermore, in simulations of $MoSe_2$ monolayers, the model accurately reproduced phonon dispersion curves, a task requiring precise capture of second-order derivatives of the potential energy surface.
Conclusion and Future Outlook
HermNet represents a significant step forward in MLFFs by introducing a modular, heterogeneous framework that aligns more closely with the underlying physics of molecular interactions. While the triadic variant (HTNet) faces challenges with parameter scaling in systems with many elements, the vertex-based variant (HVNet) provides an optimal balance of complexity and predictive power.
Future work aims to incorporate higher-order interactions, such as four-body dihedral terms, to further enhance accuracy for complex polymers and biological macromolecules. As a universal framework, HermNet's internal message-passing blocks can be easily updated with future architectural innovations, ensuring its continued relevance in the evolving landscape of computational science.
Summary updated