FiuMD: Heterogeneous Batching for Coarse-Grained Molecular Dynamics with Neural Network Potentials
Hugo D. Hern\'andez R. (Instituto de F\'isica del Sur, Departamento de F\'isica, Universidad Nacional del Sur), Paola B. Torres (Grupo Vinculado Bionanotecnolog\'ia y Sistemas Complejos, INFAP), Lara Negri (Instituto de F\'isica del Sur, Departamento de F\'isica, Universidad Nacional del Sur),
Key points
From the paper's conclusion- We show that when individual simulations are too small to fill the GPU, batching can improve throughput several-fold over TorchMD.
Abstract
FiuMD is a GPU molecular dynamics engine that advances many independent biomolecular simulations as a single batch, even when the systems differ in size, topology, force-field parameters, periodic box, timestep, or thermostat parameters. All systems are concatenated into global tensors, so the classical interaction terms and a shared TorchMD-Net neural network potential are evaluated for the whole batch at once, while each system keeps its own integration and thermostat. FiuMD started as a fork of TorchMD and reworks its system representation, force evaluation, and integration to handle such heterogeneous batches. We test it with coarse-grained C$\alpha$ models of chignolin, Trp-cage, BBL, and $\lambda$-repressor. In double precision, forces within a heterogeneous batch agree with isolated FiuMD and TorchMD evaluations to within the precision of repeated evaluations, with a maximum relative difference of $7\times10^{-16}$ across 60 systems. Over 1000 steps without a thermostat, batched trajectories deviate by at most $2.5\times10^{-11}$ Angstrom from isolated ones, even when periodic images lie within the neural network cutoff. With a different target temperature for each system of the ensemble, the mean and width of each system's kinetic temperature match the values expected from its own thermostat. We show that when individual simulations are too small to fill the GPU, batching can improve throughput several-fold over TorchMD. On a single GPU, batching four different protein systems achieves a 4.6-7.8-fold speedup per step compared with sequential TorchMD simulations. Compared with sequential homogeneous FiuMD batches, heterogeneous batching provides up to a 4-fold speedup for smaller batches while maintaining comparable performance for larger ones.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Enabling Biomolecular Simulations with Neural Network Potentials in GROMACS.Journal of chemical theory and computation · 2026
- xTBloom: GPU Batching for High-Throughput GFN-xTB CalculationsarXiv · 2026
- Neural Stochastic Forecasting for Lateral Molecular Diffusion SimulationsarXiv · 2026
- PLUMED-JAX: GPU-native enhanced sampling for atomistic simulationsarXiv · 2026
- Fast, modular, and differentiable framework for machine learning-enhanced molecular simulationsThe Journal of Chemical Physics · 2025
- tmol: a GPU-accelerated implementation of the Rosetta energy function for machine learningarXiv · 2026