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

Clifford神经层的单核超标量优化

Single-Core Superscalar Optimization of Clifford Neural Layers

X. Angelo Huang, Ruben Ciranni, Giovanni Spadaccini, Carla J. López Zurita

AI总结:

针对Clifford神经层推理效率问题,通过分析Clifford代数基础消除冗余计算并结合成熟优化技术,实现单核下最高21.35倍的平均加速,性能多优于或持平PyTorch原生实现。

摘要:

在物理科学领域对开发具备等变性质的网络的兴趣日益增长的背景下,Clifford神经层作为一种在特定群作用下实现$E(n)$和$O(n)$等变性的方法脱颖而出。本文分析了Clifford卷积层内部计算的结构,提出并实现了若干优化方案,在保证正确性的前提下加快推理过程。具体而言,我们首先分析Clifford代数的理论基础,以消除冗余的矩阵分配与计算,随后系统应用成熟的优化技术进一步提升性能。我们报告称,在11个函数上,最终平均加速比达到基线实现的21.35倍;其中6个案例的运行时间与原始PyTorch实现相当甚至更快,其余案例的性能与原始库处于同一数量级。

英文摘要:

Within the growing interest in the physical sciences in developing networks with equivariance properties, Clifford neural layers shine as one approach that delivers $E(n)$ and $O(n)$ equivariances given specific group actions. In this paper, we analyze the inner structure of the computation within Clifford convolutional layers and propose and implement several optimizations to speed up the inference process while maintaining correctness. In particular, we begin by analyzing the theoretical foundations of Clifford algebras to eliminate redundant matrix allocations and computations, then systematically apply established optimization techniques to enhance performance further. We report a final average speedup of 21.35x over the baseline implementation of eleven functions and runtimes comparable to and faster than the original PyTorch implementation in six cases. In the remaining cases, we achieve performance in the same order of magnitude as the original library.

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

↑