One-step Spiking Transformer
A spiking transformer for image classification that compresses its timesteps into one and drops self-attention.
Spiking networks · 2,040 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
- 33.9M
- Operations
- 2,040
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCAI 2024
- Cited by
- 4 (as of 26 October 2026)
- Authors
- Xiaotian Song, Andy Song, Rong Xiao, Yanan Sun
- Source
- GitHub: songxt3/OST
- 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
- m18990
- Graph hash
- f18ec79f8dbb0c3b9183f6675cd2cc298c5a7c41ed4c52ba3422268ce8db3d03
- Skeleton hash
- 8f53772a91a7fab8eaad13741a43b4eed810416e319e8fd3bcbb3d0d7c6c8c00
- Architecture hash
- a88c5200f115310e383d77db92806df6610e02d05bcc1d1f1285bad468c86978
- Diagram SHA-256
- 4d9848cb4429f7e4c51a8fa422c2845590866b5e45a33e89adc64fe2c47801c9
- 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 One-step Spiking Transformer (OST) is a spiking neural network for image classification that needs only one timestep and has linear complexity. The motivation is energy: the paper names lengthy timesteps and complex multiply-and-accumulate (MAC) operations as the two factors that drive up the energy consumption of spiking transformers.
The first component, Time Domain Compression and Compensation (TDCC), adds the timesteps of the embedded input together to compress the time-domain information into a single step. It then compensates for what the compression loses, using two spiking neurons with different thresholds. The second component, Spiking Linear Transformation (SLT), takes the place of self-attention, and one of its two parts turns a floating-point element-wise product into a binary logical AND.
The input embedding and position embedding follow Spikformer, an earlier spiking transformer. On ImageNet the paper reports an accuracy of 74.97% for OST. It puts that 1.56% above Spikformer at a comparable size. On the DVS128 Gesture dataset the paper reports an accuracy of 99.0%.
Key idea. The paper builds a spiking transformer that runs in one timestep with linear complexity, using time-domain compression and compensation plus an attention-free spiking transformation.
- one-step spiking transformer
- ost
- spiking transformer
- spiking neural network
- snn
- tdcc
- spiking linear transformation
- image classification
- neuromorphic
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Song_2024, series={IJCAI-2024}, title={One-step Spiking Transformer with a Linear Complexity}, url={http://dx.doi.org/10.24963/ijcai.2024/348}, DOI={10.24963/ijcai.2024/348}, booktitle={Proceedings of the Thirty-ThirdInternational Joint Conference on Artificial Intelligence}, publisher={International Joint Conferences on Artificial Intelligence Organization}, author={Song, Xiaotian and Song, Andy and Xiao, Rong and Sun, Yanan}, year={2024}, month=Aug, pages={3142–3150}, collection={IJCAI-2024} }