arXiv:2611.06122cs.DCNov 2026

Manuscript Offprint

arXiv:2611.06122

Ab Initio Accuracy Beyond the Cutoff: Distributed Message-Passing Equivariant Attention at Tens-of-Millions-of-Atom Scale

Allex Kan, Ji Zhang, Hao Yin, Hao Li, Owen Fu, Xunxing Chen, Lin Huang, Zion Wang, Lucas Li, Jiajun Cheng, Arthur Jiang, Junping Zhao, Jia Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Allex Kan, Ji Zhang, Hao Yin, Hao Li, Owen Fu, Xunxing Chen, Lin Huang, Zion Wang, Lucas Li, Jiajun Cheng, Arthur Jiang ∗^{*}, Junping Zhao ∗^{*}, and Jia Zhang ∗^{*}

IQuest Research, UBio Team and HPC Team, China

Molecular dynamics predicts how molecules move and interact by computing the force on every atom and integrating its motion. Density functional theory supplies those forces from first principles, but its O(N3)O(N^3) cost stops at thousands of atoms; empirical force fields reach millions and miss bond breaking and charge transfer. Message-passing equivariant Transformers regress the ab initio surface at linear cost, and their stacked layers carry information past any single cutoff, compounding four layers into a receptive field of up to 23 Å. That is where the accuracy frontier now sits. Getting there at scale is a communication problem: every layer exchanges boundary features across devices, the conservative force repeats that exchange in the backward pass, and the neighbor graph is re-derived from moving atoms, so tensor shapes keep changing under a runtime that would rather capture them once. We present TESSERA, a distributed runtime that holds the workload's shape fixed between rebuilds. It sorts atoms along a space-filling curve and cuts the sorted order into equal-count shards: every rank holds the same number of atoms, every tensor has one shape, and each rank's peer set grows sublinearly, roughly as K0.5K^{0.5} rather than K over the device counts we measure. A conservative neighbor skin keeps that topology valid across many coordinate updates, so the forward and backward passes of an entire rebuild interval replay as one captured CUDA Graph. Fused kernels, a three-level neighbor search, and an overlapped All-to-All complete it. On 512 GPUs TESSERA sustains 30.7M atoms at 89.7% weak-scaling efficiency (77–90% across three per-GPU loads), with per-step time rising 1.11–1.29×1.11–1.29\times as machine and problem grow 16×16\times. Graph reuse cuts full-step time 1.87×1.87\times, and neighbor-search cost grows 1.7×1.7\times over an 8×8\times device increase where a Morton-order baseline grows 3.0×3.0\times. On a live 10.24M-atom salt solution, energy drift stays at 0.42 μeV/atom/ps0.42\ \mu\text{eV/atom/ps} over 10 ps of NVE, and structure matches a serial reference. A 10.06M-atom Norovirus capsid then holds a 100 ps NVT trajectory at ≈8\approx 8 ps/day on 256 A100 GPUs, with no broken bonds, no anomalously close pairs, and only three compiled variants across 200,000 steps—no graph break, no fallback to eager execution.

Keywords: molecular dynamics; equivariant graph neural networks; distributed systems; CUDA Graphs; space-filling curves; neighbor search

1 INTRODUCTION

Some computations are hard to distribute for a reason that arithmetic alone does not explain: the data they need is not where they compute. Predicting the force on every atom is one of them, and it is where molecular simulation begins.

Atoms are not independent. An atom's force is set by its whole environment: electrostatic interactions decay slowly, and the effects that decide chemical behaviour—polarization, charge transfer, the making and breaking of bonds—are neither pairwise nor confined to a few neighbours. The energy is therefore a function of the entire configuration, and it admits no division into independent per-atom problems that keeps those effects.

For any machine that computes it, two consequences follow. The work is global: each atom's evaluation gathers information from around it, so pulling the system apart across K machines does not pull the dependency apart with it. Data has to cross whatever boundary the machine imposes, and the further the physics reaches, the more of it has to move. The pattern is also not fixed. Positions change every step, so which atoms depend on which changes with them, and a plan built for one configuration cannot be assumed valid for the next.

The systems where this matters most are the solvated, charged ones: salt solutions, electrolyte interfaces, ion channels, the binding of a ligand to a protein. There, polarization and charge transfer reach past any single cutoff, and a model that stops at one cutoff cannot represent them. Those systems also have to be large, because the interface, the pore and the binding site are properties of a whole assembly rather than of a few hundred atoms.

∗^{*}Corresponding authors: arthursjiang@questlab.com, zhaojp@gmail.com, jialrs.z@questlab.com. The authors above are listed in random order.

Figure

