mlx-snn: Spiking Neural Networks on Apple Silicon via MLX

Jiahao Qin
3/3/2026
cs.LGcs.AIcs.NE

Official code: D-ST-Sword/mlx-snn (431 stars, GPL-3.0, last commit 2026-03-20).

Abstract

We introduce mlx-snn, the first spiking neural network (SNN) library built natively on Apple's MLX framework. As SNN research grows rapidly, all major libraries -- snnTorch, Norse, SpikingJelly, Lava -- target PyTorch or custom backends, leaving Apple Silicon users without a native option. mlx-snn provides six neuron models (LIF, IF, Izhikevich, Adaptive LIF, Synaptic, Alpha), four surrogate gradient functions, four spike encoding methods (including an EEG-specific encoder), and a complete backpropagation-through-time training pipeline. The library leverages MLX's unified memory architecture, lazy evaluation, and composable function transforms (mx.grad, mx.compile) to enable efficient SNN research on Apple Silicon hardware. We validate mlx-snn on MNIST digit classification across five hyperparameter configurations and three backends, achieving up to 97.28% accuracy with 2.0--2.5 times faster training and 3--10 times lower GPU memory than snnTorch on the same M3 Max hardware. mlx-snn is open-source under the MIT license and available on PyPI. https://github.com/D-ST-Sword/mlx-snn

View on arXivView PDF

Code Implementations(1)

D-ST-Sword/mlx-snnOfficial100%
GPL-3.0

Spiking Neural Network library built natively on Apple MLX

4312PythonMar 3, 20267 months agoGPL-3.0

Similar Papers

Cite this paper

@article{qin2026mlxsnn,
  title  = {mlx-snn: Spiking Neural Networks on Apple Silicon via MLX},
  author = {Jiahao Qin},
  year   = {2026},
  eprint = {2603.03529},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03529v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.03529.svg)](https://codeofpaper.com/paper/2603.03529)

Discussion