All models

spyke_torch_stdp_convnet

A convolutional spiking network with at most one spike per neuron, of the kind SpykeTorch simulates.

Spiking networks · 211 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (140 KB)

Open in a new tab

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

Parameters
24.5K
Operations
211
Framework
PyTorch
Recurrent
Yes
Published
Frontiers in Neuroscience (arXiv 2019)
Cited by
127 (as of 9 October 2026)
Authors
Milad Mozafari, ‎Mohammad Ganjtabesh, Abbas Nowzari-Dalini, Timothée Masquelier
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12150
Graph hash
04fe0d46c26547c906bc7454d7b18b3ceae5a8eeeb233c85a8fdd339199a28b2
Skeleton hash
0010caa8b3b5ed0fc2127ed25ae4080d4048c91a7ccc2c644c0d0c60e9738266
Architecture hash
f82f623f49b9a9bc1ec5c38320c735149eb637ac85c1bd8a7821fa70508a7835
Diagram SHA-256
301c538d8c7c53fc55bb85840986e4b0c701b5330c12a141feccc463de4a844b
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.spyke_torch:build_spyke_torch_stdp_convnet: build({})

What it is

This model is a convolutional spiking neural network of the kind SpykeTorch simulates, in which each neuron emits at most one spike and information is carried by rank-order encoding. SpykeTorch is an open-source simulation framework based on PyTorch, introduced because most existing SNN simulation frameworks were not practically efficient enough for large-scale AI tasks.

The paper's tutorial network recognizes handwritten digits and is adopted from an earlier deep convolutional SNN tested on MNIST. Each image is convolved with six DoG filters, locally normalized and transformed into a spike-wave. Three convolutional (S) and pooling (C) layers follow, arranged as S1 → C1 → S2 → C2 → S3 → C3. S1 and S2 are trained with STDP and S3 with R-STDP, the reward-modulated form. The decision comes from the single winner among the S3 neurons, which is the same as a global max-pooling that chooses the maximum potential.

The paper compares its SpykeTorch script for this network with the original C++/CUDA implementation and reports that SpykeTorch was faster in both training and inference. The accuracies listed in that comparison are 96.9% for SpykeTorch and 97.2% for C++/CUDA.

Key idea. SpykeTorch is an open-source PyTorch-based framework that simulates convolutional spiking neural networks with at most one spike per neuron, with STDP and reward-modulated STDP learning rules.

  • SpykeTorch
  • spyke_torch_stdp_convnet
  • spiking neural network
  • convolutional SNN
  • STDP
  • R-STDP
  • rank-order coding
  • time-to-first-spike
  • one spike per neuron
  • digit recognition

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{mozafari2019spyketorchefficientsimulationconvolutional,
      title={SpykeTorch: Efficient Simulation of Convolutional Spiking Neural Networks with at most one Spike per Neuron}, 
      author={Milad Mozafari and Mohammad Ganjtabesh and Abbas Nowzari-Dalini and Timothée Masquelier},
      year={2019},
      eprint={1903.02440},
      archivePrefix={arXiv},
      primaryClass={cs.NE},
      doi={https://doi.org/10.3389/fnins.2019.00625},
      url={https://arxiv.org/abs/1903.02440}, 
}