atlas

Research map / Architectures and efficiency / Spiking networks

Towards Efficient Spiking Transformer: a Token Sparsification Framework for Training and Inference Acceleration

ICML 2024 · Architectures and efficiency › Spiking networks · approach: Spiking transformers

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.

Proposes STATA, a token sparsification framework for Spiking Transformers that uses timestep-wise anchor tokens to pick informative tokens and dual intra/inter attention alignment losses, accelerating training (~1.53x) and reducing inference energy (~48%).

Problem

Training Spiking Transformers on GPUs is much slower than ANN Transformers due to the temporal dimension, and existing token sparsification metrics cause notable accuracy drops when applied to spiking models.

Approach

Introduces a timestep-wise anchor token whose attention to image tokens gives a standardized importance ranking per timestep at negligible cost, plus Intra-Alignment (timestep/head: superior attention supervises inferior) and Inter-Alignment (deep-layer attention supervises shallow layers) losses to improve attention quality for pruning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use STATA token pruning instead of random token pruningSpikformer-8-768 · ImageNetTop-1 accuracy: 70.13 -> 74.03Helped
Use STATA token pruning instead of SSA-based pruningSpikformer-8-768 · ImageNetTop-1 accuracy: 70.45 -> 74.03Helped
Apply STATA token sparsificationSpikformer-8-768 · ImageNetEnergy: 21.48 -> 11.16Helped
Use STATA instead of SSA-based pruningSpikingformer · CIFAR100Top-1 accuracy: 78.47 -> 79.86Helped
Apply STATA token sparsificationSpikingformer · CIFAR100Energy: 1.29 -> 0.71Helped
Add Anchor Token to random token pruning (ablation)Spikingformer · CIFAR100Top-1 accuracy: 78.31 -> 78.98Helped
Make the Anchor Token timestep-wise (ablation)Spikingformer with Anchor Token · CIFAR100Top-1 accuracy: 78.98 -> 79.23Helped
Add Intra-Alignment (ablation)Spikingformer with Timestep-wise Anchor Token · CIFAR100Top-1 accuracy: 79.23 -> 79.58Helped
Add Inter-Alignment (ablation)Spikingformer with Timestep-wise Anchor Token and Intra-Alignment · CIFAR100Top-1 accuracy: 79.58 -> 79.86Helped
Apply STATA token sparsificationSpikingformer · CIFAR10Accuracy: 95.8 -> 95.8No clear effect
Apply STATA token sparsificationSpikingformer · CIFAR100Accuracy: 80.0 -> 79.9Hurt
Apply STATA token sparsificationSpikingformer · CIFAR10-DVSAccuracy: 81.4 -> 81.2Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet CIFAR-10 CIFAR-100 CIFAR10-DVS DVS128 Gesture

Benchmarks: ImageNet CIFAR-10 CIFAR-100 CIFAR10-DVS DVS128 Gesture

Metrics: Top-1 accuracy Top-5 accuracy training speedup memory consumption OPs energy (mJ)

Baselines: Random Token pruning SSA-based token pruning Spikformer Spike-driven Transformer Spikingformer Spiking ResNet SEW ResNet

Builds on: Spikformer Spikingformer Spike-driven Transformer

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