Graph Neural Network Based Coarse-Grained Mapping Prediction

Zhiheng Li, Geemi P. Wellawatte, Maghesree Chakraborty, Heta A. Gandhi, Chenliang Xu, Andrew D. WhitearXiv 2020 · DOI

Abstract

The selection of coarse-grained (CG) mapping operators is a critical step for CG molecular dynamics (MD) simulation. It is still an open question about what is optimal for this choice and there is a need for theory. The current state-of-the art method is mapping operators manually selected by experts. In this work, we demonstrate an automated approach by viewing this problem as supervised learning where we seek to reproduce the mapping operators produced by experts. We present a graph neural network based CG mapping predictor called DEEP SUPERVISED GRAPH PARTITIONING MODEL (DSGPM) that treats mapping operators as a graph segmentation problem. DSGPM is trained on a novel dataset, Human-annotated Mappings (HAM), consisting of 1,206 molecules with expert annotated mapping operators. Our model uses a novel metric learning objective to produce high-quality atomic features that are used in spectral clustering. The results show that the DSGPM outperforms state-of-the-art methods in the field of graph segmentation. Finally, we find that predicted CG mapping operators indeed result in good CG MD models when used in simulation.

Introduction

Molecular dynamics (MD) simulations are essential for understanding molecular systems, but their computational cost limits the exploration of large systems over long timescales. Coarse-graining (CG) addresses this by representing groups of atoms as single "beads," thereby reducing the degrees of freedom. However, the "mapping"—the process of partitioning atoms into beads—has traditionally been an "art" performed by human experts using chemical intuition. Existing automated methods often require expensive pre-simulations or fail to capture the nuanced heuristics used by experts. This work introduces a supervised learning approach to automate this process, leveraging a new dataset of expert-labeled mappings.

Methodology: Deep Supervised Graph Partitioning Model (DSGPM)

The DSGPM treats molecular mapping as a supervised graph partitioning problem. The architecture utilizes a Message Passing Neural Network (MPNN) with Gated Recurrent Units (GRU) to extract atomic features from molecular graphs, where nodes represent atoms and edges represent chemical bonds.

DSGPM Architecture and Training Pipeline

Key components of the methodology include:

  • Feature Engineering: In addition to one-hot encoded atom types, the model incorporates node degree ($F_d$) and a cycle indicator ($F_c$) to capture local and global structural information.
  • Metric Learning Objective: The model is trained using a novel metric learning strategy. A Cut Triplet Loss encourages embeddings of atoms in different beads to be distant, while a Non-cut Pair Loss pulls embeddings of atoms within the same bead closer together.
  • Inference: Post-training, the GNN-generated atomic embeddings are used to construct an affinity matrix. Final partitions are determined via spectral clustering, followed by a post-processing step to ensure physical connectivity within each bead.

The Human-annotated Mappings (HAM) Dataset

To facilitate supervised learning, the authors developed the Human-annotated Mappings (HAM) dataset. It contains 1,206 organic molecules, each mapped by multiple human experts to establish a "ground truth." This dataset allows the model to directly learn the "common sense" and chemical intuition that experts apply when designing CG models.

Results and Discussion

DSGPM demonstrates superior performance across multiple metrics, including Adjusted Mutual Information (AMI), precision, and recall.

Performance Comparison of DSGPM against Baseline Methods

As shown in the table above, DSGPM achieves an AMI of 0.79, significantly outperforming traditional graph partitioning algorithms like METIS (0.56) and Graclus (0.45). Notably, the model's performance is remarkably close to the human-to-human agreement level (AMI 0.81), suggesting it successfully captures expert intuition.

Beyond quantitative metrics, the model shows strong zero-shot generalization, producing chemically sensible mappings for large proteins like the SARS-CoV-2 protease despite being trained on smaller molecules. Furthermore, MD simulations using DSGPM-predicted mappings for alkanes showed lower errors in Center-of-Mass Radial Distribution Functions (COM-RDF) compared to less accurate mappings, validating the physical soundness of the model's predictions.

Conclusion

DSGPM provides a robust, automated framework for molecular coarse-graining that rivals human expert performance. By framing mapping as a supervised graph partitioning task and utilizing metric learning, the model captures complex chemical patterns. Future work will focus on automatically determining the optimal number of beads and refining mappings based on thermodynamic optimality through reinforcement learning.

Summary updated

BibTeX
@misc{li2020graph,
  author = {Zhiheng Li and Geemi P. Wellawatte and Maghesree Chakraborty and Heta A. Gandhi and Chenliang Xu and Andrew D. White},
  title = {{Graph Neural Network Based Coarse-Grained Mapping Prediction}},
  year = {2020},
  eprint = {2007.04921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.04921},
}
Figure