Structural Causal Model for Molecular Dynamics Simulation

Qi Liu, Yuanqi Du, Fan Feng, Qiwei Ye, Jie FuAI4Science @ NeurIPS 2022 · OpenReview

TL;DR

This paper introduces Structural Causal Molecular Dynamics (SCMD), a novel framework that leverages causal inference to build more interpretable and robust molecular dynamics (MD) simulations. By modeling atomic interactions as a dynamic Bayesian network derived from a structural causal model, SCMD can infer underlying causal relationships and predict long-term molecular behavior with greater accuracy and efficiency than existing methods.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations are crucial for understanding how atoms and molecules move and interact, with applications ranging from materials science to drug discovery. However, traditional MD simulations face a trade-off between accuracy and computational cost. While highly accurate methods like ab initio calculations are computationally expensive, simpler empirical force fields often lack accuracy and transferability. Machine learning (ML) approaches, particularly graph neural networks (GNNs), have shown promise in improving MD simulations by learning interatomic interactions. However, these GNNs often act as "black boxes," lacking interpretability and relying on heuristics that may not fully capture the true physical interactions within a system. Physical models, on the other hand, offer comprehensive descriptions but are difficult to specify. This paper aims to bridge this gap by using causal modeling, which offers a more flexible and interpretable approach to understanding and simulating molecular dynamics.

Methods

The core of this work is the Structural Causal Model for Molecular Dynamics (SCMD) framework. SCMD models the MD system as a structural causal model (SCM), which is then represented as a dynamic Bayesian network (DBN). This DBN captures the causal dependencies between atoms over time.

The key innovation lies in how this DBN is learned:

  • Sequential Causal Variational Autoencoder (SC-VAE): This generative model is trained end-to-end to learn both the causal graph structure and the temporal dynamics of the MD system.
  • Encoder: The encoder infers the distribution of causal graphs. It uses graph neural networks (GNNs) with message-passing mechanisms (atom-wise and edge-wise) to learn edge representations that capture interactions. These representations are then used to predict the probability of different edge types (non-causal, causal with bounded links, causal without bounded links).
  • Decoder: The decoder uses the learned causal graph structure and atom representations to predict future atomic movements, modeling the temporal interactions.
  • Neural Relation Inference (NRI): The framework builds upon the NRI framework to learn the DBN, leveraging a variational autoencoder (VAE) to infer interactions from latent codes.

This approach allows SCMD to learn physics-related insights directly from observational data, enabling it to generalize to unseen systems.

Datasets

The paper validates SCMD using a single-chain coarse-grained polymer dataset simulated with LAMMPS. This dataset consists of 100 polymers, each composed of 4 types of constitutional units (CUs) with varying numbers of repeated patterns. 90 polymers were used for training, and the remaining 10 for simulation.

Key Insights and Ideas

  • Causality as a Bridge: The paper demonstrates that causal modeling can effectively bridge the gap between interpretable but rigid physical models and flexible but opaque ML models for MD simulations.
  • Interpretable Interactions: By inferring causal relationships, SCMD offers a more interpretable understanding of how atoms influence each other's movements, moving beyond simple correlation-based GNNs.
  • Long-Range and Long-Duration Prediction: SCMD shows a remarkable ability to predict molecular trajectories over extended time periods (e.g., 350 steps) with only initial state observations, a significant improvement over methods requiring extensive historical data.
  • Sample Efficiency: The model achieves competitive or superior performance with fewer training samples compared to existing ML-based methods.

Key Results

  • Improved Accuracy: SCMD demonstrates more accurate dynamic simulations, as measured by Earth Mover's Distance (EMD) and Mean Absolute Error (MAE) for the radius of gyration, compared to the baseline MLCGMD.
  • Robust Long-Duration Simulation: The model can predict trajectories for up to 350 time steps with only the initial state, while the baseline requires 30 historical steps for a single-step prediction.
  • Better Performance with Fewer Samples: SCMD achieves lower MAE and EMD with fewer training samples (28 vs. 30) compared to MLCGMD.
  • Generalizability: The framework is designed to be generic and flexible, capable of learning causal graphs specific to atom movements while generalizing across different molecular structures.

Limitations and Future Work

  • Sparse Constraints: The current work relies on sparse constraints for learning the causal graph from observational data. The authors suggest exploring more grounded causal discovery foundations in future work.
  • Intervention and Counterfactuals: Future research could incorporate intervention and counterfactual learning to further enhance the causal graph learning and its applicability to complex MD simulations.
  • Broader Applications: The authors believe SCMD has potential applications in various downstream MD tasks, such as drug discovery and protein modeling.

Summary updated

Abstract

Molecular dynamics (MD) simulations describe the mechanical behaviors of molecular systems through empirical approximations of interatomic potentials. Machine learning-based approaches can improve such potentials with better transferability and generalization. Among them, graph neural networks have prevailed as they incorporate the graph structure prior while learning the interatomic interactions. Nevertheless, the simple design choices and heuristics in devising graph neural networks make them lack an explicitly interpretable component to identify the true physical interactions within the underlying system. On the other extreme, physical models can give a rather comprehensive description of a system but are hard to specify. Causal modeling lies in between these two extremes, and can provide us with more modeling flexibility. In this paper, we propose a structural causal molecular dynamics model (SCMD), the first causality-based framework to model interatomic and dynamical interactions in molecular systems by inferring causal relationships among atoms from observational data. Specifically, we leverage the structural causal model (SCM) to model the interaction system of MD. To infer the SCM, we construct the graph in SCM as the dynamic Bayesian network (DBN), which is learned by a sequential generative model named SC-VAE. In the SC-VAE, the encoder and decoder infer the causal structure and temporal dynamics. All components are learned in an end-to-end fashion, and the DBN is learned in an unsupervised way. Furthermore, by concerning the underlying data generation process, inducing the causal structure and temporal dynamics of the system, one can enjoy a robust and flexible MD simulation model to explicitly capture the long-range and time-dependent movement dynamics. We demonstrate the efficacy of SCMD through empirical validations on the complex molecular system (i.e., single-chain coarse-grained polymers in implicit solvent) for long-duration simulation and dynamical property prediction.
BibTeX
@inproceedings{liu2022structural,
  author = {Qi Liu and Yuanqi Du and Fan Feng and Qiwei Ye and Jie Fu},
  title = {{Structural Causal Model for Molecular Dynamics Simulation}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=LtON28ko1bh},
}
Figure