Fig. 1. Overview of the algorithm-system co-design. a, Equal-count cut of a 1D space-filling-curve order (Hilbert shown), giving invariant tensor shapes and a peer set growing as roughly K0.5K^{0.5} rather than KK. b, Per-GPU E2Former V2 stack: sparse neighbor gather, Clebsch–Gordan tensor products, equivariant attention over irreps up to lmax⁡l_{\max}, stacked to a 23 Å receptive field. c, Three-level neighbor filter—AABB, balanced chunking, exact FAISS search, conservative throughout—with cross-step cache. d, Communication and compute on separate streams, the overlapped All-to-All hidden under local work in both passes. e, Per-rank on-GPU integration (Velocity–Verlet, autograd forces Fi=−∂E/∂riF_i = -\partial E/\partial r_i), synchronizing a fixed handful of scalars, re-partitioning every 100 steps. f, Measured weak scaling against the ideal linear reference (Fig. 12).

Empirical force fields have long been the practical answer. Their force law is cheap: fixed partial charges, bonded springs and torsions, a fitted van der Waals term. That cheapness carries the method far—a single GPU holds millions of atoms, and a distributed run reaches a hundred million [1, 41]—which is why classical MD became the default rather than a compromise. What the force law cannot do is change. Charges do not polarize, bonds do not break, and charge transfer never happens, so the model is wrong wherever the chemistry is interesting. Nor is the size of that error known in advance for a new system, which matters because the quantities that decide a biological outcome—a conformational free-energy difference, an ion-selectivity ratio—are often smaller than the error itself [14].

Ab initio methods, density functional theory among them [21], supply the missing physics at a cost that grows as O(N3)O(N^3): in practice they stop at hundreds to a few thousand atoms, too small to hold a solvated interface and too slow to follow one for long.

Machine-learning force fields are the route that has worked [5, 35, 43, 4, 3]. They regress the abab initio energy surface and evaluate it at a cost linear in atom count, and the strictly local ones have taken that to a hundred million atoms: Deep Potential MD’s Gordon-Bell-winning Summit run [17, 50] confines each atom’s energy to its own cutoff ball, 6 and 8 Å for water and copper, and Allegro uses cutoffs as short as 4 Å in some benchmarks, forgoing message passing by design [25]. The choice buys scale at the cost of the property the physics needs: information never travels the molecular graph, so a learned feature never propagates past a single cutoff [11, 49, 20].

Message-passing equivariant Transformers restore the propagation [24, 39, 46]. Stacked finite-radius attention compounds radii, so a few layers reach 20 Å and beyond, 23 Å in the stack used here, and this class now sets the accuracy frontier in molecular simulation. It is also the class the argument above bites hardest on: the further a model reaches into the system, the more of it each evaluation needs, and the more communication the machine must carry. To our knowledge, no published system has taken the class past tens of GPUs; the closest, SevenNet [29], reports 32.

This paper asks a single question. How can we propagate graph attention across a live molecular graph at tens-of-millions-of-atom scale without letting communication and variable topologies dominate the step? Three difficulties stand in the way, one per layer of the stack.

Acceleration-hostile equivariant operators. Accuracy hinges on E(3)E(3)-equivariant Transformers, which keep forces rotating with the system. Their components—Clebsch–Gordan tensor products, radial-basis encodings, equivariant gating—match neither the dense kernels FlashAttention [9] targets nor the BF16 precision it assumes. Single-GPU efficiency therefore has to be rebuilt from custom kernels.

A decomposition that carries its own cost. Ten million atoms exceed any single node, so the graph must be cut, yet cutting it does not make the per-layer exchange small. The graph is also the physical configuration itself. Nobody partitions it offline, once, the way a training pipeline partitions a dataset. Topology, neighbor lists, and plan are therefore re-derived from live coordinates mid-trajectory.

Recapture on the critical path. Every re-derivation changes edge counts, which is what forbids replay. Conservative forces make the recapture expensive, because the full forward–backward execution is the step. There is no smaller unit to fall back on.

Adjacent systems each address a subset. LLM training scales to thousands of GPUs [27], but over dense, statically shaped collectives whose routing is fixed for the run. Classical domain decomposition [32, 41] assumes shape-flexible updates that a CUDA Graph cannot tolerate. Distributed GNN training [51, 18] partitions a fixed graph once, where ours is re-derived from moving coordinates every step. The equivariant models that reach biomolecular size do so by forgoing propagation [26]. Universal MLFFs such as UMA are released for single-GPU inference [47], with no distributed runtime reported.

No single optimization suffices. The three difficulties sit at different layers of the stack, and a fix at one pays off only if the others cooperate. We therefore treat the model and the distributed runtime as one object of design, an algorithm–system co-design resting on a common foundation: how atoms are placed on devices. Standard rules force a choice there. Equal-volume cells bound each rank to 26 neighbouring cells, 27 with its own, but counts drift with density, and every tensor shape with them. Equal atom shares give exact counts but ignore geometry, so they destroy locality and leave per-edge work unbalanced. One construction avoids the choice. Quantize atomic coordinates onto a space-filling curve [37], sort, and cut the sorted list into equal-count contiguous segments, one per rank. The cut fixes per-rank counts, and with them every node-indexed tensor shape; edge-indexed tensors and the exchange plan are pinned separately by the rebuild epoch. The curve then confines each segment's neighbors to a set of adjacent subdomains that grows far more slowly than the machine. At 25k atoms per GPU the heaviest rank requests candidates from 6, 11, 14, and 19 source ranks at 64, 128, 256, and 512 GPUs, an exponent near 0.5 rather than 1 (Section 3.2). The confinement is tight for Hilbert, where Z-order shards fragment.

