Search arXiv⌕ Search

arXiv · 2611.20429

FiuMD: Heterogeneous Batching for Coarse-Grained Molecular Dynamics with Neural Network Potentials

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$α$ models of chignolin, Trp-cage, BBL, and $λ$-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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hugo D. Hernández R., Paola B. Torres, Lara Negri, Rocío L. Cecchini, Nicolás A. García. 2026-11-16. FiuMD: Heterogeneous Batching for Coarse-Grained Molecular Dynamics with Neural Network Potentials. https://searcharxiv.org/abs/2611.20429

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Towards end-to-end optimization in multimaterial 3D printing

Multimaterial 3D printing enables the fabrication of functionally graded components, but optimizing their spatial material distribution alongside structural topology remains a formidable challenge due to high-dimensional design spaces and complex constitutive modeling. Using neural network constitutive laws in topology optimization requires their tangents and design sensitivities, which current approaches obtain by automatic differentiation through the network or derivation by hand. This paper combines sparsification, which reduces a trained physics-augmented neural network to a compact, interpretable closed-form law, with symbolic differentiation, enabling an end-to-end workflow from a new continuously varying multimaterial system to its mechanical simulation and design. By extracting closed-form, composition-aware hyperelastic constitutive laws from sparsified neural networks trained on experimental data, this approach facilitates exact symbolic differentiation of the terms required by the adjoint state method implemented with FEniCSx, circumventing the bottlenecks of applying neural network constitutive models in analysis and optimization. This pipeline is deployed on soft robotic gripper applications, demonstrating continuous composition optimization for highly anisotropic contact responses, and the concurrent optimization of macroscopic topology and material distribution under non-failure stretch constraints. This study is a step toward replacing conventional constitutive modeling and laborious empirical prototyping, establishing interpretable machine-learning models as practical, robust design primitives for advanced multimaterial additive manufacturing.

physics.comp-ph↗

Loss of positive definiteness as constraint relaxation in high-Weissenberg-number computations

Loss of symmetric positive definiteness (SPD) of the conformation tensor in high-Weissenberg-number computations signals that the discrete update has relaxed a constraint preserved by the continuum model. For periodic Oldroyd-B flows with nonnegative stress diffusion, a classical solution starting from uniformly SPD data remains strictly SPD. Polynomial-closure discretizations can produce negative eigenvalues from equilibrium data. For a uniform frozen state with solvent viscosity ratio $0<β<1$, nondiffusive transverse modes can grow only if $λ_{\min}(A)<-β/(1-β)$. Short-wave growth remains bounded, and stress diffusion confines growth to a finite wavenumber band. In two dimensions, constitutive relaxation contributes positively to the determinant balance where $\det A<0$ and $\mathrm{tr}(A)>0$. In lattice Boltzmann four-roll-mill simulations at $β=2/3$ and $\mathrm{Wi}=50$, time-consistent force-divergence coupling crosses the velocity stopping threshold even when the eigenvalues used to compute polymer stress stay strictly positive or above $-1$ up to that crossing. Guo force-divergence and local stress-moment schemes reach $t^*=120$ despite strongly negative eigenvalues. At $β=1/9$ under matched forcing, the unmodified stress-moment scheme terminates. Shifted-cone projection and a smooth softplus restoring source calibrated to $-β/(1-β)$ both sustain bounded unsteady flow to $t^*=120$ while admitting negative eigenvalues. These results link numerical breakdown to how far the local growth threshold is exceeded and how the discrete polymer stress feeds back into momentum.

physics.comp-ph↗

A Heterogeneous CPU-GPU Framework for Finite Element Micromagnetic Simulations on Tetrahedral Meshes

The design of magnetic storage materials relies on repeated micromagnetic simulations. Within each simulation, the demagnetization field evaluation and the sparse linear solve are executed at every time step and together dominate the computational cost. To address these bottlenecks, we develop a heterogeneous CPU-GPU framework that exploits the complementary computational capabilities of the two processors. In the existing AFEMAG solver, developed by Yang et al [J. Comput. Phys. 431 (2021) 110142], computationally intensive boundary integral evaluations and sparse linear solves limit performance. We offload these operations to the GPU while retaining assembly and iteration control on the CPU. We validate the framework using cases from all five $μ$Mag standard problems, covering quasistatic hysteresis, equilibrium configurations, field-driven dynamics, and spin-transfer-torque dynamics. This approach accelerates simulations across the benchmark suite; notably, for Standard Problem 3 on a mesh of 137,313 nodes, augmenting the CPU with one NVIDIA A100 GPU yields a $17.1\times$ speedup over the CPU-only configuration. The heterogeneous AFEMAG framework thus provides an efficient and practical platform for micromagnetic simulations in the design of magnetic storage materials.

physics.comp-ph↗