Abstract
Brain-inspired spiking neural networks (SNNs) are successfully applied to many pattern recognition domains. The SNNs-based deep structure has achieved considerable results in perceptual tasks, such as image classification and target detection. However, applying deep SNNs in reinforcement learning (RL) tasks is still a problem to be explored. Although there have been previous studies on the combination of SNNs and RL, most focus on robotic control problems with shallow networks or using the ANN-SNN conversion method to implement spiking deep Q networks (SDQN). In this study, we mathematically analyzed the problem of the disappearance of spiking signal features in SDQN and proposed a potential-based layer normalization (pbLN) method to train spiking deep Q networks directly. Experiment shows that compared with state-of-art ANN-SNN conversion method and other SDQN works, the proposed pbLN spiking deep Q networks (PL-SDQN) achieved better performance on Atari game tasks.
Introduction
Spiking Neural Networks (SNNs) represent the "third generation" of neural networks, designed to mimic the energy-efficient, pulse-based communication of the biological brain. While they excel at simple perceptual tasks, scaling them to deep architectures for Reinforcement Learning (RL) has been notoriously difficult. Most current SNN-based RL agents either use shallow networks, which lack representational power, or rely on converting pre-trained Artificial Neural Networks (ANNs) into SNNs, which can be computationally expensive during inference and require long simulation windows.
The Spike Feature Information Vanishing Problem
The core challenge in deep SNNs is the spike feature information vanishing problem. In these networks, signals are transmitted as binary pulses (spikes). As these signals pass through multiple layers, the variance of neural activity tends to dissipate, and the mean firing rate shifts.
The authors provide a formal mathematical proof (Theorem 1) showing that without intervention, the mean firing rate of an SNN tends toward zero as the number of layers increases. This "silence" in deeper layers makes it impossible for the network to learn complex features or maintain the stable training environment required for deep Q-learning. This internal covariant shift makes direct training of deep SNNs extremely unstable.
Potential-based Layer Normalization (pbLN)
To overcome this, the researchers introduced Potential-based Layer Normalization (pbLN). Unlike standard Batch Normalization, which requires processing data in batches—a significant hurdle for real-time RL agents—pbLN operates on the Post-Synaptic Potential (PSP).
The proposed PL-SDQN architecture consists of three convolutional layers followed by two fully connected layers, utilizing Leaky Integrate-and-Fire (LIF) spiking neurons. The pbLN mechanism normalizes the input to each neuron to have a zero mean and unit variance. By introducing learnable scale ($\lambda$) and shift ($\beta$) parameters, the network can adapt the potential distribution to keep neurons in an "easy-to-fire" state, effectively preserving temporal features that would otherwise be lost to the "leakiness" of the neuron.
Key Results and Performance
The model was evaluated on 16 Atari 2600 games via the OpenAI Gym environment. The proposed PL-SDQN outperformed both the vanilla DQN and state-of-the-art ANN-to-SNN conversion methods:
- Superior Win Rate: PL-SDQN achieved higher scores in 15 out of 16 Atari games compared to competing methods.
- Activity Maintenance: In games like Breakout and BeamRider, standard SDQNs showed almost zero firing activity in the third convolutional layer. In contrast, PL-SDQN maintained robust firing rates across all layers, proving the effectiveness of the normalization.
- Computational Efficiency: By training directly with pbLN, the model achieves high performance with a much shorter simulation window ($T=16$) compared to conversion methods (which often require $T=256$), significantly reducing latency and energy consumption.
Conclusion
By addressing the fundamental problem of vanishing spikes, pbLN enables the direct training of deep spiking neural networks for complex reinforcement learning tasks. This approach maintains the energy-efficient characteristics of SNNs while achieving performance that rivals traditional deep learning methods in high-complexity environments like Atari games. Future research will explore applying these techniques to recurrent structures and real-world robotic control tasks where batching is impossible.
Summary updated