Spike-Driven Transformer (SDT)
Spiking neural network Transformer whose self-attention uses only masks and sparse additions.
Spiking networks · 3,986 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Spiking networks
- Parameters
- 66.3M
- Operations
- 3,986
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2023
- Paper
- Spike-driven Transformer
- Cited by
- 148 (as of 26 October 2026)
- Authors
- Man Yao, Jiakui Hu, Zhaokun Zhou and others
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20561
- Graph hash
- 547002ae089f6465fc71852d177375e157f88b35821089fa71591d8d4e81ab5e
- Skeleton hash
- bfb68b18f58d0378360cd1beced3060f7078f6292ca330e0aa21f72140ba9329
- Architecture hash
- a162a106ce6f69512885f1a13c14ac0b588f4ce35e9a16311c8feae5b8b969de
- Diagram SHA-256
- f4cde57a42d1566a99faab7bcd11a4c389c56fcb34dc5326f7479e7f90c86b43
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
The Spike-driven Transformer is a Transformer for spiking neural networks (SNNs), designed so that the whole network needs only sparse addition operations. The motivation is energy: the paper presents SNNs as an energy-efficient option for deep learning because of their spike-based, event-driven way of computing.
The central part is Spike-Driven Self-Attention (SDSA), which uses only mask and addition operations, with no multiplication. The paper puts the energy cost of SDSA at 87.2× lower than that of vanilla self-attention. The residual connections are changed as well, into shortcuts between membrane potentials, so that every neuron still sends binary spikes.
The network has four parts: Spiking Patch Splitting, SDSA, MLP and a linear classification head. For still images, the same image is repeated T times as input. The paper reports that the 8-768 configuration obtains 76.32% accuracy on ImageNet at 224×224 input with 66.34M parameters. Raising the inference resolution to 288×288 gives 77.1%.
Key idea. The paper builds a Transformer for spiking neural networks whose self-attention uses only mask and addition operations, so the whole network runs on sparse additions.
- Spike-driven Transformer
- SDT
- Spike-Driven Transformer V1
- spiking transformer
- spiking neural network
- SNN
- spike-driven self-attention
- SDSA
- neuromorphic
- image classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yao2023spikedriventransformer,
title={Spike-driven Transformer},
author={Man Yao and Jiakui Hu and Zhaokun Zhou and Li Yuan and Yonghong Tian and Bo Xu and Guoqi Li},
year={2023},
eprint={2307.01694},
archivePrefix={arXiv},
primaryClass={cs.NE},
url={https://arxiv.org/abs/2307.01694},
}