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

内存高效训练与原地FFT实现

Memory-Efficient Training with In-Place FFT Implementation

School of Integrated Circuits, Sun Yat-sen University(中山大学集成电路学院)

Xinyu Ding, Bangtian Liu, Siyu Liao, Zhongfeng Wang

AI总结:

本文提出rdFFT框架,通过隐式复数编码实现实域完全原地FFT,有效降低训练内存成本,为频域轻量级适应提供新方向。

摘要:

快速傅里叶变换(FFT)被广泛用于减少深度学习中的内存和计算成本。然而,现有的实现,包括标准FFT和实数FFT(rFFT),无法实现真正的原地计算。特别是,rFFT将输入大小为n的输入映射到大小为n/2+1的复数输出,导致维度不匹配并需要额外的内存分配。我们提出了首个实域、完全原地FFT框架(rdFFT),该框架保持了输入输出内存空间的一致性。通过利用频域中的蝴蝶操作对称性和共轭性质,我们设计了一种隐式复数编码方案,完全消除了中间缓存的使用。在多个自然语言理解任务上的实验表明,该方法在减少训练内存成本方面有效,为频域轻量级适应提供了有前景的方向。

英文摘要:

Fast Fourier Transforms (FFT) are widely used to reduce memory and computational costs in deep learning. However, existing implementations, including standard FFT and real FFT (rFFT), cannot achieve true in-place computation. In particular, rFFT maps an input of size n to a complex output of size n/2+1, causing dimensional mismatch and requiring additional memory allocation. We propose the first real-domain, fully in-place FFT framework (rdFFT) that preserves input-output memory space consistency. By leveraging butterfly operation symmetry and conjugate properties in the frequency domain, we design an implicit complex encoding scheme that eliminates intermediate cache usage entirely. Experiments on multiple natural language understanding tasks demonstrate the method effectiveness in reducing training memory cost, offering a promising direction for frequency-domain lightweight adaptation.

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

↑