A PyTorch-Compatible Spike Encoding Framework for Energy-Efficient Neuromorphic Applications
Alexandru VasilacheJona ScholzVincent SchillingSven NitzscheFlorian KaelberJohannes KorschJuergen Becker
Alexandru Vasilache
Jona Scholz
Vincent Schilling
Sven Nitzsche
Florian Kaelber
Johannes Korsch
Juergen Becker
+7
This paper presents an open-source PyTorch-compatible Python framework for converting traditional vector-based datasets into spike trains for Spiking Neural Networks (SNNs). It implements several encoding algorithms, including Leaky Integrate-and-Fire (LIF), Step Forward (SF), Pulse Width Modulation (PWM), and Ben's Spiker Algorithm (BSA), along with population and reinforcement-learning strategies. An empirical evaluation on embedded hardware using C/C++ implementations examines energy consumption, computation time, spike sparsity, and reconstruction accuracy. The results show that Step Forward achieves the lowest reconstruction error, highest energy efficiency, and fastest encoding speed while maintaining the second-best spike sparsity, though other methods are more suitable for specific signal characteristics. This framework supports selecting optimal encoding strategies for energy-efficient SNN applications.

arXiv ·
· April 15, 2025