Two further leverage points come from the physics. At 300 K, hydrogen moves about 0.1 Å between one rebuild and the next, well inside the 0.25 Å displacement trigger that the 0.5 Å skin allows, and about 1 Å over the 50 fs between re-partitions, small against the ~67 Å subdomain. A molecular graph's topology therefore outlives its geometry on two clocks: nine steps in ten reuse the edge set and the communication plan, and the partition is re-cut only every hundred steps. Neither reuse stands alone. A rebuild turns over the edge shapes, so every rank must rebuild on the same step. An all_reduce(MAX) over local triggers agrees that step, which keeps the exchange plans mutually consistent and the captured graph valid. Partition, neighbor search, and graph capture hold or fail together.

Propagation is not a design preference here: the distributed cost follows from the model class, not from one implementation choice (Section 2.1).

We call this runtime TESSERA, after the mosaic tile.¹ Figure 1 traces one step through it, from the equal-count partition to the decentralized integrator. The four contributions below build it from the bottom up, kernels to trajectory.

High-performance equivariant kernels. A unified MCH layout, dual CSR/CSC indexing, and deep operator fusion in custom Triton kernels, together with torch.compile, reduce step latency 2.6× and peak memory 4.4× on

¹A tessera is a small block, cut to the same size as its neighbours and laid beside them so that many make a whole; it has fixed faces and a definite boundary; and in Rome it was also a token a messenger carried, telling the next person what to do. The design has one of each: the equal-count shards are the blocks, the fixed tensor shapes are their faces, and the epoch every rank agrees on before a rebuild is the token.

a 10k-atom single-GPU ablation; adding TF32 and recomputation brings these to 3.2× and 9.2×, at the accuracy cost Section 4 characterizes.

Live-graph decomposition with topology reuse. An equal-count space-filling-curve cut fixes every rank's atom count and keeps its shard local, supplying static shapes and a peer set that grows as roughly K0.5K^{0.5} rather than KK. A conservative AABB/chunking/FAISS [19] hierarchy then rebuilds the graph from live coordinates at ∑iQiCi\sum_i Q_i C_i rather than QlocCcandQ_{loc}C_{cand} cost. Separating reusable topology from per-step geometry cuts neighbor cost by an order of magnitude at 512 GPUs, and its growth over an 8× device increase falls to 1.7×, against 3.0× for a Morton-order all-gather baseline.

Sparse, overlapped, decentralized communication. Plan reuse, sender-side SKV projection, and a pre-registered buffer pool strip non-payload overhead. Paired pre/post autograd operators keep the exchange hidden in both passes, worth 84.7% against 72.9% efficiency at 512 GPUs. An on-GPU decentralized engine replaces the rank-0 scatter/reduce loop with a constant-payload barrier.

Demonstration and validation at scale. TESSERA sustains the full force-evaluation step (forward, exchange, autograd backward) at 30.7M atoms on 512 GPUs at 89.7% weak-scaling efficiency. Per-step time rises 1.11–1.29× across a 16× growth in machine and problem. On a live 10.24M-atom trajectory it holds energy drift to 0.42 µeV/atom/ps and matches the serial reference's structure. A matched pair against a 10.06M-atom Norovirus capsid (protein-dense against water) then locates the cost of an atom-count cut: 13–33% more per step across trajectory phase, 14.5% in the reported window, in edges per atom.

To our knowledge, no prior system has run a message-passing equivariant Transformer at tens of millions of atoms on hundreds of GPUs. The forces are taken as the analytic gradient, over a neighbor graph re-derived from live coordinates, with information propagating along that graph rather than stopping at a single cutoff. The exchange each GPU performs is set by local geometry and grows only slowly with device count, so the exchange cost extends in principle toward billion-atom systems, though the KK- and NN-dependent terms of Section 6 still grow.

Roadmap. Section 2 supplies the background the rest assumes. It covers equivariant message passing and the receptive-field arithmetic, the conservative-force path and why it doubles the exchange, why static graph execution is fragile, and the three requirements a partition must satisfy. Section 3 develops the co-design against them. Section 4 evaluates it, Section 5 positions it, and Section 6 states what the measurements do and do not establish. The derivations the argument turns on—the overlap bound, the local-neighbor fraction, the payload and plan-reuse arithmetic, and the cache exactness invariant—are developed in place, in the sections that use them.

References (47)