[Paper Review] Gradient Descent for Spiking Neural Networks
This paper introduces a differentiable formulation of spiking neural networks using a smooth, differentiable synaptic current model based on a gate function applied to presynaptic membrane voltage derivatives, enabling exact gradient computation via backpropagation. The method successfully trains recurrent spiking networks to solve both millisecond-timescale encoding tasks and second-timescale delayed-memory XOR tasks with high accuracy, demonstrating end-to-end supervised learning for spike-based computation.
Much of studies on neural computation are based on network models of static neurons that produce analog output, despite the fact that information processing in the brain is predominantly carried out by dynamic neurons that produce discrete pulses called spikes. Research in spike-based computation has been impeded by the lack of efficient supervised learning algorithm for spiking networks. Here, we present a gradient descent method for optimizing spiking network models by introducing a differentiable formulation of spiking networks and deriving the exact gradient calculation. For demonstration, we trained recurrent spiking networks on two dynamic tasks: one that requires optimizing fast (~millisecond) spike-based interactions for efficient encoding of information, and a delayed memory XOR task over extended duration (~second). The results show that our method indeed optimizes the spiking network dynamics on the time scale of individual spikes as well as behavioral time scales. In conclusion, our result offers a general purpose supervised learning algorithm for spiking neural networks, thus advancing further investigations on spike-based computation.
Motivation & Objective
- To address the lack of efficient supervised learning algorithms for spiking neural networks due to the non-differentiable nature of spikes.
- To develop a differentiable formulation of spiking dynamics that preserves key biological properties like constant synaptic charge per supra-threshold input.
- To enable gradient-based optimization of recurrent spiking networks on both spike-time and behavioral timescales.
- To demonstrate the method's effectiveness on two dynamic tasks: fast spike-based encoding and delayed-memory XOR computation.
Proposed method
- Replaces the threshold-triggered synaptic current with a differentiable model using a narrow gate function g(v) applied to the derivative of presynaptic membrane voltage (g·dv/dt), ensuring constant total charge delivery for any supra-threshold depolarization.
- Defines synaptic current dynamics as τ·ds/dt = -s + g·dv/dt, which generalizes the standard threshold-triggered model and enables smooth gradient computation.
- Couples the differentiable synapse model with differentiable neuron dynamics (e.g., QIF or NIF models) and formulates the full network as a continuous-time dynamical system with trainable weights W, U, O, and tonic input Io.
- Derives exact gradients using backpropagation through time (BPTT) by differentiating the continuous-time network equations, allowing end-to-end optimization.
- Uses a linear readout layer (o = O·s) to map synaptic currents to network outputs, with loss defined as mean squared error between predicted and target outputs.
- Applies the method to train recurrent networks on two tasks: a fast encoding task with sinusoidal inputs and a delayed-memory XOR task with variable inter-event delays.
Experimental results
Research questions
- RQ1Can a differentiable formulation of spiking networks enable exact gradient computation for supervised learning?
- RQ2Can gradient descent optimize network dynamics on the millisecond timescale of individual spikes?
- RQ3Can the method train spiking networks to perform nonlinear computations over extended durations (seconds)?
- RQ4Does the method achieve efficient spike-time-based encoding without requiring fast synapses?
- RQ5Can the approach generalize to biologically realistic neuron models beyond simple integrate-and-fire types?
Key findings
- The method successfully trained a 30-neuron spiking network to track a desired output signal with high accuracy, achieving tight balance in input currents and robust spike-time-based encoding.
- The optimal recurrent weight matrix W closely matched the theoretical prediction W ≈ U·A·O, confirming the method’s ability to learn complex dynamics.
- The network solved the delayed-memory XOR task with variable delays between inputs and go-cue signals, generating correct output pulses (positive, negative, or null) based on input history.
- Spike patterns showed sustained, time-varying activity that preserved input history and responded appropriately to the go-cue, indicating effective memory and computation over seconds.
- The method achieved this without requiring fast synapses or additional dendritic nonlinearities, demonstrating that intrinsic QIF neuron dynamics sufficed for the task.
- The gradient updates were sparse and concentrated near spike times, resembling reward-modulated STDP, suggesting potential biological plausibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.