arXiv:2610.20029cs.DCOct 2026

Manuscript Offprint

arXiv:2610.20029

TrimSO(2): Fast and Memory-Efficient Training of Equivariant Interatomic Potentials

Chen Wang, Yuanchang Zhou, Guangming Tan, Mingzhen Li, Weile Jia

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

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.

1 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 (Batzner et al., 2022). 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 (Geiger & Smidt, 2022). Models using these representations have demonstrated high data efficiency and state-of-the-art accuracy on molecular and materials benchmarks (Batzner et al., 2022; Batatia et al., 2022; Liao et al., 2024).

Mainstream equivariant architectures combine SO(3) representations through tensor products, whose computational cost can scale as O(L6)O(L^6) with the maximum representation degree LL (Passaro & Zitnick, 2023). 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 O(L3)O(L^3) by reformulating SO(3) convolutions as SO(2) convolutions in local edge frames (Passaro & Zitnick, 2023). This formulation enables models to scale to higher-degree representations and further improve accuracy (Liao et al., 2024). On the systems side, OpenEquivariance and FlashTP accelerate SO(3) tensor products through optimized GPU implementations, achieving model-level speedups (Bharadwaj et al., 2025; Lee et al., 2025). 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.

*Corresponding authors: limingzhen@ict.ac.cn, jiaweile@ict.ac.cn.

In SO(2) models, tensor products are conducted in local edge frames, replacing sparse SO(3) 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 (Passaro & Zitnick, 2023). 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 (Fu et al., 2025; Lee et al., 2025; Bharadwaj et al., 2025) 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 SO(2)-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 (Fu et al., 2025), UMA (Wood et al., 2026), and EquiformerV3 (Liao et al., 2026) 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:

  1. 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.

  2. 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.

  3. 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.

References (82)