Achieving 100X faster simulations of complex biological phenomena by coupling ML to HPC ensembles

Alexander Brace, Hyungro Lee, Heng Ma, Anda Trifan, Matteo Turilli, Igor Yakushin, Todd S. Munson, Ian T. Foster, Shantenu Jha, Arvind Ramanathan

Abstract

Machine learning (ML)-based steering can improve the performance of ensemble-based simulations by allowing for online selection of more scientifically meaningful computations. We present DeepDriveMD, a framework for ML-driven steering of scientific simulations that we have used to achieve orders-of-magnitude improvements in molecular dynamics (MD) performance via effective coupling of ML and HPC on large parallel computers. We discuss the design of DeepDriveMD and characterize its performance. We demonstrate that DeepDriveMD can achieve between 100-1000x acceleration for protein folding simulations relative to other methods, as measured by the amount of simulated time performed, while covering the same conformational landscape as quantified by the states sampled during a simulation. Experiments are performed on leadership-class platforms on up to 1020 nodes. The results establish DeepDriveMD as a high-performance framework for ML-driven HPC simulation scenarios, that supports diverse MD simulation and ML back-ends, and which enables new scientific insights by improving the length and time scales accessible with current computing capacity.

Introduction

Molecular Dynamics (MD) simulations are indispensable tools for investigating biological processes at atomic resolution. However, they are hampered by a significant timescale gap: while biological events like protein folding or drug binding occur over milliseconds to seconds, current supercomputers can typically only simulate microseconds per day. Furthermore, these simulations often suffer from poor sampling efficiency, frequently becoming trapped in local energy minima and redundantly sampling well-explored states.

To overcome these challenges, researchers often employ "ensembles" of many simultaneous simulations. However, without intelligent steering, these ensembles may still produce vast amounts of unproductive data. DeepDriveMD addresses this by automating the role of a human expert—monitoring simulations in real-time to identify and prioritize the most promising trajectories.

The DeepDriveMD Framework

DeepDriveMD implements a high-performance "Continual Learning Loop" designed to steer MD ensembles toward scientifically interesting states. The framework consists of four primary stages:

  1. Simulation: Execution of MD ensembles using standard engines like OpenMM or NAMD.
  2. Aggregation: Real-time pre-processing and streaming of trajectory data.
  3. Training: Online training of a Convolutional Variational Autoencoder (CVAE) to learn a low-dimensional latent representation of the molecular conformations.
  4. Inference: Application of outlier detection algorithms (such as DBSCAN) within the latent space to identify rare or novel states for subsequent simulation restarts.
The DeepDriveMD framework architecture showing the continual learning loop and the integration of ADIOS streaming for high-performance I/O.

A key technical innovation is DeepDriveMD-S, which utilizes the ADIOS framework for asynchronous data streaming. By moving away from traditional file-based I/O, DeepDriveMD-S allows simulation, training, and inference to run concurrently, significantly reducing hardware idle time and overcoming filesystem bottlenecks at scale.

Scientific Use Cases and Performance

The framework's efficacy was validated across three diverse scientific scenarios:

  • Protein Folding (UC1): Simulating the FSD-EY (BBA) protein, with results benchmarked against gold-standard Anton-1 simulations.
  • Protein-Ligand Interaction (UC2): Screening 120 drug candidates against the SARS-CoV-2 PLPro protein.
  • Large-Scale Multiscale Systems (UC3): A 2-million-atom SARS-CoV-2 Spike protein system used to stress-test I/O and streaming capabilities.

DeepDriveMD demonstrated exceptional scalability, running on up to 1020 nodes (6120 GPUs) on the Summit supercomputer. The streaming implementation achieved training and inference iterations up to 75× faster than file-based workflows. For the massive Spike protein system, optimized communication reduced data read times from 1400 seconds to just 9 seconds per iteration.

Key Insights: Exploration vs. Exploitation

The study highlights that the most effective steering strategy combines ML-driven exploration with biophysical exploitation. While the CVAE identifies novel "outlier" states, incorporating metrics like Root Mean Square Deviation (RMSD) helps target specific functional states, such as the folded configuration of a protein.

Comparison of conformational sampling efficiency across different steering strategies. The hybrid ML + RMSD approach (c) shows superior exploration of states closer to the native protein structure (lower RMSD).

As shown in the results, the hybrid approach (ML + RMSD) significantly outperforms either method used in isolation, reaching 80% of the conformational landscape up to 1000× faster than traditional brute-force MD.

Conclusion

DeepDriveMD represents a significant step forward in coupling AI with HPC for scientific discovery. By transforming the simulation process into a real-time, closed-loop learning system, it enables the exploration of biological phenomena on timescales previously considered unreachable. Future work will focus on further optimizing multiscale systems and expanding the library of ML back-ends to capture even more complex molecular dynamics.

Summary updated

BibTeX
@inproceedings{brace2022achieving,
  author = {Alexander Brace and Hyungro Lee and Heng Ma and Anda Trifan and Matteo Turilli and Igor Yakushin and Todd S. Munson and Ian T. Foster and Shantenu Jha and Arvind Ramanathan},
  title = {{Achieving 100X faster simulations of complex biological phenomena by coupling ML to HPC ensembles}},
  booktitle = {IPDPS},
  year = {2022},
  url = {https://openreview.net/forum?id=avj9Ck8ik9S},
}
Figure