Search arXiv⌕ Search

arXiv · 2612.03837

MTP-GPU: Accelerating moment tensor potential evaluation and training on graphics processors

Abstract

Universal machine-learning potentials can describe almost any chemistry, but their cost restricts them to modest system sizes and time scales. For large-scale molecular dynamics (MD), compact system-specific potentials such as moment tensor potentials (MTPs) remain the practical choice, but their speed advantage shrinks at high model levels. We present MTP-GPU, a CUDA implementation of MTP evaluation in LAMMPS and potential fitting in MLIP-3, which reaches 0.55 $μ$s/day for a 1000-atom system with a level-12 potential on a single H200 and 0.26 $μ$s/day on a lower-cost RTX 4500 Ada. The speedup comes from avoiding storage of the moment Jacobian, evaluating independent contractions in parallel at each dependency level and choosing shared- or global-memory storage at run time, so that large models are not limited by shared memory. Loss gradients and least-squares assembly for fitting also run on the GPU, and an optional single-precision mode is available for MD. We benchmarked MD against MTP-Kokkos for metals, silicon, silica and a Ta--V--Cr--W alloy. MTP-GPU is 2--3 times faster for level-16 metal potentials on A100 and H200 GPUs and leads in all tested comparisons at levels 16 and above, whereas MTP-Kokkos is faster for the level-8 alloy model. Single precision gives a further 1.5-fold speedup on data-centre GPUs and a 7-fold speedup on an RTX 4500 Ada, and for a level-24 model GPU least-squares assembly almost halves the total fitting time. The same algorithm also yields a faster CPU evaluator: on AMD EPYC Zen 4 processors it runs level-16 metal potentials 3.4--6.2 times faster than MLIP-2 and 2.1--3.6 times faster than the CPU version of MTP-Kokkos. Finally, for the multicomponent alloy we relate accuracy to MD cost from level 4 to 28, giving a practical basis for choosing the model level.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Pavel Maslov, Mikhail Logunov, Alexander Shapeev, Nikita Orekhov. 2026-12-02. MTP-GPU: Accelerating moment tensor potential evaluation and training on graphics processors. https://searcharxiv.org/abs/2612.03837

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

How Much Precision Does FHRR Need? Hardware-Efficient Vector Symbolic Computing with Quantized Phases

Fourier Holographic Reduced Representations (FHRR) encode symbols of unit phasors, however conventional implementations store and manipulate them with complex floating-point arithmetic. We investigate how much precision FHRR requires through quantized-phase FHRR (qFHRR) that represents each component as an $N$-bit integer phase. We compare qFHRR against complex, Cartesian, and modular composite representations across associative retrieval, factorization, and path integration tasks. At matched dimensionality, quantization introduces a predictable capacity penalty proportional to $\operatorname{sinc}^{2}(π/2^{N})$. However, under equal storage budgets, 2-bit qFHRR stores $\approx26\times$ more key--value associations than complex FP32. Resonator factorization is more sensitive to precision, and path integration loses displacements smaller than one phase bin regardless of dimensionality. Because these storage advantages do not translate into faster execution when phase indices are decoded into floating point for standard operations, we introduce HyPack, a hybrid-precision packed qFHRR implementation that combines 2-bit Gray-coded phase storage and native bitwise operations with wider integer accumulation. Compared with complex FP32 and Cartesian FP16 fused kernels, HyPack retrieves $3.3\times$ faster per query with $4.3\times$ less energy on a CPU and $1.4\times$ faster with $2.6\times$ less energy on a GPU. In path integration, its integer kernel matches fused floating-point integration on the CPU, while its $32\times$ smaller state and codebook cut the cost of decoding. Therefore, integration with decoding is $4.4\times$ faster with $5.0\times$ less energy on the CPU and $1.3\times$ faster on the GPU. Separating representation precision from intermediate precision therefore enables more efficient phase-based vector symbolic computation on conventional processors.

physics.comp-ph↗

Knowledge Transfer from a Universal Interatomic Potential to a Universal Electron Density Model

Energies and forces are available for far more atomic configurations than are reference electron densities. Can representations learned by a universal interatomic potential from this broader range of environments help a density model predict both static charge densities and where charge moves under perturbation? We connect a frozen EqV3 OMat-G encoder to the EdenGNN-Uni electron-density decoder through a dual-parity $O(3)$-equivariant bridge, the Potential-Density Bridge (PxD-Bridge). EdenGNN-Uni supplies all teacher hidden states and density targets on 50,000 bulk structures, so transfer requires no new density-functional-theory density labels. Evaluated without calibration, the PxD-Bridge model gives the lower mean total-density error on 965 held-out bulk crystals, on all four held-out MoS$_2$ nanotubes, and for both the unstrained and strained structures in the 100-crystal test. The decisive test is the density response: normalized by the total valence-electron count, the mean strain-induced charge-redistribution error decreases from 0.739% for EdenGNN-Uni to 0.594% for PxD-Bridge, with the PxD-Bridge model more accurate on 85 of the 100 crystals. Across an expanded 579-crystal benchmark spanning 79 elements under lattice strain and atomic rattling, the mean redistribution error decreases from 0.467% to 0.384%, with PxD-Bridge more accurate on 543 of the 579 crystals. In a matched control using the identical bridge architecture, randomly initialized EqV3 fails to surpass EdenGNN-Uni, whereas pretrained EqV3 gives a lower redistribution error than random EqV3 on 95 of the 100 strained crystals and 549 of the 579 full-periodic-table crystals. Energy-and-force pretraining can change how a distilled density model generalizes across structures and perturbations, allowing a student trained only to imitate its teacher to exceed that teacher on both static densities and electronic response.

physics.comp-ph↗

Two-Channel Transmission Conditions for Fast and Robust Domain Decomposition in Finite-Element Maxwell Solvers

A new dual-primal finite element tearing and interconnecting (FETI-DP) domain decomposition method (DDM) exhibiting unprecedented convergence rates is introduced for the solution of large-scale electromagnetic problems. The proposed DDM transmission condition (TC) enforces tangential-field and normal-flux continuity simultaneously across subdomain interfaces. Two channels are constructed from Faraday and Ampère-Maxwell equations discretized based on a mixed $\mathbf{E}$-$\mathbf{B}$ finite-element setting with Whitney edge and face elements. The two-sided enforcement of the transmission conditions yields four Lagrange multipliers per interface, retains the dual-primal corner treatment, and requires no auxiliary surface currents or charges. Evanescent interface modes, which are problematic for the conventional TCs, are strongly suppressed by the proposed TC. The convergence of the global interface equation improves accordingly, most markedly on large multiscale problems where the conventional TCs converge slowly or stagnate. In addition, a double-sweep preconditioner acting on the interface blocks complements the proposed TC. Several numerical experiments, with different domain partitioning strategies, subdomain counts, and geometries, demonstrate rapid convergence, robustness with respect to the number of subdomains. Improved field continuity is also observed on DDM interfaces.

physics.comp-ph↗