Saved in:
Bibliographic Details
Main Authors: Vasilache, Alexandru, Scholz, Jona, Schilling, Vincent, Nitzsche, Sven, Kaelber, Florian, Korsch, Johannes, Becker, Juergen
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.11026
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910911862669312
author Vasilache, Alexandru
Scholz, Jona
Schilling, Vincent
Nitzsche, Sven
Kaelber, Florian
Korsch, Johannes
Becker, Juergen
author_facet Vasilache, Alexandru
Scholz, Jona
Schilling, Vincent
Nitzsche, Sven
Kaelber, Florian
Korsch, Johannes
Becker, Juergen
contents Spiking Neural Networks (SNNs) offer promising energy efficiency advantages, particularly when processing sparse spike trains. However, their incompatibility with traditional datasets, which consist of batches of input vectors rather than spike trains, necessitates the development of efficient encoding methods. This paper introduces a novel, open-source PyTorch-compatible Python framework for spike encoding, designed for neuromorphic applications in machine learning and reinforcement learning. The framework supports a range of encoding algorithms, including Leaky Integrate-and-Fire (LIF), Step Forward (SF), Pulse Width Modulation (PWM), and Ben's Spiker Algorithm (BSA), as well as specialized encoding strategies covering population coding and reinforcement learning scenarios. Furthermore, we investigate the performance trade-offs of each method on embedded hardware using C/C++ implementations, considering energy consumption, computation time, spike sparsity, and reconstruction accuracy. Our findings indicate that SF typically achieves the lowest reconstruction error and offers the highest energy efficiency and fastest encoding speed, achieving the second-best spike sparsity. At the same time, other methods demonstrate particular strengths depending on the signal characteristics. This framework and the accompanying empirical analysis provide valuable resources for selecting optimal encoding strategies for energy-efficient SNN applications.
format Preprint
id arxiv_https___arxiv_org_abs_2504_11026
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A PyTorch-Compatible Spike Encoding Framework for Energy-Efficient Neuromorphic Applications
Vasilache, Alexandru
Scholz, Jona
Schilling, Vincent
Nitzsche, Sven
Kaelber, Florian
Korsch, Johannes
Becker, Juergen
Machine Learning
Spiking Neural Networks (SNNs) offer promising energy efficiency advantages, particularly when processing sparse spike trains. However, their incompatibility with traditional datasets, which consist of batches of input vectors rather than spike trains, necessitates the development of efficient encoding methods. This paper introduces a novel, open-source PyTorch-compatible Python framework for spike encoding, designed for neuromorphic applications in machine learning and reinforcement learning. The framework supports a range of encoding algorithms, including Leaky Integrate-and-Fire (LIF), Step Forward (SF), Pulse Width Modulation (PWM), and Ben's Spiker Algorithm (BSA), as well as specialized encoding strategies covering population coding and reinforcement learning scenarios. Furthermore, we investigate the performance trade-offs of each method on embedded hardware using C/C++ implementations, considering energy consumption, computation time, spike sparsity, and reconstruction accuracy. Our findings indicate that SF typically achieves the lowest reconstruction error and offers the highest energy efficiency and fastest encoding speed, achieving the second-best spike sparsity. At the same time, other methods demonstrate particular strengths depending on the signal characteristics. This framework and the accompanying empirical analysis provide valuable resources for selecting optimal encoding strategies for energy-efficient SNN applications.
title A PyTorch-Compatible Spike Encoding Framework for Energy-Efficient Neuromorphic Applications
topic Machine Learning
url https://arxiv.org/abs/2504.11026