Paper commentary
SuperSpike: Supervised learning in multi-layer spiking neural networks
- Problem Supervised training of multi-layer spiking networks stalls because the spike output has no usable derivative, the spike reset adds self-dependence, and hidden-layer credit assignment is biologically and technically awkward.
- Method A surrogate derivative of the membrane voltage replaces the spike-train derivative, giving a three-factor rule with eligibility traces, and output errors reach hidden neurons through symmetric, random or uniform feedback.
- Results A single LIF neuron produced the target spike train after 500 trials (250 s of simulated time), and on the spiking exclusive-or task random feedback reached perfect accuracy while a network without hidden units could not solve it.

Figure 3 : SuperSpike learning with different types of feedback allows to train multi-layer networks. (a) Network activity at the initial trial at reference timet = 0s. The bottom panel shows the membrane potential traces of the four hidden units. The membrane potential of the output unit is shown in the middle. The dashed line is the output neuron firing threshold. The points correspond to target firing times and the top plot shows the error signal at the output layer. Hidden units receive the same input spikes as shown in Fig. 1a. ( b) Same as (a), but after 250s of training. The two hidden units which have started to respond to the repeating input spiking pattern are the ones with positive feedback weights, whereas the two hidden neurons which receive negative feedback connections from the output layer (middle traces) respond mostly at the offset of the repeating stimulus. ( c) Learning curves of networks trained with random feedback connections. Gray lines correspond to single trials and the black line to the average. The dashed line is the same average but for a network with 8 hidden layer units. (d) Same as (d), but for a network with symmetric feedback connections. (e) Same as (d–e), but for uniform “all one” feedback connections.
Original paper · CC BY 4.0 · Friedemann Zenke, Surya Ganguli · SuperSpike: Supervised learning in multi-layer spiking neural networks · Original paper figure · Extracted the figure area from page 14 of the original PDF.Why spiking networks resist supervised training
The study asks how synaptic weights in multi-layer spiking networks can be adjusted so that input spike patterns are mapped onto precisely timed output spikes. Deep learning offers a template, but its units pass real-valued activation vectors, whereas spiking networks communicate through spike times, so the cost functions and gradients used in deep learning do not carry over directly.
The spike output of a neuron has a derivative that is zero everywhere except at spike times, where it is undefined. The spike reset also makes each neuron depend on its own past output, which is hard to treat analytically. Hidden layers add a credit assignment problem: backpropagation is considered biologically implausible, and most event-based spiking frameworks lack the automatic differentiation tools that would make it practical.
Spike-timing methods such as SpikeProp avoid the derivative by working on firing times, but they cannot start from a network that is silent. Stochastic approaches inject noise, which can slow convergence, and a Heaviside-based surrogate has no gradient for sub-threshold activity, which limits it when hidden units are quiet. Feedback alignment showed that the exact feedback used in backpropagation can be loosened on standard benchmarks, but those studies mostly relied on rate-based approximations of spiking networks.
A surrogate derivative for the spike output
The learning rule starts from a van Rossum distance between the target output spike train and the actual one, and the cost is minimized with respect to the synaptic weights. Because the spike train has no useful derivative, it is replaced by a continuous function of the membrane potential, so the derivative with respect to a weight becomes a surrogate derivative of the voltage multiplied by the derivative of the voltage.
The surrogate is the derivative of the negative half of a fast sigmoid, computed as \(\sigma'(U_i)=(1+|h_i|)^{-2}\) with \(h_i=\beta(U_i-\vartheta)\), where β is 1 mV unless stated otherwise. The expectation is that other monotonic functions that rise steeply and peak at threshold would also work.
The membrane potential is written as a spike response model, with weighted postsynaptic potentials plus a kernel that acts on the neuron's own output spikes. The self-dependence term is treated as a small correction when firing rates are low, and the authors state that homeostatic mechanisms can keep rates low. Dropping that term makes the derivative of the voltage with respect to the weight equal to the filtered presynaptic activity, which turns the gradient into a rule in which the error signal, the filtered surrogate derivative and the presynaptic trace are multiplied.
The eligibility trace is the causal filter α applied to the product of the surrogate derivative and the presynaptic trace, and the weight change is the integral of the error signal times this trace.
The resulting rule is Hebbian and voltage-based, and its nonlinearity comes from the surrogate derivative. The causal filter lets an error that arrives after activity still reach the synapses involved, and the error signal acts as a third factor. Unlike many three-factor rules, the error signal is specific to each postsynaptic neuron. Every quantity is computed online, so the rule can be read as an implementation of real-time recurrent learning for spiking networks.
How feedback reaches hidden neurons
Output error signals are the α-filtered difference between target and actual output spike trains, and the precise-timing tasks use this signal without further shaping. For classification, each extra output spike adds negative feedback, and a missed required spike gives positive feedback at the end of the miss trial.
Hidden units receive feedback in place of their own spiking nonlinearity, so the output error passes neither the actual nor the soft spiking nonlinearity. Symmetric feedback is a weighted sum of downstream errors using the feedforward weights, as in Backprop, without the non-local derivative of the activation function. Uniform feedback sets every coefficient to one, so each hidden neuron receives one global third factor.
Neuron model and stimuli
The neurons are leaky integrate-and-fire units with current-based synaptic input, where each presynaptic spike makes the synaptic current jump by the weight. The threshold is -50 mV, the resting voltage -60 mV, the membrane time constant 10 ms and the synaptic time constant 5 ms. After a spike the voltage is held at rest for a 5 ms refractory period, and spikes reach other neurons after a 0.8 ms axonal delay.
Simulations run at a temporal resolution of 0.1 ms in the Auryn library.
For exact-timing tasks, the input is a single frozen draw of Poisson spike trains that repeats in a loop, and the target spikes are aligned with those repeats. For classification, stimuli are patterns of firing-time offsets from a common onset, presented in random order with randomly varying intervals. The stimuli and target spike trains used here are part of the Supervised Spiking Benchmark Suite.
Computing traces and weight changes online
The presynaptic trace is produced by two exponential filters, with a rise time constant of 5 ms and a decay time constant of 10 ms, which together give the shape of a postsynaptic potential. The surrogate derivative is evaluated at every time step and paired with the presynaptic trace delayed by 0.8 ms, which offsets the axonal delay of forward propagation.
The Hebbian product is filtered twice exponentially to form an eligibility trace for every synapse, so the cost scales as O(n^2) with the neuron count n. The authors suggest that synaptic spines, where calcium transients decay on short timescales, could hold such traces in biology. The eligibility kernel has the same double-exponential shape as the one used for the van Rossum distance.
The product of error signal and eligibility trace is accumulated over chunks of 0.5257 s, with 257 extra simulation steps added to avoid alignment with the stimulus. The per-parameter learning rate is \(r_{ij}=r_0/\sqrt{v_{ij}}\), where \(v_{ij}\) is a running maximum of the squared gradient that decays over time; the authors call this variant RMax-Prop.
In some random feedback runs, a heterosynaptic regularizer that depends on the error signal and on the fourth power of an exponential synaptic trace is added to the hidden weight update to limit high firing rates.
A single neuron learns a target spike train
The test uses one LIF neuron that receives 100 spike trains, with a target of 5 equidistant spikes over 500 ms and inputs that repeat every 500 ms. The initial weights leave the neuron sub-threshold, so it emits no output spikes at the start. The authors argue that earlier methods starting from this silent state would need injected noise to produce spikes, which would slow the learning of precise spike times.
After 500 trials, equal to 250 s of simulated time, the output neuron produced the desired spike train, whereas fewer trials gave only approximate matches. The learning curves show 20 individual trials and their mean during training.
Hidden layer with random, symmetric and uniform feedback
The single-neuron setup is extended with a hidden layer of 4 LIF neurons, and random feedback is fixed throughout training. The feedforward weights start in a regime where neither the hidden units nor the output unit fire in response to the input.
After 40 s some hidden units fire in response to the input, and by 250 s the output spike train is further refined with more differentiated hidden firing. Hidden units with positive feedback weights become excitatory, while those with negative feedback weights tend to become inhibitory, which the authors relate to feedback alignment, even though Dale's principle is not imposed.
Figure 3 compares the network at the initial trial with the network after 250 s, and gives learning curves for random, symmetric and uniform feedback.
Learning succeeded for different initial conditions, although the time to reach zero cost varied. A few random feedback runs failed, and these were the cases where all feedback connections started with negative values; a dashed line in the learning curves shows that increasing the number of hidden units, to 8 in that case, made such failures unlikely.
Symmetric and uniform feedback did not show striking performance differences from random feedback in this task.
Spiking exclusive-or with hidden units
The exclusive-or task uses 100 input units, but its effective dimension is two: three non-overlapping groups of input neurons fire at fixed random times within a 10 ms window, one group serves as a time reference, and the other two combine into four patterns. Two readout neurons correspond to the two target classes, and each must spike within a window that outlasts the stimulus by 10 ms.
Between stimulus bouts the input neurons fire stochastically at 5 Hz, and the stimuli appear in random order at random intervals.
With random feedback the network reached perfect accuracy on this task, while a network without hidden units could not solve it. Symmetric feedback also learned quickly, with more stereotyped and less noisy learning curves, whereas uniform feedback performed worse on average. The learning curves for the network without hidden units come from 20 trials with different random initializations.
The authors read this as showing that multi-layer spiking networks can solve tasks that layered networks without hidden units cannot, and that random feedback is beneficial over uniform feedback in some cases.
Complex spatiotemporal patterns and random feedback
The complex task requires 100 output neurons to reproduce a 3.5 s spatiotemporal pattern driven by cyclically repeating frozen Poisson input. Networks have 100 input neurons, 100 output neurons and varying numbers of hidden neurons, and they are trained with symmetric feedback. Figure 5 shows the target raster, a snapshot of the symmetric network after 1000 s of learning, and histograms of firing rate, inter-spike interval and coefficient of variation for the hidden layer.
Within 1000 s, networks with 32 or more hidden neurons learned an output pattern that visually matched the target. The match is not perfect: spurious spikes remain, and the van Rossum cost does not vanish.
Random feedback yields substantially worse output, which becomes close to impossible to recognize visually, and it performs worse than a network trained without a hidden layer. Uniform feedback was worst, but these results are not shown, so the paper does not consider it further. Adding heterosynaptic regularization improves the random feedback results and the visual similarity of the output, but it does not reach the performance of symmetric feedback networks.
For the hidden sizes tested, random feedback networks did not reach the performance of networks without a hidden layer, while symmetric feedback networks did. Disabling the voltage nonlinearity in the symmetric network, the variant called no partial, degrades the output pattern. Figure 6 combines learning curves with the learning rate reduced tenfold at dotted lines, minimum cost against hidden-layer size, and output raster snapshots for the feedback variants.
Limitations
Eligibility traces are kept per synapse, so the algorithm scales as O(n^2) with neuron count, and the authors name this as the main target for future optimization. The approximation that drops the neuron's self-dependence rests on low firing rates, which the authors expect to be secured by homeostatic mechanisms. Random feedback failed in the cases where all feedback connections started with negative values.
On the complex pattern task, a symmetric network still leaves spurious spikes and a non-vanishing van Rossum cost, and the random feedback results stay below both symmetric feedback and a network without a hidden layer for the hidden sizes tested. Deeper and recurrent spiking networks are left for future work.
Biological reading of the learning rule
The authors link the nonlinear voltage dependence to Hebbian plasticity findings in hippocampus and cortex, and the coincidence window to STDP. The authors argue that a single global feedback signal is not enough, and that a higher-dimensional neuromodulatory or electrical feedback signal is needed.
Paper info
- Authors
- Friedemann Zenke, Surya Ganguli
- Venue
- arXiv · Preprint
- First published
- 2017-5-31
- Added
- 2026-11-6
- Updated
- 2017-10-14
- Version
- v2
- arXiv
- 1705.11146
- DOI
- 10.1162/neco_a_01086
- Category
- q-bio.NC · cs.LG · cs.NE · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
A vast majority of computation in the brain is performed by spiking neural networks. Despite the ubiquity of such spiking, we currently lack an understanding of how biological spiking neural circuits learn and compute in-vivo, as well as how we can instantiate such capabilities in artificial spiking circuits in-silico. Here we revisit the problem of supervised learning in temporally coding multi-layer spiking neural networks. First, by using a surrogate gradient approach, we derive SuperSpike, a nonlinear voltage-based three factor learning rule capable of training multi-layer networks of deterministic integrate-and-fire neurons to perform nonlinear computations on spatiotemporal spike patterns. Second, inspired by recent results on feedback alignment, we compare the performance of our learning rule under different credit assignment strategies for propagating output errors to hidden units. Specifically, we test uniform, symmetric and random feedback, finding that simpler tasks can be solved with any type of feedback, while more complex tasks require symmetric feedback. In summary, our results open the door to obtaining a better scientific understanding of learning and computation in spiking neural networks by advancing our ability to train them to solve nonlinear problems involving transformations between different spatiotemporal spike-time patterns.
Quote from the paper
Friedemann Zenke, Surya Ganguli (2017). SuperSpike: Supervised learning in multi-layer spiking neural networks. arXiv:1705.11146v2. https://doi.org/10.1162/neco_a_01086
BibTeX
@article{zenke2017superspike,
title = {{SuperSpike: Supervised learning in multi-layer spiking neural networks}},
author = {Friedemann Zenke and Surya Ganguli},
year = {2017},
eprint = {1705.11146},
archivePrefix = {arXiv},
doi = {10.1162/neco_a_01086},
url = {https://arxiv.org/abs/1705.11146v2}
}