Learning Collective Variables with Synthetic Data Augmentation through Physics-Inspired Geodesic Interpolation

Soojung Yang, Juno Nam, Johannes C. B. Dietschreit, Rafael Gómez-Bombarelli

TL;DR

This paper introduces a novel method for generating synthetic data to train machine learning models for collective variables (CVs) in molecular dynamics simulations. By using physics-inspired geodesic interpolation, they create realistic transition state data without expensive simulations, significantly improving the efficiency and accuracy of CV learning for rare events like protein folding.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations are powerful tools for understanding complex molecular systems, but they struggle to capture rare events such as protein folding. These events occur on timescales far beyond what's accessible with standard simulations, often due to high energy barriers separating different states. Enhanced sampling techniques aim to overcome this by biasing simulations along "collective variables" (CVs) that describe the rare event. However, defining effective CVs is challenging, especially for complex systems where intuition fails.

Traditional data-driven approaches to learn CVs often require vast amounts of simulation data, including samples from the transition state ensemble (TSE), which is precisely what's hard to obtain. This creates a "chicken-and-egg" problem: you need good CVs to get good sampling, but you need good sampling to get good CVs. Existing iterative methods to address this are computationally expensive. This paper tackles the problem of efficiently learning accurate CVs by generating synthetic transition state data without requiring extensive simulations.

Methods

The core of this work lies in a simulation-free data augmentation strategy using physics-inspired geodesic interpolation.

  1. Geodesic Interpolation: The authors leverage a method to approximate geodesics on Riemannian manifolds that mimic protein energy landscapes. Given two protein conformations (e.g., unfolded and folded), they generate a series of intermediate structures that smoothly transition between them. This interpolation is guided by a physics-inspired metric that emphasizes local interactions. The interpolation parameter, $t \in [0, 1]$, naturally represents the progress of the transition.
  2. Synthetic Transition State Ensemble (TSE) Generation: By performing geodesic interpolations between configurations sampled from metastable states (unfolded and folded), they create a synthetic TSE. The distribution of these synthetic TSE points can be controlled by sampling the interpolation parameter $t$ from a specific distribution (e.g., a Gaussian centered at 0.5 to favor transition states).
  3. Regression-based CV Learning: The interpolation parameter $t$ provides a continuous "progress" label for the synthetic data. This allows for training regression models (e.g., Multi-Layer Perceptrons, MLPs) to predict this progress parameter, rather than just discrete state labels (unfolded/folded). This is a key innovation, as it provides richer information to the model.
  4. Reverse-Calculation of Interpolation Parameter: They also developed a method to estimate the interpolation parameter $t$ for a given conformation by calculating its geodesic distance to the nearest unfolded and folded states. This allows for "labeling" of existing simulation data without prior knowledge of the transition path.
  5. Machine Learning Models: They trained two types of ML models:
  6. TDA (Targeted Discriminant Analysis): A classification-based approach using discrete state labels. They trained both a two-state (TDA) and a three-state (TDAgeo) version, the latter using the synthetic TSE data.
  7. Regression Models (Reggeo): Trained to predict the interpolation parameter $t$ using the synthetic TSE data.

Datasets

  • Chignolin (CLN025) protein: This small protein (10 residues, 166 atoms) is used as a benchmark system.
  • Unbiased simulations: 50 ns simulations for each metastable state (folded and unfolded) were performed to generate initial data.
  • Synthetic TSE data: 5,000 configurations were generated via geodesic interpolation between the metastable state samples.
  • Reference trajectory: A 106-µs long unbiased simulation trajectory of chignolin was used for validation and comparison.

Key Insights and Ideas

  • Geodesic interpolation as a powerful data augmentation tool: The method generates realistic transition state data that closely resembles actual MD trajectories, significantly reducing the need for expensive simulations.
  • Interpolation parameter $t$ as a continuous reaction progress indicator: This parameter provides a richer supervisory signal for ML models compared to discrete state labels, enabling regression-based learning.
  • Regression models outperform classification for CV learning: Training models to predict the continuous interpolation parameter $t$ leads to better performance in enhanced sampling simulations compared to classification-based TDA models.
  • Filtering synthetic data improves performance: While generating synthetic TSE data is beneficial, filtering it to remove conformations that significantly overlap with metastable states (using a TDA model's CV range) further enhances the performance of the trained CVs.
  • Pseudo-TSE is a viable alternative to physical TSE: The geometrically generated pseudo-TSE is simulation-free, faster, and controllable, offering advantages over methods that rely on physical TSE sampling, although it's not guaranteed to represent the true physical TSE.

Key Results

  • Improved enhanced sampling: CVs trained with data augmented by geodesic interpolation (especially the filtered synthetic TSE) showed significantly better performance in 1-µs WTM-eABF simulations.
  • Accurate free energy difference ($\Delta F$): The best models (TDAgeo (filtered) and Reggeo (filtered)) achieved $\Delta F$ values within 4 kJ/mol of the reference value obtained from the long unbiased trajectory, demonstrating their ability to correctly distinguish between folded and unfolded states.
  • Accurate potential of mean force (PMF): The filtered models also showed excellent reproduction of the reference PMF, indicating accurate characterization of the energy landscape.
  • Faster convergence: Models trained with augmented data converged faster in terms of average $\Delta F$ values.
  • Computational efficiency: Geodesic interpolation is computationally feasible, with the time per interpolated frame scaling almost linearly with the number of heavy atoms. For chignolin, generating 5,000 frames took about 40 minutes, roughly half the time of extracting the same number of frames from a 50 ns unbiased simulation.

Limitations and Future Work

  • Out-of-distribution behavior: A significant limitation acknowledged is the uncertainty in how ML CVs behave when encountering conformations far from the training data during enhanced sampling simulations. This is a general challenge for black-box ML models.
  • Pseudo-TSE vs. Physical TSE: The synthetic TSE generated by geodesic interpolation is purely geometric and not guaranteed to represent the true physical TSE.
  • Future Work:
    • Increasing robustness: Future work should focus on increasing the robustness of ML-based CVs to ensure the trustworthiness of results.
  • Multitask CVs: Exploring multitask CVs, possibly combining autoencoder frameworks with TDA loss on latent spaces, could introduce robustness.
  • True transition data: Incorporating true transition data, as in TPI-Deep-TDA, could guide models better, though this deviates from the fast, one-shot approach of the current work.
  • Generalizability: The authors anticipate that geodesic interpolation can be generalized to a broader spectrum of rare events beyond protein folding, including various chemical events.

Summary updated

BibTeX
@article{yang2024learning,
  author = {Soojung Yang and Juno Nam and Johannes C. B. Dietschreit and Rafael Gómez-Bombarelli},
  title = {{Learning Collective Variables with Synthetic Data Augmentation through Physics-Inspired Geodesic Interpolation}},
  journal = {Journal of Chemical Theory and Computation},
  year = {2024},
  url = {https://openreview.net/forum?id=YPAKpOObsa},
}
Figure