arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.02020cs.NEcs.CVcs.LG
收藏

Spikformer V2:通过SNN Ticket在ImageNet上加入高精度俱乐部

Spikformer V2: Join the High Accuracy Club on ImageNet with an SNN Ticket

Peking University(北京大学);PengCheng Laboratory(鹏城实验室);University of Surrey(萨里大学);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院)

Zhaokun Zhou, Yijie Lu, Kaiwei Che, Wei Fang, Keyu Tian, Qihao Peng, Yuesheng Zhu, Shuicheng Yan, Yonghong Tian, Li Yuan

AI总结:

该研究提出Spikformer V2,通过引入脉冲自注意力、脉冲卷积茎及自监督学习,在ImageNet上实现SNN首次80%+准确率,性能优于现有同类方法。

摘要:

脉冲神经网络(Spiking Neural Networks, SNN)以其生物可解释架构著称,但面临性能有限的挑战。自注意力机制是高性能Transformer的基石,也是一种受生物启发的结构,现有SNN中尚未采用该机制。为此,我们探索同时利用自注意力能力和SNN生物特性的潜力,提出了新型脉冲自注意力(Spiking Self-Attention, SSA)与脉冲Transformer(Spikformer)。SSA机制无需softmax,通过基于脉冲的查询(Query)、键(Key)和值(Value)捕获稀疏视觉特征,这种无乘法的稀疏计算使SSA高效且节能。此外,我们开发了带有补充卷积层的脉冲卷积茎(Spiking Convolutional Stem, SCS)以增强Spikformer架构,经SCS增强的Spikformer称为Spikformer V2。为训练更大更深的Spikformer V2,我们首次在SNN中探索自监督学习(Self-Supervised Learning, SSL),具体而言,我们借鉴主流自监督Transformer的掩码与重建风格预训练Spikformer V2,随后在ImageNet图像分类任务上微调。大量实验表明,Spikformer V2优于以往的代理训练及人工神经网络转SNN(ANN2SNN)方法:8层Spikformer V2在4个时间步下准确率达80.38%,经SSL后,1.72亿参数的16层Spikformer V2仅用1个时间步准确率达81.10%。据我们所知,这是SNN首次在ImageNet上实现80%以上的准确率,代码将在Spikformer V2处开源。

英文摘要:

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.

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

↑