Abstract
This paper presents a novel framework for training multi-layer Spiking Neural Networks (SNNs) using gradient descent by leveraging precise temporal coding. By transforming spike times into a "z-domain," the authors demonstrate that SNNs function as piece-wise linear networks, enabling efficient backpropagation. The model achieves competitive accuracy on MNIST with extreme sparsity, requiring only a small fraction of neurons to fire for classification.
Introduction
Artificial Neural Networks (ANNs) dominate deep learning but lack the energy efficiency of biological systems. Spiking Neural Networks (SNNs) offer a promising alternative by using discrete pulses, yet their non-differentiable nature makes training difficult. The core issue is the "hard non-linearity" of a spike: a neuron either fires or it doesn't, making it impossible to calculate standard gradients. While rate coding (averaging spikes over time) is a common workaround, it ignores the information-rich temporal dimension. This work introduces a method to train SNNs based on exact spike timings.
The Z-Domain and Causal Sets
The primary innovation is a change of variables. By representing spike time $t$ as $z = e^t$, the output spike time of a non-leaky integrate-and-fire neuron becomes a linear weighted average of its inputs. In this transformed space, the network's input-output relation is differentiable almost everywhere.
A neuron's firing time depends on a "causal set"—the subset of input spikes that arrive early enough to trigger a spike. As timings shift, the causal set changes, resulting in a piece-wise linear relationship analogous to ReLU activations in standard ANNs. This allows for the use of standard gradient descent tools like backpropagation to minimize cross-entropy loss based on which output neuron fires first.
Network Dynamics and Rapid Inference
The network architecture consists of input, hidden, and output layers where information is encoded in the relative timing of spikes. Unlike rate-coded SNNs that require thousands of spikes, these neurons only need to spike once to convey information.
Because the network classifies based on the earliest output spikes, it can make decisions before most neurons have even fired. This "ultra-rapid" categorization mimics biological vision systems and leads to significant computational savings. Each neuron effectively "chooses" which inputs to listen to based on their arrival time; if an input arrives too late, it falls outside the causal set and is ignored.
Experimental Results
The model was tested on XOR and MNIST benchmarks. On the permutation-invariant MNIST task, the network achieved a test error of 2.45%. While slightly lower than state-of-the-art analog ANNs, it is highly competitive for such a sparse system. Notably, a correct classification was reached after only 3% to 9.4% of hidden neurons fired, averaging just 25 spikes per classification. This extreme sparsity highlights the potential for massive power savings on neuromorphic hardware.
Conclusion and Limitations
While highly efficient, the temporal coding approach faces an accuracy gap compared to traditional ANNs, likely because the pressure to fire early causes the network to ignore useful information from later-firing neurons. Additionally, standard regularization like Dropout is difficult to apply as it can prevent neurons from reaching their firing thresholds. Future work includes extending the model to multiple spikes per neuron and incorporating "leaky" dynamics while maintaining differentiability in the z-domain.
Summary updated