arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.15425cs.NEcs.CVcs.LG
收藏

Spikformer:当脉冲神经网络遇到Transformer时

Spikformer: When Spiking Neural Network Meets Transformer

Peking University(北京大学);Peng Cheng Laboratory(鹏城实验室);Sea AI Lab(Sea人工智能实验室);Shenzhen EEGSmart Technology Co., Ltd.(深圳脑陆科技有限公司)

Zhaokun Zhou, Yuesheng Zhu, Chao He, Yaowei Wang, Shuicheng Yan, Yonghong Tian, Li Yuan

摘要:

我们考虑两个生物学上合理的结构,脉冲神经网络(SNN)和自我注意力机制。前者为深度学习提供了一个节能和事件驱动的范例,而后者具有捕获特征依赖关系的能力,使Transformer能够实现良好的性能。这是直观的承诺,探索他们之间的婚姻。在本文中,我们考虑利用自我注意能力和SNN的生物学特性,并提出了一种新的尖峰自我注意(SSA)以及一个强大的框架,命名为尖峰Transformer(Spikformer)。Spikformer中的SSA机制通过使用spike-form Query、Key和Value而不使用softmax来对稀疏视觉特征进行建模。由于其计算稀疏,避免了乘法,SSA是高效的,具有低的计算能耗。结果表明,Spikformer与SSA可以优于国家的最先进的SNNs样框架在图像分类的神经形态和静态数据集。Spikformer(66.3M参数)与SEW-ResNet-152(60.2M,69.26%)大小相当,可以在ImageNet上使用4个时间步长实现74.81%的top1准确率,这是直接训练SNN模型的最新技术。

英文摘要:

We consider two biologically plausible structures, the Spiking Neural Network (SNN) and the self-attention mechanism. The former offers an energy-efficient and event-driven paradigm for deep learning, while the latter has the ability to capture feature dependencies, enabling Transformer to achieve good performance. It is intuitively promising to explore the marriage between them. In this paper, we consider leveraging both self-attention capability and biological properties of SNNs, and propose a novel Spiking Self Attention (SSA) as well as a powerful framework, named Spiking Transformer (Spikformer). The SSA mechanism in Spikformer models the sparse visual feature by using spike-form Query, Key, and Value without softmax. Since its computation is sparse and avoids multiplication, SSA is efficient and has low computational energy consumption. It is shown that Spikformer with SSA can outperform the state-of-the-art SNNs-like frameworks in image classification on both neuromorphic and static datasets. Spikformer (66.3M parameters) with comparable size to SEW-ResNet-152 (60.2M,69.26%) can achieve 74.81% top1 accuracy on ImageNet using 4 time steps, which is the state-of-the-art in directly trained SNNs models.

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

↑