Spike2Former: Efficient Spiking Transformer for High-performance Image Segmentation
Zhenxin Lei, Man Yao, Jiakui Hu, Xinhao Luo, Yanye Lu, Bo Xu, Guoqi Li
TL;DR
Spike2Former tackles the core difficulty of applying Spiking Neural Networks to dense image segmentation by identifying modules that cause information loss and introducing Spike-driven transformer components along with a Normalized Integer LIF. The method combines a Spike-driven Deformable Transformer Encoder, Spike-driven Transformer Decoder, Spike-driven Mask Embedding, and NI-LIF to preserve information, stabilize training, and enable energy-efficient spike-driven inference. Empirically, it achieves state-of-the-art SNN segmentation on ADE20k, VOC2012, and CityScapes with substantial mIoU gains and major energy savings compared to prior SNNs, while approaching ANN performance. The work demonstrates the viability of complex, transformer-based architectures for dense prediction with SNNs and provides practical design patterns for minimizing information loss in spike-based models.
Abstract
Spiking Neural Networks (SNNs) have a low-power advantage but perform poorly in image segmentation tasks. The reason is that directly converting neural networks with complex architectural designs for segmentation tasks into spiking versions leads to performance degradation and non-convergence. To address this challenge, we first identify the modules in the architecture design that lead to the severe reduction in spike firing, make targeted improvements, and propose Spike2Former architecture. Second, we propose normalized integer spiking neurons to solve the training stability problem of SNNs with complex architectures. We set a new state-of-the-art for SNNs in various semantic segmentation datasets, with a significant improvement of +12.7% mIoU and 5.0 efficiency on ADE20K, +14.3% mIoU and 5.2 efficiency on VOC2012, and +9.1% mIoU and 6.6 efficiency on CityScapes.
