[论文解读] Spikformer V2: Join the High Accuracy Club on ImageNet with an SNN Ticket
Spikformer V2 引入 Spiking Self-Attention 与 Spiking Convolutional Stem,使自监督预训练在 SNNs 上达到超过 80% 的 ImageNet 准确率,其中 16 个层次和 SSL 可达到 81.10%。
Spiking Neural Networks (SNNs), known for their biologically plausible architecture, face the challenge of limited performance. The self-attention mechanism, which is the cornerstone of the high-performance Transformer and also a biologically inspired structure, is absent in existing SNNs. To this end, we explore the potential of leveraging both self-attention capability and biological properties of SNNs, and propose a novel Spiking Self-Attention (SSA) and Spiking Transformer (Spikformer). The SSA mechanism eliminates the need for softmax and captures the sparse visual feature employing spike-based Query, Key, and Value. This sparse computation without multiplication makes SSA efficient and energy-saving. Further, we develop a Spiking Convolutional Stem (SCS) with supplementary convolutional layers to enhance the architecture of Spikformer. The Spikformer enhanced with the SCS is referred to as Spikformer V2. To train larger and deeper Spikformer V2, we introduce a pioneering exploration of Self-Supervised Learning (SSL) within the SNN. Specifically, we pre-train Spikformer V2 with masking and reconstruction style inspired by the mainstream self-supervised Transformer, and then finetune the Spikformer V2 on the image classification on ImageNet. Extensive experiments show that Spikformer V2 outperforms other previous surrogate training and ANN2SNN methods. An 8-layer Spikformer V2 achieves an accuracy of 80.38% using 4 time steps, and after SSL, a 172M 16-layer Spikformer V2 reaches an accuracy of 81.10% with just 1 time step. To the best of our knowledge, this is the first time that the SNN achieves 80+% accuracy on ImageNet. The code will be available at Spikformer V2.
研究动机与目标
- 激发并实现高性能图像分类,使用 Spiking Neural Networks (SNNs)。
- 引入 Spiking Self-Attention (SSA),它是乘法运算无耗能且高效的。
- 开发 Spiking Convolutional Stem (SCS),以提升架构并支持 SSL 预训练。
- 利用自监督学习来训练更大更深的 Spikformer V2。
- 展示纯 SNN 的 ImageNet 最新达到的准确率。
提出的方法
- 提出 Spiking Self-Attention (SSA),用 spike-form 的 Q、K、V 取代基于 softmax 的注意力,并实现稀疏、乘法无运算的计算。
- 引入 Spiking Convolutional Stem (SCS) 以替代 SPS,并通过额外的卷积层注入归纳偏置。
- 通过整合 SCS 与更深的架构,将 Spikformer 拓展为 Spikformer V2,同时监控训练稳定性。
- 应用 Mask Autoencoder 风格的 Self-Supervised Learning (SSL),使用非对称的 SNN-ANN 解码器来对大型 Spikformer V2 模型进行预训练。
- 在 SSL 之后对 ImageNet 进行微调,以在有限的时间步数下实现高准确率。
实验结果
研究问题
- RQ1在 SNNs 中不使用 softmax 与乘法能否有效实现自注意力?
- RQ2卷积干道是否能提升基于脉冲的特征提取和 Spikformer 的 ImageNet 性能?
- RQ3SSL 预训练是否能够使更大更深的 Spikformer 模型在 ImageNet 上超过 80% 的准确率?
- RQ4Spikformer V2 在 ImageNet 上时间步数、模型深度与准确率之间的权衡是什么?
- RQ5在 SNNs 中,ANN-Decoder 仅对预训练有益,而对推理无益吗?
主要发现
- Spikformer V2 8 层、4 个时间步的情况下,在监督训练中达到 80.38% 的 ImageNet 准确率。
- 自监督预训练使 16 层的 Spikformer V2 在仅 1 个时间步下达到 81.10% 的准确率。
- Spikformer V2 首次在 SNNs 中超过 80% 的 ImageNet 准确率。
- SSA 通过去除 softmax、利用 spike-form 的 Q、K、V,并实现乘法无运算,降低了计算量。
- 带有卷积块的 SCS 相比 SPS 提升了性能,并支持有效的 SSL 预训练。
- SSL 预训练使更大模型的训练更稳定,并在 ImageNet 上带来性能提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。