Paper commentary
IANN: A Unified Framework for Equivariant InterAtomic Neural Networks with User-Friendly Implementation
- Problem Equivariant interatomic potentials each ship as a separate codebase with its own data format, configuration, training loop and molecular-dynamics interface, so comparing architectures on one dataset or moving a trained model into simulation requires heavy re-engineering.
- Method Reimplements seven equivariant architectures behind one data object, one configurable trainer, one analytic-derivative route for forces, stresses and virials, and shared calculator and LAMMPS export paths.
- Results Across seven architectures at about one million parameters trained on MPtrj, energy MAE ranged from 0.029 to 0.054 eV/atom and force MAE from 0.040 to 0.069 eV/Å on a held-out 5% split.

Figure 2 : The underlying mechanism: a shared graph convention, a unified data object, and a
Original paper · CC BY 4.0 · Changzhi Ai, Xueping Qin, Dimosthenis Sokaras, Frank Abild-Pedersen, Johannes Voss · IANN: A Unified Framework for Equivariant InterAtomic Neural Networks with User-Friendly Implementation · Original paper figure · Extracted the figure area from page 12 of the original PDF.Why comparing and deploying potentials is costly
A fair comparison of two architectures on one's own data, with identical splits, loss weights, optimizer and stopping rules, therefore needs one of them to be reimplemented, or else the results are confounded. Switching architecture after a project has started is also costly, which tends to keep a group on whichever model it adopted first.
Deployment adds more friction, because each architecture typically needs its own LAMMPS wrapper and pair style, and distributed training has to be matched to the launcher and scheduler of each machine. Extending a model with a new component often means editing framework-specific code, and most existing frameworks offer no interface that an autonomous agent could use to run training, inference and deployment.
One data object and one trainer
IANN exposes the architectures as configurable options inside one PyTorch framework, and its equivariant models all use the same data object and trainer. Every architecture maps an AtomsData object to an AtomsData object, so datasets, batching and neighbour-list construction are written once and not once per model.
Changing architecture means changing the model name and its hyperparameters in that dictionary, and the training script itself stays the same. Because the loss, trainer, calculators and TorchScript exporter depend only on the shared signature, adding an architecture leaves them untouched. Each architecture was reimplemented against this shared interface, so the accuracy numbers reported later belong to the IANN implementations rather than to the original releases.
Distributed data-parallel training reads its rank, world size and rendezvous details from the environment set by SLURM, PBS or the MPI launchers, so the same script runs from a workstation to a multi-node allocation.
From a structure to atomic energies
The total energy is written as a sum of atomic contributions, and each contribution depends only on the atoms within a cutoff radius. \(E=\sum_{i=1}^{N}E_i\), where \(E_i\) depends only on the local environment of atom \(i\) inside the cutoff \(r_c\).
Each structure becomes a graph whose edges connect atom pairs closer than the cutoff, and each edge vector is \(\vec d_{ij}=\vec r_j-\vec r_i+S_{ij}h\), where \(h\) is the cell matrix and \(S_{ij}\) is the integer image shift that picks the nearest periodic copy of atom \(j\). Working with these edge vectors, rather than absolute positions, makes the description translationally invariant and moves periodicity into the graph, so the architecture does not need a special periodic branch.
Distances are encoded with a Bessel basis \(R_n(d)=\sqrt{2/r_c}\,\frac{\sin(n\pi d/r_c)}{d}\,u(d)\) for \(n=1,\dots,N_{\text{basis}}\), where \(u(d)\) is a polynomial envelope whose first derivatives vanish at \(d=r_c\).
All architectures follow the same message-passing pattern: each node builds messages from its own features, the neighbour features, the radial basis and the spherical harmonics of the normalized edge direction, sums these messages over neighbours, and then updates its features.
Forces and stress from edge derivatives
Forces are the negative gradient of the predicted energy with respect to atomic positions, so the force field is conservative, and no separate network head predicts them. IANN differentiates once with respect to the edge vectors, and the force on each atom is the sum of the per-edge gradients for edges leaving it minus the sum for edges entering it: \[\vec F_i=-\frac{\partial E}{\partial \vec r_i}=\sum_{j\in N(i)}\frac{\partial E}{\partial \vec d_{ij}}-\sum_{j:\,i\in N(j)}\frac{\partial E}{\partial \vec d_{ji}}\] The two sums are scatter-add operations onto the centre and neighbour indices of each edge, and because the periodic shifts are already in the edge vectors, the same code path works for molecules, slabs and bulk crystals.
The virial and stress reuse the same per-edge gradients: the virial sums the outer product of each edge vector with its energy gradient, and the stress is the virial divided by the cell volume, \(W=\sum_{(i,j)\in E}\vec d_{ij}\otimes\frac{\partial E}{\partial \vec d_{ij}}\) and \(\sigma=\frac{1}{V}W\). Since no extra backward pass is needed for these quantities, forces, virial and stress come from one differentiation, and the kinetic part of the pressure is added by the integrator during molecular dynamics.
How the training loss is weighted
The training loss is a weighted sum \(L=w_E L_E+w_F L_F+w_W L_W+w_\sigma L_\sigma\), and the energy weight is set to \(w_E=1-w_F-w_W-w_\sigma\) so that the weights add to one. The user chooses the force, virial and stress weights, and the energy weight follows from them.
The energy term is a mean squared error on energy per atom, \(L_E=\frac{1}{B}\sum_{b=1}^{B}\left(\frac{\hat E_b-E_b}{N_b}\right)^2\), where \(B\) is the batch size and \(N_b\) is the atom count of structure \(b\). Normalizing by atom count stops large structures from dominating a batch whose structures differ in size.
Because this term uses the norm rather than its square, the authors state that it is less sensitive to outliers than a squared-error force loss.
From checkpoint to ASE and LAMMPS
Each checkpoint carries its own architecture and hyperparameters, so an ASE calculator can rebuild the network without the user specifying it. The software is organized as five main layers and two auxiliary layers, with the trained checkpoint consumed either as an ASE calculator or as a TorchScript model for LAMMPS.
The EnsembleCalculator takes a list of checkpoints and reports a mean prediction and a variance for total energy, forces and atomic properties, and the variance can serve as an acquisition signal for active learning.
For LAMMPS, a checkpoint is compiled to TorchScript and run through the pair style iann, which runs in serial or on multiple GPUs with one MPI rank per GPU. Loading an ensemble checkpoint also creates a companion compute that streams energy and force variances next to the usual thermodynamic variables, which the authors present as a way to detect drift during simulation.
An agent interface exposes the same operations through machine-readable CLI output, a Model Context Protocol server and task-specific agent skills, so training, inspection and deployment can run without an interactive session.
Curated DFT databases by functional
The filtered sets were converted to a standardized ASE trajectory format that the framework reads directly.
Taken together the curated collection contains 41.9 million structures.
RPBE has fewer structures than PBE but more atoms, and the authors attribute this to the surface and interface supercells of the RPBE sources being much larger than the bulk cells that dominate PBE.
PBE and r2SCAN cover nearly the whole periodic table, including lanthanides and actinides up to plutonium, while RPBE contains no actinides and only five lanthanides.
Energy and force accuracy across seven architectures
The force weight was staged from 0.9 early in training down to 0.3 to favour asymptotic energy accuracy. Width, depth and angular resolution were chosen to keep each model near one million parameters, from 0.57 to 1.43 M, and each network had its own tuned learning rate.
Errors are mean absolute errors on a held-out 5% split of MPtrj. UMA has the lowest energy error at 0.029 eV/atom and the lowest force error at 0.040 eV/Å among the seven, with 1,173,698 parameters. Energy error ranges from 0.029 to 0.054 eV/atom across the set, while force error ranges from 0.040 to 0.069 eV/Å.
EquiformerV3 reached 0.040 eV/atom and 0.046 eV/Å with 943,249 parameters, and EquiformerV2 reached 0.040 eV/atom and 0.059 eV/Å with 773,089 parameters. The authors describe the attention-based Equiformer models as strongest overall on this dataset, a reading that rests on these same single-split numbers.
The benchmark was not designed as a controlled ablation, so the numbers reflect practical performance under shared splits, graph conventions, losses and evaluation routines, not the isolated effect of any single design choice. The ranking holds only for these seven models, this dataset and this parameter range.
Latency, memory and throughput
Cost was measured in single precision on one NVIDIA Tesla V100 with 32 GB, using bulk supercells from 32 to 10,976 atoms at the 5.5 Å cutoff. Wall time per energy-and-force call, peak GPU memory, force MAE against sustained throughput, and speedup over DFT were measured for each model.
Each architecture has a latency floor below which time does not depend on system size, and the floor is 9.0 ms for PaiNN and 115 ms for EquiformerV2. NequIP, MACE, Allegro and UMA fall between 19 and 28 ms, and EquiformerV3 reaches 54 ms. The floor is read as the cost of GPU kernel launches and data transfers, so PaiNN has the shortest floor and EquiformerV2 the longest.
For few-hundred-atom slabs the latency floor dominates, and MACE, PaiNN and NequIP have the lowest marginal per-atom cost in that regime, while UMA, EquiformerV3, Allegro and EquiformerV2 scale more steeply.
Peak GPU memory grows linearly with atom count for every model, and PaiNN, NequIP and MACE keep the lowest footprints. PaiNN, NequIP and MACE also show higher sustained throughput, while UMA, EquiformerV3 and PaiNN have lower force MAE than NequIP, MACE, Allegro and EquiformerV2 in the same comparison.
Compared with plane-wave DFT in VASP with the RPBE functional on 64 CPU cores, the models run from three to six orders of magnitude faster, and the gap widens with size in the extrapolated DFT region. Speed differs by up to 10 times between the fastest and slowest architecture.
Multi-GPU training and LAMMPS inference
Training on MPtrj was run on 1 to 16 NVIDIA A100 GPUs with one MPI rank per GPU and a fixed per-device batch size. Across 16 GPUs, individual architectures reached speedups between 10.5 and 13.7, with parallel training efficiency from 65.7% to 86.0%. Aggregate throughput on 16 GPUs ranged from 323 to 3,892 structures per second depending on the architecture.
Profiling one training iteration showed that graph evaluation, neighbour-list building and gradient synchronization dominate the overhead.
For LAMMPS inference, a PaiNN foundation potential was run through pair style iann/multi gpu on thermally rattled FCC Cu supercells across 1 to 8 A100 GPUs with 80 GB. Below about 5000 atoms, eight GPUs gave no gain, and one or two GPUs ran slower than the serial baseline because each rank evaluates extended ghost-atom buffers. Beyond two GPUs, large systems ran faster than the serial baseline.
For an 864-atom supercell, eight-GPU parallel efficiency falls below 20%, while above about 23k atoms it is about 50%. Around 30k atoms, eight-GPU throughput reaches about 5 times that of single-GPU parallel execution and 3 times that of the serial baseline.
Maximum capacity grows with GPU count: 25,000 atoms fit on one GPU and 200,000 on eight GPUs.
Limitations
The foundation models inherit the DFT parameters of their training data, so absolute energies do not transfer across exchange-correlation functionals, which is why the models are organized by functional.
Outlier filtering makes the curated databases unsuitable for direct comparison with published literature, because the removed structures are often the most physically demanding; uncurated sources should be used for that purpose.
Paper info
- Authors
- Changzhi Ai, Xueping Qin, Dimosthenis Sokaras, Frank Abild-Pedersen, Johannes Voss
- Venue
- arXiv · Preprint
- First published
- 2026-11-15
- Added
- 2026-11-17
- Updated
- 2026-11-15
- Version
- v1
- arXiv
- 2611.19793
- Category
- cond-mat.mtrl-sci · cs.LG · physics.comp-ph
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Machine-learning interatomic potentials (MLIPs) now approach density functional theory (DFT) accuracy at a fraction of its cost, but the practical benefit is limited by software fragmentation: each state-of-the-art architecture is released as a separate codebase, with its own data format, configuration system, training loop and molecular-dynamics interface. Comparing two architectures on the same dataset, or moving a trained model into a production simulation, therefore requires substantial re-engineering. We introduce IANN (InterAtomic Neural Network), an open-source PyTorch framework that reimplements equivariant graph neural networks - PaiNN, NequIP, MACE, Allegro, EquiformerV2, EquiformerV3 and UMA - behind a unified data object, a unified trainer and a single deployment route, so that the architecture is a one-word change in a configuration dictionary. Forces, stresses and virials are obtained for every architecture from one analytic differentiation of the energy with respect to the edge vectors of the atomic graph, exact under periodic boundary conditions. Distributed training is configured automatically from the SLURM, PBS or MPI environment, so the same script runs unchanged from a workstation to a multi-node GPU allocation. Self-describing checkpoints serve directly as ASE calculators, as ensembles reporting uncertainties, or as TorchScript models run inside LAMMPS through bundled C++ pair styles with single- and multi-GPU inference. Trained on a common dataset of millions of structures, the architectures can be compared under identical conditions. We further release PaiNN foundation models trained on 41.9 million curated DFT structures from MPtrj, Alexandria, OMat24, MatPES, OC20, OC22, OC25, MPr2SCAN and MatPESr2SCAN, spanning the PBE, RPBE and r2SCAN functionals. Additionally, IANN provides an agent interface to facilitate integration with autonomous agents.
Quote from the paper
Changzhi Ai, Xueping Qin, Dimosthenis Sokaras, Frank Abild-Pedersen, Johannes Voss (2026). IANN: A Unified Framework for Equivariant InterAtomic Neural Networks with User-Friendly Implementation. arXiv:2611.19793v1. https://arxiv.org/abs/2611.19793v1
BibTeX
@misc{ai2026iann,
title = {{IANN: A Unified Framework for Equivariant InterAtomic Neural Networks with User-Friendly Implementation}},
author = {Changzhi Ai and Xueping Qin and Dimosthenis Sokaras and Frank Abild-Pedersen and Johannes Voss},
year = {2026},
eprint = {2611.19793},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.19793v1}
}