# IANN: A Unified Framework for Equivariant InterAtomic Neural Networks with User-Friendly Implementation

Changzhi Ai, Xueping Qin, Dimosthenis Sokaras, Frank Abild-Pedersen, Johannes Voss · arXiv · 2026-11-15

- **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](https://refivu.com/papers/4c633944-8862-4ee4-bd77-a5c9f417f6fd/figures/figure-d86c6b7b86ee1d757238aea06647e0df.png?thumb=512)

**Figure 2** : The underlying mechanism: a shared graph convention, a unified data object, and a

[Original paper](https://arxiv.org/abs/2611.19793v1) · [CC BY 4.0](https://creativecommons.org/licenses/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](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.19793v1) · [PDF ↗](https://arxiv.org/pdf/2611.19793v1)

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}
}
```

## Related papers

- [HuggingFace's Transformers: State-of-the-art Natural Language Processing](https://refivu.com/en/papers/226edb36-2edb-4a96-aca3-9909969cdf23-huggingface-s-transformers-state-of-the-art-natural.md)
- [Graph Neural Networks for Social Recommendation](https://refivu.com/en/papers/3f172e45-3e51-4657-9b43-76ed2fb286e9-graph-neural-networks-for-social-recommendation.md)
- [A Cost-Sensitive Deep Belief Network for Imbalanced Classification](https://refivu.com/en/papers/140fac18-43ea-4f02-a761-0549f84a0de3-a-cost-sensitive-deep-belief-network-for-imbalanced.md)
- [A Survey on Deep Learning in Medical Image Analysis](https://refivu.com/en/papers/4d173b56-9ea6-4644-98f2-af1794e63965-a-survey-on-deep-learning-in-medical-image.md)
- [AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias](https://refivu.com/en/papers/2f8b2e40-a990-42ac-bf4e-2865e4425590-ai-fairness-360-an-extensible-toolkit-for-detecting.md)

## Other paper commentary

- [Multi-Branch Transformer](https://refivu.com/en/papers/41db7368-f02a-4b93-a29d-688fd514713c-multi-branch-transformer.md)
- [Synthetic Neurosymbolic Task Generation with Controlled Constraint Complexity](https://refivu.com/en/papers/ebe4fa7e-eeaf-4ae2-b493-81d2f69199e5-synthetic-neurosymbolic-task-generation-with-controlled.md)
- [Joint Learning of Factual and Counterfactual Worlds for Causal Prior-data Fitted Networks](https://refivu.com/en/papers/ca05fe75-c727-4e23-8b7e-a0a51814ae5a-joint-learning-of-factual-and-counterfactual-worlds-for.md)
- [Emulating physics-based XCO2 retrievals across OCO-2 viewing modes with compact neural networks](https://refivu.com/en/papers/6eac8a41-4497-46c1-a78e-3b47e416ce0a-emulating-physics-based-xco2-retrievals-across-oco-2.md)
- [Deep Convolutional Networks on Graph-Structured Data](https://refivu.com/en/papers/b94a76bd-69b6-41d9-9dc2-a50ec07493aa-deep-convolutional-networks-on-graph-structured-data.md)
- [Pixel Recurrent Neural Networks](https://refivu.com/en/papers/d5d56398-b505-4053-bf0e-8b169a060e49-pixel-recurrent-neural-networks.md)
- [CRAFT: A Robot-Agent Harness with Scope-Aware Adaptation](https://refivu.com/en/papers/c797340e-3e38-4c1f-9503-2964c92d5483-craft-a-robot-agent-harness-with-scope-aware.md)
- [Federated Dataset Simulation: Inducing Label-Free Heterogeneity Across Tasks](https://refivu.com/en/papers/252a256c-3f31-41ed-80f8-62136c1bbf94-federated-dataset-simulation-inducing-label-free.md)
- [Passable for Whom? Few-Shot Personal Calibration of Sidewalk Accessibility Perception](https://refivu.com/en/papers/8e01f6e0-6ab3-454b-acb5-8a954617489e-passable-for-whom-few-shot-personal-calibration-of.md)
- [Reasoning in the loop: antibody lead optimization by probing mechanism and measurement](https://refivu.com/en/papers/ba413fe7-f8ea-4c82-bd3e-43f168752ec8-reasoning-in-the-loop-antibody-lead-optimization-by.md)
- [What Matters for Cross-Modal Alignment](https://refivu.com/en/papers/2a5e4b8b-c8b8-418e-8252-327694bf779f-what-matters-for-cross-modal-alignment.md)
- [Where the Error Lives: Separating Lid-Edge and Body-Induced Error in Neural Pressure Prediction for 3D Cavity Flow](https://refivu.com/en/papers/2e970d62-2671-432f-b2c0-c9fe11dfa6e8-where-the-error-lives-separating-lid-edge-and.md)

## Terms in this paper

- [message passing](https://refivu.com/en/terms/c23dc317d0c9-message-passing)
- [foundation models](https://refivu.com/en/terms/548589462795-foundation-models)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/4c633944-8862-4ee4-bd77-a5c9f417f6fd-iann-a-unified-framework-for-equivariant-interatomic-neural)
