Efficient sparse spiking auto-encoder for reconstruction, denoising and classification

Ben Walters, Hamid Rahimian Kalatehbali, Zhengyu Cai, Roman Genov, Amirali Amirsoleimani, Jason Eshraghian, Mostafa Rahimi AzghadiNeuromorph. Comput. Eng 2024

Introduction

Artificial Neural Networks (ANNs) have achieved remarkable success across various domains but remain computationally expensive and energy-intensive. This poses significant challenges for deployment on resource-constrained edge devices. Spiking Neural Networks (SNNs) offer a promising alternative by mimicking the event-driven nature of biological brains, where information is processed via discrete spikes. However, training high-performance SNNs typically relies on computationally heavy backpropagation through time or surrogate gradients. This research introduces a hardware-friendly Spiking Auto-Encoder (SAE) that utilizes local learning rules and extreme sparsity to achieve efficient image reconstruction and classification.

Architecture and Methodology

The proposed SAE architecture consists of three primary stages: an encoder, a hidden layer, and a decoder. Unlike traditional rate-coded SNNs, this model employs Time-To-First-Spike (TTFS) encoding. In this scheme, each input pixel generates exactly one spike, with the timing of the spike inversely proportional to the pixel's intensity. This approach significantly reduces the total spike count while preserving information in the temporal domain.

The architecture of the proposed Spiking Auto-Encoder, illustrating the flow from TTFS encoding through the STDP-trained hidden layer to the error-modulated reconstruction layer.

Learning is driven by Spike-Timing-Dependent Plasticity (STDP). While the encoder learns features in an unsupervised manner, the decoder utilizes a novel error-modulated STDP rule. This rule adjusts synaptic weights based on the difference between the actual reconstruction spike time and the target input spike time, effectively "nudging" the network toward more accurate reconstructions. To ensure feature diversity and prevent individual neurons from dominating activity, the model incorporates homeostatic threshold regulation and lateral inhibition (Winner-Takes-All) in the hidden layer.

Experimental Setup

The model was benchmarked using the MNIST dataset of handwritten digits and the more complex Fashion-MNIST dataset. These datasets provide a standard for evaluating both simple structural recognition and more intricate texture-based classification. Performance was measured based on reconstruction accuracy, classification success, and total spike activity (sparsity).

Results and Discussion

The SAE demonstrates unprecedented efficiency. For the MNIST dataset, the hidden layer requires an average of only 9.8 spikes per image—a reduction of one to three orders of magnitude compared to existing state-of-the-art spiking networks. Despite this extreme sparsity, the model achieves a 98% reconstruction ability on MNIST.

Visual results of the SAE on MNIST digits, showing (a) encoder feature maps, (b) decoder activity, and (c) the final synthetic reconstructions.

A key finding is the network's ability to generate "synthetic reconstructions." Rather than simple pixel-wise copying, the SAE learns the structural essence of the input classes. This property makes the model exceptionally robust to noise. In tests involving 20% Salt & Pepper noise, the SAE maintained significantly higher classification accuracy than traditional spiking architectures, with accuracy degradation reduced by 30%–80%.

While classification accuracy using a purely local STDP-based classifier reached 72% on MNIST, feeding the reconstructed images into a standard LeNet-5 classifier yielded 83.2%. This confirms that the sparse spike representations successfully capture and preserve critical structural information, even when the total spike count is minimized.

Conclusion

This work presents a highly efficient framework for sparse spiking auto-encoders. By combining TTFS encoding with error-modulated local learning, the model achieves competitive reconstruction and denoising performance with minimal energy expenditure. While the model currently struggles with the fine details of complex datasets like Fashion-MNIST, future research will focus on improving temporal resolution and extending the architecture to process native event-based data from neuromorphic sensors.

Summary updated

BibTeX
@article{walters2024efficient,
  author = {Ben Walters and Hamid Rahimian Kalatehbali and Zhengyu Cai and Roman Genov and Amirali Amirsoleimani and Jason Eshraghian and Mostafa Rahimi Azghadi},
  title = {{Efficient sparse spiking auto-encoder for reconstruction, denoising and classification}},
  journal = {Neuromorph. Comput. Eng.},
  year = {2024},
  doi = {10.1088/2634-4386/ad5c97},
}
Figure