无注意力的 Spikformer:用简单线性变换混合脉冲序列
Attention-free Spikformer: Mixing Spike Sequences with Simple Linear Transforms
AI总结:
本文提出以无参数 Fourier、Wavelet 等线性变换替代 Spikformer 的 SSA,在保持或提升分类精度的同时显著降低复杂度、加速训练推理并减少内存。
摘要:
通过整合自注意力能力与脉冲神经网络(SNN)的生物特性,Spikformer 将蓬勃发展的 Transformer 架构应用于 SNN 设计。它引入了脉冲自注意力(SSA)模块,利用脉冲形式的 Query、Key 和 Value 混合稀疏视觉特征,因此与以往的类 SNN 框架相比,在众多数据集上取得了最先进(SOTA)性能。本文证明,通过用 Fourier 变换和 Wavelet 变换等无参数线性变换(LT)替代 SSA,可以加速 Spikformer 架构。这些变换用于混合脉冲序列,将二次时间复杂度降低为对数线性时间复杂度。它们在频域和时域之间交替,以提取稀疏视觉特征,展现出强大的性能与效率。我们在神经形态数据集和静态数据集上进行了大量图像分类实验。结果表明,与采用 SSA 的 SOTA Spikformer 相比,采用 LT 的 Spikformer 在神经形态数据集(即 CIFAR10-DVS 和 DVS128 Gesture)上取得了更高的 Top-1 准确率,并在静态数据集(即 CIFAR-10 和 CIFAR-100)上取得了相当的 Top-1 准确率。此外,由于不需要可学习参数,采用 LT 的 Spikformer 训练速度提升约 29–51%,推理速度提升 61–70%,内存使用降低 4–26%。
英文摘要:
By integrating the self-attention capability and the biological properties of Spiking Neural Networks (SNNs), Spikformer applies the flourishing Transformer architecture to SNNs design. It introduces a Spiking Self-Attention (SSA) module to mix sparse visual features using spike-form Query, Key, and Value, resulting in the State-Of-The-Art (SOTA) performance on numerous datasets compared to previous SNN-like frameworks. In this paper, we demonstrate that the Spikformer architecture can be accelerated by replacing the SSA with an unparameterized Linear Transform (LT) such as Fourier and Wavelet transforms. These transforms are utilized to mix spike sequences, reducing the quadratic time complexity to log-linear time complexity. They alternate between the frequency and time domains to extract sparse visual features, showcasing powerful performance and efficiency. We conduct extensive experiments on image classification using both neuromorphic and static datasets. The results indicate that compared to the SOTA Spikformer with SSA, Spikformer with LT achieves higher Top-1 accuracy on neuromorphic datasets (i.e., CIFAR10-DVS and DVS128 Gesture) and comparable Top-1 accuracy on static datasets (i.e., CIFAR-10 and CIFAR-100). Furthermore, Spikformer with LT achieves approximately 29-51% improvement in training speed, 61-70% improvement in inference speed, and reduces memory usage by 4-26% due to not requiring learnable parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。