利用低精度FFT计算目标精度的FFT
Computing FFTs at Target Precision Using Lower-Precision FFTs
AI总结:
本文提出利用Ozaki方案和Bluestein FFT中的循环卷积,通过数论变换和中国剩余定理实现低精度FFT计算目标精度的FFT,减少NTT调用次数并验证了其效率。
摘要:
现代处理器在低精度算术上比高精度算术具有更高的吞吐量。对于矩阵乘法,Ozaki方案利用这种性能差距,通过将输入拆分为低精度组件并委托给优化的低精度例行程序进行计算。然而,对于快速傅里叶变换(FFT)没有类似的方法。本文提出了一种方法,通过将Ozaki方案应用于Bluestein FFT中的循环卷积,利用数论变换(NTT)精确计算拆分组件卷积,而不是浮点FFT,并结合中国剩余定理。我们引入了拆分次数的上界和NTT域累积策略以减少NTT调用次数。作为具体实现,我们实现了一个双精度FFT,使用32位NTT并验证了其相对误差比基于FFTW和三单精度算术的FFT更低,误差稳定,最多96次NTT调用或64次NTT调用。在Intel Xeon Platinum 8468上,对于n=2^10-2^18长度,执行时间约为FFTW双精度FFT的107-1315倍,NTT约占总时间的80%。
英文摘要:
Modern processors deliver higher throughput for lower-precision arithmetic than for higher-precision arithmetic. For matrix multiplication, the Ozaki scheme exploits this performance gap by splitting the inputs into lower-precision components and delegating the computation to optimized lower-precision routines. However, no similar approach exists for the fast Fourier transform (FFT). Here, we propose a method that computes target-precision FFTs using lower-precision FFTs by applying the Ozaki scheme to the cyclic convolution in the Bluestein FFT. The split component convolutions are computed exactly using the number theoretic transform (NTT), an FFT over a finite field, instead of floating-point FFTs, combined with the Chinese remainder theorem. We introduce an upper bound on the number of splits and an NTT-domain accumulation strategy to reduce the NTT call count. As a concrete implementation, we implement a double-precision FFT using 32-bit NTTs and confirm reduced relative error compared with those for FFTs based on FFTW and Triple-Single precision arithmetic, with stable error across FFT lengths, at most 96 NTT calls, or 64 NTT calls with NTT-domain accumulation. On an Intel Xeon Platinum 8468 for lengths $n=2^{10}$-$2^{18}$, the execution time is approximately 107-1315$\times$ that of FFTW's double-precision FFT, with NTTs accounting for approximately 80% of the total time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。