NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\texttt{FlashSchNet}$: Fast and Accurate Coarse-Grained Neural Network Molecular Dynamics

Pingzhi Li, Hongxuan Li, Zirui Liu, Xingcheng Lin, Tianlong Chen

Introduction

Molecular Dynamics (MD) simulations serve as the "computational microscopes" of biology and chemistry. Historically, researchers have faced a strict trade-off: classical force fields (like MARTINI) offer high simulation speeds but rely on empirical approximations, while first-principles methods provide high accuracy at a crippling computational cost.

Graph Neural Networks (GNNs), particularly SchNet, have emerged as a promising middle ground capable of learning complex many-body interactions. However, in practice, GNN-based MD has remained frustratingly slow. FlashSchNet bridges this gap by introducing an IO-aware framework that dramatically accelerates GNN-MD. By optimizing how data moves between GPU memory and on-chip cache, FlashSchNet allows machine-learned potentials to finally surpass the simulation speed of classical force fields while maintaining high-fidelity accuracy.

The Bottleneck: Memory IO Over FLOPs

The authors identify that the primary bottleneck in GNN-MD is not raw computational power (FLOPs), but Memory IO. This reinforces a growing trend in deep learning: for many modern architectures, the speed limit is determined by memory bandwidth.

Standard implementations force the GPU to spend most of its time moving massive intermediate "edge tensors" back and forth between High-Bandwidth Memory (HBM) and on-chip SRAM. This fragmented pipeline underutilizes the GPU's computational power and causes "atomic contention," where multiple threads fight to update the same memory location during graph reductions.

Methodology: The "Flash" Techniques

To solve these memory bottlenecks, FlashSchNet introduces four IO-aware techniques designed to keep data on-chip and minimize HBM reads/writes:

  1. Flash Radial Basis: Instead of computing distances, Gaussian expansions, and envelopes in separate steps, FlashSchNet fuses them into a single tiled pass. Distances are computed once and reused immediately on-chip.
  2. Flash Message Passing: This fuses cutoff masking, neighbor gathering, and filter multiplication. Crucially, it avoids "materializing" (writing to HBM) large intermediate tensors, keeping the data in fast on-chip memory.
  3. Flash Aggregation: Standard GNNs use "scatter-add" to pool information, which causes massive slowdowns in dense graphs due to atomic write conflicts. FlashSchNet reformulates this as a Compressed Sparse Row (CSR) segment reduction, which is contention-free and significantly faster.
  4. Channel-wise 16-bit Quantization (W16A16): Observing that SchNet weights have a low dynamic range per channel, the authors applied 16-bit quantization to weights and activations. This leverages NVIDIA Tensor Cores to boost throughput with negligible loss in accuracy.

Experimental Setup and Key Results

The framework was evaluated on a benchmark suite of five fast-folding proteins (Chignolin, TRPcage, Villin, Homeodomain, and Alpha3D) ranging from 10 to 73 residues. It was compared against the baseline CGSchNet, the classical MARTINI force field, and all-atom reference simulations.

FlashSchNet delivered transformative performance improvements:

  • Unprecedented Throughput: On a single NVIDIA RTX PRO 6000, FlashSchNet achieved an aggregate throughput of 1000 ns/day (across 64 replicas) for the Homeodomain protein.
  • Massive Efficiency Gains: The framework is 6.5× faster than the CGSchNet baseline and even surpasses the speed of the classical MARTINI model (~850 ns/day).
  • Memory Reduction: Peak memory usage dropped by 80% (from 92GB to 18GB), enabling large-scale simulations on consumer-grade hardware like an RTX 5090.
  • Maintained Accuracy: Despite aggressive optimizations and quantization, FlashSchNet maintained structural fidelity (GDT-TS scores) within 0.04 of the high-precision baseline.

Insights and Future Directions

A fascinating insight from this research is FlashSchNet's robustness to graph density. Standard GNN-MD slows down as proteins unfold because the neighbor graph becomes denser, increasing atomic contention. Thanks to its CSR-style reductions, FlashSchNet maintains stable performance regardless of the protein's shape.

While highly effective, FlashSchNet is currently tailored to continuous-filter convolution architectures like SchNet. Extending these IO-aware principles to more complex equivariant models (such as NequIP or MACE) is a logical next step, though it will require handling more complex tensor products. Future work will also focus on validating performance on all-atom systems, larger biomolecular assemblies, and exploring portable backends beyond NVIDIA-specific CUDA kernels.

Summary updated

BibTeX
@inproceedings{li2026texttt,
  author = {Pingzhi Li and Hongxuan Li and Zirui Liu and Xingcheng Lin and Tianlong Chen},
  title = {{$\textbackslash\{\}texttt\{FlashSchNet\}$: Fast and Accurate Coarse-Grained Neural Network Molecular Dynamics}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=bu6M0Bo6PO},
}
Figure