Abstract
Spiking neuron networks have been used successfully to solve simple reinforcement learning tasks with continuous action set applying learning rules based on spike-timing-dependent plasticity (STDP). However, most of these models cannot be applied to reinforcement learning tasks with discrete action set since they assume that the selected action is a deterministic function of firing rate of neurons, which is continuous. In this paper, we propose a new STDP-based learning rule for spiking neuron networks which contains feedback modulation. We show that the STDP-based learning rule can be used to solve reinforcement learning tasks with discrete action set at a speed similar to standard reinforcement learning algorithms when applied to the CartPole and LunarLander tasks. Moreover, we demonstrate that the agent is unable to solve these tasks if feedback modulation is omitted from the learning rule. We conclude that feedback modulation allows better credit assignment when only the units contributing to the executed action and TD error participate in learning.
Introduction
Spiking Neural Networks (SNNs) are highly attractive for their potential to mimic the energy-efficient, pulse-based communication of biological brains. However, training them for Reinforcement Learning (RL) has historically been difficult, particularly for tasks involving discrete action sets. Most existing SNN models map firing rates directly to continuous outputs, making them ill-suited for "all-or-nothing" decisions like those found in classic control tasks. This paper introduces a novel learning rule that incorporates feedback modulation to solve the structural credit assignment problem in discrete RL.
Methods and Architecture
The researchers propose an Actor-Critic SNN architecture utilizing Leaky-Integrate-and-Fire (LIF) neurons. The model is structured into four functional layers: input, critic, actor, and action neurons.
Feedback-modulated TD-STDP
The core innovation is the feedback modulation path (illustrated in Figure 1). In standard reward-modulated STDP, all active synapses are updated when a reward occurs. In a discrete environment, this is problematic: if an agent chooses "Action A" and receives a reward, synapses contributing to "Action B" should not be reinforced even if they were active. The proposed feedback gate from the action neurons back to the actor neurons ensures that only the specific units contributing to the executed action and the resulting Temporal Difference (TD) error participate in learning.
Stochastic Action Selection and Optimization
To facilitate exploration, the model treats the relative firing rates of actor neurons as probabilities, selecting discrete actions via a softmax function. To handle the non-differentiable nature of spikes, the authors use a Straight-Through Estimator (STE) for surrogate gradient approximation. The learning process is further stabilized through entropy regularization, weight decay, and target firing rate constraints to maintain biological plausibility.
Experimental Results
The model was evaluated on two benchmarks from OpenAI’s Gym: CartPole-v1 and LunarLander-v2.
- CartPole: The SNN solved the task in an average of 57 episodes, significantly outperforming the ANN baseline (180 episodes) and previous SNN models which often required over 1,000 episodes.
- LunarLander: The model achieved a "perfect score" (average > 200), a significant milestone as this task is considerably more complex than simple balancing.
- Ablation Study: The researchers demonstrated that without feedback modulation (using only standard TD-STDP), the agent completely fails to learn. This highlights that feedback connections are essential for proper credit assignment in discrete choice environments.
Discussion and Conclusion
This work demonstrates that SNNs can solve discrete RL tasks at speeds comparable to or faster than standard ANNs when equipped with the right modulation mechanisms. While the model currently relies on pre-processed features, it provides a robust framework for structural credit assignment. Future research will focus on scaling this feedback-modulated rule to deep SNNs capable of processing raw visual inputs, such as Atari game pixels.
Summary updated