atlas

Research map / Architectures and efficiency / Spiking networks

SpikedAttention: Training-Free and Fully Spike-Driven Transformer-to-SNN Conversion with Winner-Oriented Spike Shift for Softmax Operation

NeurIPS 2024 · Architectures and efficiency › Spiking networks · approach: Spiking transformers · 9 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Converts pretrained Swin Transformer and BERT (MA-BERT) directly into fully spike-driven SNNs without training, using trace-driven matrix multiplication and a winner-oriented spike shift to approximate softmax.

Problem

Self-attention is incompatible with spike-based computation: dynamic spike-spike products need long timesteps under rate coding, and softmax requires exponentials, so prior transformer-based SNNs either modify attention or rely on non-spike operations or direct training.

Approach

Encode all intermediate activations as single spikes using one-spike phase coding; compute dot products via a global decaying trace that carries the phase value of the first-arriving spike, and approximate softmax with a winner-oriented spike shift (WOSS) neuron that uses a global inhibition and threshold shift, preserving vanilla attention without training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Convert Swin-T with SpikedAttention instead of MSTSwin-T · ImageNet classificationaccuracy: 77.9 -> 80.0Helped
Convert Swin-T with SpikedAttention instead of MSTSwin-T · ImageNet classificationenergy: 158.6 -> 3.0Helped
Convert MST pre-trained model with SpikedAttention instead of MSTMST pre-trained ANN · CIFAR-10accuracy: 96.3 -> 97.3Helped
Convert MST pre-trained model with SpikedAttention instead of MSTMST pre-trained ANN · CIFAR-10energy: 1089.9 -> 21.3Helped
Convert MST pre-trained model with SpikedAttention instead of MSTMST pre-trained ANN · CIFAR-100accuracy: 85.4 -> 86.3Helped
Convert MST pre-trained model with SpikedAttention instead of MSTMST pre-trained ANN · ImageNet classificationaccuracy: 77.9 -> 77.2Hurt
Convert MA-BERT to SpikedAttentionMA-BERT · GLUE benchmarkaccuracy: 0.3% accuracy loss on averageMixed
Convert MA-BERT to SpikedAttentionMA-BERT · GLUE benchmarkenergy: 58% less energyHelped
Convert MA-BERT to SpikedAttentionMA-BERT · SQuADF1 score: 88.3 -> 87.2Hurt
Convert Swin-T without inserting ReLUs at every layer (ablation)Swin-T · ImageNet classificationaccuracy: 77.4 -> 80.0Helped
Increase the timestep (ablation)SpikedAttention converted from Swin-T · ImageNet classificationaccuracy lossHelped
Increase the timestep (ablation)SpikedAttention converted from Swin-T · ImageNet classificationenergyHurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K GLUE SQuAD CIFAR-10 CIFAR-100

Benchmarks: ImageNet-1K GLUE SQuAD CIFAR-10 CIFAR-100

Metrics: top-1 accuracy Matthews correlation (CoLA) F1 score energy (mJ) accuracy loss

Baselines: Spikformer SDSA Meta-SpikeFormer MST SpikingBERT MA-BERT Swin-T

Builds on: MST Spikformer one-spike phase coding I-BERT FQ-ViT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy