All models

snntorch_alpha_mlp_v2

A small fully connected spiking network built from snnTorch's Alpha neuron layers.

Spiking networks · 100 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 (10 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
203.5K
Operations
100
Framework
PyTorch
Recurrent
No
Published
Proceedings of the IEEE (arXiv 2021)
Cited by
787 (as of 17 October 2026)
Authors
J. Eshraghian, M. Ward, Emre O. Neftci and others
License
MIT
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
m10082
Graph hash
9d998830af867aa5d8317aeb30c92419eb381dc6f29926bd54f1643088fbaaad
Skeleton hash
897b201bc891475d4e8e6860263bbaf44107abf2d43695f8b041971872b7666e
Architecture hash
8207efe23fc706d273e204e1d257dee52dc7a301f4568bd02939d0824939895b
Diagram SHA-256
6e0f9371c24b4e40dd392db2df373e4bbb883196a095f219360ed53e0a5f9cf2
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

This is a small fully connected spiking network built with snnTorch, a Python package for gradient-based learning with spiking neural networks that extends PyTorch. Where modern deep learning uses continuous activations, the brain encodes information in spikes. The package's pre-designed spiking neuron models sit inside the PyTorch framework and can be treated as recurrent activation units. The companion paper is a tutorial and perspective on applying lessons from deep learning, gradient descent, backpropagation and neuroscience to spiking networks.

A spiking neuron takes a weighted sum of inputs into its membrane potential and emits a spike when that potential reaches a threshold. The basic leaky integrate-and-fire neuron is a first-order low-pass filter. The paper also lists current-based neurons, which smooth the input twice so the membrane potential has a finite rise time rather than jumping on each incoming spike. It further describes kernel-based models in which a pre-defined kernel such as the alpha function is convolved with input spikes. The library is agnostic to the surrounding layers, so the same neurons work behind fully connected layers like those in this member or behind convolutional ones.

Because spikes are non-differentiable, training keeps the Heaviside threshold on the forward pass and substitutes a continuous function on the backward pass. Its derivative serves as a surrogate gradient. Surrogate gradients help overcome the dead neuron problem. A dead neuron is one that does not fire and therefore does not contribute to the loss. Its neuron models are represented as recursive functions, which removes the need to store membrane potential traces for every neuron in order to compute the gradient.

Key idea. A tutorial-and-perspective treatment of training spiking neural networks with the tools of deep learning, with companion interactive tutorials built on the snnTorch package.

  • snnTorch Alpha neuron
  • alpha_synapse
  • snn.Alpha
  • Alpha neuron
  • alpha synapse
  • spiking MLP
  • snntorch_alpha_mlp
  • snnTorch
  • spiking neural network
  • SNN

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

Cite the paper

@misc{eshraghian2023trainingspikingneuralnetworks,
      title={Training Spiking Neural Networks Using Lessons From Deep Learning}, 
      author={Jason K. Eshraghian and Max Ward and Emre Neftci and Xinxin Wang and Gregor Lenz and Girish Dwivedi and Mohammed Bennamoun and Doo Seok Jeong and Wei D. Lu},
      year={2023},
      eprint={2109.12894},
      archivePrefix={arXiv},
      primaryClass={cs.NE},
      url={https://arxiv.org/abs/2109.12894}, 
}