BindsNET/bindsnet
Simulation of spiking neural networks (SNNs) using PyTorch.
What it solves
Simulating spiking neural networks (SNNs) typically requires solving differential equations for neuron dynamics, which is complex and often demands specialized tools. BindsNET makes this easier by building on PyTorch, letting you simulate SNNs on CPUs or GPUs with the familiar tensor operations. It supports biologically plausible learning rules like spike-timing-dependent plasticity (STDP), so you can develop and test brain-inspired algorithms for machine learning and reinforcement learning without writing low-level simulation code from scratch.
How it works
BindsNET converts the ordinary differential equations (ODEs) that describe spiking neuron dynamics into difference equations and solves them in short time steps (around 1 millisecond). It uses PyTorch's tensor objects to represent neuron populations and connections, which can run on GPU for speed. Learning rules, such as STDP, are implemented as weight updates based on the relative timing of spikes. The library provides building blocks for network architectures, including fully connected and convolutional layers, and includes example scripts for unsupervised, supervised, and reinforcement learning tasks (e.g., MNIST digit recognition and Atari Breakout).
Who it's for
Researchers and developers interested in biologically inspired machine learning, spiking neural networks, or neuromorphic computing. It's designed for people who want to experiment with SNN models using PyTorch's ecosystem, without needing to manually solve differential equations or build simulation infrastructure. The project is used in academic research labs and includes tools for running benchmarks and reproducing published results.
Highlights
- Built on PyTorch, so you can use GPU acceleration and PyTorch's neural network functions.
- Supports a variety of neuron models and learning rules, with each rule validated against its original paper.
- Includes example scripts for training and testing on MNIST, reinforcement learning in Atari games, and more.
- Provides a benchmarking script to compare performance against other SNN simulators like BRIAN2, PyNEST, and ANNarchy.
- Reproducible results: pinned dependencies and scripts to recreate published outcomes, with guidance on citing specific releases.
Related
- Project
- Project
- Project
- Project
- Project