WorksComputer Science
TrimSO(2): Fast and Memory-Efficient Training of Equivariant Interatomic Potentials
Abstract
Equivariant interatomic potentials enable accurate and efficient simulations of molecules and materials. Among them, models based on SO(2) convolutions reduce the cost of tensor products and achieve state-of-the-art accuracy, but their training remains time-consuming and memory-intensive. Existing training implementations materialize large edge tensors for representation transformations surrounding dense matrix multiplications, increasing memory usage and data movement. We observe that these transformations can be integrated into the model's existing dataflow, avoiding separate intermediate materialization. We introduce TrimSO(2), a fast and memory-efficient algorithm for SO(2)-based equivariant models. It realizes this principle through rotation on gather, recombination with activation, and inverse rotation on reduction, with support for the higher-order differentiation required for training. By avoiding intermediate materialization, TrimSO(2) delivers 2.71-16.73 operator speedups across forward, backward, and double backward and reduces model-level high-bandwidth memory traffic by 3.81-9.88. Finally, TrimSO(2) achieves 2.07-2.94 training speedups and 1.53-3.16 reductions in peak training memory over PyTorch implementations for official eSEN, UMA, and EquiformerV3 workloads on A100 and H100 GPUs.
Introduction
Machine learning interatomic potentials learn atomic interactions from quantum mechanical data, enabling accurate and efficient molecular and materials simulations (Unke et al., 2021). To improve accuracy, leading models exploit the rotational symmetry of atomic systems: energies are invariant to rotations, while forces transform equivariantly [3]. Equivariant neural networks extend this symmetry to their internal representations (Thomas et al., 2018). Their features include scalars, vectors, and higher-order geometric tensors that carry directional information between layers while obeying the corresponding rotation laws [12]. Models using these representations have demonstrated high data efficiency and state-of-the-art accuracy on molecular and materials benchmarks [3, 2, 18].
Mainstream equivariant architectures combine SO(3) representations through tensor products, whose computational cost can scale as with the maximum representation degree [22]. This computational cost makes training expensive, motivating progress in algorithm design as well as systems optimization. On the algorithmic side, eSCN reduces this cost to by reformulating SO(3) convolutions as SO(2) convolutions in local edge frames [22]. This formulation enables models to scale to higher-degree representations and further improve accuracy [18]. On the systems side, OpenEquivariance and FlashTP accelerate SO(3) tensor products through optimized GPU implementations, achieving model-level speedups [4, 14]. However, systems optimizations tailored to the training of SO(2)-based models remain limited, leaving the practical benefits of their lower algorithmic complexity only partially realized.
In models, tensor products are conducted in local edge frames, replacing sparse contractions with efficient dense matrix multiplications. This reformulation introduces three representation transformations around the dense matrix products: node features must be rotated into local edge frames, matrix-product outputs must be recombined through additions and subtractions, and edge messages must be rotated back to the global frame [22]. Existing training implementations materialize large intermediate edge tensors when performing these transformations, requiring repeated writes and reads that increase memory usage and data movement. The higher-order derivatives required for training machine learning interatomic potentials [11, 14, 4] further extend the lifetimes of intermediate values retained for differentiation, increasing storage demands.
We observe that these representation transformations can be performed as part of the model’s existing dataflow, avoiding separate writes and reads of their intermediate results. We introduce TrimSO(2), a fast and memory-efficient algorithm for -based equivariant models. This design extends across energy evaluation, force differentiation, and loss backpropagation, improving training efficiency while preserving the model’s original computational formulation. Across eSEN [11], UMA (Wood et al., 2026), and EquiformerV3 [19] on A100 and H100 GPUs, TrimSO(2) achieves 3.81–9.88× reductions in HBM traffic, 2.07–2.94× training speedups, and 1.53–3.16× reductions in peak training memory over official PyTorch implementations.
TrimSO(2) integrates these transformations into the model’s training dataflow through three corresponding strategies:
Rotation on gather. For each edge-feature tile, we gather the required node features and rotate them directly into the matrix-product input layout, avoiding a separate tensor of gathered edge features.
Recombination with activation. For each edge-feature tile, we load the matrix-product outputs, perform recombination, and immediately apply the activation, avoiding a separate recombined edge tensor.
Inverse rotation on reduction. For each node-output tile, we inverse-rotate incoming edge messages and accumulate their contributions on chip before writing the result, avoiding a separate tensor of global-frame edge messages.
Background
Equivariant representations. Equivariant interatomic potentials encode directional information in atomic features that transform under three-dimensional rotations [3] (Thomas et al. 2018). Features are organized by degree , with angular components per channel. A Wigner rotation matrix mixes these components within each degree and acts identically on all channels. With channels and maximum representation degree , a node feature is , where . These rotation rules allow features to be expressed in different coordinate frames while describing the same atomic environment.
convolutions. convolutions reduce the tensor-product computation by aligning a local coordinate frame with each edge [22]. Rotations about the aligned axis form , under which components with matching angular orders can be mixed across degrees and channels. This permits dense matrix products for each order. In a real-valued basis, the positive and negative components of a nonzero order are paired. For each , let and collect the components of orders and , with one edge per row and degree and channel indices in the columns. Applying the two learned weight maps and to both inputs produces four output blocks:
We refer to the additions and subtractions that form the paired-order features and from these product blocks as recombination. These features feed the activation after the first linear layer and inverse rotation after the second.
To use these local computations in an atomic graph, the model gathers neighboring node features and rotates them into each edge frame. For an edge from atom to atom , let denote this rotation. Message generation and aggregation take the form
where applies two SO(2) linear layers with an intervening activation and contains the neighbors of atom . The inverse rotation transforms the messages back to a common global frame before they are summed at the receiving atom. Models may retain only orders locally, setting omitted components to zero before inverse rotation. As shown in Figure 1, SO(2)-based potentials adopt a Transformer-like architecture with stacked blocks, each combining an SO(2) convolution, an equivariant feed-forward network, and residual connections [11, 19] (Wood et al. 2026). See Appendix § 7 for a detailed description.
Figure 1. General architecture of an SO(2)-based interatomic potential. The model predicts energy and obtains forces by differentiating it with respect to atomic positions.
Training of interatomic potentials. The model predicts energy from atomic positions and atom types . Forces follow from , enforcing the conservative relation between energy and force required by the modeled atomic systems [11]. Training on force labels, however, requires differentiating through this energy gradient with respect to the model parameters. For an energy–force objective , the parameter gradient includes a mixed second-derivative term:
Optimizing training therefore requires accounting for all three stages: energy evaluation, force differentiation, and loss backpropagation.
Method
TrimSO(2) reduces storage and data movement by integrating the representation transformations of SO(2) convolutions into the model’s existing dataflow. We preserve the dense matrix products and extend this principle through the backward and double-backward computations required for training. The full implementation also applies the same principle to node-side equivariant feed-forward networks.
Workload analysis
SO(2) convolutions expose dense matrix products that can use optimized GPU routines. For each positive order , Equation (1) multiplies a input by a weight matrix, where is the number of directed edges and are the input and output widths across degrees and channels. Batching edges into rows enables reuse of weights across edges and input features across output channels.
However, the representation transformations introduced by SO(2) convolutions incur storage and data movement overhead. In the upper half of Figure 2, gathering, rotation, recombination, and inverse rotation are separate steps connected by writes to and reads from HBM. For atoms with
Figure 2. TrimSO(2) avoids intermediate HBM accesses by integrating representation transformations into existing dataflow. Top: separate operations materialize edge arrays. Bottom: rotation on gather, recombination with activation, and inverse rotation on reduction keep temporary values on chip. Blue and ochre transfer arrows indicate HBM reads and writes. The bottom arrows show the forward, backward, and double-backward feature dataflows.
-channel node features, gathering expands node values into edge values. The rotated and recombined arrays likewise scale with the number of edges. Efficient matrix products also require four layout conversions between grouping by degree and grouping by order around the two SO(2) linear layers. Each conversion reads and rewrites a complete feature array. Training can further extend the lifetimes of intermediate values retained for differentiation.
Gathering provides the node features needed for rotation, activation consumes recombined product outputs, and reduction sums inverse-rotated messages. These relationships allow each transformation to be combined with the operation that supplies or consumes its features, avoiding separate intermediate arrays while preserving the efficient dense matrix products.
TrimSO(2)
TrimSO(2) combines these pairs of operations into three strategies, shown in the lower half of Figure 2. They follow Node Edge, Edge Edge, and Edge Node dataflows. Two GEMMs connect them through input and output matrices in HBM. Algorithm 1 gives the full forward computation.
Rotation on gather. The first GEMM requires node features in local edge frames. We combine gathering and rotation to construct this input directly, giving the Node Edge dataflow in Figure 2 (lower left). Each edge-feature tile loads features from atoms and contracts them with the required rows of on chip, covering all angular components needed by the contraction. It writes the rotated coefficients directly into in the GEMM input layout, eliminating the gathered edge array and absorbing the conversion from grouping by degree to grouping by order. Compact degree blocks hold only the rotation rows for retained orders .
Recombination with activation. Activation consumes the paired-order features obtained by recombining the first GEMM’s outputs. We perform recombination as part of activation, so these features are consumed before they leave the chip. This gives the Edge Edge dataflow in Figure 2 (lower center). Each tile loads matching entries from the four product blocks, forms and , and applies the activation locally. The tile includes components needed by reductions in . For example, a sigmoid gate scales the recombined features. Writing the activation output directly
Algorithm 1 Forward SO(2) convolution with TrimSO(2)
Notation: indexes an output tile and its required inputs. Loads and stores access HBM. Rotations act per edge and degree.
Rotation on gather:
for all edge–feature tiles in parallel do
▶ GEMM input layout
end for
▶ first SO(2) linear layer
Recombination with activation:
for all edge–feature tiles in parallel do
▶ next GEMM input layout
end for
▶ second SO(2) linear layer
Inverse rotation on reduction:
for all node-output tiles in parallel do
for do
end for
end for
in the next GEMM’s input layout eliminates the recombined array and absorbs the surrounding layout conversions while preserving the order of recombination and activation.
Inverse rotation on reduction. Aggregation sums inverse-rotated messages at each receiving atom. We combine inverse rotation with this reduction, accumulating each message immediately after it is transformed back to the global frame. This gives the Edge Node dataflow in Figure 2 (lower right). We group incoming edges by receiver and assign each node-output tile an on-chip accumulator. For each neighbor , the tile recombines the second GEMM’s product entries into a local message and accumulates using the compact rotation blocks. After all incoming contributions have been accumulated, it writes the node output once. This removes separate local and global message arrays and absorbs the layout conversion before inverse rotation.
Differentiation for training
The feature gradients in backward and double backward follow the same three dataflow patterns. Backward reverses Node Edge to Edge Node and Edge Node to Node Edge, while Edge Edge remains local to each edge, as shown by the arrows below HBM in Figure 2. Writing for an energy derivative and treating omitted local components as zero, the feature gradients of rotation on gather and inverse rotation on reduction are
The first expression accumulates rotated edge contributions into node gradients. The second gathers a node gradient and rotates it for each edge. They therefore follow the same patterns as inverse rotation on reduction and rotation on gather, respectively. Recombination differentiates locally, distributing to the four product blocks with the required signs.
Double backward differentiates these backward computations. Let and be the incoming loss gradients with respect to and , respectively. Along these two feature paths, the loss gradients propagate as
The first expression returns to Node Edge by gathering and rotating node quantities. The second returns to Edge Node by inverse-rotating and accumulating edge contributions. These directions match the double-backward arrows in Figure 2. Edge Edge derivatives continue to act locally. Rotation and parameter derivatives are computed alongside these feature paths, with rotation derivatives propagated to atomic positions.
To evaluate these derivatives, we retain node features, compact rotation blocks, and the required layer inputs, outputs, and incoming gradients. Omitted values are reconstructed from this state within each tile when needed. For example, computing rotation derivatives gathers the saved node features again. This local reconstruction avoids retaining the intermediate edge arrays across training stages. Appendix § 8 gives detailed algorithms and derivative formulas for the three dataflows.
Memory and I/O analysis
For the forward schedule in Figure 2, assume all orders are retained () and all feature widths equal . Table 1 counts the eliminated intermediate arrays, including the four layout conversions. Each array contains elements.
| Dataflow | HBM intermediates (elements): Separate operations | HBM intermediates (elements): TrimSO(2) | Avoided I/O (bytes) |
| Node Edge | 0 | ||
| Edge Edge | 0 | ||
| Edge Node | 0 |
Table 1. Eliminated intermediate storage and logical I/O. Each array incurs one write and one read at bytes per element. Shared GEMM inputs and outputs are excluded.
Removing one write and one read per array avoids
of logical feature accesses per convolution. GEMM inputs and outputs remain in HBM, while temporary feature storage scales as for a tile of edges, independently of .
During differentiation, retained node features occupy elements and allow gathered values to be reconstructed locally, an -fold difference in representation size. Peak-memory savings depend on the lifetimes of all retained arrays, and physical HBM traffic also depends on cache reuse. Appendix § 8.§ 5 details the counts and extends them to unequal widths and retained-order layouts.
Experiments
We evaluate TrimSO(2) in terms of training efficiency and numerical accuracy. We first measure its benefits for training speed, peak memory, and HBM traffic at the model level (§ 4.2). To understand these gains, we examine the contributions of the dataflow optimizations through cumulative ablations (§ 4.3) and analyze operator performance across computation stages and configurations (§ 4.4). Finally, we assess numerical accuracy by comparing outputs, gradients, and training trajectories with the official PyTorch implementations (§ 4.5). Appendix § 9 provides detailed experimental settings and additional results.
Experimental setup
We compare TrimSO(2) with official PyTorch implementations of eSEN (Fu et al. [11]), UMA (Wood et al. (2026)), and EquiformerV3 (Liao et al. [19]) on OMat24 (Barros-Luque et al. [1]), following their official architectures and training settings. Each pair shares random initialization, fixed hyperparameters, and batch sequence. The loss includes energy, forces, and stresses, with forces and stresses obtained by differentiation. We use one A100 80GB or H100 80GB GPU in FP32. Three independent runs each measure 100 post-warmup steps, reporting mean step time and the largest peak allocated memory. Separate Nsight Compute runs measure HBM traffic over energy and force/stress evaluation and loss backpropagation on a fixed batch. Timing runs are uninstrumented. Speedup and reduction factors divide PyTorch measurements by optimized measurements.
End-to-end performance
To test whether avoiding intermediate arrays benefits complete model training, we measure HBM traffic, step time, and peak memory under matched training settings. Figure 3 compares TrimSO(2) with the official implementations, labeled PyTorch. TrimSO(2) achieves 3.81–9.88× reductions in HBM traffic across all three models on both GPUs. Complete training steps, including data processing and parameter updates, are 2.07–2.94× faster, with 1.53–3.16× reductions in peak allocated memory at unchanged batch sizes. Optimizing the dataflow around dense SO(2) products thus improves both training speed and memory efficiency without changing the model architectures.
Figure 3. TrimSO(2) reduces HBM traffic, accelerates training, and lowers peak memory across all three models on A100 and H100.
Ablation study
We examine how training speed and memory savings accumulate as the dataflow optimizations are enabled. Starting from PyTorch, we add Node → Edge, Edge → Edge, and Edge → Node in sequence (Figure 4). These stages correspond to the dataflows in § 3.2. We also extend the design to equivariant feed-forward networks to avoid intermediate materialization within each node. We denote these optimizations by Node → Node (Appendix § 8.§ 4) and add them last to obtain full TrimSO(2). Figure 4 shows that each successive optimization improves training speed and reduces peak memory across all three models.
Figure 4. Cumulative benefits of TrimSO(2) optimizations on A100. Optimizations are added sequentially, showing their contributions to training speedup and peak memory reduction.
Operator performance
We analyze the three dataflows in § 3.2 across forward, backward, and double backward. Inputs are captured from an EquiformerV3 training batch with , 399 nodes, and 17,940 directed edges. The local PyTorch reference follows the official implementation’s operation order and layouts. Both paths share inputs and differentiation directions. We average 30 CUDA-event measurements per stage after warmup, excluding prerequisite computations. Figure 5(a) shows 2.71–16.73× forward speedups, 5.88–9.38× backward speedups, and 5.62–7.24× double-backward speedups. All three operators benefit across the three computation stages.
Figure 5. All three operators run faster than PyTorch across the evaluated stages and configurations. (a) Stage-wise speedups on A100 using captured training inputs. (b) Double-backward speedups on A100 and H100 with synthetic inputs, varying , , , , or .
To assess the effectiveness of our optimizations across a broader range of configurations, we then sweep configurations for double backward, the most time-consuming stage in the measured operator workloads. Using synthetic inputs with the same computation structure, we vary , , , node count , and outgoing edges per node individually. Figure 5(b) shows 2.34–11.06× speedups, demonstrating benefits across angular resolutions, channel widths, and graph workloads.
Numerical accuracy
We compare outputs and gradients with PyTorch to assess numerical accuracy. With shared inputs, relative errors in operator outputs and first and second derivatives are at most against the PyTorch reference. We then compare the three models at a shared random initialization. Relative errors in energy, force, and stress predictions are at most , and parameter-gradient errors are at most .
We next examine how these differences affect training. Loss trajectories remain closely aligned on both GPUs over 100 steps for all three models and 40,000 steps for eSEN (Figure 6), with one long run per implementation on each GPU. Over 40,000 steps, TrimSO(2) retains 2.06× and 1.95× training speedups on A100 and H100, respectively, and a 1.97× reduction in peak memory on both GPUs.
Figure 6. TrimSO(2) and PyTorch follow closely aligned training loss trajectories on both GPUs. (a) Unsmoothed 100-step trajectories for all three models. (b) eSEN over 40,000 steps, shown as non-overlapping 200-step means, with the final 10,000 steps enlarged.
Related Work
Equivariant interatomic potentials. Equivariant interatomic potentials describe directional interactions through geometric message passing and many-body coupling [3, 2], as well as equivariant attention [9, 17] (Thölke & Fabritiis 2022). Local-frame representations (Zitnick et al., 2022) lead to efficient SO(2) convolutions [22] and higher-degree equivariant attention [18]. Recent SO(2)-based models develop this foundation for reliable physical-property prediction [11], broad chemical coverage (Wood et al., 2026), and expressive, efficient attention [19, 15]. TrimSO(2) targets efficient training of these SO(2)-based potentials by optimizing their shared local-frame computations.
Accelerating equivariant models. Accelerating equivariant models has motivated improvements in tensor-product algorithms and GPU implementations. Alternative tensor-product formulations [21, 20] (Xie et al. 2025) and model architectures [23, 16] reduce computational costs. Specialized GPU kernels deliver model-level speedups through sparsity-aware tensor-product computation and fusion [4, 14]. Streaming strategies further reduce intermediate materialization in equivariant attention [13] and SO(3) tensor-product convolutions (Chorąsiewicz & Bény, 2026). FAIRChem also provides Triton kernels for UMA inference.2 TrimSO(2) targets training of existing SO(2)-based models, optimizing forward, backward, and double backward while preserving model architectures and mathematical operations.
Memory-efficient training. Memory-efficient training can avoid storing large intermediate tensors by computing them in tiles and reconstructing values needed for backpropagation, as demonstrated by fused attention algorithms [8, 7, 24]. Related strategies reduce memory traffic in FFT convolutions [10] and avoid full intermediate arrays in pairwise reductions [5] and cross-entropy computation (Wigmans et al., 2025). For graph neural networks, dataflow optimization combines message generation and aggregation to reduce redundant computation and storage (Xie et al., 2022). TrimSO(2) applies this principle to representation transformations, reducing intermediate storage across energy evaluation, force differentiation, and loss backpropagation.
Conclusion
TrimSO(2) avoids intermediate materialization by integrating representation transformations into the model’s dataflow. Across eSEN, UMA, and EquiformerV3 on A100 and H100, it achieves – end-to-end training speedups and – reductions in peak training memory. Outputs, gradients, and training trajectories remain close to the official PyTorch implementations. These results demonstrate that TrimSO(2) improves training efficiency while preserving the mathematical operations of -based equivariant models.
AI Use Statement
We used generative AI tools to assist with drafting and revising the manuscript, including improving paragraph organization, clarity of presentation, and language. The authors take responsibility for the final manuscript and its scientific claims.
Reproducibility Statement
§ 3 describes the dataflow transformations and their differentiation. Appendix § 8 provides detailed algorithms, derivative identities, and memory and I/O calculations. Appendix § 9 documents the model configurations, training data and settings, software versions, hardware, and measurement protocols, together with detailed performance results and numerical comparisons. Our code will be released at https://github.com/HPC-AI-Team/TrimSO2.
SO(2)-based Equivariant Models
Equivariant representations
Equivariant interatomic potentials encode the directional structure of an atomic environment in features that transform with spatial rotations. Preserving this transformation rule through the network allows the model to process directional information while producing a rotation-invariant energy [3] (Thomas et al. 2018).
SO(3) representations organize these features by degree . Degree zero describes scalars, degree one describes vectors, and higher degrees describe higher-order angular patterns. Each degree has angular components, indexed by . With channels carrying independent copies of this representation, atom has a feature block . A spatial rotation acts as
The Wigner rotation matrix mixes angular components within the degree and acts identically on every channel. Collecting degrees gives the full node feature and its block-diagonal rotation matrix,
Each node therefore carries feature values. In the real spherical harmonic basis, the rotation blocks are orthogonal, so transforms the features back to their original frame.
The model updates these features by passing messages along an atomic graph. Let and denote the numbers of atoms and directed edges, and let contain the neighbors that send messages to atom . For an edge from atom to atom , the relative geometry is
where selects a periodic image and is zero for a nonperiodic edge. The distance is rotation-invariant and can determine scalar interaction weights. The direction carries angular information. Real spherical harmonics express this direction in components that transform under the same as the atomic features, allowing the two to be coupled equivariantly.
SO(2) convolutions
SO(2) convolutions perform this directional coupling in local edge frames. The reduction follows from the structure of an SO(3) tensor product, which combines a neighbor’s features with directional harmonics to produce a message. For one input and output channel,
The indices , , and denote input, directional-filter, and output degrees. Clebsch–Gordan coefficients determine how the angular components combine, while learned weights control each degree coupling and may depend on distance and atom types. The general tensor product can have an computational cost as the maximum degree increases [22].
A local frame simplifies the directional harmonics without changing the interaction. Equivariance ensures that rotating both tensor-product inputs rotates the output by the same spatial rotation. The model can therefore compute the message in an aligned frame and transform it back afterward. Let rotate features into a frame where the edge direction lies on the polar axis . In this frame,
where is the order-zero harmonic evaluated at the polar axis. Only the term remains in the directional filter, so the local message becomes
With , the real Clebsch–Gordan coefficients allow only . Positive and negative orders therefore form pairs that do not mix with other orders. After combining the filter-degree contributions, each nonzero-order pair can be transformed using two real weight maps [22]. The paired transformation applies one map to both diagonal components and the other with opposite signs to the cross components. This is the SO(2) structure induced by the edge frame: rotations about its axis mix each order pair in the same way across degrees, permitting learned transformations across degrees and channels within that order.
To express these transformations as matrix products, the model groups features by order. Each matrix has one row per edge and columns indexed by degree and channel. For input and output channel widths and , its widths are
because order occurs at degrees . Let contain the inputs for order . For features from atom , the matrix entries are
Here identifies the edge from to . A layer using both endpoints also constructs the corresponding features from and includes both atoms’ features in its input channels.
For a positive order, write and . The first SO(2) linear layer packs its two weight maps into . A matrix product produces four blocks, whose additions and subtractions form the output pair:
This recombination produces the features passed to the intervening activation. The second SO(2) linear layer uses weights in the same form, with its own input and output widths. Its recombined outputs become the local messages for inverse rotation. For fixed channel widths, the degree-pair count across nonnegative orders is , giving the lower complexity of the SO(2) formulation.
The model may retain only local orders , where . Keeping or omitting both signs together preserves the pair’s transformation under rotations about the edge axis. At channel width , the retained local feature has values, with
Let denote the two SO(2) linear layers and the intervening activation. Their output is expressed in an edge-specific frame. Before aggregation, the model inserts zeros in omitted orders and applies inverse rotation to return every message to a common global frame:
Since , the inverse uses the transpose of the forward rotation matrix. The sum then updates atom with information from its neighbors.
SO(2)-based potentials stack these convolutions in a Transformer-like architecture (Figure 1) [11, 19] (Wood et al. 2026). Each block combines an SO(2) convolution with an equivariant feed-forward network and residual connections. The convolution exchanges information between atoms, while the feed-forward network transforms each atom’s features. Activations in both modules preserve the relevant rotation rules. Stacking blocks expands the atomic environment represented by the features, and an invariant readout maps the final features to the system energy.
Training of interatomic potentials
The resulting model predicts energy from atomic positions and atom types . Predicting forces as enforces their conservative relation to this energy, a physical property important for downstream applications [11]. An energy–force objective combines energy and force errors as .
Training on force labels requires differentiating through the energy gradient. As expressed in Equation (3), the force loss contributes a mixed second derivative with respect to model parameters and atomic positions. Energy evaluation first constructs the computation that predicts . Force differentiation propagates derivatives to the positions while retaining their dependence on the model parameters. Loss backpropagation then differentiates the energy and force errors with respect to those parameters. These three stages determine the forward, backward, and double-backward computations required for training.
Method Details
Node to edge
Rotation on gather constructs the first SO(2) linear layer’s inputs from node features. For each edge from atom to atom , it rotates into the local frame and writes the retained components into the order-grouped matrices . This combines the gather, rotation, and layout conversion in the upper-left part of Figure 2. The rotation representation and the output layout determine which entries each tile reads and writes.
Compact rotation blocks. The full matrix acts independently within each degree, and the local convolution retains only orders . For degree , define the retained order set , with entries. Selecting these rows from the full block, where , gives
Here selects the rows indexed by . Thus contains original entries of , with all global-frame columns but only the required local-frame rows. Figure 7 shows the omitted zeros between degrees and the unused rows within each block.
Figure 7. Compact rotation blocks omit structural zeros and unused angular orders. An enlarged diagonal block highlights the retained rows, which are stored separately for each degree.
The blocks are stored consecutively across degrees, using
entries per edge, instead of for a dense rotation matrix. At and , the block shapes are , , , and , totaling 46 entries instead of 256. The same stored blocks serve rotation on gather, inverse rotation on reduction, and their derivatives.
Writing the GEMM input. The retained rows are labeled by their signed order , while columns retain the global order . At channel width , the first linear layer’s matrix entries are
For each edge tile, the kernel loads node features by the source atom indices, contracts them with , and writes the results directly to degree–channel columns of . No gathered feature array or separate rotated layout is written to HBM. Algorithm 2 makes this indexing explicit.
Differentiation and retained state. Backward propagates energy derivatives to both the node features and the geometry-dependent rotation blocks. For one edge and degree, write the rotation as . Its backward computation gives
where bars denote derivatives of . The contributions to are summed over edges that use atom , giving the Edge Node pattern. Computing gathers the saved again, so the gathered Algorithm 2 Rotation on gather into order-grouped GEMM inputs
Input: Node features , compact rotation blocks , directed edges from to , , , .
Output: for .
for all edge tiles , degrees , and channel tiles in parallel do
for do
▸ degree–channel columns
end for
end for
values need not be retained in addition to the node values. Double backward differentiates these same local products. Its feature path gathers node quantities and rotates them back to edges, as in Equation (5). Since row selection does not depend on atomic positions, derivatives of select the same rows of the corresponding derivatives of . Rotation-gradient contributions therefore use the compact block dimensions before differentiation continues to positions.
Edge to edge
Recombination with activation connects the two SO(2) linear layers. The first GEMM writes product blocks to HBM. The activation requires the paired-order features formed from these blocks, while the second GEMM requires its inputs grouped by order. For an edge , the combined computation is
Here is the model’s activation, as in Algorithm 1, and is the next GEMM’s input. Recombination remains before activation. A tile reads the matching entries of , forms the required features on chip, applies , and writes directly in the next GEMM layout. This removes the recombined array and the activation input and output layouts identified in Figure 2.
An activation can depend on several angular components of the same edge. The tile must include those components or complete the required local reduction before applying the dependent operation. This determines the tile’s extent without introducing a dependency on another edge. Gating provides a concrete instance of this dataflow.
Recombination with a gate. For a nonzero degree, let be a gate preactivation shared by the angular components of channel , and let be the sigmoid function. At one positive order , suppressing the edge, degree, and channel indices gives
Each product block has shape , where . Algorithm 3 loads its degree–channel columns together with the gate and writes only the activated pair. The gate inputs retain their dependence on the model parameters and features.
Algorithm 3 Recombination with gating for a positive order
Input: , gate preactivations , , , .
Output: in the next GEMM’s input layout.
for all edge tiles , degrees , and channel tiles in parallel do
for
end for
Differentiation and local reconstruction. Backward first differentiates the activation and then distributes the resulting derivatives to the product blocks. For one gate shared across the retained orders of a degree and channel,
The angular sum produces one gate derivative for that degree and channel. For each positive-order pair, recombination then gives
The same local calculation regenerates from the saved product blocks when needed. Double backward differentiates the gate products and their angular sum, using and together with the reconstructed features. Recombination only redistributes entries with the signs above. Both derivative stages therefore remain Edge Edge, without retaining the full recombined feature array.
Edge to node
Inverse rotation on reduction completes the convolution by turning the second SO(2) linear layer’s outputs into node updates. Its local messages are formed by recombining that layer’s product blocks. Reusing the compact rotation blocks defined in Section B.1, the output for degree is
The transpose maps retained local components to all global components. It equals , where inserts zeros in unused orders. The compact contraction gives the same result without forming the zero-padded local message or a separate inverse rotation matrix.
Accumulating node outputs. A parallel task owns a node-output tile, keeps its accumulator on chip, and traverses the node’s incoming edges. For each neighbor, it loads the required second-layer product entries, recombines them, and accumulates their inverse-rotated contribution. Only the completed node tile is written to HBM. Thus neither the local messages nor the per-edge global messages are stored, and the layout conversion before inverse rotation is absorbed into the indexed reads of .
Algorithm 4 uses for the second GEMM’s outputs, following Algorithm 1. Its order-zero output is , and positive orders have the four blocks . With output channel width , their widths are and , respectively. Iterating reads an incoming-edge list grouped by receiver. All rotation-row indices below are signed local orders, while indexes a global output component.
Algorithm 4 Inverse rotation on reduction from product blocks
Input: Second-layer blocks and , compact rotations , incoming neighbors , , , , .
Output: for .
for all nodes , degrees , global components , and channel tiles in parallel do
for do
,
for do
for
end for
end for
end for
Differentiation and retained state. Backward gathers the receiving node’s energy derivative and rotates it to each local edge frame. For one edge and degree, the local derivatives are
The derivative is distributed to with the recombination signs in Equation (25). The rotation derivative uses a locally reconstructed , so the complete local-message array is unnecessary. Rotation-gradient contributions from the input and output of the convolution are accumulated in the same compact representation. The feature path in double backward reverses gathering back into a receiver reduction, while derivatives through continue to the edge geometry. Retaining the required product blocks, rotation blocks, and incoming gradients supports these computations without storing global edge messages.
Node to node
The same principle of avoiding intermediate materialization extends to Node Node computations. Equivariant feed-forward networks combine channel transformations with nonlinear operations on each atom’s features. These computations can involve rearranging feature layouts, expanding scalar gates across angular components, or converting harmonic coefficients to and from spherical-grid values. Applying these transformations within the operations that use their results avoids separately materializing the corresponding intermediate arrays. Although node tensors are typically smaller than edge tensors, wide hidden representations can make these savings substantial.
Spherical activations. EquiformerV3’s equivariant feed-forward network provides one such example. Its spherical activations expand each atom’s harmonic coefficients onto a grid before applying nonlinear operations. This expansion can produce large intermediate tensors when the hidden channels are wide. We examine the linear transformations around this expansion to identify which grid intermediates can be avoided.
For this example, write the features of one atom as . Let evaluate the degree- basis at grid points, transform the coefficient channels, and transform the grid channels before the nonlinearity.
Forward computation. In this computation, the grid transform acts on angular components and the channel maps act on channels. Associativity and distributivity therefore allow the channel maps to be composed before grid expansion:
The original order first forms grid features with channels and then projects them to . The reordered computation applies to the coefficients and expands only the resulting channels. It produces the same without the grid intermediate in Figure 8. The composed maps are shared across atoms and remain functions of the original trainable parameters.
Figure 8. Algebraic reordering avoids expanded grid intermediates in the spherical-activation example. The forward comparison is shown on the left, with reordered backward and double-backward computations on the right.
The output side permits the corresponding reordering. Let contain the nonlinear grid values and let project them back to coefficients, including quadrature weights. When a channel map precedes this projection,
The channel map can then be composed with a subsequent coefficient-channel map. Both transformations keep the nonlinearity in its original position.
Backward. The energy derivative arriving at is . Propagating it to the coefficients gives
The original order constructs on the grid. The reordered path first returns to coefficient space and then applies , avoiding the derivative intermediate. The result continues to the preceding node features.
Double backward. Let be the incoming loss gradient along this feature path. Differentiating Equation (30) contributes
Each is transformed in coefficient space and then expanded to the grid, following the reordered forward sequence. This again avoids an intermediate. The resulting gradient continues through the computation of , including the derivative of the nonlinearity.
Gradients of the channel maps. Loss backpropagation also reaches through its uses in forward and backward. For the local computation above, the two contributions are
The first term differentiates the forward map and the second differentiates the coefficient-gradient computation. Their contributions to the original parameters follow by the chain rule:
The node dimension remains independent in all these computations. Feature derivatives return to the same atom, while shared channel-map gradients are summed over atoms.
Storage and I/O counts
The separate-operation schedule stores the output of each transformation before the next operation reads it. We count these allocations individually, including the copies introduced by changes between degree and order layouts. The node input, node output, and the four GEMM input and output matrices are common to both schedules and are excluded from the eliminated intermediates. We count one logical write and one logical read for each eliminated array. Cache hits and repeated operand loads within a kernel are outside this count.
Full-order layouts. Let denote the channel widths at the convolution input, activation input, activation output, and convolution output, respectively. For , the eliminated arrays have the following sizes:
The first row contains the gathered node features and the rotated coefficients before they are written in the first GEMM’s input layout. In the second row, recombination writes one array, its conversion to the activation input layout writes another, and activation writes a third before conversion to the next GEMM layout. The final row contains the second layer’s recombination output, its conversion to the local message layout, and the global messages before aggregation. The four layout copies are thus accounted for once, rather than added again to the eight intermediate allocations.
Writing and reading these arrays gives
At equal widths this becomes . For , , , and FP32, this equals 6.25 GiB of logical feature accesses per convolution. The sum of allocated intermediate elements is .
Retained-order layouts. For , the number of retained angular components is in Equation (16). Gathered node features and global messages still have angular components. If all local-frame intermediate layouts store only the retained coefficients, the six local arrays use in place of , giving
This count assumes that the activation consumes and produces retained-order features. If an intermediate instead uses a full degree layout with zero entries for omitted orders, its term uses . This substitution accounts for the representation actually stored without changing the list of eliminated arrays.
Training state and reconstruction. For rotation on gather, node features occupy elements, whereas their gathered copies occupy . Keeping the node features and edge indices suffices to regenerate the gathered values, removing the need to retain an additional -element copy. Each reconstruction replaces a read of that copy with indexed node-feature reads and local computation. Rotations are retained in the compact blocks described in Section B.1, whose storage is elements instead of for dense matrices.
The feature-gradient paths in Equations (4) and (5) admit the same local treatment. With all orders retained, separately gathering a node gradient before rotation or separately rotating edge contributions before reduction produces an -element array. Combining these operations avoids its allocation and one write–read pair, or logical bytes for that intermediate.
Experimental Details and Additional Results
Experimental setup
Models and training data. We evaluate eSEN [11], UMA (Wood et al., 2026), and EquiformerV3 [19] on OMat24 [1], using their official OMat24 architectures and training settings. Table 2 and Table 3 list the hyperparameters used in our experiments, following the officially released configurations. We use eSEN-30M-OMat, UMA-S-1.2, and the EquiformerV3 configuration. Trainable parameters are randomly initialized according to each model’s initialization rules. Official checkpoints provide the fixed hyperparameters and non-trainable quantities, including reference energies, and are used to verify architecture consistency. The training objective includes energy, forces, and stresses, with forces and stresses obtained by differentiating the predicted energy.
| Hyperparameter | eSEN | UMA | EquiformerV3 |
| Number of layer blocks | 10 | 4 | 7 |
| Maximum degree | 3 | 2 | 4 |
| Maximum order | 2 | 2 | 2 |
| Number of channels | 128 | 128 | 128 |
| FFN hidden channels | 128 | 128 | 512 |
| Radial hidden channels | 128 | 128 | 128 |
| Number of radial basis functions | 64 | 32 | 64 |
| Cutoff radius (Å) | 6 | 6 | 6 |
| Maximum number of neighbors | 300 | 300 | 300 |
| Number of linear experts | — | 64 | — |
| Number of attention heads | — | — | 8 |
| Attention hidden channels | — | — | 32 |
| Attention weight channels | — | — | 64 |
| Value channels per head | — | — | 16 |
| Activation | Gated | Gated | SwiGLU-S |
Table 2. Architecture hyperparameters of the evaluated official models.
| Hyperparameter | eSEN | UMA | EquiformerV3 |
| Batch size per GPU | 8 structures | At most 700 atoms | 16 structures |
| Optimizer | AdamW | AdamW | AdamW |
| Maximum learning rate | |||
| Adam () | (0.9, 0.999) | (0.9, 0.999) | (0.9, 0.98) |
| Adam | |||
| Weight decay | |||
| Learning-rate scheduling | Cosine | Cosine | Cosine |
| Schedule horizon | 2 epochs | steps | 2 epochs |
| Warmup steps | 12,623 | 1 | 6,311 |
| Warmup factor | 0.2 | 0.2 | 0 |
| Minimum learning-rate factor | 0.05 | 0.01 | 0.01 |
| Gradient clipping norm | 100 | 100 | 100 |
| Model EMA decay | 0.999 | 0.999 | 0.999 |
| Energy loss coefficient | 20 | 15 | 20 |
| Force loss coefficient | 20 | 5 | 20 |
| Stress loss coefficient | 5 | 1 | 5 |
| Precision | FP32 | FP32 | FP32 |
Table 3. Training hyperparameters shared by PyTorch and TrimSO(2).
Implementation. Our custom operators are implemented in Triton and exposed through PyTorch interfaces supporting backward and double backward. Dense matrix products use PyTorch’s GPU matrix-multiplication routines. For Node Edge, all three models combine gathering, rotation, and radial scaling into the input layout of the first linear layer. For Edge Edge, eSEN and UMA combine recombination with gated activation, while EquiformerV3 uses its spherical-grid activation. UMA additionally uses system-dependent mixtures of linear experts for its edge projections. For Edge Node, eSEN and UMA sum messages with their cutoff envelopes, while EquiformerV3 applies attention weights before aggregation. Each path incorporates inverse rotation into the reduction. For Node Node, eSEN and UMA fuse operations around their coefficient-space gated FFNs, including normalization and residual updates. EquiformerV3 uses spherical-grid FFNs, whose linear maps are reordered and composed to reduce intermediate expansion. These adaptations preserve each model’s activation and weighting rules.
Hardware and software. PyTorch denotes the official implementation in model experiments and local PyTorch operations following the official operation order and layouts in operator experiments. TrimSO(2) replaces the corresponding computations within the same training pipeline. Each pair shares its initialization, batch sequence, optimizer, exponential moving average (EMA), and learning-rate schedule. All comparisons use a single A100 80GB or H100 80GB GPU in FP32, with TF32 and mixed precision disabled. Table 4 gives the upstream revisions and software versions used for each model.
| Model | Official revision | PyTorch | Triton |
| eSEN | fairchem, 977a8032 | 2.11.0+cu126 | 3.6.0 |
| UMA | fairchem, 802979b9 | 2.8.0+cu128 | 3.4.0 |
| EquiformerV3 | EquiformerV3, a7300c58 | 2.7.1+cu118 | 3.3.1 |
Table 4. Software versions for the official implementations.
Baselines. Our model-level baselines follow the official configurations for training on energy-derived forces, which do not enable torch.compile. Such training requires differentiating through the force computation, but PyTorch’s AOTAutograd does not support double backward through the backward graph it generates (PyTorch issue #91469). NequIP and Allegro address this limitation by tracing the force computation into the forward graph before compilation (Tan et al., 2026). The official implementations used here do not take this route: EquiformerV3 enables compilation for direct-force training but disables it in its official gradient-force configuration on OMat24, UMA compiles only in its inference path, and eSEN trains without compilation. A limitation is the absence of a compiled baseline using NequIP-style tracing. Such a baseline would require model-specific reimplementations beyond the scope of this work, and could be combined with TrimSO(2).
End-to-end performance
Training time and peak memory. We measure the complete training loop, including data loading, device transfers, graph construction, energy and force/stress evaluation, loss backpropagation, gradient clipping, optimizer updates, EMA, and learning-rate updates. After warmup, each run measures 100 consecutive steps, with synchronization only at the beginning and end of the interval. Dividing the elapsed time by 100 gives the average step time for that run. Table 5 reports the mean of these averages, using three independent runs for both implementations.
| GPU | Model | Time (ms/step) PyTorch | Time (ms/step) TrimSO(2) | Memory (GiB) PyTorch | Memory (GiB) TrimSO(2) | Speedup | Memory reduction |
| A100 | eSEN | 653.55 | 315.05 | 34.62 | 17.66 | 2.07× | 1.96× |
| A100 | UMA | 1077.19 | 366.49 | 27.04 | 17.67 | 2.94× | 1.53× |
| A100 | EquiformerV3 | 1249.30 | 441.90 | 70.98 | 22.48 | 2.83× | 3.16× |
| H100 | eSEN | 370.71 | 172.17 | 34.66 | 17.71 | 2.15× | 1.96× |
| H100 | UMA | 629.05 | 244.86 | 27.09 | 17.71 | 2.57× | 1.53× |
| H100 | EquiformerV3 | 606.86 | 246.38 | 71.02 | 22.52 | 2.46× | 3.15× |
Table 5. End-to-end training time and peak allocated memory. Time aggregates three independent runs. Memory is the largest peak across these runs. Speedup and memory reduction are relative to PyTorch.
Each implementation runs in a separate process. After warmup, we release temporary outputs and computation graphs, synchronize, and reset the peak-memory counter before the measured interval. Peak allocated memory includes model parameters, inputs, optimizer states, and live temporary tensors, but excludes unused allocator cache. We report the largest peak across the three runs. At the same batch sizes, TrimSO(2) lowers both step time and peak memory for all three models on both GPUs, yielding the 2.07–2.94× speedups and 1.53–3.16× memory reductions in Figure 3.
Table 5: End-to-end training time and peak allocated memory. Time aggregates three independent runs. Memory is the largest peak across these runs. Speedup and memory reduction are relative to PyTorch.
HBM traffic. For each model, we profile one fixed batch from the shared initial state with Nsight Compute. The capture covers energy evaluation, force/stress differentiation, and loss backpropagation. We sum the DRAM read and write counters over all kernels in this interval to obtain HBM traffic. Data preparation and optimizer updates are outside this capture. CUDA Graph is disabled, and segmented captures are combined only after matching their kernel sequence to an unsegmented trace. All timing results come from separate, uninstrumented runs.
Table 6 gives the absolute traffic underlying Figure 3. 3.81–9.88× reductions in HBM traffic accompany the training-time and memory benefits across the three models. Reduction factors in the figure and tables are the PyTorch measurement divided by the corresponding optimized measurement for the same model and GPU.
| GPU | Model | PyTorch | TrimSO(2) | Reduction (×) |
| A100 | eSEN | 160.29 | 37.84 | 4.24× |
| A100 | UMA | 1071.02 | 108.37 | 9.88× |
| A100 | EquiformerV3 | 913.75 | 198.59 | 4.60× |
| H100 | eSEN | 153.23 | 40.18 | 3.81× |
| H100 | UMA | 1066.33 | 108.56 | 9.82× |
| H100 | EquiformerV3 | 1019.30 | 237.19 | 4.30× |
Table 6. Total HBM reads and writes during energy evaluation, force/stress differentiation, and loss backpropagation for one batch. Traffic is in GiB, and reductions are relative to PyTorch.
Table 6: Total HBM reads and writes during energy evaluation, force/stress differentiation, and loss backpropagation for one batch. Traffic is in GiB, and reductions are relative to PyTorch.
Ablation study
We start from PyTorch and successively enable Node Edge, Edge Edge, and Edge Node optimizations. The final stage adds Node Node optimizations to obtain full TrimSO(2). Each stage retains the preceding optimizations and uses the same initialization, batch sequence, and training settings. Timing and memory follow the protocol above. The PyTorch and full TrimSO(2) rows reuse Table 5, so the endpoints are identical to the end-to-end comparison.
Table 7 provides the absolute measurements behind the A100 results in Figure 4 and the corresponding H100 results. On A100, the three edge stages together give 1.82–2.80× training speedups and 1.52–2.24× reductions in peak memory before the final node optimizations are added. Peak memory decreases at every stage on both GPUs. These measurements show how the reductions accumulate within the same model and training workload.
| Model | Cumulative stage | Time | Memory | Speedup | Memory reduction |
| eSEN | PyTorch | 653.55 | 34.62 | ||
| eSEN | 499.08 | 27.10 | 1.31× | 1.28× | |
| eSEN | 406.14 | 22.76 | 1.61× | 1.52× | |
| eSEN | 330.67 | 17.92 | 1.98× | 1.93× | |
| eSEN | TrimSO(2) | 315.05 | 17.66 | 2.07× | 1.96× |
| UMA | PyTorch | 1077.19 | 27.04 | ||
| UMA | 1007.46 | 22.55 | 1.07× | 1.20× | |
| UMA | 417.04 | 18.84 | 2.58× | 1.44× | |
| UMA | 384.55 | 17.82 | 2.80× | 1.52× | |
| UMA | TrimSO(2) | 366.49 | 17.67 | 2.94× | 1.53× |
| EquiformerV3 | PyTorch | 1249.30 | 70.98 | ||
| EquiformerV3 | 976.16 | 49.70 | 1.28× | 1.43× | |
| EquiformerV3 | 797.50 | 37.72 | 1.57× | 1.88× | |
| EquiformerV3 | 686.16 | 31.63 | 1.82× | 2.24× | |
| EquiformerV3 | TrimSO(2) | 441.90 | 22.48 | 2.83× | 3.16× |
| eSEN | PyTorch | 370.71 | 34.66 | ||
| eSEN | 289.92 | 27.15 | 1.28× | 1.28× | |
| eSEN | 265.17 | 22.80 | 1.40× | 1.52× | |
| eSEN | 196.76 | 17.97 | 1.88× | 1.93× | |
| eSEN | TrimSO(2) | 172.17 | 17.71 | 2.15× | 1.96× |
| UMA | PyTorch | 629.05 | 27.09 | ||
| UMA | 600.91 | 22.59 | 1.05× | 1.20× | |
| UMA | 326.17 | 18.89 | 1.93× | 1.43× | |
| UMA | 238.37 | 17.86 | 2.64× | 1.52× | |
| UMA | TrimSO(2) | 244.86 | 17.71 | 2.57× | 1.53× |
| EquiformerV3 | PyTorch | 606.86 | 71.02 | ||
| EquiformerV3 | 487.96 | 49.74 | 1.24× | 1.43× | |
| EquiformerV3 | 376.88 | 37.77 | 1.61× | 1.88× | |
| EquiformerV3 | 346.79 | 31.67 | 1.75× | 2.24× | |
| EquiformerV3 | TrimSO(2) | 246.38 | 22.52 | 2.46× | 3.15× |
Table 7. Training results as optimizations are added cumulatively. Time is in ms/step and memory is in GiB. Speedup and peak-memory reduction are relative to PyTorch for the same model and GPU.
Operator performance
Workloads and measurement
The three operator boundaries isolate the dataflows around the dense matrix products. Node Edge includes indexed node reads, rotation, edge-coefficient application, and generation of the GEMM input layout. Edge Edge begins at the first GEMM’s output and includes recombination, activation, and layout conversion. Edge Node begins at the second GEMM’s output and includes recombination, inverse rotation, and aggregation at receiving nodes.
The stage-wise measurements use inputs captured from an EquiformerV3 training batch with , , and . Both implementations receive the same captured inputs and differentiation directions. The PyTorch reference reproduces the official operation order and layouts at each boundary.
We measure forward, backward, and double backward separately. Forward computes the outputs and retains the state needed for differentiation. Backward computes derivatives with respect to differentiable boundary inputs, including captured parameter-dependent tensors, and retains the graph needed for double backward. Double backward differentiates these first derivatives with respect to the boundary inputs and incoming output gradients, using shared differentiation directions. Each timed stage starts with its prerequisite computations and graphs already prepared. After warmup, we take 30 CUDA-event measurements per stage and report their mean. Required layout generation and storage are included in the measured computation.
Table 8 supplements Figure 5(a) with absolute latencies and H100 measurements. All three operators are faster than PyTorch in forward, backward, and double backward on both GPUs. The gains therefore cover the computations needed for training, including its higher-order derivatives.
| Dataflow | Stage | A100 PyTorch | A100 TrimSO(2) | A100 Speedup | H100 PyTorch | H100 TrimSO(2) | H100 Speedup |
| Forward | 6.467 | 0.386 | 16.73× | 2.898 | 0.226 | 12.83× | |
| Backward | 17.644 | 2.620 | 6.73× | 5.346 | 1.135 | 4.71× | |
| Double backward | 31.908 | 4.406 | 7.24× | 12.118 | 1.799 | 6.74× | |
| Forward | 1.851 | 0.684 | 2.71× | 1.266 | 0.404 | 3.14× | |
| Backward | 6.184 | 1.051 | 5.88× | 3.638 | 0.639 | 5.69× | |
| Double backward | 11.770 | 1.803 | 6.53× | 7.041 | 1.015 | 6.94× | |
| Forward | 2.513 | 0.376 | 6.69× | 1.188 | 0.241 | 4.93× | |
| Backward | 9.099 | 0.970 | 9.38× | 2.706 | 0.917 | 2.95× | |
| Double backward | 16.368 | 2.910 | 5.62× | 6.454 | 1.840 | 3.51× |
Table 8. Operator latency (ms) and speedup. Each stage is measured separately. Speedups compare PyTorch and TrimSO(2) on the same GPU. Dataflow labels abbreviate nodes and edges as N and E.
Configuration and graph size
The synthetic sweep uses the same operator paths and PyTorch computation structure as the captured-input comparison. Its central configuration is , , and outgoing edges per node, giving . Each node selects distinct targets uniformly from the other nodes. Both implementations share the generated graph, input tensors, and differentiation directions.
Table 9 varies , , and at fixed and . Table 10 varies and at fixed . Each configuration changes one factor, and the two tables reuse the same central measurements. These synthetic central measurements are distinct from the captured-input workload in Table 8. The reported double-backward speedups range from 2.34× to 11.06× across the two GPUs.
| Dataflow | A100 PyTorch | A100 TrimSO(2) | A100 Speedup | H100 PyTorch | H100 TrimSO(2) | H100 Speedup | |
| 4/2/128 | 58.386 | 8.499 | 6.87× | 21.994 | 3.297 | 6.67× | |
| 4/2/128 | 31.435 | 5.006 | 6.28× | 18.587 | 2.629 | 7.07× | |
| 4/2/128 | 29.415 | 5.088 | 5.78× | 11.300 | 3.098 | 3.65× | |
| 2/2/128 | 17.090 | 3.017 | 5.67× | 8.638 | 1.284 | 6.72× | |
| 2/2/128 | 27.549 | 2.490 | 11.06× | 17.616 | 1.620 | 10.87× | |
| 2/2/128 | 10.779 | 2.069 | 5.21× | 5.865 | 1.271 | 4.61× | |
| 3/2/128 | 26.077 | 5.361 | 4.86× | 13.321 | 2.127 | 6.26× | |
| 3/2/128 | 29.342 | 3.867 | 7.59× | 18.034 | 2.252 | 8.01× | |
| 3/2/128 | 16.771 | 3.454 | 4.86× | 8.328 | 2.007 | 4.15× | |
| 5/2/128 | 75.669 | 13.851 | 5.46× | 32.783 | 5.250 | 6.24× | |
| 5/2/128 | 33.119 | 6.319 | 5.24× | 20.509 | 4.318 | 4.75× | |
| 5/2/128 | 34.727 | 7.117 | 4.88× | 15.176 | 4.144 | 3.66× | |
| 6/2/128 | 96.752 | 19.558 | 4.95× | 43.519 | 7.306 | 5.96× | |
| 6/2/128 | 35.552 | 10.673 | 3.33× | 21.773 | 6.968 | 3.12× | |
| 6/2/128 | 41.129 | 10.020 | 4.10× | 18.626 | 5.493 | 3.39× | |
| 4/1/128 | 52.842 | 6.233 | 8.48× | 21.389 | 2.533 | 8.44× | |
| 4/1/128 | 28.235 | 3.357 | 8.41× | 17.372 | 2.143 | 8.11× | |
| Dataflow | A100 PyTorch | A100 TrimSO(2) | A100 Speedup | H100 PyTorch | H100 TrimSO(2) | H100 Speedup | |
| 4/1/128 | E → N | 16.547 | 3.100 | 5.34× | 7.635 | 1.916 | 3.98× |
| 4/3/128 | N → E | 58.965 | 10.355 | 5.69× | 22.351 | 3.759 | 5.95× |
| 4/3/128 | E → E | 34.018 | 5.779 | 5.89× | 20.973 | 3.760 | 5.58× |
| 4/3/128 | E → N | 34.677 | 6.164 | 5.63× | 14.399 | 3.634 | 3.96× |
| 4/4/128 | N → E | 59.917 | 11.251 | 5.33× | 22.646 | 4.045 | 5.60× |
| 4/4/128 | E → E | 36.430 | 7.369 | 4.94× | 22.293 | 4.792 | 4.65× |
| 4/4/128 | E → N | 39.312 | 6.752 | 5.82× | 16.744 | 3.936 | 4.25× |
| 4/2/64 | N → E | 29.233 | 4.762 | 6.14× | 11.064 | 1.957 | 5.65× |
| 4/2/64 | E → E | 16.350 | 2.893 | 5.65× | 10.107 | 2.008 | 5.03× |
| 4/2/64 | E → N | 18.373 | 2.707 | 6.79× | 6.018 | 1.638 | 3.67× |
| 4/2/256 | N → E | 117.145 | 16.780 | 6.98× | 43.615 | 6.035 | 7.23× |
| 4/2/256 | E → E | 63.044 | 10.032 | 6.28× | 38.382 | 6.166 | 6.23× |
| 4/2/256 | E → N | 57.674 | 9.839 | 5.86× | 21.660 | 5.947 | 3.64× |
Table 9. Double-backward latency (ms) and speedup across model dimensions, with and . N and E in dataflow labels denote nodes and edges.
| Dataflow | A100 PyTorch | A100 TrimSO(2) | A100 Speedup | H100 PyTorch | H100 TrimSO(2) | H100 Speedup | |
| 512/64 | N → E | 58.386 | 8.499 | 6.87× | 21.994 | 3.297 | 6.67× |
| 512/64 | E → E | 31.435 | 5.006 | 6.28× | 18.587 | 2.629 | 7.07× |
| 512/64 | E → N | 29.415 | 5.088 | 5.78× | 11.300 | 3.098 | 3.65× |
| 128/64 | N → E | 14.612 | 2.097 | 6.97× | 5.625 | 0.841 | 6.69× |
| 128/64 | E → E | 8.122 | 1.341 | 6.06× | 5.132 | 0.907 | 5.66× |
| 128/64 | E → N | 7.747 | 1.431 | 5.42× | 3.161 | 1.353 | 2.34× |
| 256/64 | N → E | 29.108 | 4.191 | 6.94× | 11.083 | 1.670 | 6.64× |
| 256/64 | E → E | 15.960 | 2.559 | 6.24× | 9.956 | 1.669 | 5.96× |
| 256/64 | E → N | 14.978 | 2.685 | 5.58× | 5.931 | 1.608 | 3.69× |
| 1,024/64 | N → E | 117.972 | 17.497 | 6.74× | 43.974 | 6.587 | 6.68× |
| 1,024/64 | E → E | 62.808 | 10.065 | 6.24× | 38.485 | 6.169 | 6.24× |
| 1,024/64 | E → N | 58.452 | 9.902 | 5.90× | 22.166 | 6.015 | 3.69× |
| 2,048/64 | N → E | 238.393 | 35.766 | 6.67× | 88.241 | 13.541 | 6.52× |
| 2,048/64 | E → E | 125.770 | 20.180 | 6.23× | 76.779 | 12.150 | 6.32× |
| 2,048/64 | E → N | 116.596 | 19.630 | 5.94× | 43.852 | 11.830 | 3.71× |
| 4,096/64 | E → E | 248.266 | 40.425 | 6.14× | 146.699 | 19.811 | 7.40× |
| 4,096/64 | E → N | 234.986 | 39.570 | 5.94× | 87.409 | 23.430 | 3.73× |
| 512/16 | N → E | 14.660 | 2.169 | 6.76× | 5.636 | 0.869 | 6.48× |
| 512/16 | E → E | 8.103 | 1.334 | 6.07× | 4.891 | 0.770 | 6.35× |
| 512/16 | E → N | 7.754 | 1.384 | 5.60× | 3.178 | 1.257 | 2.53× |
| 512/32 | N → E | 29.158 | 4.284 | 6.81× | 11.072 | 1.672 | 6.62× |
| 512/32 | E → E | 15.933 | 2.555 | 6.23× | 9.482 | 1.398 | 6.78× |
| 512/32 | E → N | 14.998 | 2.616 | 5.73× | 5.950 | 1.647 | 3.61× |
| 512/128 | N → E | 117.768 | 17.568 | 6.70× | 43.884 | 6.553 | 6.70× |
| 512/128 | E → E | 62.704 | 9.979 | 6.28× | 36.765 | 5.124 | 7.18× |
| 512/128 | E → N | 58.383 | 10.134 | 5.76× | 22.166 | 6.067 | 3.65× |
Table 11.
Numerical accuracy
Operator outputs and derivatives
We compare the two implementations on the captured inputs used for stage-wise operator timing, with identical inputs and differentiation directions. Relative error is the norm of the difference divided by the norm of the PyTorch reference. For outputs or derivatives containing multiple tensors, squared differences and squared reference values are summed across the tensors before taking the ratio of their square roots. Table 11 gives the errors for forward, backward, and double backward. Relative errors are at most , showing close agreement throughout the three computation stages.
| GPU | Dataflow | Forward | Backward | Double backward |
| A100 | Edge Edge | 4.33e-09 | 1.96e-08 | 1.09e-07 |
| A100 | Edge Node | 2.76e-07 | 1.60e-07 | 2.06e-07 |
| A100 | Node Edge | 4.57e-09 | 1.43e-07 | 1.98e-07 |
| H100 | Edge Edge | 4.33e-09 | 1.96e-08 | 1.09e-07 |
| H100 | Edge Node | 2.75e-07 | 1.59e-07 | 2.08e-07 |
| H100 | Node Edge | 4.57e-09 | 1.42e-07 | 1.98e-07 |
Table 11 (PDF p. 27). Relative errors in operator outputs and derivatives on the captured training inputs.
Model outputs and parameter gradients
For each model and GPU, we compare one shared random initialization on a fixed batch of the size in Table 3. We hold the graph and weights fixed and compare energy, forces, stresses, and gradients of the energy–force–stress loss with respect to all trainable parameters. Parameter-gradient error is aggregated across parameters using the same relative definition. This comparison includes differentiation through atomic positions and the mixed second derivatives needed to train on forces and stresses.
Table 12 shows that the local agreement carries through to complete models. Output errors are at most , and parameter-gradient errors are at most across all three models and both GPUs.
| GPU | Model | Energy | Forces | Stress | Parameter gradients |
| A100 | eSEN | 1.95e-07 | 9.89e-07 | 9.92e-07 | 6.80e-07 |
| A100 | UMA | 6.66e-08 | 6.09e-07 | 4.90e-07 | 4.12e-07 |
| A100 | EquiformerV3 | 1.24e-07 | 7.14e-07 | 1.19e-06 | 3.98e-07 |
| H100 | eSEN | 2.25e-07 | 9.54e-07 | 1.12e-06 | 8.36e-07 |
| H100 | UMA | 1.05e-07 | 6.20e-07 | 4.46e-07 | 4.19e-07 |
| H100 | EquiformerV3 | 1.68e-07 | 7.80e-07 | 1.46e-06 | 4.10e-07 |
Table 12. Relative errors in model outputs and loss gradients at a shared random initialization.
Short training trajectories
We next compare 100 consecutive training steps for all three models on both GPUs, starting from shared initial parameters and following the same batch sequence, optimizer, EMA, and learning-rate schedule. Figure 6(a) plots the losses without smoothing. Table 13 complements those trajectories with the final parameters, optimizer state, and EMA, as well as the parameter updates relative to initialization.
| GPU | Model | Parameters | Updates | Optimizer state | EMA |
| A100 | eSEN | 3.13e-07 | 1.70e-05 | 1.51e-08 | 3.16e-08 |
| A100 | UMA | 3.39e-06 | 2.50e-05 | 4.34e-09 | 1.49e-07 |
| A100 | EquiformerV3 | 5.05e-09 | 1.16e-05 | 1.64e-08 | 8.77e-10 |
| H100 | eSEN | 2.92e-07 | 1.59e-05 | 1.51e-08 | 2.98e-08 |
| H100 | UMA | 4.53e-06 | 3.34e-05 | 6.28e-09 | 1.54e-07 |
| GPU | Model | Parameters | Updates | Optimizer state | EMA |
| H100 | EquiformerV3 | 5.15e-09 | 1.18e-05 | 1.57e-08 | 8.92e-10 |
Table 13. Relative differences in training states after 100 steps.
For the update comparison, we subtract the initial parameters from each implementation’s final parameters and normalize their difference by the norm of the PyTorch updates. This measures agreement in the updates themselves without letting the scale of the initial parameters dominate the denominator. Relative update differences are at most , and final parameter differences are at most . The training-state comparisons thus support the closely aligned loss trajectories across the three models.
Long training trajectories
To examine agreement beyond the 100-step comparison, we train eSEN for 40,000 steps on each GPU, using one run per implementation, FP32, and eight structures per batch. Each pair shares its initial state and batch sequence. Figure 6(b) shows non-overlapping 200-step loss means and enlarges the final 10,000 steps. Table 14 reports the initial loss before the first parameter update and the final loss averaged over steps 35,001–40,000.
| GPU | Implementation | Initial loss | Final loss | Time | Memory | Speedup | Memory reduction |
| A100 | PyTorch | 19.5021 | 1.5584 | 7.08 | 58.21 | ||
| A100 | TrimSO(2) | 19.5021 | 1.5419 | 3.44 | 29.54 | 2.06× | 1.97× |
| H100 | PyTorch | 19.5021 | 1.5282 | 4.56 | 58.25 | ||
| H100 | TrimSO(2) | 19.5021 | 1.5387 | 2.34 | 29.59 | 1.95× | 1.97× |
Table 14. Loss, training time, and peak allocated memory for 40,000 eSEN steps. Final loss is the mean over the last 5,000 steps. Time is in hours and memory is in GiB.
Training time covers the full 40,000-step loop, including per-step trajectory recording, but excludes initialization and final result saving. Peak allocated memory is measured over all 40,000 steps. The longer run encounters larger samples, leading to higher peak memory than the short benchmark. Nevertheless, the approximately 1.97× memory reduction remains consistent with the short-run reduction of approximately 1.96×. The final losses remain close on both GPUs, consistent with the trajectories in Figure 6(b). The final-loss differences between TrimSO(2) and PyTorch are 1.06% on A100 and 0.69% on H100, both smaller than the approximately 2% difference between the PyTorch runs on the two GPUs (1.5584 versus 1.5282). Over these same long runs, TrimSO(2) achieves 2.06× and 1.95× training speedups on A100 and H100, with 1.97× and 1.97× reductions in peak memory, respectively. The long comparison therefore retains both numerical agreement and the training-efficiency benefits.
References
- [1]Luis Barros-Luque, Muhammed Shuaibi, Xiang Fu, Brandon M Wood, Misko Dzamba, Meng Gao, Ammar Rizvi, Matt Uyttendaele, C Lawrence Zintick, and Zachary W Ulissi. The Open Materials 2024 (OMat24) inorganic materials dataset and models. Nature Computational Science, pp. 1–11, 2026.
- [2]Ilyes Batatia, David P Kovacs, Gregor Simm, Christoph Ortner, and Gábor Csányi. MACE: Higher order equivariant message passing neural networks for fast and accurate force fields. Advances in neural information processing systems, 35:11423–11436, 2022.
- [3]Simon Batzner, Albert Musaelian, Lixin Sun, Mario Geiger, Jonathan P Mailoa, Mordechai Kornbluth, Nicola Molinari, Tess E Smidt, and Boris Kozinsky. E (3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials. Nature communications, 13(1):2453, 2022.DOI
- [4]Vivek Bharadwaj, Austin Glover, Aydin Buluç, and James Demmel. An efficient sparse kernel generator for O (3)-equivariant deep networks. In 2025 Proceedings of the Conference on Applied and Computational Discrete Algorithms (ACDA), pp. 32–46. SIAM, 2025.
- [5]Benjamin Charlier, Jean Fedy, Joan Alexis Glaunes, François-David Collin, and Ghislain Durif. Kernel operations on the GPU, with autodiff, without memory overflows. Journal of Machine Learning Research, 22(74):1–6, 2021.
- [7]Tri Dao. Flashattention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations, volume 2024, pp. 35549–35562, 2024.arxiv.org/abs/2307.08691
- [8]Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344–16359, 2022.arxiv.org/abs/2205.14135
- [9]Thorben Frank, Oliver Unke, and Klaus-Robert Müller. So3krates: Equivariant attention for interactions on arbitrary length-scales in molecular systems. Advances in Neural Information Processing Systems, 35:29400–29413, 2022.arxiv.org/abs/2205.14276
- [10]Dan Fu, Hermann Kumbong, Eric Nguyen, and Christopher Ré. Flashfftconv: Efficient convolutions for long sequences with tensor cores. In International Conference on Learning Representations, volume 2024, pp. 9455–9483, 2024.arxiv.org/abs/2311.05908
- [11]Xiang Fu, Brandon M Wood, Luis Barroso-Luque, Daniel S. Levine, Meng Gao, Misko Dzamba, and C. Lawrence Zitnick. Learning Smooth and Expressive Interatomic Potentials for Molecular Property Prediction. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=R0PBJxIbqm.arxiv.org/abs/2502.12147
- [12]Mario Geiger and Tess Smidt. e3nn: Euclidean neural networks. arXiv preprint arXiv:2207.09453, 2022.arxiv.org/abs/2207.09453
- [13]Lin Huang, Chengxiang Huang, Ziang Wang, Yiyue Du, Chu Wang, Haocheng Lu, Yunyang Li, Xiaoli Liu, Arthur Jiang, and Jia Zhang. E2Former-V2: On-the-Fly Equivariant Attention with Linear Activation Memory. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=gIUVdEAa3l.arxiv.org/abs/2601.16622
- [14]Seung Yul Lee, Hojoon Kim, Yutack Park, Dawoon Jeong, Seungwu Han, Yeonhong Park, and Jae W Lee. FlashTP: Fused, Sparsity-Aware Tensor Product for Machine Learning Interatomic Potentials. In ICML, 2025.
- [15]Tiancheng Li, Wentao Li, Anyang Peng, Jianming Xue, Linfeng Zhang, Duo Zhang, and Han Wang. DPA4: Pushing the Accuracy-Cost Frontier of Interatomic Potentials with EMFA SO (2) Convolution. arXiv preprint arXiv:2606.02419, 2026a.arxiv.org/abs/2606.02419
- [16]Yunyang Li, Lin Huang, Zhihao Ding, Xinran Wei, Chu Wang, Han Yang, Zun Wang, Chang Liu, Yu Shi, Peiran Jin, et al. E2Former: An efficient and equivariant transformer with linear-scaling tensor products. Advances in Neural Information Processing Systems, 38:23593–23630, 2026b.arxiv.org/abs/2501.19216
- [17]Yi-Lun Liao and Tess Smidt. Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=KwmPfARgOTD.arxiv.org/abs/2206.11990
- [18]Yi-Lun Liao, Brandon Wood, Abhishek Das, and Tess Smidt. Equiformerv2: Improved equivariant transformer for scaling to higher-degree representations. In International Conference on Learning Representations, volume 2024, pp. 39282–39309, 2024.arxiv.org/abs/2306.12059
- [19]Yi-Lun Liao, Alexander J Hoffman, Sabrina C Shen, Alexandre Duval, Sam Walton Norwood, and Tess Smidt. EquiformerV3: Scaling efficient, expressive, and general SE (3)-equivariant graph attention transformers. arXiv preprint arXiv:2604.09130, 2026.arxiv.org/abs/2604.09130
- [20]Yuchao Lin, Cong Fu, Zachary Krueger, Haiyang Yu, Maho Nakata, Jianwen Xie, Emine Kucukbenli, Xiaofeng Qian, and Shuiwang Ji. Tensor Decomposition Networks for Fast Machine Learning Interatomic Potential Computations. Advances in Neural Information Processing Systems, 38:88471–88495, 2026.arxiv.org/abs/2507.01131
- [21]Shengjie Luo, Tianlang Chen, and Aditi Krishnapriyan. Enabling efficient equivariant operations in the fourier basis via gaunt tensor products. In International Conference on Learning Representations, volume 2024, pp. 24742–24777, 2024.arxiv.org/abs/2401.10216
- [22]Saro Passaro and C Lawrence Zitnick. Reducing SO (3) convolutions to SO (2) for efficient equivariant GNNs. In International conference on machine learning, pp. 27420–27438. PMLR, 2023.
- [23]Eric Qu and Aditi S Krishnapriyan. The importance of being scalable: Improving the speed and accuracy of neural network interatomic potentials across chemical domains. Advances in Neural Information Processing Systems, 37:139030–139053, 2024.arxiv.org/abs/2410.24169
- [24]Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, and Tri Dao. Flashattention-3: Fast and accurate attention with asynchrony and low-precision. Advances in Neural Information Processing Systems, 37:68658–68685, 2024.arxiv.org/abs/2407.08608







