arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20029cs.DC
收藏

TrimSO(2):等变原子间势的快速且内存高效训练方法

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

University of Chinese Academy of Sciences(中国科学院大学)

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

AI总结:

TrimSO(2)是面向SO(2)等变原子间势模型的算法,通过整合变换到数据流避免中间物化,大幅提升训练速度、降低内存与带宽消耗,在多款模型及GPU上验证了性能优势。

摘要:

等变原子间势可实现分子与材料的精准高效模拟,其中基于SO(2)卷积的模型能降低张量积成本并达到当前最优精度,但其训练仍耗时且内存密集。现有训练实现会为密集矩阵乘法周围的表示变换生成大型边张量,增加内存使用与数据移动。我们发现这些变换可整合到模型现有数据流中,避免单独的中间物化。我们提出TrimSO(2),一种面向基于SO(2)的等变模型的快速且内存高效算法,通过“ gather时旋转、与激活函数重组、归约时逆旋转”实现该原理,支持训练所需的高阶微分。通过避免中间物化,TrimSO(2)在正向、反向及二阶反向传播中实现2.71-16.73倍的算子加速,将模型级高带宽内存流量降低3.81-9.88倍。最终,在A100和H100 GPU上针对官方eSEN、UMA、EquiformerV3工作负载,TrimSO(2)相比PyTorch实现达到2.07-2.94倍的训练加速,峰值训练内存降低1.53-3.16倍。

英文摘要:

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$\times$ operator speedups across forward, backward, and double backward and reduces model-level high-bandwidth memory traffic by 3.81-9.88$\times$. Finally, TrimSO(2) achieves 2.07-2.94$\times$ training speedups and 1.53-3.16$\times$ reductions in peak training memory over PyTorch implementations for official eSEN, UMA, and EquiformerV3 workloads on A100 and H100 GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