Fourier或Wavelet基作为spikformer中自注意力的对应物以实现高效视觉分类
Fourier or Wavelet bases as counterpart self-attention in spikformer for efficient visual classification
AI总结:
本文提出FWformer,用脉冲形式的Fourier或Wavelet变换替代spikformer中的自注意力,在保持或提升视觉分类准确率的同时显著降低了能耗和内存使用并加快了速度。
摘要:
能效高的spikformer通过整合生物学上合理的脉冲神经网络(SNN)和人工Transformer被提出,其中使用脉冲自注意力(SSA)来实现更高的准确率和更低的计算成本。然而,自注意力似乎并不总是必要的,特别是在稀疏的脉冲形式计算方式中。在本文中,基于两者均使用一组基函数进行信息转换的关键假设,我们创新性地用脉冲形式的Fourier Transform、Wavelet Transform及其组合(使用固定的三角或小波基)取代了原始SSA(使用从Query和Key计算的动态基)。因此,提出了基于Fourier或Wavelet的spikformer(FWformer),并在视觉分类任务中进行了验证,包括静态图像和基于事件的视频数据集。与标准spikformer相比,FWformer能够实现相当甚至更高的准确率($0.4\%$-$1.5\%$),更高的运行速度(训练快$9\%$-$51\%$,推理快$19\%$-$70\%$),降低的理论能耗($20\%$-$25\%$),以及减少的GPU内存使用($4\%$-$26\%$)。我们的结果表明,受生物学发现(脉冲形式)或信息论(Fourier或Wavelet Transform)启发的新Transformer的持续改进是很有前景的。
英文摘要:
Energy-efficient spikformer has been proposed by integrating the biologically plausible spiking neural network (SNN) and artificial Transformer, whereby the Spiking Self-Attention (SSA) is used to achieve both higher accuracy and lower computational cost. However, it seems that self-attention is not always necessary, especially in sparse spike-form calculation manners. In this paper, we innovatively replace vanilla SSA (using dynamic bases calculating from Query and Key) with spike-form Fourier Transform, Wavelet Transform, and their combinations (using fixed triangular or wavelets bases), based on a key hypothesis that both of them use a set of basis functions for information transformation. Hence, the Fourier-or-Wavelet-based spikformer (FWformer) is proposed and verified in visual classification tasks, including both static image and event-based video datasets. The FWformer can achieve comparable or even higher accuracies ($0.4\%$-$1.5\%$), higher running speed ($9\%$-$51\%$ for training and $19\%$-$70\%$ for inference), reduced theoretical energy consumption ($20\%$-$25\%$), and reduced GPU memory usage ($4\%$-$26\%$), compared to the standard spikformer. Our result indicates the continuous refinement of new Transformers, that are inspired either by biological discovery (spike-form), or information theory (Fourier or Wavelet Transform), is promising.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。