可微分且加速的球谐变换与Wigner变换
Differentiable and accelerated spherical harmonic and Wigner transforms
AI总结:
本研究提出在JAX框架下实现可微分且加速的球谐与Wigner变换算法,采用递归计算和混合微分方法,在GPU上实现高达400倍加速及近线性扩展。
摘要:
许多科学与工程领域会遇到定义在球面上的数据。球面数据的建模与分析通常需要高阶球谐变换,并且日益需要为机器学习或其他可微分编程任务高效计算梯度。我们开发了新颖的算法结构,用于在球面 $\mathbb{S}^2$ 和旋转群 $\text{SO}(3)$ 上加速且可微分地计算广义傅里叶变换,即分别对应球谐变换和Wigner变换。我们提出了一种递归算法来计算Wigner $d$ 函数,该算法对高阶谐波既稳定又高度可并行化。通过将其与可分离的球面变换紧密结合,我们获得了具有高度可并行化结构的算法,非常适合现代硬件加速器(如GPU)的高吞吐量计算。我们还开发了一种混合自动与手动微分方法,以便高效计算梯度。我们的算法在S2FFT软件代码中基于JAX可微分编程框架实现。支持多种球面采样,包括等角采样和HEALPix采样。对于允许采样定理的球面采样,计算误差达到机器精度量级。与备选C代码进行基准测试时,我们观察到高达400倍的加速。此外,当在多个GPU上分布计算时,由于我们算法的高度并行化和均衡性,随着GPU数量的增加,我们实现了非常接近最优的线性扩展。在拥有足够多GPU的情况下,我们的变换因此展现出前所未有的有效线性时间复杂度。
英文摘要:
Many areas of science and engineering encounter data defined on spherical manifolds. Modelling and analysis of spherical data often necessitates spherical harmonic transforms, at high degrees, and increasingly requires efficient computation of gradients for machine learning or other differentiable programming tasks. We develop novel algorithmic structures for accelerated and differentiable computation of generalised Fourier transforms on the sphere $\mathbb{S}^2$ and rotation group $\text{SO}(3)$, i.e. spherical harmonic and Wigner transforms, respectively. We present a recursive algorithm for the calculation of Wigner $d$-functions that is both stable to high harmonic degrees and extremely parallelisable. By tightly coupling this with separable spherical transforms, we obtain algorithms that exhibit an extremely parallelisable structure that is well-suited for the high throughput computing of modern hardware accelerators (e.g. GPUs). We also develop a hybrid automatic and manual differentiation approach so that gradients can be computed efficiently. Our algorithms are implemented within the JAX differentiable programming framework in the S2FFT software code. Numerous samplings of the sphere are supported, including equiangular and HEALPix sampling. Computational errors are at the order of machine precision for spherical samplings that admit a sampling theorem. When benchmarked against alternative C codes we observe up to a 400-fold acceleration. Furthermore, when distributing over multiple GPUs we achieve very close to optimal linear scaling with increasing number of GPUs due to the highly parallelised and balanced nature of our algorithms. Provided access to sufficiently many GPUs our transforms thus exhibit an unprecedented effective linear time complexity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。