[论文解读] Training Full Spike Neural Networks via Auxiliary Accumulation Pathway
本文提出 Dual-Stream Training (DST),在全脉冲神经网络中加入一个可拆卸的 Auxiliary Accumulation Pathway (AAP),以缓解信息损失,从而在测试时可选的非脉冲 MAC 下实现高性能的 FSNNs,提升判别能力。
Due to the binary spike signals making converting the traditional high-power multiply-accumulation (MAC) into a low-power accumulation (AC) available, the brain-inspired Spiking Neural Networks (SNNs) are gaining more and more attention. However, the binary spike propagation of the Full-Spike Neural Networks (FSNN) with limited time steps is prone to significant information loss. To improve performance, several state-of-the-art SNN models trained from scratch inevitably bring many non-spike operations. The non-spike operations cause additional computational consumption and may not be deployed on some neuromorphic hardware where only spike operation is allowed. To train a large-scale FSNN with high performance, this paper proposes a novel Dual-Stream Training (DST) method which adds a detachable Auxiliary Accumulation Pathway (AAP) to the full spiking residual networks. The accumulation in AAP could compensate for the information loss during the forward and backward of full spike propagation, and facilitate the training of the FSNN. In the test phase, the AAP could be removed and only the FSNN remained. This not only keeps the lower energy consumption but also makes our model easy to deploy. Moreover, for some cases where the non-spike operations are available, the APP could also be retained in test inference and improve feature discrimination by introducing a little non-spike consumption. Extensive experiments on ImageNet, DVS Gesture, and CIFAR10-DVS datasets demonstrate the effectiveness of DST.
研究动机与目标
- 激发并实现使用脉冲仅操作在高准确度下训练完全基于脉冲的神经网络(FSNNs)。
- 通过一个可拆卸的辅助通路解决深度FSNNs中的信息损失和梯度消失。
- 提供一种训练策略,允许在测试时移除非脉冲运算,以便在神经形态硬件上实现能耗高效部署。
- 在 ImageNet、DVS Gesture 和 CIFAR10-DVS 数据集上演示 DST 的可扩展性。
提出的方法
- 引入一个 Dual-Stream Training (DST) 框架,由一个全脉冲传播流和一个即插即用的 Auxiliary Accumulation Pathway (AAP) 组成。
- 在 AAP 中使用脉冲累积来补偿前向和后向的信息损失,缓解深层 Spiking ResNet 的梯度消失。
- 定义一个将两个输出的损失结合在一起的一致目标:L(x,y)=Lc(Os,y)+Lc(Oa,y)。
- 通过在 f_l 路径中将最后一个 BN 置零或将尖峰神经元配置为在需要时保持信号来实现两个流之间的恒等映射。
- 在推理阶段移除 AAP 以保持 FSNN 的能量效率,若有条件则可选择保留 AAP 的非脉冲 MAC。
实验结果
研究问题
- RQ1DST 是否通过缓解信息损失和梯度消失来改善深层 FSNN 的训练?
- RQ2辅助累积路径是否在如 ImageNet 这样的大规模数据集上实现仅脉冲推理的高准确率?
- RQ3在测试时保留与移除 Auxiliary Accumulation Pathway 对准确率和能耗的影响是什么?
- RQ4与现有的 FSNN 和混合精度 SNN 方法相比,DST 在静态图像与神经形态事件数据等多样数据模式下的表现如何。
主要发现
- DST 训练的 FSNN 在从零开始训练的先前 Spiking ResNet 之上实现更高的性能,并随深度增加而扩展。
- 采用 DST 的 FSNN 在保持较低计算消耗的同时,优于 Spiking ResNet 和一些先前的 FSNN 方法。
- 在推理阶段带有 AAP 的 DSNN 相较于单独的 FSNN 在区分度上进一步提升,并在若干场景中击败混合精度 SEW ResNets。
- 添加 AAP 会使非脉冲累积计算随深度线性上升,而主 MAC 成本通过以脉冲为主的下采样保持在可控范围。
- 在 ImageNet、DVS Gesture、CIFAR10-DVS 的实验表明,DST 提高了从零开始训练的基于 ResNet 和 Transformer 的 SNN 的准确性与计算效率。
- Spike Transformer 与 DST 结合在保持竞争力的同时,避免了大量非脉冲 MAC 的开销。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。